'menu-header', 'theme_location' => 'primary' ) ); } $perblog_options = ( array( array(__('Per Blog Settings','perblog'), array( array('menu', 'yes', __('Homepage use this theme','perblog'),__('If Show is selected, it is active.','perblog'),'yesno'), array('twitterileti', 'yes', __('Twitter Message','perblog'),__('If you choose yes, you will see the last twitter message at the bottom.','perblog'),'yesno'), array('etiketler', 'yes', __('Labels','perblog'),__('If yes, the text labels will appear.','perblog'),'yesno'), array('analytics', __('','perblog'), __('Analytics code::','perblog'),__('Analytics code here','perblog'),'textarea'), ) ), )); foreach($perblog_options as $section) { foreach($section[1] as $option) { add_option($option[0], $option[1]); } } function wp_perblog_admin() { global $perblog_options; if ($_POST['save_perblog_options']) { foreach($perblog_options as $section) { foreach($section[1] as $option) { update_option($option[0],stripslashes($_POST[$option[0]])); } } /* Başarılı */ echo '

'.__('Settings saved.','perblog').'

'; } ?>

'.$section[0].'
'; foreach($section[1] as $option) { echo ''; echo ''; } echo '
'; if ($option[4]=='yesno') { $yes = ''; $no = ''; if (get_option($option[0])=='yes') $yes='selected="selected"'; else $no='selected="selected"'; echo ''; } elseif ($option[4]=='textarea') { echo ''; } elseif ($option[4]=='select_options') { $selected = ''; echo ''; } else { echo ''; } if ($option[3]) echo '
'.$option[3].''; echo '

'; } ?>