function add_shortcode_clients($atts) { extract(shortcode_atts(array('id' => ''), $atts)); $output = ''; $images = tf_get_gallery_images($id); $output .= '<ul class="partners">'; foreach ($images as $image) { $output .= "<li>"; $output .= "<a title='" . $image['title'] . "'>"; $output .= "<img class='' src='" . theme_resize(get_image_url($image['id']), 145, 60, false) . "'/>"; $output .= "</a>"; $output .= "</li>"; } $output .= '</ul>'; return $output; }
function tf_get_gallery_post_format($options) { $output = ''; if ($options['height'] == 0 && get_meta_option('pf_slideshow_height') != 0) { $options['height'] = get_meta_option('pf_slideshow_height'); } $output .= '<div class="item-slideshow">'; $output .= '<ul class="slideshow">'; $images = tf_get_gallery_images(get_meta_option('pf_gallery')); foreach ($images as $image) { $output .= '<li>'; $output .= '<img class="scale-with-grid" src="' . theme_resize(get_image_url($image['id']), $options['width'], $options['height'], true) . '">'; $output .= '</li>'; } $output .= '</ul>'; $output .= '</div>'; return $output; }
function add_shortcode_slideshow($atts) { extract(shortcode_atts(array('gallery' => '', 'width' => '400', 'height' => '200', 'align' => 'center'), $atts)); $images = tf_get_gallery_images($gallery); $output = ''; if ($align == 'center' || $align == 'none') { $max_width = 'style="max-width:' . $width . 'px"'; } else { $max_width = ''; } $output .= '<div class="slideshow-wrap align' . $align . '" ' . $max_width . '>'; $output .= "<ul class='slideshow'>"; foreach ($images as $image) { $output .= "<li>"; $output .= "<img class='scale-with-grid' src='" . theme_resize($image['src'], $width, $height, true) . "'/>"; $output .= "</li>"; } $output .= "</ul>"; $output .= "</div>"; return $output; }
<?php get_header(); ?> <?php while (have_posts()) { the_post(); ?> <div id="slider"> <?php global $add_rg_script; $add_rg_script = true; $images = tf_get_gallery_images(get_meta_option('rg_slider')); $rg_size = get_meta_option('rg_size'); ?> <div id="ri-grid" class="ri-grid ri-grid-size-2"> <ul> <?php foreach ($images as $image) { ?> <?php if ($image['url'] != '') { $class = ' href="' . $image['url'] . '"';
?> <?php get_header(); ?> <div id="slider"> <div class="container container-twelve"> <div class="flexslider twelve columns"> <ul class="slides"> <?php $images = tf_get_gallery_images(get_meta_option('flex_gallery')); ?> <?php foreach ($images as $image) { ?> <?php $url = $image['url']; if ($image['reverse'] == 'yes') { $class = ' class="reverse"'; } else { $class = ''; } ?>