/* Heading */
.products .product h2{
min-height:43px;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
letter-spacing:1.4px;
}
Shop page view list and grid view.
*/
function open_shop_before_shop_loop(){
$viewshow = get_theme_mod('open_shop_prd_view','grid-view');
echo '<div class="thunk-list-grid-switcher">';
if($viewshow == 'grid-view'){
echo '<a title="' . esc_attr__('Grid View', 'open-shop') . '" href="#" data-type="grid" class="thunk-grid-view selected"><i class="fa fa-th"></i></a>';
echo '<a title="' . esc_attr__('List View', 'open-shop') . '" href="#" data-type="list" class="thunk-list-view"><i class="fa fa-bars"></i></a>';
}else{
echo '<a title="' . esc_attr__('Grid View', 'open-shop') . '" href="#" data-type="grid" class="thunk-grid-view"><i class="fa fa-th"></i></a>';
echo '<a title="' . esc_attr__('List View', 'open-shop') . '" href="#" data-type="list" class="thunk-list-view selected"><i class="fa fa-bars"></i></a>';
}
echo '</div>';
}
// shop page content
function open_shop_list_after_shop_loop_item(){
?>
<div class="os-product-excerpt"><?php the_excerpt(); ?></div>
<?php
}
* Thumbnail wrap start.
*/
function open_shop_shop_content_start(){
$viewshow = get_theme_mod('open_shop_prd_view','grid-view');
if($viewshow == 'grid-view'){
echo '<div id="shop-product-wrap" class="thunk-grid-view">';
}else{
echo '<div id="shop-product-wrap" class="thunk-list-view">';
}
}
}
if ( ! function_exists( 'open_shop_shop_content_end' ) ){
* Thumbnail wrap start.
*/
function open_shop_shop_content_start(){
$viewshow = get_theme_mod('open_shop_prd_view','grid-view');
if($viewshow == 'grid-view'){
echo '<div id="shop-product-wrap" class="thunk-grid-view">';
}else{
echo '<div id="shop-product-wrap" class="thunk-list-view">';
}
}
}
if ( ! function_exists( 'open_shop_shop_content_end' ) ){