NOT: Konu yanlız yerde değil diye düşünüyorum ama moderatör arkadaşlar yanlıs yerde iste doğru yere alırlarsa sevinirim.
Kod:
add_theme_support( 'menus' );
add_theme_support( 'post-thumbnails' );
add_image_size( 'boyut100x100', 100, 100, true );
add_image_size( 'boyut75x75', 75, 75, true );
register_sidebars(1, array('name'=>'Sidebar'));
register_nav_menus( array( 'ust_menu' => 'UstHeaderMenu', 'alt_menu' => 'AltFooterMenu', ) );
function mytheme_wp_get_attachment_image_attributes( $attr ) {
unset($attr['title']);
return $attr;
}
add_filter( 'wp_get_attachment_image_attributes', 'mytheme_wp_get_attachment_image_attributes' );
function my_init() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');
wp_enqueue_script('jquery');
}
}
add_action('init', 'my_init');
function add_menu_admin_bar() {
global $wp_admin_bar;
if ( !is_super_admin() || !is_admin_bar_showing() )
return;
$wp_admin_bar->add_menu( array( 'id' => 'theme_options', 'title' =>__( 'Siteadı Tema Ayarları', '-haber' ), 'href' => admin_url('admin.php')."?page=TemaAyarlar" ) );
}
add_action( 'admin_bar_menu', 'add_menu_admin_bar' , 70);
// ###################### TEMA AYARLARI ######################
//get theme options
$options = get_option( 'theme_settings' );
//register settings
function theme_settings_init(){
register_setting( 'theme_settings', 'theme_settings' );
}
//add settings page to menu
function add_settings_page() {
add_menu_page( __( 'Siteadı Tema Ayarları' ), __( 'Siteadı Tema Ayarları' ), 'manage_options', 'TemaAyarlar', 'theme_settings_page');
}
//add actions
add_action( 'admin_init', 'theme_settings_init' );
add_action( 'admin_menu', 'add_settings_page' );
//define your variables
$color_scheme = array('default','blue','green',);
//start settings page
function theme_settings_page() {
if ( ! isset( $_REQUEST['updated'] ) )
$_REQUEST['updated'] = false;
//get variables outside scope
global $color_scheme;
?>
<script>/color/js/jquery.js"></script>
<script>/color/js/colorpicker.js"></script>
<script>/color/js/eye.js"></script>
<script>/color/js/utils.js"></script>
<script>/color/js/layout.js?ver=1.0.2"></script>
.
SinPor teması Sinan İŞLER tarafından yapılmıştır.
}
function yorumgetir( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '' :
?>
id="li-comment-">
comment_approved == '0' ) : ?>
break;
case 'pingback' :
case 'trackback' :
?>
break;
endswitch;
}
?>
admin panel ekran görüntüsü