<span><a href="<?php echo get_post_meta($post->ID, 'pyre_copy_url', true); ?> "><?php echo get_post_meta($post->ID, 'pyre_copy_url_text', true); ?> </a></span> </div> <?php } ?> </div> </div> <div style="clear:both;"></div> <?php $projects = get_related_projects($post->ID); ?> <?php if ($projects->have_posts() && get_post_meta($post->ID, 'pyre_related_posts', true) != 'no') { ?> <div class="related-posts related-projects"> <div class="title"><h2><?php echo __('Related Projects', 'Avada'); ?> </h2><div class="title-sep-container"><div class="title-sep"></div></div></div> <div id="carousel" class="es-carousel-wrapper"> <div class="es-carousel"> <ul> <?php while ($projects->have_posts()) { $projects->the_post();
if ($evl_portfolio_sharing_box) { //Coming Soon ?> <?php } ?> <?php $evl_portfolio_related_posts_number = evolve_get_option('evl_portfolio_related_posts_number'); $evl_portfolio_related_posts = evolve_get_option('evl_portfolio_related_posts'); ?> <?php if ($evl_portfolio_related_posts && get_post_meta($post->ID, 'pyre_related_posts', true) != 'no' || !$evl_portfolio_related_posts && get_post_meta($post->ID, 'pyre_related_posts', true) == 'yes') { ?> <?php $projects = get_related_projects($post->ID, $evl_portfolio_related_posts_number); ?> <?php if ($projects->have_posts()) { ?> <div class="related-posts related-projects"> <div class="t4p-title title"><h2 class="title-heading-left"><?php echo __('Related Work', 'evolve'); ?> </h2><div class="title-sep-container"><div class="title-sep"></div></div></div><div class="clearfix"></div> <div id="carousel" class="es-carousel-wrapper t4p-carousel-large"> <div class="es-carousel"> <ul> <?php while ($projects->have_posts()) { $projects->the_post();
echo __('Share This Story, Choose Your Platform!', 'Avada'); ?> </h4> <?php echo $social_icons->render_social_icons($sharingbox_soical_icon_options); ?> </div> <?php } ?> <?php if ($smof_data['portfolio_related_posts'] && get_post_meta($post->ID, 'pyre_related_posts', true) != 'no' || !$smof_data['portfolio_related_posts'] && get_post_meta($post->ID, 'pyre_related_posts', true) == 'yes') { ?> <?php $projects = get_related_projects($post->ID, $smof_data['number_related_posts']); ?> <?php if ($projects->have_posts()) { ?> <div class="related-posts related-projects"> <div class="fusion-title title"><h2 class="title-heading-left"><?php echo __('Related Projects', 'Avada'); ?> </h2><div class="title-sep-container"><div class="title-sep sep-double"></div></div></div> <div id="carousel" class="es-carousel-wrapper fusion-carousel-large"> <div class="es-carousel"> <ul> <?php while ($projects->have_posts()) { $projects->the_post();
/** * * Function to generate the related projects thumbnail grid * **/ function dp_print_related_projects_grid($post_id, $show_num, $items) { global $post; $thumb_size = "portfolio-square"; $id = "carousel" . mt_rand(); $items = 'items : ' . $items . ','; $navtext_left = '<i class="Default-angle-left"></i>'; $navtext_right = '<i class="Default-angle-right"></i>'; $autoplay = 'autoPlay: 5000,'; $itemsdesktop = 'itemsDesktop : [1199,4],'; $itemsdesktopsmall = 'itemsDesktopSmall : [980,3],'; $itemstablet = 'itemsTablet : [768,2],'; $itemsmobile = 'itemsMobile : [479,1],'; $related_projects = get_related_projects($post_id, $show_num); if ($related_projects->have_posts()) { $item_desc = get_post_meta($post->ID, 'item_short_desc', true); if ($item_desc == '') { $item_desc = ' '; } echo '<div class="port-carousel">'; $carouselscript = "<script type='text/javascript'>\r\n\t\t\t\t\t\tjQuery(document).ready(function() {\r\n \t\t\t\t\t\tjQuery('#" . $id . "').owlCarousel({" . $items . $itemsdesktop . $itemsdesktopsmall . $itemstablet . $itemsmobile . "navigationText : ['" . $navtext_left . "','" . $navtext_right . "'],pagination : false,navigation : true,theme : 'owl-portfolio' });});\r\n\t\t\t\t\t\t</script>"; echo $carouselscript; echo '<div id="' . $id . '" class="owl-carousel">'; while ($related_projects->have_posts()) { $related_projects->the_post(); ?> <div class="item"> <?php if (has_post_thumbnail()) { $title = $post->post_title; $image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), $thumb_size); ?> <figure><div class="text-overlay"> <div class="info"> <span><a href="<?php echo $image; ?> " rel="dp_lightbox"><i class="icon-zoom61"></i></a></span> <span><a href="<?php the_permalink(); ?> "><i class="icon-link23"></i></a></span> </div> </div> <img src="<?php echo $thumb[0]; ?> " alt=""> </figure> <?php } ?> <?php ?> </div> <?php } echo '</div></div>'; } }
<?php } ?> </div> </div> <?php } ?> <?php wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'pinnacle'), 'after' => '</p></nav>')); ?> </div> </article> <?php $related_projects = get_related_projects($implementing_partner, $region, $sector, 3); if ($related_projects) { ?> <article> <h4 class="[ hometitle ]">Related Work</h4> <div class="[ row ]"> <?php foreach ($related_projects as $name => $project) { ?> <div class="[ col-sm-12 col-md-4 ][ related-project ]"> <a href="<?php echo $project['permalink']; ?> "> <?php echo $name;
?> <?php previous_post_link('%link', '<div class="portfolio-navi-previous">' . __('Next ', 'Creativo') . '<i class="fa fa-angle-right"></i></div>'); ?> <div class="clear"></div> </div> <?php } ?> </div> <?php if ($data['related_projects']) { ?> <?php $relate = get_related_projects($post->ID, $items); ?> <?php if ($relate->have_posts()) { ?> <div class="portfolio-related"> <div class="content_box_title"><span class="white smaller"><?php _e('Related Projects', 'Creativo'); ?> </span></div> <div class="recent_posts_container"> <?php while ($relate->have_posts()) { $relate->the_post(); $args_item = array('post_type' => 'attachment', 'numberposts' => '4', 'post_status' => null, 'post_parent' => $post->ID, 'orderby' => 'menu_order', 'order' => 'ASC', 'exclude' => get_post_thumbnail_id()); $attachments_item = get_posts($args_item);
<?php endif; ?> <?php if(get_post_meta($post->ID, 'pyre_copy_url', true) && get_post_meta($post->ID, 'pyre_copy_url_text', true)): ?> <div class="project-info-box"> <h4><?php echo __('Copyright', 'Avada'); ?>:</h4> <span><a href="<?php echo get_post_meta($post->ID, 'pyre_copy_url', true); ?>"><?php echo get_post_meta($post->ID, 'pyre_copy_url_text', true); ?></a></span> </div> <?php endif; ?> <?php if($data['portfolio_author']): ?> <div class="project-info-box vcard"> <h4><?php echo __('By', 'Avada'); ?>:</h4><span class="fn"><?php the_author_posts_link(); ?></span> </div> <?php endif; ?> </div> </div> <div style="clear:both;"></div> <?php $projects = get_related_projects($post->ID, $data['number_related_posts']); ?> <?php if($projects->have_posts() && get_post_meta($post->ID, 'pyre_related_posts', true) != 'no'): ?> <div class="related-posts related-projects"> <div class="title"><h2><?php echo __('Related Projects', 'Avada'); ?></h2><div class="title-sep-container"><div class="title-sep"></div></div></div> <div id="carousel" class="es-carousel-wrapper"> <div class="es-carousel"> <ul> <?php while($projects->have_posts()): $projects->the_post(); ?> <?php if(has_post_thumbnail()): ?> <li> <div class="image" aria-haspopup="true"> <?php if($data['image_rollover']): ?> <?php the_post_thumbnail('related-img'); ?> <?php else: ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('related-img'); ?></a> <?php endif; ?>