?> </a> <?php } ?> </div> <?php } ?> <?php // Check for possible empty imgage in this insight if (($insight['layout'] == 'layout2' || $insight['layout'] == 'layout4') && $insight['img'] != '') { ?> <img src="<?php echo qi_image_by_url(esc_url($insight['img']), $img_size . 'quadro-full-thumb'); ?> " class="<?php echo $qi_animations[$anim]['first']; ?> " alt="<?php the_title_attribute(); ?> " title="<?php the_title_attribute(); ?> "> <?php } ?>
if ($content != '') { echo '<p>' . $content . '</p>'; } ?> <div class="testimonial-item-author"> <?php // Check for link and bring it $url = isset($testimonial['link']) ? esc_url($testimonial['link']) : ''; if ($url != '') { echo '<a href="' . $url . '" style="color: ' . $testimonial_color . ';">'; } // Check for photo and bring it $img_url = isset($testimonial['img']) ? esc_url($testimonial['img']) : ''; if ($img_url != '') { echo '<img src="' . qi_image_by_url($img_url, 'thumbnail') . '" title="' . esc_attr($testimonial['author']) . '" class="testimonial-photo">'; } echo '<span class="testimonial-author-name">'; // Check for author and bring it $author = isset($testimonial['author']) ? esc_attr($testimonial['author']) : ''; if ($author != '') { echo $author; } // Check for author subtitle and bring it $title = isset($testimonial['subtitle']) ? esc_attr($testimonial['subtitle']) : ''; if ($title != '') { echo '<span class="testimonial-author-subtitle">' . $title . '</span>'; } echo '</span>'; // Check for link and close it if ($url != '') {
<div class="mod-content"> <div class="inner-mod"> <ul class="authors-list"> <?php if (is_array($authors)) { foreach ($authors as $author) { ?> <li> <?php // Bring cover img for author $cover_img = qi_image_by_url(esc_url(get_the_author_meta('cover_img', $author->ID)), 'quadro-med-thumb'); $style = $cover_img != '' ? 'style="background-image: url(' . $cover_img . ');"' : ''; ?> <div class="author-cover" <?php echo $style; ?> ></div> <?php $author_link = get_author_posts_url($author->ID); ?> <div class="author-name"> <?php if (get_avatar($author->user_email)) {
foreach ($slides as $slide) { ?> <?php // Get options for this slide $content = wp_kses_post($slide['content']); $action_link = esc_url($slide['link_url']); $action_text = esc_attr($slide['link_text']); $align = esc_attr($slide['align']); ?> <li class="quadro-slide align-<?php echo $align; ?> " style="background-image: url('<?php echo qi_image_by_url(esc_url($slide['img']), 'full'); ?> ');"> <div class="dark-overlay"></div> <div class="inner-slide"> <div class="slide-content"> <?php if ($action_link != '') { ?> <a href="<?php echo $action_link; ?> " class="slide-content-link" title="<?php echo $action_text; ?>
?> <?php if ($service_link != '') { echo '</a>'; } ?> </span> <?php } ?> <?php if ($services_layout == 'type3' && $service_img != '') { echo '<img src="' . qi_image_by_url($service_img, 'quadro-med-thumb') . '" title="' . $service_title . '" />'; } ?> <div class="service-content-wrapper"> <h2 class="service-title"> <?php if ($service_link != '') { echo '<a href="' . $service_link . '" title="' . $service_title . '">'; } echo $service_title; if ($service_link != '') { echo '</a>'; } ?>
public function widget($args, $controls) { extract($args); /* Our variables from the widget settings */ $title = apply_filters('widget_title', $controls['title']); $image_url = $controls['image_url']; if ($controls['image_url'] != '') { echo $before_widget; if ($title) { echo $before_title . esc_attr($title, 'quadro') . $after_title; } ?> <div class="widget-image-container"> <img src="<?php echo qi_image_by_url(esc_url($image_url), 'quadro-med-full-thumb'); ?> " alt="" class="widget-image"> </div> <?php echo $after_widget; } // end If we have an image Url }
"> <ul class="team clear"> <?php foreach ($team as $member) { ?> <li class="team-member"> <div class="team-member-wrapper clear"> <?php $img_url = isset($member['img']) ? esc_url($member['img']) : ''; if ($img_url != '') { echo '<div class="member-photo-wrapper">'; echo '<img src="' . qi_image_by_url($img_url, 'quadro-sq-thumb') . '" title="' . esc_attr($member['name']) . '"></div>'; } ?> <div class="member-content"> <h3 class="member-name"> <?php $url = isset($member['link']) ? esc_url($member['link']) : ''; ?> <?php if ($url != '') { echo '<a href="' . $url . '">'; } ?> <?php $name = isset($member['name']) ? esc_attr($member['name']) : '';
<ul class="logos slides clear"> <?php foreach ($logos as $logo) { ?> <li class="logo-profile"> <div class="logo-content clear"> <?php if (isset($logo['link_url']) && $logo['link_url'] != '') { echo '<a href="' . esc_url($logo['link_url']) . '" target="_blank" class="logo-link">'; } $img_url = isset($logo['img']) ? esc_url($logo['img']) : ''; if ($img_url != '') { echo '<img src="' . qi_image_by_url($img_url, 'medium') . '" alt="">'; } if (isset($logo['link_url']) && $logo['link_url'] != '') { echo '</a>'; } ?> </div> </li> <?php } ?> </ul> </div>