Rev | Line | |
---|
[10871] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: SmartAlbums |
---|
| 4 | Version: auto |
---|
[10980] | 5 | Description: Easily create dynamic albums with tags, date and other criteria |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=544 |
---|
[10871] | 7 | Author: Mistic |
---|
| 8 | Author URI: http://www.strangeplanet.fr |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | global $prefixeTable; |
---|
| 13 | |
---|
| 14 | define('SMART_DIR', basename(dirname(__FILE__))); |
---|
| 15 | define('SMART_PATH', PHPWG_PLUGINS_PATH.SMART_DIR.'/'); |
---|
| 16 | define('CATEGORY_FILTERS_TABLE', $prefixeTable.'category_filters'); |
---|
| 17 | |
---|
[11334] | 18 | if (script_basename() == 'index') |
---|
[10871] | 19 | { |
---|
[11334] | 20 | add_event_handler('loc_end_section_init', 'smart_init_page_items'); |
---|
| 21 | include_once(SMART_PATH.'include/init_page_items.php'); |
---|
| 22 | } |
---|
| 23 | else if (script_basename() == 'admin') |
---|
| 24 | { |
---|
[11290] | 25 | load_language('plugin.lang', SMART_PATH); |
---|
| 26 | |
---|
[11334] | 27 | add_event_handler('loc_begin_cat_modify', 'smart_cat_modify'); |
---|
| 28 | include_once(SMART_PATH.'include/init_cat_modify.php'); |
---|
[10871] | 29 | |
---|
[11334] | 30 | add_event_handler('loc_begin_cat_list', 'smart_cat_list'); |
---|
| 31 | include_once(SMART_PATH.'include/init_cat_list.php'); |
---|
[10871] | 32 | } |
---|
| 33 | |
---|
| 34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.