Changeset 31979 for extensions/greydragon/themeconf.inc.php
- Timestamp:
- Apr 1, 2019, 3:05:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/greydragon/themeconf.inc.php
r31733 r31979 2 2 /* 3 3 Theme Name: GreyDragon 4 Version: 1. 2.284 Version: 1.3.1 5 5 Description: GreyDragon Theme 6 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=775 … … 27 27 28 28 add_event_handler('init', 'greydragon_init'); 29 30 if (defined('IN_ADMIN')) { 31 add_event_handler('loc_after_page_header', 'greydragon_add_admin_controller'); 32 } 29 33 30 34 // Load Theme's Parameters … … 55 59 } 56 60 61 function greydragon_add_admin_controller() { 62 global $template, $page, $user; 63 64 $template->assign(array( 65 'GDTHEME_PATH' => GDTHEME_PATH 66 )); 67 68 $template->set_filename('gdtheme_admin_controller', realpath(GDTHEME_PATH . 'admin/admin_controller.tpl')); 69 $template->parse('gdtheme_admin_controller'); 70 } 71 57 72 function greydragon_array_getXhalf($array) { 58 73 if (isset($array) && (count($array) > 0)): … … 70 85 endif; 71 86 } 72 73 87 74 88 function greydragon_picture_handler() { … … 101 115 $pattern = '#<div.*"theImageAndInfos".*>#'; 102 116 $replace = '$0 103 {if isset($previous.U_IMG)}<a class="gd-nav nav-prev" title="{\'Previous\'| translate}" href="{$previous.U_IMG}"> </a>{/if}104 {if isset($next.U_IMG) }<a class="gd-nav nav-next" title="{\'Next\'| translate}" href="{$next.U_IMG}"> </a>{/if}105 {if isset($U_UP) }<a class="gd-nav nav-up" title="{\'Up\'| translate}" href="{$U_UP}"> </a>{/if}106 {* <a class="gd-nav nav-zoom" title="{\'Full HD\'| translate}" href="{$U_UP}"> </a> *}117 {if isset($previous.U_IMG)}<a class="gd-nav nav-prev" title="{\'Previous\'|@translate}" href="{$previous.U_IMG}"> </a>{/if} 118 {if isset($next.U_IMG) }<a class="gd-nav nav-next" title="{\'Next\'|@translate}" href="{$next.U_IMG}"> </a>{/if} 119 {if isset($U_UP) }<a class="gd-nav nav-up" title="{\'Up\'|@translate}" href="{$U_UP}"> </a>{/if} 120 {* <a class="gd-nav nav-zoom" title="{\'Full HD\'|@translate}" href="{$U_UP}"> </a> *} 107 121 {html_head} 108 122 <style type="text/css">{strip} … … 138 152 endif; 139 153 } 140 141 ?>
Note: See TracChangeset
for help on using the changeset viewer.