"Mahjonk Option Theme", "type" => "title"), array( "type" => "open"), array( "name" => "Google Adsense topbar", "desc" => "Google adsense for content. Banner (468x60) - Recomendeed.", "id" => $shortname."_GA_01", "type" => "textarea"), array( "name" => "Google Adsense sidebar", "desc" => "Google adsense for content. Half Banner (234x60) - Recomendeed.", "id" => $shortname."_GA_02", "type" => "textarea"), array( "name" => "Google Adsense footer", "desc" => "Google adsense for content. Laderboard (728x90) - Recomendeed.", "id" => $shortname."_GA_03", "type" => "textarea"), array( "type" => "close") ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } } add_theme_page("Mahjonk Option", "Mahjonk Option", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved. (if this mahjonk option theme is helpfull for you, please consider to making a donation, thanks).

'; ?>

Mahjonk Option Theme for Adsense




$themename is designed by mahjonk"; ?>
'Right Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); if ( function_exists( 'add_theme_support' ) ) add_theme_support( 'automatic-feed-links' ); ?>