/**
     * (non-PHPdoc)
     * @see GalleryHelper::get_markup()
     */
    public function get_markup()
    {
        if (empty($this->images)) {
            return '';
        }
        ThemeHelpers::load_css('slideshow');
        ThemeHelpers::load_js('slideshow');
        $toret = array();
        foreach ($this->images as $k => $image) {
            $tmp = new stdClass();
            $tmp->src = $this->get_image_src($k);
            $tmp->alt = $this->get_image_alt($k);
            $tmp->desc = $this->get_image_description($k);
            $tmp->caption = $this->get_image_caption($k);
            $tmp->id = $this->get_image_id($k);
            $tmp->width = $this->get_image_width($k);
            $tmp->height = $this->get_image_height($k);
            $toret[] = $tmp;
        }
        $json = json_encode(array('images' => $toret, 'loading' => __('Loading image %number%/%total%', 'theme'), 'uid' => $this->unid));
        return <<<EOF
\t<script>
\t\twindow.preload_images = window.preload_images || {};
\t\twindow.preload_images.{$this->unid} = {$json};
\t</script>
EOF;
    }
 /**
  * (non-PHPdoc)
  * @see ImagePreload::get_markup()
  */
 function get_markup()
 {
     ThemeHelpers::load_css('slideshow');
     ThemeHelpers::load_js('slideshow-oneimageforall');
     $images_list = has_post_thumbnail() ? get_the_post_thumbnail(get_the_ID(), $this->get_slideshow_dimension()) : parent::get_markup();
     $this->set_markup('images_list', $images_list);
     return $this->replace_markup();
 }
 /**
  * (non-PHPdoc)
  * @see GalleryHelper::get_markup()
  */
 public function get_markup()
 {
     $toret = '';
     if (count($this->images) > 0) {
         $subs = new SubstitutionTemplate();
         $subs->set_tpl($this->tpl)->set_markup('prev', HtmlHelper::anchor('javascript:;', '&lt;', array('class' => 'prev control')))->set_markup('next', HtmlHelper::anchor('javascript:;', '&gt;', array('class' => 'next control')));
         ThemeHelpers::load_js('minigallery-thumbs-link-to-big');
         ThemeHelpers::load_css('jquery-fancybox');
         foreach ($this->images as $index => $image) {
             $image_big = wp_get_attachment_image_src($this->get_image_id($index), $this->media_dimension_big);
             $image_small = wp_get_attachment_image_src($this->get_image_id($index), $this->media_dimension);
             $toret .= HtmlHelper::anchor($image_big[0], HtmlHelper::image($this->get_image_src($index), array('alt' => $this->get_image_alt($index), 'title' => $this->get_image_description($index), 'data-caption' => $this->get_image_caption($index))), array('class' => 'fancybox', 'rel' => 'group', 'title' => $this->get_image_caption($index)));
         }
         $toret = $subs->set_markup('list', $toret)->replace_markup();
     }
     return $toret;
 }
 /**
  * Loads the needed assets
  * @return MinigalleryBigImageWithThumbs $this for chainability
  */
 public function load_assets()
 {
     ThemeHelpers::load_js('minigallery-big-image-with-thumbs');
     ThemeHelpers::load_css('minigallery-big-image-with-thumbs');
     return $this;
 }
 /**
  * (non-PHPdoc)
  * @see GalleryHelper::get_markup()
  */
 public function get_markup()
 {
     $markup_images = '';
     if (count($this->images) > 0) {
         $images_per_line = $this->images_per_row;
         foreach ($this->images as $k => $image) {
             $classes = array($this->single_image_container_class, 'image_' . $k);
             if ($images_per_line == 0) {
                 $images_per_line = $this->images_per_row;
             }
             if ($images_per_line == $this->images_per_row) {
                 $classes[] = 'alpha';
             }
             if ($images_per_line == 1) {
                 $classes[] = 'omega';
             }
             $images_per_line--;
             $big_img_src = wp_get_attachment_image_src($this->get_image_id($k), 'full');
             $big_img_src = $big_img_src[0];
             $markup_images .= '<div class="' . implode(' ', $classes) . '">' . HtmlHelper::anchor($big_img_src, HtmlHelper::image($this->get_image_src($k), array('alt' => $this->get_image_alt($k))), array('rel' => 'group', 'class' => 'fancy', 'title' => $this->get_image_title($k), 'data-description' => $this->get_image_description($k), 'data-caption' => $this->get_image_caption($k))) . '</div>';
         }
     }
     if (!$this->unid) {
         $this->calculate_unique();
     }
     $this->subs->set_markup('gallery-id', $this->unid);
     $this->subs->set_markup('images', $markup_images);
     ThemeHelpers::load_js('jquery-fancybox');
     ThemeHelpers::load_css('jquery-fancybox');
     return $this->subs->replace_markup();
 }