Changeset 9038


Ignore:
Timestamp:
Feb 1, 2011, 2:23:52 PM (13 years ago)
Author:
nikrou
Message:

add no_NO (Norwegian) thanks to atlew
prepare plugin for piwigo 2.2 compatibility

Location:
extensions/pwgCumulus
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/pwgCumulus/CHANGELOG

    r8056 r9038  
     1pwgCumulus 0.4.11 - 2011-02-01
     2================================
     3* add no_NO (Norwegian) thanks to atlew
     4
    15pwgCumulus 0.4.10 - 2010-12-09
    26================================
  • extensions/pwgCumulus/MANIFEST

    r8056 r9038  
    2121pwgCumulus/language/de_DE/index.php
    2222pwgCumulus/language/de_DE/plugin.lang.php
     23pwgCumulus/language/no_NO/index.php
     24pwgCumulus/language/no_NO/description.txt
     25pwgCumulus/language/no_NO/plugin.lang.php
    2326pwgCumulus/language/templates/index.php
    2427pwgCumulus/language/templates/plugin.lang.php
  • extensions/pwgCumulus/include/pwgCumulusContent.class.php

    r6433 r9038  
    33// | pwgCumulus  - a plugin for Piwigo                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    3232
    3333    $GLOBALS['template']->set_filenames(array('tags'=> PWG_CUMULUS_PLUGIN_TEMPLATE . '/tags.tpl'));
    34     $GLOBALS['template']->func_known_script(array('id' => 'swfobject',
    35                                                   'src' => PWG_CUMULUS_PLUGIN_JS. '/swfobject.js'
    36                                                   ),
    37                                             $GLOBALS['template']->smarty
    38                                             );
     34   
     35    if (version_compare(PHPWG_VERSION, '2.2', '>=') || (PHPWG_VERSION=='Colibri')) {
     36      $GLOBALS['template']->func_combine_script(array('id' => 'swfobject',
     37                                                      'path' => PWG_CUMULUS_PLUGIN_JS. '/swfobject.js'
     38                                                      ),
     39                                                $GLOBALS['template']->smarty
     40                                                );
     41    } else {
     42      $GLOBALS['template']->func_known_script(array('id' => 'swfobject',
     43                                                    'src' => PWG_CUMULUS_PLUGIN_JS. '/swfobject.js'
     44                                                    ),
     45                                              $GLOBALS['template']->smarty
     46                                              );
     47    }
    3948   
    4049    $GLOBALS['template']->assign('PWG_CUMULUS_SWF', PWG_CUMULUS_PLUGIN_SWF);
  • extensions/pwgCumulus/main.inc.php

    r8056 r9038  
    33// | pwgCumulus  - a plugin for Piwigo                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    2222/*
    2323Plugin Name: pwgCumulus
    24 Version: 0.4.10
     24Version: 0.4.11
    2525Description: add an amazing tag cloud
    2626Plugin URI: http://piwigo.org/ext/extension_view.php?eid=263
Note: See TracChangeset for help on using the changeset viewer.