'black-line-logo-size' ) ); register_nav_menu( 'primary', __( 'Navigation Menu', 'black-line' ) ); load_theme_textdomain( 'black-line', 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, 'black-line'), $woocommerce->cart->cart_contents_count);?> cart->get_cart_total(); ?>

' . __( 'Theme Black Line free', 'black-line' ) . '




' . __( '5 Sidebar for theme Black Line', 'black-line' ) . '





' . __( 'Site ', 'black-line' ) . '' . __( 'Black Line free ', 'black-line' ) . '' . __( ' - documentation (Logo, favicon, ...).', 'black-line' ) . '







' . __( 'Localization Ready:', 'black-line' ) . ' ' . __( 'Chinese, Czech, Dutch, English, French, German, Greek, Hungarian, Indonesian, Italian, Japanese, Polish, Romana, Russian, Spanish, ... and other. Add ', 'black-line' ) . '' . __( 'Your language', 'black-line' ) . '.




' . __( 'Theme Black Line PRO', 'black-line' ) . '



10%' . __( ' Discount - Code: ', 'black-line' ) . 'justpx10





' . __( 'Black Line PRO 32 Sidebar Home page 1', 'black-line' ) . '















' . __( 'Buy theme', 'black-line' ) . ' ' . __( 'Black line PRO', 'black-line' ) . '



'; } ?>