Beispiel #1
0
 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));
     }
     if ($cv->type == 2 && $cv->enable_cooliris == 1) {
         if ($extImage) {
             echo '<span class="mbf-item">#phocagallerypiclens ' . $cv->catid . '-phocagallerypiclenscode-' . $cv->extid . '</span>';
Beispiel #2
0
 echo ' href="' . $value->link . '"';
 // Correct size for external Image (Picasa) - subcategory
 $extImage = false;
 if (isset($value->extid)) {
     $extImage = PhocaGalleryImage::isExtImage($value->extid);
 }
 if ($extImage && isset($value->extw) && isset($value->exth)) {
     $correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($value->extw, $value->exth, $this->tmpl['picasa_correct_width_m'], $this->tmpl['picasa_correct_height_m']);
 }
 // Image Box (image, category, folder)
 if ($value->type == 2) {
     // Render OnClick, Rel
     echo PhocaGalleryRenderFront::renderAAttribute($this->tmpl['detailwindow'], $value->button->options, $value->linkorig, $this->tmpl['highslideonclick'], '', $value->linknr, $value->catalias);
     // SWITCH OR OVERLIB
     if ($this->tmpl['switchimage'] == 1) {
         echo PhocaGalleryRenderFront::renderASwitch($this->tmpl['switchwidth'], $this->tmpl['switchheight'], $this->tmpl['switchfixedsize'], $value->extwswitch, $value->exthswitch, $value->extl, $value->linkthumbnailpath);
     } else {
         echo $value->overlib_value;
     }
     echo ' >';
     // A End
     // IMG Start
     if ($extImage) {
         echo JHtml::_('image', $value->extm, $value->altvalue, array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height'], 'class' => 'pg-image'));
     } else {
         echo JHtml::_('image', $value->linkthumbnailpath, $value->oimgalt, array('class' => $value->ooverlibclass));
     }
     if ($value->type == 2 && $value->enable_cooliris == 1) {
         if ($extImage) {
             echo '<span class="mbf-item">#phocagallerypiclens ' . $value->catid . '-phocagallerypiclenscode-' . $value->extid . '</span>';
         } else {