Changeset 23395
- Timestamp:
- Jun 20, 2013, 12:51:22 PM (11 years ago)
- Location:
- extensions/skeleton/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/skeleton/trunk/admin/config.php
r17899 r23395 12 12 'option1' => intval($_POST['option1']), 13 13 'option2' => isset($_POST['option2']), 14 'option3' => $_POST['option3'], 14 15 ); 15 16 … … 18 19 } 19 20 21 $select_options = array( 22 'one' => l10n('One'), 23 'two' => l10n('Two'), 24 'three' => l10n('Three'), 25 ); 26 20 27 // send config to template 21 28 $template->assign(array( 22 29 'skeleton' => $conf['skeleton'], 30 'select_options' => $select_options 23 31 )); 24 32 -
extensions/skeleton/trunk/admin/template/config.tpl
r17899 r23395 4 4 jQuery('input[name="option2"]').change(function() { 5 5 $('.option1').toggle(); 6 }); 7 8 jQuery(".showInfo").tipTip({ 9 delay: 0, 10 fadeIn: 200, 11 fadeOut: 200, 12 maxWidth: '300px', 13 defaultPosition: 'bottom' 6 14 }); 7 15 {/literal}{/footer_script} … … 18 26 <li> 19 27 <label> 20 <span class="property">21 {'Checkbox'|@translate}22 <a class="showInfo" title="{'Check me!'|@translate}">i</a>23 </span>24 28 <input type="checkbox" name="option2" value="1" {if $skeleton.option2}checked="checked"{/if}> 29 <b>{'Checkbox'|@translate}</b> 25 30 </label> 31 <a class="showInfo" title="{'Check me!'|@translate}">i</a> 26 32 </li> 27 33 <li class="option1" {if not $skeleton.option2}style="display:none;"{/if}> 28 34 <label> 29 < span class="property">{'Integer'|@translate}</span>35 <b>{'Integer'|@translate}</b> 30 36 <input type="text" name="option1" value="{$skeleton.option1}" size="4"> 37 </label> 38 </li> 39 <li> 40 <label> 41 <b>{'Select'|@translate}</b> 42 {html_options name=option3 options=$select_options selected=$skeleton.option3} 31 43 </label> 32 44 </li> … … 34 46 </fieldset> 35 47 36 <p style="text-align:left;"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p>48 <p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p> 37 49 38 50 </form> -
extensions/skeleton/trunk/admin/template/home.tpl
r17899 r23395 1 1 {combine_css path=$SKELETON_PATH|@cat:"admin/template/style.css"} 2 3 {html_style}{literal} 4 h4 { text-align:left !important; } 5 {/literal}{/html_style} 2 6 3 7 <div class="titrePage"> -
extensions/skeleton/trunk/include/install.inc.php
r19842 r23395 21 21 if (empty($conf['skeleton'])) 22 22 { 23 $ skeleton_default_config= serialize(array(23 $conf['skeleton'] = serialize(array( 24 24 'option1' => 10, 25 25 'option2' => true, 26 26 )); 27 27 28 conf_update_param('skeleton', $skeleton_default_config); 29 $conf['skeleton'] = $skeleton_default_config; 28 conf_update_param('skeleton', $conf['skeleton']); 30 29 } 31 30 else … … 33 32 // if you need to test the "old" configuration you must check if not yet unserialized 34 33 $old_conf = is_string($conf['skeleton']) ? unserialize($conf['skeleton']) : $conf['skeleton']; 34 35 if (empty($old_conf['option3'])) 36 { 37 $old_conf['option3'] = 'two'; 38 } 39 40 $conf['skeleton'] = serialize($old_conf); 41 conf_update_param('skeleton', $conf['skeleton']); 35 42 } 36 43 -
extensions/skeleton/trunk/include/ws_functions.inc.php
r17933 r23395 10 10 'ws_php_info', 11 11 array( 12 'what' => array('default'=> 'INFO_ALL'), 12 'what' => array('default'=>'INFO_ALL', 'info'=>'This parameter has a default value'), 13 'ids' => array('flags'=>WS_PARAM_FORCE_ARRAY, 'info'=>'This one must be an array'), 13 14 ), 14 15 'Returns phpinfo (don\'t use XML request format)' -
extensions/skeleton/trunk/template/menubar_skeleton.tpl
r17899 r23395 1 1 <dt>{$block->get_title()}</dt> 2 2 <dd> 3 Menublock added by Skeleton plugin3 {'Menublock added by Skeleton plugin'|@translate} 4 4 <ul>{strip} 5 5 {foreach from=$block->data item=link} -
extensions/skeleton/trunk/template/skeleton_page.tpl
r17899 r23395 46 46 47 47 48 {if $clear}<div style="clear: both;"></div>48 {if isset($clear)}<div style="clear: both;"></div> 49 49 </div>{/if} 50 50 </div>{* <!-- content --> *}
Note: See TracChangeset
for help on using the changeset viewer.