'black-line-logo-size' ) ); register_nav_menu( 'primary', __( 'Navigation Menu', 'black-line' ) ); load_theme_textdomain( 'blackline', get_template_directory() . '/languages' ); } function black_line_widgets() { register_sidebar( array( 'name' => __( 'sidebar-left', 'black-line' ), 'id' => 'sidebar-left', ) ); register_sidebar( array( 'name' => __( 'sidebar-head', 'black-line' ), 'id' => 'sidebar-head', ) ); register_sidebar( array( 'name' => __( 'sidebar-footer1', 'black-line' ), 'id' => 'sidebar-footer1', ) ); register_sidebar( array( 'name' => __( 'sidebar-footer2', 'black-line' ), 'id' => 'sidebar-footer2', ) ); register_sidebar( array( 'name' => __( 'sidebar-footer3', 'black-line' ), 'id' => 'sidebar-footer3', ) ); } add_action( 'widgets_init', 'black_line_widgets' ); add_filter('loop_shop_per_page', create_function('$cols', 'return 12;')); add_filter('loop_shop_columns', 'black_line_loop_columns'); if (!function_exists('black_line_loop_columns')) { function black_line_loop_columns() { return 3; } } if ( ! function_exists( 'woocommerce_output_related_products' ) ) { function woocommerce_output_related_products() { $args = array( 'posts_per_page' => 3, 'columns' => 3, 'orderby' => 'rand' ); woocommerce_related_products( apply_filters( 'woocommerce_output_related_products_args', $args ) ); } } function black_line_frontend() { wp_enqueue_style( 'black-line-style', get_stylesheet_uri() ); } function black_line_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', 'black-line' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'black_line_wp_title', 10, 3 ); if ( is_singular() ) wp_enqueue_script( "comment-reply" ); add_filter( 'wp_tag_cloud', 'black_line_tag_cloud' ); function black_line_tag_cloud( $tags ){ return preg_replace( "~ style='font-size: (\d+)pt;'~", ' class="tag-cloud-size-\10"', $tags ); } add_filter('add_to_cart_fragments', 'black_line_fragment'); function black_line_fragment( $fragments ) { global $woocommerce; ob_start(); ?> cart->cart_contents_count, 'blackline'), $woocommerce->cart->cart_contents_count);?> cart->get_cart_total(); ?>
 . '/images/black-line-free-sidebar.jpg)
 . '/images/pro-vs-free.png)
 . '/images/black-line-home-page4.jpg)
 . '/images/admin-1.jpg)
 . '/images/admin-2.jpg)
 . '/images/admin-3.jpg)
 . '/images/admin-4.jpg)
 . '/images/admin-5.jpg)