function add_map( $atts, $content = null ) {
return '
';
}
function add_clients( $atts, $content = null ) {
preg_match_all('#src="(.*?)"#i',$content,$matches);
$string = '
';
foreach($matches[1] as $match)
$string .= '
';
$string .= '
';
return $string;
}
function register_my_menu() {
register_nav_menu('header-menu',__( 'Header Menu' ));
register_nav_menu('footer-menu',__( 'Footer Menu' ));
}
add_action( 'init', 'register_my_menu' );
add_shortcode( 'map', 'add_map' );
add_shortcode( 'clients', 'add_clients' );
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
function my_theme_wrapper_start() {
echo '';
}
function my_theme_wrapper_end() {
echo '';
}
add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
add_theme_support( 'woocommerce' );
}
function shop_left_init() {
register_sidebar( array(
'name' => 'Categories',
'id' => 'home_left_1',
'before_widget' => '',
'before_title' => ' ',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'shop_left_init' );
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 36;' ), 36 );
function woo_related_products_limit() {
global $product;
$args['posts_per_page'] = 3;
return $args;
}
add_filter( 'woocommerce_output_related_products_args', 'jk_related_products_args' );
function jk_related_products_args( $args ) {
$args['posts_per_page'] = 3; // 4 related products
$args['columns'] = 1; // arranged in 2 columns
return $args;
}
add_filter( 'woocommerce_product_tabs', 'wcs_woo_remove_reviews_tab', 98 );
function wcs_woo_remove_reviews_tab($tabs) {
unset($tabs['reviews']);
return $tabs;
}
add_action( 'woocommerce_after_shop_loop_item_title', 'my_add_short_description', 9 );
function my_add_short_description() {
echo '' . the_excerpt() . '
';
}
لوڈز گروپ | اوٹوپرٹس مینوفیکچرر ان پاکستان
Our Products

Mufflers & Exhaust Systems

Radiators

Sheet Metal Components

Radiator-Cores
Jamapunji

News and Events