'', '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' => '
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 %3$s', 'baris' ), 'meta-prep meta-prep-author', sprintf( '%3$s', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( ' ', 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 "