Changeset 23716 for trunk/themes/smartpocket
- Timestamp:
- Jun 30, 2013, 10:10:04 PM (11 years ago)
- Location:
- trunk/themes/smartpocket
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/smartpocket/template/menubar.tpl
r23713 r23716 1 <ul data-role="listview"> 2 <li data-icon="delete"><a href="#menubar" data-rel="close">{'Close'|@translate}</a></li> 3 </ul> 1 4 {if !empty($blocks) } 2 <ul data-role="listview">3 <li data-icon="delete"><a href="#menubar" data-rel="close">Close</a></li>4 </ul>5 5 {foreach from=$blocks key=id item=block} 6 6 <div data-role="collapsible" data-inset="false" data-icon="false"> … … 14 14 {/foreach} 15 15 {/if} 16 <br> 17 <ul data-role="listview"> 18 <li data-role="list-divider">{'View in'|@translate}</li> 19 <li><a href="{$TOGGLE_MOBILE_THEME_URL}">{'Desktop'|@translate}</a></li> 20 </ul> -
trunk/themes/smartpocket/themeconf.inc.php
r23713 r23716 57 57 $this->assign('thumbnail_derivative_params', ImageStdParams::get_by_type(IMG_SQUARE)); 58 58 59 //------------------------------------------------------------- mobile version 60 add_event_handler('init', 'mobile_link'); 61 62 function mobile_link() 63 { 64 global $template, $conf; 65 if ( !empty($conf['mobile_theme']) && (get_device() != 'desktop' || mobile_theme())) 66 { 67 $template->assign('TOGGLE_MOBILE_THEME_URL', 68 add_url_params( 69 duplicate_index_url(), 70 array('mobile' => mobile_theme() ? 'false' : 'true') 71 ) 72 ); 73 } 74 } 59 75 60 76
Note: See TracChangeset
for help on using the changeset viewer.