';
switch ($layout) {
case 'grid':
if ($quick_view_type == 'full' && $view_type == 'inline') {
$css_classes .= 'show-inline ';
}
break;
case 'list':
$html ='
';
if ($quick_view_type == 'full' && $view_type == 'inline') {
$show_class = 'show-inline';
}
break;
default:
break;
}
if($tooltip == 'true') {
$tooltip_class = 'tooltip ';
}
// logo loop
$i=0;
while ($query->have_posts()) {
$i++;
$query->the_post();
$post_id = $query->post->ID;
if (has_post_thumbnail($post_id)) {
$image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), 'full');
$image_url = $image_url[0];
}
$shortDesc = get_post_meta($post_id, ITLS_LOGO_SHOWCASE_FIELDS_PERFIX . 'shortDesc', true);
$link_url = get_post_meta($post_id, ITLS_LOGO_SHOWCASE_FIELDS_PERFIX . 'link_url', true);
$link_target = get_post_meta($post_id, ITLS_LOGO_SHOWCASE_FIELDS_PERFIX . 'link_target', true);
$tooltip_str='';
if($tooltip == 'true') {
$tooltip_str = 'title = "'.get_the_title().'"';
}
// link event
$link_detail = '';
$more_btn ='';
if ($quick_view_type == 'none' && $link_url!='') {
$link_detail = '
';
}
else{
if ($quick_view_type != 'none' ) {
$more_btn = '
'.__('More Details','itls_logo_showcase_textdomain').'
';
}
$link_detail = '

';
}
//
switch ($layout) {
case 'grid':
$html .= '
';
break;
case 'list':
$html .= '
'.$link_detail.'
'.get_the_title().'
'.$shortDesc.'
'.$more_btn.'
';
break;
default:
break;
}
}
// end html tags
if($tooltip == 'true') {
$script_outputs .= '
jQuery(function($){
$(".tooltip").tipsy({
gravity : $.fn.tipsy.autoNS ,
fade : true
});
});';
}
$script_outputs .= '';
$html .= '