'', 'default-image' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $args ); /* Add Custom Menu */ register_nav_menu('top', 'Top Menu'); register_nav_menu('bottom', 'Bottom Menu'); add_action('wp_enqueue_scripts', 'custom_menu'); function custom_menu(){ wp_deregister_script('jquery'); wp_register_script('jquery', get_template_directory_uri().'/js/jquery-1.2.6.min.js', array()); wp_enqueue_script('jquery'); /* Register Javascript */ wp_register_script( 'hover', get_template_directory_uri().'/js/hoverIntent.js', array('jquery') ); wp_register_script( 'superfish', get_template_directory_uri().'/js/superfish.js', array('jquery') ); /* Call Javascript */ wp_enqueue_script( 'hover' ); wp_enqueue_script( 'superfish' ); } /* Add Left and Right Sidebar */ add_action( 'widgets_init', 'baris_widgets_init' ); function baris_widgets_init() { register_sidebar( array ( 'name' => __( 'Left Widget Area', 'baris' ), 'id' => 'left-widget-area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array ( 'name' => __( 'Right Widget Area', 'baris' ), 'id' => 'right-widget-area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array ( 'name' => __( 'Left Footer Widget Area', 'baris' ), 'id' => 'left-foot-widget-area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array ( 'name' => __( 'Right Footer Widget Area', 'baris' ), 'id' => 'right-foot-widget-area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } /* Tell Wordpress to run baris_setup() */ add_action( 'after_setup_theme', 'baris_setup' ); if( ! function_exists('baris_setup')): function baris_setup() { /* Default Style Editor */ add_editor_style(); /* Add default posts and RSS links to head */ add_theme_support( 'automatic-feed-links' ); } endif; /* Template Comments */ if ( ! function_exists( 'baris_comment' ) ) : /* Search Form */ function baris_search_form( $form ) { $form = ''; return $form; } add_filter( 'get_search_form', 'baris_search_form' ); /* Template for comments and pingbacks. */ function baris_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    ">
    comment_approved == '0' ) : ?>

    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'baris_remove_recent_comments_style' ); if ( ! function_exists( 'baris_posted_on' ) ) : /* Prints HTML with meta information for the current post—date/time and author. */ function baris_posted_on() { printf( __( 'Posted on %2$s by %3$s', 'baris' ), 'meta-prep meta-prep-author', sprintf( '', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'baris' ), get_the_author() ), get_the_author() ) ); } endif; /* Remove the default CSS style from the WP image gallery */ add_filter('gallery_style', create_function('$a', 'return "
    ";'));