'', 'default-image' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_action( 'wp_enqueue_scripts', 'blackline_frontend' ); add_theme_support('menu'); add_editor_style( 'editor-style.css' ); add_theme_support( 'woocommerce' ); add_image_size( 'my-theme-logo-size', 330, 100, true ); add_theme_support( 'site-logo', array( 'size' => 'my-theme-logo-size' ) ); } function blackline_widgets() { register_sidebar( array( // sidebar header 'name' => 'sidebar-head', ) ); register_sidebar( array( // sidebar left 'name' => 'sidebar-left', ) ); register_sidebar( array( // sidebar footer 1 'name' => 'sidebar-footer1', ) ); register_sidebar( array( // sidebar footer 2 'name' => 'sidebar-footer2', ) ); register_sidebar( array( // sidebar footer 3 'name' => 'sidebar-footer3', ) ); } add_action( 'widgets_init', 'blackline_widgets' ); add_filter('loop_shop_per_page', create_function('$cols', 'return 12;')); add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { return 3; } } function woocommerce_output_related_products() { woocommerce_related_products(3,3); } function blackline_frontend() { wp_enqueue_style( 'blackline-style', get_stylesheet_uri() ); } function blackline_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; $title .= get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; if ( $paged >= 3 || $page >= 3 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'blackline' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'blackline_wp_title', 10, 3 ); if ( is_singular() ) wp_enqueue_script( "comment-reply" ); $args = array( 'before' => '
' . __('Pages:', 'blackline'), 'after' => '
', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'nextpagelink' => __('Next page', 'blackline'), 'previouspagelink' => __('Previous page', 'blackline'), 'pagelink' => '%', 'echo' => 1 ); add_filter( 'wp_tag_cloud', 'blackline_tag_cloud' ); function blackline_tag_cloud( $tags ){ return preg_replace( "~ style='font-size: (\d+)pt;'~", ' class="tag-cloud-size-\10"', $tags ); } add_filter('add_to_cart_fragments', 'blackline_fragment'); function blackline_fragment( $fragments ) { global $woocommerce; ob_start(); ?> cart->cart_contents_count, 'blackline'), $woocommerce->cart->cart_contents_count);?> cart->get_cart_total(); ?> '', 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '', 'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '