예제 #1
0
$image_background_shadow = $params->get('image_background_shadow', 'none');
//.............................................................................................................
//.. These are our params .....................................................................................
$cat_limit = $params->get('cat_limit', 5);
$pix_randomize = $params->get('pix_randomize', 1);
$show_number = $params->get('show_number', 0);
$show_title = $params->get('show_title', 1);
$show_play = $params->get('playbutton', 1);
$piclens = $params->get('piclens', 1);
$overview = $params->get('overview', 0);
$overview_text = $params->get('overview_text', 'Show all categories');
$link_to = $params->get('link_to', 5);
$layout = $params->get('layout', 0);
//...............................................................................................................
if ($image_background_shadow != 'none') {
    $imageBgCSS = 'background: url(\'' . JURI::base(true) . '/components/com_phocagallery/assets/images/' . $image_background_shadow . '.' . PhocaGalleryHelperFront::getFormatIconComponent() . '\') 0 0 no-repeat;';
} else {
    $imageBgCSS = 'background: ' . $image_background_color . ';';
}
$document->addCustomTag("<style type=\"text/css\">\n" . " #jvphoca_module .name {color: {$font_color} ;}\n" . " #jvphoca_module .phocagallery-box-file {background: {$background_color} ; border:1px solid {$border_color} ;}\n" . " #jvphoca_module .phocagallery-box-file-first { {$imageBgCSS} }\n" . " #jvphoca_module .phocagallery-box-file:hover, .phocagallery-box-file.hover {border:1px solid {$border_color_hover} ; background: {$background_color_hover} ;}\n" . " </style>\n");
$document->addCustomTag("<!--[if IE]>\n<style type=\"text/css\">\n" . "phocagallery-box-file{\r\nbackground-color: expression(isNaN(this.js)?(this.js=1,\r\nthis.onmouseover=new Function(\"this.className+=' hover';\"),\r\nthis.onmouseout=new Function(\"this.className=this.className.replace(' hover','');\")):false););\r\n}" . " </style>\n<![endif]-->");
//END CSS
// Window
JHTML::_('behavior.modal', 'a.modal-button');
$button = new JObject();
$button->set('name', 'image');
if ($display_description_detail == 1) {
    $front_popup_window_height = $front_popup_window_height + $description_detail_height;
}
$db->setQuery("SELECT id  FROM #__menu WHERE link LIKE '%option=com_phocagallery%'");
$Itemid = $db->loadResult();
                }
                $output[$i] .= ' >';
                //$output[$i] .= JHTML::_('image', 'components/com_phocagallery/assets/images/icon-view....', $image->title);
                $output[$i] .= '<img src="' . JURI::base(true) . '/' . 'components/com_phocagallery/assets/images/icon-view.' . PhocaGalleryHelperFront::getFormatIconComponent() . '" alt="' . $valueImages->title . '" />';
                $output[$i] .= '</a>';
            }
            if ($display_icon_download == 1) {
                $output[$i] .= '<a class="' . $button->methodname . '" title="' . JText::_('Image Download') . '" href="' . JRoute::_($valueImages->link . '&phocadownload=1') . '"';
                if ($detail_window == 1) {
                    $output[$i] .= ' onclick="' . $button->options . '"';
                } else {
                    $output[$i] .= ' rel="' . $button->options . '"';
                }
                $output[$i] .= ' >';
                //$output[$i] .= JHTML::_('image', 'components/com_phocagallery/assets/images/icon-download....', $image->title);
                $output[$i] .= '<img src="' . JURI::base(true) . '/' . 'components/com_phocagallery/assets/images/icon-download.' . PhocaGalleryHelperFront::getFormatIconComponent() . '" alt="' . $valueImages->title . '" />';
                $output[$i] .= '</a>';
            }
            $output[$i] .= '</div>';
        }
        $output[$i] .= '</div>';
        /*		if ($phocagallery_module_width !='') {
        			$output[$i]	.= '</div>';
        		}
        		else { */
        $output[$i] .= '';
        /*}*/
        $i++;
    }
} else {
    $i = 0;