Changeset 12960 for extensions/stripped/admin
- Timestamp:
- Jan 28, 2012, 6:45:06 PM (12 years ago)
- Location:
- extensions/stripped/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/admin/admin.inc.php
r12547 r12960 1 1 <?php 2 3 // Need upgrade?4 2 5 3 global $conf; 6 4 5 // Need upgrade? 7 6 if (!isset($conf['stripped'])) 8 7 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 8 9 $stripped = unserialize( $conf['stripped'] ); 10 11 // Need upgrade from v1.x? 12 if (!isset($stripped['themeStyle'])) { 13 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 14 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped ); 15 } 16 17 // Need upgrade from v2.x? 18 if (!isset($stripped['paramVersion'])) { 19 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 20 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped ); 21 } 9 22 10 23 load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/'); … … 14 27 if(isset($_POST['submit_stripped'])) 15 28 { 29 $config['paramVersion']='2.1'; 30 16 31 $config['themeStyle']=$_POST['f_themeStyle']; 17 32 $config['hideMenu']=isset($_POST['f_hideMenu']); 18 33 $config['animatedMenu']=isset($_POST['f_animatedMenu']); 19 34 $config['noLowercase']=!isset($_POST['f_forceLowercase']); 35 $config['albumType']=$_POST['f_albumType']; 36 $config['albumFrame']=isset($_POST['f_albumFrame']); 20 37 $config['thumbFrame']=isset($_POST['f_thumbFrame']); 21 38 $config['showThumbLegend']=isset($_POST['f_showThumbLegend']); -
extensions/stripped/admin/admin.tpl
r12547 r12960 27 27 <span class="property">{'Force text to lowercase'|@translate}</span> 28 28 <input type="checkbox" name="f_forceLowercase" {if !($options.noLowercase)}checked{/if}> 29 </label></li> 30 <li><label> 31 <span class="property">{'Album list layout'|@translate}</span> 32 <select name="f_albumType" style="min-width:150px;"> 33 <option value="small" {if ($options.albumType=="small")}selected{/if}>{'5 albums per row (no album description)'|@translate}</option> 34 <option value="3perline" {if ($options.albumType=="3perline")}selected{/if}>{'3 albums per row (description below thumbnail)'|@translate}</option> 35 <option value="2perline" {if ($options.albumType=="2perline")}selected{/if}>{'2 albums per row (description beside thumbnail)'|@translate}</option> 36 <option value="1perline" {if ($options.albumType=="1perline")}selected{/if}>{'1 album per row (description beside thumbnail)'|@translate}</option> 37 </select> 38 </label></li> 39 <li><label> 40 <span class="property">{'Display frame around albums'|@translate}</span> 41 <input type="checkbox" name="f_albumFrame" {if $options.albumFrame}checked{/if}> 29 42 </label></li> 30 43 <li><label> -
extensions/stripped/admin/maintain.inc.php
r12547 r12960 8 8 { 9 9 $config = array( 10 'paramVersion' => '2.1', 11 10 12 'themeStyle' => 'black', 11 13 'hideMenu' => true, 12 14 'animatedMenu' => true, 13 15 'noLowercase' => false, 16 'albumType' => 'small', 17 'albumFrame' => true, 14 18 'thumbFrame' => true, 15 19 'showThumbLegend' => false, -
extensions/stripped/admin/upgrade.inc.php
r12547 r12960 8 8 { 9 9 $config = array( 10 'paramVersion' => '2.1', 11 10 12 'themeStyle' => 'black', 11 13 'hideMenu' => true, 12 14 'animatedMenu' => true, 13 15 'noLowercase' => false, 16 'albumType' => 'small', 17 'albumFrame' => true, 14 18 'thumbFrame' => true, 15 19 'showThumbLegend' => false, … … 65 69 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 66 70 71 } else { 72 if (isset($stripped['themeStyle']) & (!isset($stripped['paramVersion']))) { 73 74 $config = $stripped; 75 $config['paramVersion']='2.1'; 76 $config['albumType']='small'; 77 $config['albumFrame']=$config['thumbFrame']; 78 79 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 80 81 } 82 67 83 } 68 }69 84 85 } 70 86 ?>
Note: See TracChangeset
for help on using the changeset viewer.