$ag->addCSS('/plugins/content/AdmirorGallery/templates/' . $ag->params['galleryStyle'] . '/listed.css'); $html = ''; $html .= ' <div class="ag_overscroll_bodyHolder ag_overscroll" style="width:' . $ag->params['frame_width'] . 'px; height:' . $ag->params['frame_height'] . 'px"> '; $html .= '<!-- ======================= Admiror Gallery --> <div id="AdmirorGallery' . $galleryCount . '_' . $ag->params['galleryStyle'] . '' . $articleID . '"> <div class="AdmirorOverscrollGallery"> '; $popup->imgWrapS = '<span class="ag_overscroll_thumbSpan">'; $popup->imgWrapE = '</span>'; //disables new image tag $ag->params['newImageTag'] = false; foreach ($ag->images as $imagesKey => $imageValue) { // Calculate $listed_imageSize $imageInfo_array = agHelper::ag_imageInfo(JPATH_BASE . DS . $ag->params['rootFolder'] . $ag->imagesFolderName . '/' . $imageValue); $html .= ' <table border="0" cellspacing="0" cellpadding="0" width="100%" class="ag_overscroll_item"> <tbody> <tr><td class="ag_overscroll_thumbTd"> <span class="ag_thumb' . $ag->params['galleryStyle'] . '">'; $html .= $ag->generatePopupHTML($popup, $imageValue); $html .= '</span></td><td class="ag_overscroll_info"> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr><td class="ag_overscroll_description"> ' . $ag->getDescription($imageValue) . ' <tr><td class="ag_overscroll_imageStat"> <span>W:' . $imageInfo_array["width"] . 'px</span> <span>H:' . $imageInfo_array["height"] . 'px</span> <span>S:' . agHelper::ag_fileRoundSize($imageInfo_array['size']) . '</span>
# com_admirorgallery - Admiror Gallery Component # ------------------------------------------------------------------------ # author Igor Kekeljevic & Nikola Vasiljevski # copyright Copyright (C) 2014 admiror-design-studio.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.admiror-design-studio.com/joomla-extensions # Technical Support: Forum - http://www.vasiljevski.com/forum/index.php # Version: 5.0.0 -------------------------------------------------------------------------*/ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'content' . DIRECTORY_SEPARATOR . 'admirorgallery' . DIRECTORY_SEPARATOR . 'admirorgallery' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'agHelper.php'; $ag_itemURL = $this->ag_init_itemURL; $ag_folderName = dirname($ag_itemURL); $ag_fileName = basename($ag_itemURL); $AG_imgInfo = agHelper::ag_imageInfo(JPATH_SITE . $ag_itemURL); require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'content' . DIRECTORY_SEPARATOR . 'admirorgallery' . DIRECTORY_SEPARATOR . 'admirorgallery' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'agHelper.php'; $thumbsFolderPhysicalPath = JPATH_SITE . DIRECTORY_SEPARATOR . 'administrator' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_admirorgallery' . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'thumbs'; agHelper::ag_sureRemoveDir($thumbsFolderPhysicalPath, true); if (!JFolder::create($thumbsFolderPhysicalPath, 0755)) { JFactory::getApplication()->enqueueMessage(JText::_("AG_CANNOT_CREATE_FOLDER") . " " . $newFolderName, 'error'); } $ag_hasXML = ""; $ag_hasThumb = ""; // Set Possible Description File Apsolute Path // Instant patch for upper and lower case... $ag_pathWithStripExt = JPATH_SITE . $ag_folderName . '/' . JFile::stripExt(basename($ag_itemURL)); $ag_imgXML_path = $ag_pathWithStripExt . ".XML"; if (JFIle::exists($ag_pathWithStripExt . ".xml")) { $ag_imgXML_path = $ag_pathWithStripExt . ".xml"; } if (file_exists(JPATH_SITE . "/plugins/content/admirorgallery/admirorgallery/thumbs/" . basename($ag_folderName) . "/" . basename($ag_fileName))) {
/** * Gets image info data, and loads it in imageInfo array. It also rounds image size. * @param <string> $imageName */ function getImageInfo($imageName) { $this->imageInfo = agHelper::ag_imageInfo($this->imagesFolderPhysicalPath . $this->DS . $imageName); $this->imageInfo["size"] = agHelper::ag_fileRoundSize($this->imageInfo["size"]); }