Частично решилась проблема - подключил higslide js
но до ума не довел:(
открывает как я и хочу, но сначала открывает уменьшенную копию, а когда нажмешь внизу на крестик - открывается полная.
Что надо подправить, чтоб он при первом клике открывал полную версию?
В файле phocagallry.php нашел упомниние:
// -------------------------------------------------------
// JS IMAGE ONLY
// -------------------------------------------------------
else if ($tmpl['detailwindow'] == 5) {
$button->set('methodname', '');
$button2->methodname = &$button->methodname;
$buttonOther->methodname = &$button->methodname;
$document->addScript(JURI::base(true).'/components/com_phocagallery/assets/js//-full.js');
$document->addStyleSheet(JURI::base(true).'/components/com_phocagallery/assets/js//.css');
if ( $libraries['pg-group-']->value == 0 ) {
$document->addCustomTag( PhocaGalleryRenderFront::renderJSAll());
$document->addCustomTag('<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="'.JURI::base(true).'/components/com_phocagallery/assets/js//-ie6.css" /><![endif]-->');
$library->setLibrary('pg-group-', 1);
}
/* @deprecated for each new plugin (with a new _plugin_number ) there has to be inserted another hs.addslideShow script with another slideshowGroup */
/* if ($libraries['pg-group--slideshow']->value == 0) {
if((int)$_slideshow > 0) {
$library->setLibrary('pg-group--slideshow', 1);
}
} else {
// if we have added the slideshow to plugin code
// we cannot add it again
$_slideshow = 0;
}*/
/*
$document->addCustomTag( PhocaGalleryRenderFront::renderJS('pl', $popup_width, $popup_height, $_slideshow, $_class, $_outline_type, $_opacity, $_close_button));
$tmpl['onclick2'] = 'return hs.htmlExpand(this, phocaZoomPl )';
//$tmpl['onclick'] = 'return hs.expand(this, phocaImageRI )';
$tmpl['onclick'] = PhocaGalleryRenderFront::renderJSImage('pl', $_class, $_outline_type, $_opacity, $_fullimg);
*/
/* this would better use addScriptDeclaration, but this would need further changes (-> removing the <script> tags from the return value of renderJS) */
$document->addCustomTag( PhocaGalleryRenderFront::renderJS('pl', $popup_width, $popup_height, $_slideshow, $_class, $_outline_type, $_opacity, $_close_button, $this->_plugin_number));
$tmpl['onclick2'] = 'return hs.htmlExpand(this, phocaZoomPl )';
//$tmpl['onclick'] = 'return hs.expand(this, phocaImageRI )';
$tmpl['onclick'] = PhocaGalleryRenderFront::renderJSImage('pl', $_class, $_outline_type, $_opacity, $_fullimg, $this->_plugin_number);