Ignore:
Timestamp:
06/30/13 23:15:06 (7 years ago)
Author:
flop25
Message:

bug:2848
added two options for the slideshow

ToDo lang var

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/smartpocket/themeconf.inc.php

    r23716 r23718  
    1212  'mobile' => true, 
    1313); 
     14 
     15// Need upgrade? 
     16global $conf; 
     17include(PHPWG_THEMES_PATH.'smartpocket/admin/upgrade.inc.php'); 
     18 
    1419 
    1520// Redirect if page is not compatible with mobile theme 
     
    5762$this->assign('thumbnail_derivative_params', ImageStdParams::get_by_type(IMG_SQUARE)); 
    5863 
    59 //------------------------------------------------------------- mobile version 
     64//------------------------------------------------------------- mobile version & theme config 
    6065add_event_handler('init', 'mobile_link'); 
    6166 
     
    6368{ 
    6469  global $template, $conf; 
     70  $config = unserialize( $conf['smartpocket'] ); 
     71  $template->assign( 'smartpocket', $config ); 
    6572  if ( !empty($conf['mobile_theme']) && (get_device() != 'desktop' || mobile_theme())) 
    6673  { 
    67     $template->assign('TOGGLE_MOBILE_THEME_URL', 
    68         add_url_params( 
    69           duplicate_index_url(), 
    70           array('mobile' => mobile_theme() ? 'false' : 'true') 
    71         ) 
    72       ); 
     74    $template->assign(array( 
     75                            'TOGGLE_MOBILE_THEME_URL' => add_url_params(duplicate_index_url(),array('mobile' => mobile_theme() ? 'false' : 'true')), 
     76      )); 
    7377  } 
    7478} 
Note: See TracChangeset for help on using the changeset viewer.