<?php global $porto_settings; if (has_post_thumbnail()) { $attachment_id = get_post_thumbnail_id(); $attachment = porto_get_attachment($attachment_id); $attachment_related = porto_get_attachment($attachment_id, 'related-portfolio'); if ($attachment && $attachment_related) { ?> <div class="portfolio-item thumbnail"> <div class="thumb-info"> <a href="<?php the_permalink(); ?> "> <img class="img-responsive" width="<?php echo $attachment_related['width']; ?> " height="<?php echo $attachment_related['height']; ?> " src="<?php echo $attachment_related['src']; ?> " alt="<?php echo $attachment_related['alt']; ?> "<?php if ($porto_settings['portfolio-zoom']) { ?> data-image="<?php
<?php global $porto_settings; ?> <div class="post-item-small"> <?php if (has_post_thumbnail()) { $attachment_id = get_post_thumbnail_id(); $attachment_thumb = porto_get_attachment($attachment_id, 'widget-thumb'); ?> <div class="post-image thumbnail"> <a href="<?php the_permalink(); ?> "> <img width="<?php echo $attachment_thumb['width']; ?> " height="<?php echo $attachment_thumb['height']; ?> " src="<?php echo $attachment_thumb['src']; ?> " alt="<?php echo $attachment_thumb['alt']; ?> " /> </a> </div> <?php
} $portfolio_link = get_post_meta($post->ID, 'portfolio_link', true); $skill_list = get_the_term_list($post->ID, 'portfolio_skills', '', '</li><li><i class="fa fa-check-circle"></i> ', ''); $portfolio_client = get_post_meta($post->ID, 'portfolio_client', true); ?> <article <?php post_class('portfolio portfolio-' . $portfolio_layout . $item_classes); ?> > <div class="row"> <?php $attachment_id = get_post_thumbnail_id(); $attachment = porto_get_attachment($attachment_id); if ($attachment) { ?> <div class="col-sm-4"> <?php // Portfolio Slideshow ?> <?php get_template_part('slideshow', 'portfolio-medium'); ?> </div> <div class="col-sm-8"> <?php } else { ?> <div class="col-sm-12">
$item_classes = ' portfolio-col-' . $portfolio_columns . ' '; $item_cats = get_the_terms($post->ID, 'portfolio_cat'); if ($item_cats) { foreach ($item_cats as $item_cat) { $item_classes .= urldecode($item_cat->slug) . ' '; } } $portfolio_link = get_post_meta($post->ID, 'portfolio_link', true); $show_external_link = $porto_settings['portfolio-external-link']; if (has_post_thumbnail()) { $attachment_id = get_post_thumbnail_id(); $attachment = porto_get_attachment($attachment_id); if ($portfolio_view == 'full') { $attachment_grid = porto_get_attachment($attachment_id); } else { $attachment_grid = porto_get_attachment($attachment_id, 'portfolio-large'); } if ($attachment && $attachment_grid) { ?> <article <?php post_class('portfolio portfolio-' . $portfolio_layout . $item_classes); ?> > <?php porto_render_rich_snippets(); ?> <div class="portfolio-item thumbnail <?php echo $portfolio_view; ?> "> <div class="thumb-info">
/> <?php if ($porto_settings['post-zoom']) { ?> <span class="zoom"><i class="fa fa-search"></i></span> <?php } ?> </div> </div> </div> <?php } if (class_exists('Dynamic_Featured_Image')) { foreach ($featured_images as $featured_image) { $attachment = porto_get_attachment($featured_image['attachment_id']); if ($attachment) { ?> <div> <div class="img-thumbnail"> <div class="inner"> <img class="lazyOwl img-responsive" width="<?php echo $attachment['width']; ?> " height="<?php echo $attachment['height']; ?> " data-src="<?php echo $attachment['src']; ?> " alt="<?php
<?php global $post, $porto_settings; $item_classes = ' '; $item_cats = get_the_terms($post->ID, 'member_cat'); if ($item_cats) { foreach ($item_cats as $item_cat) { $item_classes .= urldecode($item_cat->slug) . ' '; } } $member_link = get_post_meta($post->ID, 'member_link', true); $show_external_link = $porto_settings['member-external-link']; if (has_post_thumbnail()) { $attachment_id = get_post_thumbnail_id(); $attachment = porto_get_attachment($attachment_id); $attachment_medium = porto_get_attachment($attachment_id, 'member'); if ($attachment && $attachment_medium) { $view_type = $porto_settings['member-view-type']; $role = get_post_meta($post->ID, 'member_role', true); $member_id = get_the_ID(); $show_info = false; ?> <div class="member-item thumbnail<?php echo !$view_type ? '' : ' align-center'; ?> "> <div class="thumb-info<?php echo !$view_type ? '' : ' tf-none'; ?> "> <a href="<?php
<?php global $porto_settings, $post; $portfolio_link = get_post_meta($post->ID, 'portfolio_link', true); $show_external_link = $porto_settings['portfolio-external-link']; if (has_post_thumbnail()) { $attachment_id = get_post_thumbnail_id(); $attachment = porto_get_attachment($attachment_id); $attachment_related = porto_get_attachment($attachment_id, 'full' === $porto_settings['portfolio-related-style'] ? 'full' : 'related-portfolio'); if ($attachment && $attachment_related) { ?> <div class="portfolio-item thumbnail <?php echo $porto_settings['portfolio-related-style']; ?> "> <div class="thumb-info"> <a href="<?php if ($show_external_link && $portfolio_link) { echo $portfolio_link; } else { the_permalink(); } ?> "> <img class="img-responsive" width="<?php echo $attachment_related['width']; ?> " height="<?php echo $attachment_related['height']; ?> " src="<?php
} else { if (!empty($img_link)) { $link_to = $img_link; if (!preg_match('/^(https?\\:\\/\\/|\\/\\/)/', $link_to)) { $link_to = 'http://' . $link_to; } } } } //to disable relative links uncomment this.. $img_output = 'vc_box_shadow_3d' === $style ? '<span class="vc_box_shadow_3d_wrap">' . $img['thumbnail'] . '</span>' : $img['thumbnail']; /* porto lightbox */ $lightbox_options = ''; $attachment = false; if ($lightbox) { $attachment = porto_get_attachment($img_id); if ($attachment) { if ($hover_effect) { $a_class = ' class="porto-vc-zoom porto-vc-zoom-hover-icon"'; } else { $a_class = ' class="porto-vc-zoom"'; } $a_class .= ' data-gallery="' . ($image_gallery ? 'true' : 'false') . '"'; $lightbox_options .= ' data-caption="' . $attachment['caption'] . '"'; if (!$hover_effect && $zoom_icon) { $img_output .= '<div class="zoom-icon"></div>'; } } } $image_string = !empty($link_to) ? '<a' . $a_class . ' href="' . $link_to . '"' . ' target="' . $img_link_target . '"' . '><div class="vc_single_image-wrapper ' . $style . ' ' . $border_color . '">' . $img_output . '</div></a>' : '<div class="vc_single_image-wrapper ' . $style . ' ' . $border_color . '">' . $img_output . '</div>'; $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_single_image wpb_content_element' . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);