コード例 #1
0
ファイル: woocommerce.php プロジェクト: GaryJones/goombiel
function yiw_size_images_style()
{
    ?>

	.shop-traditional .products li { width:<?php 
    echo yiw_shop_small_w() + (yiw_get_option('shop_border_thumbnail') ? 14 : 0);
    ?>
px !important; }
	.shop-traditional .products li img { width:<?php 
    echo yiw_shop_small_w();
    ?>
px; }
    .shop-traditional .products li.category img { width:<?php 
    echo yiw_shop_category_w();
    ?>
px; }
	.shop-ribbon .products li { width:<?php 
    echo yiw_shop_small_w() + 5;
    ?>
px !important; }
    .shop-ribbon .products li.category { width: auto !important; }
	.products li a strong { width:<?php 
    echo yiw_shop_small_w() - 30;
    ?>
px !important; }
	/*..shop-traditional .products li a img { width:<?php 
    echo yiw_shop_small_w();
    ?>
px !important; }  removed for the category images */
	div.product div.images { width:<?php 
    echo (yiw_shop_large_w() + 14) / 720 * 100;
    ?>
%; }
	.layout-sidebar-no div.product div.images { width:<?php 
    echo (yiw_shop_large_w() + 14) / 960 * 100;
    ?>
%; }
	div.product div.images img { width:<?php 
    echo yiw_shop_large_w();
    ?>
px; }
	.layout-sidebar-no div.product div.summary { width:<?php 
    echo (960 - (yiw_shop_large_w() + 14) - 20) / 960 * 100;
    ?>
%; }
	.layout-sidebar-right div.product div.summary, .layout-sidebar-left div.product div.summary { width:<?php 
    echo (720 - (yiw_shop_large_w() + 14) - 20) / 720 * 100;
    ?>
%; }
	.layout-sidebar-no .product.hentry > span.onsale { right:<?php 
    echo 960 - (yiw_shop_large_w() + 14) - 10;
    ?>
px; left:auto; }
	.layout-sidebar-right .product.hentry > span.onsale, .layout-sidebar-left .product.hentry > span.onsale { right:<?php 
    echo 720 - (yiw_shop_large_w() + 14) - 10;
    ?>
px; left:auto; }     
	<?php 
}
コード例 #2
0
ファイル: jigoshop.php プロジェクト: GaryJones/goombiel
function yiw_size_images_style()
{
    $thumb_cols = apply_filters('single_thumbnail_columns', 3);
    ?>

	.products.traditional li { width:<?php 
    echo yiw_shop_small_w() + (yiw_get_option('shop_border_thumbnail') ? 14 : 0);
    ?>
px !important; }
	.products li a strong { width:<?php 
    echo yiw_shop_small_w() - 30;
    ?>
px !important; }
	.products.traditional li a img { width:<?php 
    echo yiw_shop_small_w();
    ?>
px !important; }
	div.product div.images { width:<?php 
    echo (yiw_shop_large_w() + 14) / 720 * 100;
    ?>
%; }
	.layout-sidebar-no div.product div.images { width:<?php 
    echo (yiw_shop_large_w() + 14) / 960 * 100;
    ?>
%; }
	div.product div.images img { width:<?php 
    echo yiw_shop_large_w();
    ?>
px; }
	.layout-sidebar-no div.product div.summary { width:<?php 
    echo (960 - (yiw_shop_large_w() + 14) - 20) / 960 * 100;
    ?>
%; }
	.layout-sidebar-right div.product div.summary, .layout-sidebar-left div.product div.summary { width:<?php 
    echo (720 - (yiw_shop_large_w() + 14) - 20) / 720 * 100;
    ?>
%; }
	.layout-sidebar-no .product.hentry > span.onsale { right:<?php 
    echo 960 - (yiw_shop_large_w() + 14) - 10;
    ?>
px; left:auto; }
	.layout-sidebar-right .product.hentry > span.onsale, .layout-sidebar-left .product.hentry > span.onsale { right:<?php 
    echo 720 - (yiw_shop_large_w() + 14) - 10;
    ?>
px; left:auto; }     
	<?php 
}