[3681] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Advanced Menu Manager |
---|
[4274] | 4 | Version: 2.1.2 |
---|
[3681] | 5 | Description: Gestion avancée du menu / Advanced management of menu |
---|
| 6 | Plugin URI: http://piwigo.org |
---|
| 7 | Author: Piwigo team |
---|
| 8 | Author URI: http://piwigo.org |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@grum.fr |
---|
| 15 | website : http://photos.fr |
---|
| 16 | PWG user : http://forum.piwigo.org/profile.php?id=3706 |
---|
| 17 | |
---|
| 18 | << May the Little SpaceFrog be with you ! >> |
---|
| 19 | -------------------------------------------------------------------------------- |
---|
| 20 | |
---|
| 21 | :: HISTORY |
---|
| 22 | |
---|
| 23 | | release | date | |
---|
| 24 | | 2.0.0b | 2008/07/27 | * initial release with own blocks classes |
---|
| 25 | | 2.0.0 | 2008/10/23 | * first release for piwigo's blocks classes |
---|
[3683] | 26 | | 2.1.0 | 2009/07/26 | * add a functionality : random image can be changed |
---|
[3682] | 27 | | | | every x seconds (from 0.5 to 60) |
---|
[3683] | 28 | | | | * bug resolved : random image block is displayed only |
---|
| 29 | | | | if user have accessibility to more than 0 images |
---|
| 30 | | | | random images are choosen in the accessible images for |
---|
| 31 | | | | a user (permission + level) |
---|
| 32 | | | | (cf. post:107877 on french forum) |
---|
| 33 | | | | (cf. topic:14374 on french forum) |
---|
[3690] | 34 | | 2.1.1 | 2009/07/27 | * random picture is preloaded before the first ajax call |
---|
| 35 | | | | assuming the display of a thumbnail even if javascript |
---|
| 36 | | | | is disabled on the browser |
---|
| 37 | | | | (cf. post:116807 on french forum) |
---|
| 38 | | | | * give the possibility to choose between an automatic |
---|
| 39 | | | | and a fixed height for the block menu |
---|
| 40 | | | | (cf. post:116804 on french forum) |
---|
| 41 | | | | * compatibility with Sylvia theme |
---|
| 42 | | | | (cf. post:116800 on french forum) |
---|
[4274] | 43 | | 2.1.2 | 2009/11/16 | * adding new translations |
---|
| 44 | | | | - es_ES |
---|
| 45 | | | | - hu_HU (thx to sámli) |
---|
[3682] | 46 | | | | |
---|
| 47 | | | | |
---|
| 48 | | | | |
---|
[3681] | 49 | |
---|
| 50 | |
---|
| 51 | :: TO DO |
---|
| 52 | |
---|
| 53 | -------------------------------------------------------------------------------- |
---|
| 54 | |
---|
| 55 | :: NFO |
---|
| 56 | AMM_AIM : classe to manage plugin integration into plugin menu |
---|
| 57 | AMM_AIP : classe to manage plugin admin pages |
---|
| 58 | AMM_PIP : classe to manage plugin public integration |
---|
| 59 | |
---|
| 60 | -------------------------------------------------------------------------------- |
---|
| 61 | */ |
---|
| 62 | |
---|
| 63 | // pour faciliter le debug - make debug easier :o) |
---|
| 64 | //ini_set('error_reporting', E_ALL); |
---|
| 65 | //ini_set('display_errors', true); |
---|
| 66 | |
---|
| 67 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 68 | |
---|
| 69 | define('AMM_DIR' , basename(dirname(__FILE__))); |
---|
| 70 | define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/'); |
---|
| 71 | |
---|
[4274] | 72 | define('AMM_VERSION' , '2.1.2'); // => ne pas oublier la version dans l'entête !! |
---|
[3681] | 73 | |
---|
| 74 | global $prefixeTable, $page; |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | if(defined('IN_ADMIN')) |
---|
| 78 | { |
---|
| 79 | //AMM admin part loaded and active only if in admin page |
---|
| 80 | include_once("amm_aim.class.inc.php"); |
---|
| 81 | $obj = new AMM_AIM($prefixeTable, __FILE__); |
---|
| 82 | $obj->init_events(); |
---|
| 83 | set_plugin_data($plugin['id'], $obj); |
---|
| 84 | } |
---|
| 85 | else |
---|
| 86 | { |
---|
| 87 | //AMM public part loaded and active only if in public page |
---|
| 88 | include_once("amm_pip.class.inc.php"); |
---|
| 89 | $obj = new AMM_PIP($prefixeTable, __FILE__); |
---|
| 90 | set_plugin_data($plugin['id'], $obj); |
---|
| 91 | } |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | ?> |
---|