web/wp-content/themes/WNN-WP/functions.php
changeset 2 4f3e6ea1c867
parent 1 0d28b7c10758
equal deleted inserted replaced
1:0d28b7c10758 2:4f3e6ea1c867
   213             
   213             
   214 		case "checkbox":
   214 		case "checkbox":
   215 		?>
   215 		?>
   216             <tr>
   216             <tr>
   217             <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
   217             <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
   218                 <td width="80%"><? if(get_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
   218                 <td width="80%"><?php if(get_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
   219                         <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
   219                         <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
   220                         </td>
   220                         </td>
   221             </tr>
   221             </tr>
   222                         
   222                         
   223             <tr>
   223             <tr>
   250 
   250 
   251 add_action('admin_menu', 'mytheme_add_admin'); ?>
   251 add_action('admin_menu', 'mytheme_add_admin'); ?>
   252 <?php
   252 <?php
   253 if ( function_exists('register_sidebar') )
   253 if ( function_exists('register_sidebar') )
   254     register_sidebar();
   254     register_sidebar();
   255 ?><? if(!function_exists(amt_cif)) { require_once('functions.wp-amt.php'); } ?>
   255 ?><?php if(!function_exists(amt_cif)) { require_once('functions.wp-amt.php'); } ?>