function GetYoutube($id, $title, $thumb)
 {
     return SetYoutubeVideo($id, $title, $thumb, get_pt_options_all());
 }
 function GetImgHTML()
 {
     if ($this->def_image && $this->nodef) {
         return '';
     }
     // Starts Highslide output
     if ($this->LB_effect && $this->use_hs) {
         // If showpost true, or post doesn't has picture, and post doesn't have media
         if ($this->showpost || $this->showlink || !$this->has_image && !$this->has_media && !$this->has_youtube) {
             if ($this->showlink) {
                 $link = $this->default_link;
             } else {
                 $link = $this->post_url;
             }
             $h = new pt_highslide($link, $this->thumb_url, $this->title);
             $h->set_wrapClass('highslide-wrapper');
             $h->set_borders($this->settings['hsframe']);
             $h->set_href_text($this->img_title, $this->myclassimg . $this->align);
             $h->set_myclassimg($this->myclassimg);
             $h->set_myclasshref($this->myclasshref);
             $h->set_bottom(__('Direct link to: ', 'post-thumb') . $this->title, $link);
             $h->set_size($this->settings['hs_width'], $this->settings['hs_height'], $this->settings['hsmargin']);
             if ($this->ajax) {
                 $this->html = $h->highslide_link('ajax');
             } else {
                 $this->html = $h->highslide_link('iframe');
             }
             unset($h);
         } elseif ($this->has_media) {
             $this->html = $this->GetVideo($this->title, $this->the_default_media, $this->thumb_url, $this->settings['wordtube_pwidth'], $this->settings['wordtube_pheight']);
         } elseif ($this->has_youtube) {
             $this->html = SetYoutubeVideo($this->the_default_media, $this->title, $this->thumb_url, $this->settings, $this->myclassimg . $this->align);
         } else {
             $h = new pt_highslide($this->the_image, $this->thumb_url, $this->title);
             $h->set_borders($this->settings['ovframe']);
             $h->set_myclassimg($this->myclassimg);
             $h->set_myclasshref($this->myclasshref);
             $h->set_href_text('', $this->align);
             if ($this->has_caption) {
                 $h->set_caption(htmlspecialchars(str_replace("'", "\\'", $this->title), ENT_QUOTES));
             }
             $this->html = $h->highslide_link('overlay');
             unset($h);
         }
     } elseif ($this->LB_effect && ($this->use_tb || $this->use_sb)) {
         // If an image and showpost false
         if ($this->showpost || $this->showlink || !$this->has_image && !$this->has_media && !$this->has_youtube) {
             if ($this->showlink) {
                 $link = $this->default_link;
             } else {
                 $link = $this->post_url;
             }
             $this->html = $this->n . '<a href="' . $link . '"';
             $this->html .= ' title="' . $this->title . '"';
             if ($this->myclasshref != '') {
                 $this->html .= ' class="' . $this->myclasshref . '"';
             }
             $this->html .= '>';
             $this->html .= $this->nt . '<img src="' . $this->thumb_url . '" alt="' . $this->alt_text . '"';
             if ($this->myclassimg != '') {
                 $this->html .= $this->myclassimg;
             }
             $this->html .= ' />' . $this->n . '</a>';
             unset($h);
         } elseif ($this->has_media) {
             $this->html = $this->GetVideo($this->title, $this->the_default_media, $this->thumb_url, $this->settings['wordtube_pwidth'], $this->settings['wordtube_pheight']);
         } elseif ($this->has_youtube) {
             $this->html = SetYoutubeVideo($this->the_default_media, $this->title, $this->thumb_url, $this->settings, $this->myclassimg . $this->align);
         } else {
             $h = new pt_thickbox($this->the_image, $this->thumb_url, $this->title);
             $h->set_myclasshref($this->myclasshref);
             $this->html = $h->thickbox_link('overlay');
             unset($h);
         }
     } else {
         if ($this->showpost || !$this->has_image) {
             $this->html = $this->n . '<a href="' . $this->post_url . '"';
         } elseif ($this->showlink) {
             $this->html = $this->n . '<a href="' . $this->default_link . '"';
         } else {
             $this->html = $this->n . '<a href="' . $this->the_image . '"';
         }
         $this->html .= ' title="' . htmlspecialchars($this->title) . '"';
         if ($this->myclasshref != '') {
             $this->html .= ' class="' . $this->myclasshref . '"';
         }
         $this->html .= '>';
         $this->html .= $this->nt . '<img src="' . $this->thumb_url . '" alt="' . htmlspecialchars($this->alt_text) . '"';
         $this->html .= $this->myclassimg;
         $this->html .= $this->align;
         $this->html .= ' />' . $this->n . '</a>';
     }
     if ($this->show_title != '') {
         $this->get_add_html();
     }
     return $this->html;
 }