if ( ! isset( $content_width ) ) $content_width = 624; add_action( 'after_setup_theme', 'lcb_setup' ); function lcb_setup() { add_editor_style(); add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); set_post_thumbnail_size( 110, 110, true ); // Default size // Make theme available for translation // Translations can be filed in the /languages/ directory load_theme_textdomain('lcb', get_template_directory() . '/languages'); register_nav_menus( array( 'primary' => __('Header Menu', 'lcb'), 'secondary' => __('Footer Menu', 'lcb') ) ); } function lcb_widgets_init() { register_sidebar(array( 'name' => __( 'Sidebar Widget Area', 'lcb' ), 'id' => 'sidebar-widget-area', 'description' => __( 'The sidebar widget area', 'lcb' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => __( 'Footer Widget Area', 'lcb' ), 'id' => 'footer-widget-area', 'description' => __( 'The footer widget area', 'lcb' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); } add_action ( 'widgets_init', 'lcb_widgets_init' ); function lcb_init_method() { if (!is_admin()) { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); wp_enqueue_script( 'jquery' ); } if ( !is_admin() ) { wp_register_script('custom_script', get_template_directory_uri() . '/js/custom-jquery-script.js'); wp_enqueue_script('custom_script'); } } add_action('init', 'lcb_init_method'); //Multi-level pages menu function lcb_page_menu() { if (is_page()) { $highlight = "page_item"; } else {$highlight = "menu-item current-menu-item"; } echo ''; } //Single-level pages menu function lcb_page_menu_flat() { if (is_page()) { $highlight = "page_item"; } else {$highlight = "menu-item current-menu-item"; } echo ''; } ?>