Ejemplo n.º 1
0
         echo ' title="' . htmlentities($cv->odesctitletag, ENT_QUOTES, 'UTF-8') . '"';
     }
 }
 echo ' href="' . $cv->link . '"';
 // Correct size for external Image (Picasa) - subcategory
 $extImage = false;
 if (isset($cv->extid)) {
     $extImage = PhocaGalleryImage::isExtImage($cv->extid);
 }
 if ($extImage && isset($cv->extw) && isset($cv->exth)) {
     $correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($cv->extw, $cv->exth, $this->tmpl['picasa_correct_width_m'], $this->tmpl['picasa_correct_height_m'], $this->tmpl['diff_thumb_height']);
 }
 // Image Box (image, category, folder)
 if ($cv->type == 2) {
     // Render OnClick, Rel
     echo PhocaGalleryRenderFront::renderAAttribute($this->tmpl['detail_window'], $cv->button->options, $cv->linkorig, $this->tmpl['highslideonclick'], '', $cv->linknr, $cv->catalias);
     // SWITCH OR OVERLIB
     if ($this->tmpl['switch_image'] == 1) {
         echo PhocaGalleryRenderFront::renderASwitch($this->tmpl['switch_width'], $this->tmpl['switch_height'], $this->tmpl['switch_fixed_size'], $cv->extwswitch, $cv->exthswitch, $cv->extl, $cv->linkthumbnailpath);
     } else {
         echo $cv->overlib_value;
     }
     echo ' >';
     // A End
     // IMG Start
     if ($extImage) {
         //echo JHtml::_( 'image', $cv->extm, $cv->altvalue, array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height'], 'class' => 'pg-image'));
         echo JHtml::_('image', $cv->extm, $cv->altvalue, array('style' => 'width:' . $correctImageRes['width'] . 'px;height:' . $correctImageRes['height'] . 'px;', 'class' => 'pg-image'));
     } else {
         echo JHtml::_('image', $cv->linkthumbnailpath, $cv->oimgalt, array('class' => $cv->ooverlibclass));
     }