"; $reklam2 = "
"; $options = array ( array( "name" => $temaadi." Ayarlar", "type" => "title"), array( "name" => "Seo", "type" => "section"), array( "type" => "open"), array( "name" => "Anahtar Kelime", "desc" => "Çeşitli yerlerde (logo title, alt tag, footer title v.b) kullanılır.", "id" => "anahtar_kelime", "type" => "text", "std" => ""), array( "name" => "Anahtar Kelime 2", "desc" => "Çeşitli yerlerde (logo title, alt tag, footer title v.b) kullanılır.", "id" => "anahtar_kelime2", "type" => "text", "std" => ""), array( "type" => "close"), array( "name" => "Sosyal Ağlar", "type" => "section"), array( "type" => "open"), array( "name" => "Facebook Linkiniz", "desc" => "Sidebardaki Facebook ikon linki.", "id" => "facebook-link", "type" => "text", "std" => ""), array( "name" => "Friednfeed Linkiniz", "desc" => "Sidebardaki Friendfeed ikon linki.", "id" => "fflink", "type" => "text", "std" => ""), array( "name" => "Twitter Linkiniz", "desc" => "Sidebardaki Twitter ikon linki.", "id" => "twitterlink", "type" => "text", "std" => ""), array( "type" => "close"), array( "name" => "Etiket", "type" => "section"), array( "type" => "open"), array( "name" => "Sidebarda etiket bulutu olsun mu?", "desc" => "Not : 2 yaşından genç siteler için gösterilmemesi önerilir.", "id" => "acik_etiket", "type" => "checkbox", "std" => ""), array( "name" => "Anasayfada yazı etiketleri olsun mu?", "desc" => "Not : 1 yaşından genç siteler için gösterilmemesi önerilir.", "id" => "ana_etiket", "type" => "checkbox", "std" => ""), array( "type" => "close"), array( "name" => "Google Analytics", "type" => "section"), array( "type" => "open"), array( "name" => "Google Analytics kodunuz:", "desc" => "Footer'a otomatik eklenecektir.", "id" => "google", "type" => "textarea", "std" => ""), array( "type" => "close"), array( "name" => "Feedburner Aboneliğiniz", "type" => "section"), array( "type" => "open"), array( "name" => "Sidebarda abone ol formu görünsün mü ?", "desc" => "Feedburner aboneliği gerektirir.", "id" => "aboneol", "type" => "checkbox", "std" => ""), array( "name" => "Feedburner üyeliğiniz:", "desc" => "Feedburner kullanıcı adınızı yazınız", "id" => "feedburner", "type" => "text", "std" => ""), array( "type" => "close"), array( "name" => "Footer", "type" => "section"), array( "type" => "open"), array( "name" => "Footer link ve yazısı:", "desc" => "Yandaki kısmı tamamlayınız.", "id" => "footer", "type" => "text", "std" => "© 2010 Copyright"), array( "type" => "close"), array( "name" => "Google Adsense", "type" => "section"), array( "type" => "open"), array( "name" => "468x60 Adsense", "desc" => "single.php breadcrumb altında 468x60px adsense", "id" => "adsense_468x68", "type" => "textarea", "std" => ""), array( "name" => "250x250 Adsense", "desc" => "sidebar.php 250x250px adsense", "id" => "adsense_250x250", "type" => "textarea", "std" => ""), array( "type" => "close"), array( "name" => "Tema Renk", "type" => "section"), array( "type" => "open"), array( "name" => "Tema Renk Şablon", "desc" => "", "id" => "tema_renk_sablon", "type" => "select", "std" => "", "options" => array('mavi', 'yesil', 'kirmizi') ), array( "type" => "close"), array( "name" => "Önizleme Resimleri", "type" => "section"), array( "type" => "open"), array( "name" => "Önizleme Resimleri", "desc" => "", "id" => "tema_onizleme", "type" => "select", "std" => "", "options" => array('aktif', 'pasif') ), array( "type" => "close"), array( "name" => "Site Logo", "type" => "section"), array( "type" => "open"), array( "name" => "Site Logo Tam URL:", "desc" => "Logonun tam url adresini giriniz", "id" => "tema_logo_url", "type" => "text", "std" => ""), array( "type" => "close"), array( "name" => "Site Reklamlar", "type" => "section"), array( "type" => "open"), array( "name" => "468x60 Üst Alan Reklam", "desc" => "", "id" => "reklam_468x68", "type" => "textarea", "std" => ""), array( "name" => "125x125 Reklam 1", "desc" => "", "id" => "reklam_125x125_1", "type" => "textarea", "std" => ""), array( "name" => "125x125 Reklam 2", "desc" => "", "id" => "reklam_125x125_2", "type" => "textarea", "std" => ""), array( "name" => "125x125 Reklam 3", "desc" => "", "id" => "reklam_125x125_3", "type" => "textarea", "std" => ""), array( "name" => "125x125 Reklam 4", "desc" => "", "id" => "reklam_125x125_4", "type" => "textarea", "std" => ""), array( "type" => "close"), ); function mytheme_add_admin() { global $temaadi, $kisa, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: admin.php?page=yonetim.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: admin.php?page=yonetim.php&reset=true"); die; } } add_menu_page($temaadi, $temaadi, 'administrator', basename(__FILE__), 'mytheme_admin'); } function mytheme_add_init() { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("functions", $file_dir."/yonetim/functions.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/yonetim/rm_script.js", false, "1.0"); } function mytheme_admin() { global $temaadi, $kisa, $options; $i=0; if ( $_REQUEST['saved'] ) echo '
Değişiklikler kaydedildi!
'; if ( $_REQUEST['reset'] ) echo '
'; ?>
Aşağıdaki alanlardan ayarlarınızı yapabilirsiniz.