"/> <br /><span class="info badge badge-info"><?php _e('an optional class for the testimonialbox ( good for animation purposes )', 'delaware-theme'); ?> </span></p> <?php $mb->the_field('author_image'); ?> <?php $wpalchemy_media_access->setGroupName('img-auth-testimonial' . $mb->get_the_index())->setInsertButtonLabel('Insert'); ?> <img class="frame" src="<?php if ($mb->get_the_value()) { echo lambda_resize($mb->get_the_value(), 75, 75, true); } ?> " /> <p><label><?php _e('Author Image', 'delaware-theme'); ?> </label> <?php echo $wpalchemy_media_access->getField(array('name' => $mb->get_the_name(), 'value' => $mb->get_the_value())); ?> <br /><span class="info badge badge-info">(<?php _e('Image size should be 50x50', 'delaware-theme'); ?> )</span><br />
function lambda_revolution_slider($postID, $galleryheight = 584, $gallerywidth = '', $imagecropping = true, $pagebuilder = false) { global $gridsystem, $lambda_content_column; /* define gallery width, if no width has been delivered - we use the global content width */ $gallerywidth = empty($gallerywidth) ? $gridsystem[$lambda_content_column]['static'] : $gridsystem[$gallerywidth]['static']; /* if we are watching the main blog, the content width is different */ if (is_home() && !$pagebuilder) { $gallerywidth = $gridsystem[$lambda_content_column]['static'] / 100 * 91.45299145299145 - 18; } /* get all necessary image ID's */ $ut_gallery_images = lambda_extract_gallery_images_ids(); /* start output */ if (isset($ut_gallery_images) && is_array($ut_gallery_images)) { ?> <div class="ut-gallery-wrap"> <div class="ut-gallery-slider" id="gallery-slider-<?php echo $postID; ?> "> <ul> <?php foreach ($ut_gallery_images as $ID => $imagedata) { ?> <?php if (isset($imagedata->guid) && !empty($imagedata->guid)) { $image = $imagedata->guid; // fallback to older wp versions } else { $image = wp_get_attachment_image_src($imagedata, 'single-post-thumbnail'); $image = $image[0]; } ?> <?php if (!empty($image[0])) { ?> <?php $largeimage = ''; $largeimage = lambda_resize($image, $gallerywidth, $galleryheight, $imagecropping); ?> <?php $thumbimage = ''; $thumbimage = lambda_resize($image, 80, 80, true); ?> <li data-transition="slideleft" data-masterspeed="300" data-link="<?php echo get_permalink($postID); ?> " data-target="_self" data-slideindex="back"> <img alt="<?php echo get_the_title($postID); ?> " src="<?php echo $largeimage; ?> " /> </li> <?php } ?> <?php } ?> </ul> </div> </div> <script type="text/javascript"> /* <![CDATA[ */ var tpj=jQuery; tpj.noConflict(); tpj(document).ready(function() { if (tpj.fn.cssOriginal!=undefined) tpj.fn.css = tpj.fn.cssOriginal; tpj('#gallery-slider-<?php echo $postID; ?> ').revolution( { delay:9000, startheight: <?php echo $galleryheight; ?> , startwidth: <?php echo $gallerywidth; ?> , hideThumbs:200, thumbWidth:100, thumbHeight:50, thumbAmount:5, navigationType:"bullet", navigationArrows:"solo", navigationStyle:"round", touchenabled:"on", onHoverStop:"on", navigationHAlign:"center", navigationVAlign:"bottom", navigationHOffset:0, navigationVOffset:20, soloArrowLeftHalign:"left", soloArrowLeftValign:"center", soloArrowLeftHOffset:20, soloArrowLeftVOffset:0, soloArrowRightHalign:"right", soloArrowRightValign:"center", soloArrowRightHOffset:20, soloArrowRightVOffset:0, shadow:0, fullWidth:"off", stopLoop:"off", stopAfterLoops:-1, stopAtSlide:-1, shuffle:"on", hideSliderAtLimit:0, hideCaptionAtLimit:0, hideAllCaptionAtLilmit:0, startWithSlide:0 }); }); /* ]]> */ </script> <?php } }
</p> <div class="lambda-image-preview"> <?php $mb->the_field('slider_default_background_image'); ?> <?php if ($mb->get_the_value()) { ?> <p> <img class="frame" src="<?php if ($mb->get_the_value()) { echo lambda_resize($mb->get_the_value(), 280, 280, false); } ?> " /> </p> <?php } ?> <?php $wpalchemy_media_access->setGroupName('img-marketing_1' . $mb->get_the_index())->setInsertButtonLabel('Insert'); ?> <?php echo $wpalchemy_media_access->getField(array('name' => $mb->get_the_name(), 'value' => $mb->get_the_value())); ?>
<div class="<?php echo $projecttype; ?> <?php echo $grid; ?> "> <div class="ut-portfolio-item"> <?php #----------------------------------------------------------------- # embedded video or image #----------------------------------------------------------------- $url = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); $image = lambda_resize($url, 1156, 584, true, true, true); if ($portfoliotype == 'video' && !empty($portfoliometa['portfolio_video_embedded_code'])) { $url = lambda_extract_url($portfoliometa['portfolio_video_embedded_code']); } ?> <div class="view view-fifth"> <i class="ut-portfolio-icon <?php echo $portfolioicon; ?> "></i> <img alt="<?php echo $title; ?>
function render_testimonial($metadata = array(), $async = 2, $shortcode = false, $page = '', $testimonial = '', $class = '') { $color = $async % 2 == 0 ? 'dark' : 'white'; if ($shortcode && !empty($page)) { $metadata = lambda_return_meta('page', $page); if (is_array($metadata[UT_THEME_INITIAL . 'testimonial_items'])) { foreach ($metadata[UT_THEME_INITIAL . 'testimonial_items'] as $singletestimonial) { if (isset($singletestimonial['testimonial_id']) && $singletestimonial['testimonial_id'] == $testimonial) { // testimonial shortcode $testimonial = $singletestimonial; $testimonial['testimonial_class'] = $class . ' ' . $color; } } } } else { // testimonial template $testimonial = $metadata; $testimonial['testimonial_class'] = !empty($testimonial['testimonial_class']) ? $testimonial['testimonial_class'] . ' ' . $color : $color; } //create testimonialbox $testimonialbox = '<article class="testimonial-entry clearfix ' . $testimonial['testimonial_class'] . '">'; if (isset($testimonial['author_image'])) { $authorimage = lambda_resize($testimonial['author_image'], 50, 50, true); } if (empty($testimonial['author_image'])) { $authorimage = THEME_WEB_ROOT . '/images/default-avatar.jpg'; } $testimonialbox .= '<figure class="testimonial-photo">'; $testimonialbox .= '<img alt="' . $testimonial['author_name'] . '" class="testimonial-img" src="' . $authorimage . '">'; $testimonialbox .= '</figure>'; $testimonialbox .= '<p>' . do_shortcode(lambda_translate_meta($testimonial['author_comment'])) . '</p>'; $testimonialbox .= '<span class="testimonial-name clearfix">'; $testimonialbox .= isset($testimonial['author_name']) ? $testimonial['author_name'] : ''; $testimonialbox .= isset($testimonial['author_company']) ? ', <strong>' . $testimonial['author_company'] . '</strong>' : ''; $testimonialbox .= '</span>'; $testimonialbox .= '</article>'; return $testimonialbox; }