'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').'