Changeset 26524
- Timestamp:
- Jan 8, 2014, 5:44:34 PM (10 years ago)
- Location:
- extensions/gvideo
- Files:
-
- 18 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/admin.php
r26470 r26524 3 3 4 4 global $template, $page, $conf; 5 6 load_language('plugin.lang', GVIDEO_PATH); 5 7 6 8 $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'add'; -
extensions/gvideo/include/events.inc.php
r26470 r26524 14 14 // add custom parser 15 15 add_event_handler('render_element_content', 'gvideo_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL-10, 2); 16 17 if (defined('ADMINTOOLS_ID')) 18 { 19 global $template; 20 21 load_language('plugin.lang', GVIDEO_PATH); 22 23 $template->assign(array( 24 'GVIDEO_PATH' => GVIDEO_PATH, 25 'U_GVIDEO_EDIT' => GVIDEO_ADMIN.'-photo&image_id='.$picture['current']['id'], 26 )); 27 28 $template->set_prefilter('ato_public_controller', 'gvideo_admintools'); 29 } 16 30 } 17 31 18 32 return $picture; 33 } 34 35 function gvideo_admintools($content) 36 { 37 $search = '{if isset($ato.U_DELETE)}'; 38 $replace = ' 39 {if isset($U_GVIDEO_EDIT)} 40 {combine_css path=$GVIDEO_PATH|cat:\'template/fontello/css/gvideo.css\'} 41 <li><a class="icon-gvideo-movie" href="{$U_GVIDEO_EDIT}">{\'Video properties\'|translate}</a></li> 42 {/if} 43 {if isset($ato.U_DELETE)}'; 44 45 return str_replace($search, $replace, $content); 19 46 } 20 47 -
extensions/gvideo/main.inc.php
r26470 r26524 45 45 $maintain->autoUpdate(GVIDEO_VERSION, 'install'); 46 46 47 load_language('plugin.lang', GVIDEO_PATH);48 49 47 $conf['gvideo'] = unserialize($conf['gvideo']); 50 48 }
Note: See TracChangeset
for help on using the changeset viewer.