} ?> </li> <?php if (!empty($pt_other)) { foreach ($pt_other->vals as $k => $v) { $img = $pt_other->img[$k]; $media = $pt_other->media[$k]; if ($img || $media) { $ot_image = 'http://placehold.it/570x360&text=No+Image'; $ot_link = '#'; $ot_lightbox = 'image'; echo '<li>'; if ($img) { $ot_image = $cache_folder . hgImageHelper::createThumb($img, $thumbw, $thumbh, $scale_mode); $ot_link = $img; $ot_lightbox = 'image'; } else { if ($media) { if (is_numeric($media)) { $ot_image = 'http://i.vimeocdn.com/video/' . $media . '_' . $thumbw . 'x' . $thumbh . '.jpg'; $ot_link = 'http://vimeo.com/' . $media; } else { $ot_image = 'http://img.youtube.com/vi/' . $media . '/0.jpg'; $ot_link = 'http://youtube.com/watch?v=' . $media; } $ot_lightbox = 'iframe'; } } echo '
$spanCount = 4; } } // Create a shortcut for params. $params = $this->item->params; $images = json_decode($this->item->images); $canEdit = $this->item->params->get('access-edit'); $cache_folder = JURI::base(true) . '/cache/'; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); //JHtml::core(); require_once dirname(__FILE__) . '/../../..' . '/lib/image_helper.php'; $template_path = JURI::base() . 'templates/' . JFactory::getApplication()->getTemplate(); $ptparams = new JRegistry($this->item->attribs); $pt_image = $ptparams->get('pt_image'); if ($pt_image) { $ptThumb = hgImageHelper::createThumb($pt_image, 570, '', 3); } $url_type = $ptparams->get('pt_urltype'); $rel = ''; $target = ''; if ($url_type != 5) { // if 0 - Portfolio item page if ($url_type == 0) { if ($params->get('access-view')) { $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); } else { $menu = JFactory::getApplication()->getMenu(); $active = $menu->getActive(); $itemId = $active->id; $link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId); $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
echo $ptparams->get('pt_others_cols', 4); ?> "> <?php $thumbw = $ptparams->get('pt_others_w', 280); $thumbh = $ptparams->get('pt_others_h', 200); foreach ($pt_other->vals as $k => $v) { $img = $pt_other->img[$k]; $media = $pt_other->media[$k]; if ($img || $media) { $ot_image = 'http://placehold.it/280x195&text=No+Image'; $ot_link = '#'; $ot_lightbox = 'image'; echo '<li>'; if ($img) { $ot_image = $cache_folder . hgImageHelper::createThumb($img, $thumbw, $thumbh, 5); $ot_link = $img; $ot_lightbox = 'image'; } else { if ($media) { if (is_numeric($media)) { $ot_image = 'http://i.vimeocdn.com/video/' . $media . '_' . $thumbw . 'x' . $thumbh . '.jpg'; $ot_link = 'http://vimeo.com/' . $media; } else { $ot_image = 'http://img.youtube.com/vi/' . $media . '/0.jpg'; $ot_link = 'http://youtube.com/watch?v=' . $media; } $ot_lightbox = 'iframe'; } } echo '
* @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; // Create a shortcut for params. $params = $this->item->params; $images = json_decode($this->item->images); $canEdit = $this->item->params->get('access-edit'); $cache_folder = JURI::base(true) . '/cache/hgimages/'; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); $gridcols = 12 / $this->columns; require_once dirname(__FILE__) . '/../../..' . '/lib/image_helper.php'; $template_path = JURI::base() . 'templates/' . JFactory::getApplication()->getTemplate(); $ptparams = new JRegistry($this->item->attribs); $pt_image = $ptparams->get('pt_image'); $ptThumb = !empty($pt_image) ? hgImageHelper::createThumb($pt_image, 570, '', 2) : ''; $url_type = $ptparams->get('pt_urltype'); $rel = ''; $target = ''; if ($url_type != 5) { // if 0 - Portfolio item page if ($url_type == 0) { if ($params->get('access-view')) { $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); } else { $menu = JFactory::getApplication()->getMenu(); $active = $menu->getActive(); $itemId = $active->id; $link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId); $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); $link = new JURI($link1);
// Create a shortcut for params. $params = $this->item->params; $images = json_decode($this->item->images); $canEdit = $this->item->params->get('access-edit'); $cache_folder = JURI::base(true) . '/cache/hgimages/'; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); //JHtml::core(); require_once dirname(__FILE__) . '/../../..' . '/lib/image_helper.php'; $template_path = JURI::base() . 'templates/' . JFactory::getApplication()->getTemplate(); $ptparams = new JRegistry($this->item->attribs); $pt_image = $ptparams->get('pt_image'); $pt_image_width = 260; // img width $scale_mode = 3; // scale mode $ptThumb = !empty($pt_image) ? hgImageHelper::createThumb($pt_image, $pt_image_width, null, $scale_mode) : ''; $url_type = $ptparams->get('pt_urltype'); $rel = ''; $target = ''; $doc = JFactory::getDocument(); if ($params->get('access-view')) { $itemlink = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); } else { $menu = JFactory::getApplication()->getMenu(); $active = $menu->getActive(); $itemId = $active->id; $link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId); $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); $itemlink = new JURI($link1); $itemlink->setVar('return', base64_encode($returnURL)); }