if (is_single()) { the_title('<h1>', '</h1>'); } else { the_title('<h1><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); } ?> </div> <?php if (isset($portfolio_images) && $portfolio_images !== '') { ?> <div class="gallery-slider"> <ul class="bxslider"> <?php foreach ($portfolio_images as $key => $images) { $ids = array(custom_get_attachment_id($images['upload_portfolio_image'])); foreach ($ids as $id) { $src = wp_get_attachment_image_src($id, 'portfolio-thumbnail'); echo '<li class="silviu"><img src="' . $src[0] . '" alt="" >'; } } ?> </ul> </div> <?php } else { if (!$portfolio_images && has_post_thumbnail()) { ?> <div class="portfolio-feat-img"> <?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "portfolio-thumbnail");
?> " <?php post_class('testimonial-single'); ?> > <?php $title = str_ireplace('"', '', trim(get_the_title())); $desc = str_ireplace('"', '', trim(get_the_content())); if (function_exists('ot_get_option')) { $test_photo = get_post_meta($post->ID, 'test_photo', true); $test_name = get_post_meta($post->ID, 'test_name', true); $test_title = get_post_meta($post->ID, 'test_title', true); } $default_photo = get_bloginfo('template_directory') . '/img/default-user-thumb.png'; $id = custom_get_attachment_id($test_photo); $src = wp_get_attachment_image_src($id, 'thumbnail'); ?> <div class="round-outline"> <?php if ($test_photo) { echo '<img class="round-photo" src="' . $src[0] . '" alt="" />'; } else { echo '<img class="round-photo" src="' . $default_photo . '" alt="" />'; } ?> </div> <div class="post-title"> <?php
$image_class = "col-sm-2 "; if ($count_images == 1) { $image_class_offset = "col-sm-offset-5"; } else { if ($count_images == 2) { $image_class_offset = "col-sm-offset-4"; } else { if ($count_images == 3) { $image_class_offset = "col-sm-offset-3"; } } } } if (!empty($about_images)) { foreach ($about_images as $key => $image) { $id = custom_get_attachment_id($image['about_image']); $src = wp_get_attachment_image_src($id, 'thumbnail'); $src_big = wp_get_attachment_image_src($id, 'medium'); reset($about_images); if ($key === key($about_images)) { $image_class .= $image_class_offset; } else { $image_class = "col-sm-2"; } echo '<div class="' . $image_class . '">'; echo '<figure class="round-outline">'; echo '<a href="' . $src_big[0] . '" class="round-photo-anchor" rel="prettyPhoto[about-gal]">'; echo '<img class="round-photo img-responsive" src="' . $src[0] . '" alt="">'; echo '<div class="round-caption-bg"></div>'; echo '<i class="fa fa-search fa-lg"></i>'; echo '</a>';