protected function eps_get_public_slide()
 {
     // get the image url (and handle cropping)
     $imageHelper = new epsImageHelperClass($this->slide->ID, $this->settings['width'], $this->settings['height'], isset($this->settings['smartCrop']) ? $this->settings['smartCrop'] : 'false');
     $url = $imageHelper->eps_get_image_url();
     if (is_wp_error($url)) {
         return "";
         // bail out here. todo: look at a way of notifying the admin
     }
     if (!isset($this->settings['load_from_new']) || $this->settings['load_from_new'] == false || $this->settings['load_from_new'] == '') {
         $url1 = get_post_meta($this->slide->ID, 'eps-slider_url', true);
         $readmore = get_post_meta($this->slide->ID, 'eps-slider_readmore', true);
         $target = get_post_meta($this->slide->ID, 'eps-slider_new_window', true) ? 'checked=checked' : '';
         $heading = get_post_meta($this->slide->ID, 'eps-slider_heading', true);
         $caption = htmlentities($this->slide->post_excerpt, ENT_QUOTES, 'UTF-8');
     } else {
         $url1 = get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_url', true);
         $readmore = get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore', true);
         $target = get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_new_window', true) ? 'checked=checked' : '';
         $heading = get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading', true);
         $caption = get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_caption', true);
     }
     // store the slide details
     $slide = array('thumb' => $url, 'url' => $url1, 'readmore' => $readmore, 'heading' => $heading, 'alt' => get_post_meta($this->slider->ID, '_wp_attachment_' . $this->slide->ID . '_image_alt', true), 'target' => $target, 'content' => $caption, 'content_raw' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_caption', true), 'heading_font_size' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_font_size', true), 'readmore_font_size' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_font_size', true), 'content_top_margin' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_top_margin', true), 'content_font_size' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_font_size', true), 'heading_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_font_family', true), 'heading_google_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_google_font_family', true), 'heading_other_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_other_font_family', true), 'readmore_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_font_family', true), 'readmore_google_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_google_font_family', true), 'readmore_other_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_other_font_family', true), 'content_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_font_family', true), 'content_google_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_google_font_family', true), 'content_other_font_family' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_other_font_family', true), 'heading_font_style' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_font_style', true), 'readmore_font_style' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_font_style', true), 'content_font_style' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_font_style', true), 'heading_font_color' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_font_color', true), 'content_font_color' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_font_color', true), 'content_line_height' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_line_height', true), 'readmore_font_color' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_font_color', true), 'readmore_bg_color' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_bg_color', true), 'readmore_border_color' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_border_color', true), 'image_top' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_image_top', true), 'image_left' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_image_left', true), 'image_width' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_image_width', true), 'image_height' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_image_height', true), 'heading_in_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_in_effect', true), 'heading_in_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_in_effect', true), 'heading_out_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_heading_out_effect', true), 'content_in_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_in_effect', true), 'content_out_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_content_out_effect', true), 'readmore_in_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_in_effect', true), 'readmore_out_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_readmore_out_effect', true), 'image_in_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_image_in_effect', true), 'image_out_effect' => get_post_meta($this->slider->ID, 'eps-slider_' . $this->slide->ID . '_image_out_effect', true));
     // return the slide HTML
     return $this->eps_get_parallax_slider_markup($slide) . $this->eps_get_parallax_slider_markup_style($slide);
 }
 /**
  * Get the thumbnail for the slide
  */
 public function eps_get_thumb()
 {
     $imageHelper = new epsImageHelperClass($this->slide->ID, 150, 150, 'false');
     return $imageHelper->eps_get_image_url();
 }