Ignore:
Timestamp:
Nov 14, 2014, 5:20:26 AM (10 years ago)
Author:
SergeD
Message:

version 1.0.14 - please refer to changelog for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/greydragon/themeconf.inc.php

    r30215 r30484  
    22/*
    33Theme Name: GreyDragon
    4 Version: 1.0.13
     4Version: 1.0.14
    55Description: Dark, slate, white background, grayscale.
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=775
     
    1111if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1212
    13 define('GDTHEME_VERSION', '1.0.13');
     13define('GDTHEME_VERSION', '1.0.14');
    1414
    1515require_once( PHPWG_THEMES_PATH . 'greydragon/include/greydragon.class.php');
     
    2525
    2626add_event_handler('init', 'greydragon_init');
    27 add_event_handler('loc_begin_page_header', 'greydragon_set_header', 55);
    2827
    2928pwg_set_session_var('show_metadata', 1);
     
    4645// Render custom header content
    4746function greydragon_render_header() {
    48 
    4947  return greyDragonCore::Instance()->getHeader();
    50 }
    51 
    52 // Add custom favicon or custom meta if provided
    53 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 content
    63 function greydragon_head($content, &$smarty) {
    64   return greyDragonCore::Instance()->getHead($content);
    6548}
    6649
Note: See TracChangeset for help on using the changeset viewer.