Changeset 26430 for extensions/ExtendedDescription/include/admin.inc.php
- Timestamp:
- Jan 4, 2014, 1:54:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/include/admin.inc.php
r26424 r26430 1 1 <?php 2 2 defined('EXTENDED_DESC_PATH') or die('Hacking attempt!'); 3 4 /** 5 * Main help page on plugins list 6 */ 7 function extdesc_admin_menu($menu) 8 { 9 $menu[] = array( 10 'NAME' => 'Extended Description', 11 'URL' => get_root_url() . 'admin.php?page=plugin-ExtendedDescription', 12 ); 13 return $menu; 14 } 3 15 4 16 /** … … 45 57 $add = ' 46 58 {combine_script id=\'core.scripts\' load=\'async\' path=\'themes/default/js/scripts.js\'} 47 <a href="./admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="'.l10n(' ExtendedDesc_help').'" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="'.$themeconf['admin_icon_dir'].'/help.png" class="button" alt="'.l10n('ExtendedDesc_help').'"></a>';59 <a href="./admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="'.l10n('Use Extended Description tags...').'" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="'.$themeconf['admin_icon_dir'].'/help.png" class="button" alt="'.l10n('Use Extended Description tags...').'"></a>'; 48 60 49 61 return str_replace($search, $search.$add, $content); … … 54 66 * Display popup content 55 67 */ 56 function 68 function extended_desc_popup($help_content, $get) 57 69 { 58 70 if ($get == 'extended_desc') 59 71 { 60 $help_content = load_language('help.html', EXTENDED_DESC_PATH, array('return'=>true)); 72 global $template; 73 74 load_language('plugin.lang', EXTENDED_DESC_PATH); 75 76 $template->assign(array( 77 'EXTENDED_DESC_PATH' => EXTENDED_DESC_PATH, 78 'EXTDESC_HELP' => array( 79 'lang' => load_language('help.lang.html', EXTENDED_DESC_PATH, array('return'=>true)), 80 'extdesc' => load_language('help.extdesc.html', EXTENDED_DESC_PATH, array('return'=>true)), 81 'cat_photo' => load_language('help.cat_photo.html', EXTENDED_DESC_PATH, array('return'=>true)), 82 'slider' => load_language('help.slider.html', EXTENDED_DESC_PATH, array('return'=>true)), 83 'hide' => load_language('help.hide.html', EXTENDED_DESC_PATH, array('return'=>true)), 84 'redirect' => load_language('help.redirect.html', EXTENDED_DESC_PATH, array('return'=>true)), 85 ), 86 )); 87 88 $template->set_filename('extdesc', realpath(EXTENDED_DESC_PATH . 'template/admin.tpl')); 89 90 $help_content = '<h2>Extended Description</h2>' . $template->parse('extdesc', true); 61 91 } 62 92 return $help_content;
Note: See TracChangeset
for help on using the changeset viewer.