Changeset 30484 for extensions/greydragon/themeconf.inc.php
- Timestamp:
- Nov 14, 2014, 5:20:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/greydragon/themeconf.inc.php
r30215 r30484 2 2 /* 3 3 Theme Name: GreyDragon 4 Version: 1.0.1 34 Version: 1.0.14 5 5 Description: Dark, slate, white background, grayscale. 6 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=775 … … 11 11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 12 12 13 define('GDTHEME_VERSION', '1.0.1 3');13 define('GDTHEME_VERSION', '1.0.14'); 14 14 15 15 require_once( PHPWG_THEMES_PATH . 'greydragon/include/greydragon.class.php'); … … 25 25 26 26 add_event_handler('init', 'greydragon_init'); 27 add_event_handler('loc_begin_page_header', 'greydragon_set_header', 55);28 27 29 28 pwg_set_session_var('show_metadata', 1); … … 46 45 // Render custom header content 47 46 function greydragon_render_header() { 48 49 47 return greyDragonCore::Instance()->getHeader(); 50 }51 52 // Add custom favicon or custom meta if provided53 function greydragon_set_header() {54 global $template;55 56 $themeCore = greyDragonCore::Instance();57 if (($themeCore->hasOption("p_favicon_path")) || ($themeCore->getOption("p_nogenerator"))):58 $template->set_prefilter('header', "greydragon_head");59 endif;60 }61 62 // Render head content63 function greydragon_head($content, &$smarty) {64 return greyDragonCore::Instance()->getHead($content);65 48 } 66 49
Note: See TracChangeset
for help on using the changeset viewer.