-
AuthorPosts
-
August 26, 2015 at 8:42 am #665635
hi,
is it possible to link the intro-image to the full article in masonry layout?
at the moment is only the title linked and my client want to have also the link on the image.thx
gerijooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 26, 2015 at 9:39 am #665665Hi there
Please provide your site backend & Cpanel access. I’ll help you work on it.Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 26, 2015 at 9:39 am #746649Hi there
Please provide your site backend & Cpanel access. I’ll help you work on it.Thank you,
Viet VuAugust 26, 2015 at 10:35 am #665677hi jooservices,
i have sent you a PM with the details.thx for helping me
August 26, 2015 at 10:35 am #746661hi jooservices,
i have sent you a PM with the details.thx for helping me
jooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 28, 2015 at 2:53 am #680370Hi there
Please provide link for a page you want me work on it.Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 28, 2015 at 2:53 am #746856Hi there
Please provide link for a page you want me work on it.Thank you,
Viet VuSeptember 3, 2015 at 6:56 am #681449hi jooservices,
a few days ago i have sent you a pm, did you recieved it?
have you any news for me?thx
geriSeptember 3, 2015 at 6:56 am #747375hi jooservices,
a few days ago i have sent you a pm, did you recieved it?
have you any news for me?thx
gerijooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 3, 2015 at 9:03 am #681464Hi there
As above replied.
Please let me know which element you want insert anchor tag ?Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 3, 2015 at 9:03 am #747390Hi there
As above replied.
Please let me know which element you want insert anchor tag ?Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 4, 2015 at 7:34 am #681647Hi there
I’m working on this. Please wait moment.Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 4, 2015 at 7:34 am #747487Hi there
I’m working on this. Please wait moment.Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 4, 2015 at 8:40 am #681654Hi there
Have done. Please check it at your side.
We are using js to redirect .<?php
/**
* ------------------------------------------------------------------------
* JA Decor Template
* ------------------------------------------------------------------------
* Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - Copyrighted Commercial Software
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com - http://www.joomlancers.com
* This file may not be redistributed in whole or significant part.
* ------------------------------------------------------------------------
*/defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
if(version_compare(JVERSION, '3.0', 'lt')){
JHtml::_('behavior.tooltip');
}
JHtml::_('behavior.framework');// Create a shortcut for params.
$params = & $this->item->params;
$images = json_decode($this->item->images);
$canEdit = $this->item->params->get('access-edit');
$info = $params->get('info_block_position', 2);
$aInfo1 = ($params->get('show_publish_date') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author'));
$aInfo2 = ($params->get('show_create_date') || $params->get('show_modify_date') || $params->get('show_hits'));
$topInfo = ($aInfo1 && $info != 1) || ($aInfo2 && $info == 0);
$botInfo = ($aInfo1 && $info == 1) || ($aInfo2 && $info != 0);
$icons = $params->get('access-edit') || $params->get('show_print_icon') || $params->get('show_email_icon');$loadParamsContents = DecorHelper::loadParamsContents($this->item);
$grid_info = explode('x',$loadParamsContents['size']);
$grid = '';
$grid .= $grid_info[0] > 1?'item-w'.$grid_info[0]:'';
$grid .= $grid_info[1] > 1?'item-h'.$grid_info[1]:'';// update catslug if not exists - compatible with 2.5
if (empty ($this->item->catslug)) {
$this->item->catslug = $this->item->category_alias ? ($this->item->catid.':'.$this->item->category_alias) : $this->item->catid;
}
?>
<div class="item isotope-item <?php echo $grid;?>"><?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
<div class="system-unpublished">
<?php endif; ?><!-- Article -->
<article>
<div class="item-image front">
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>"
alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>
<?php else: ?>
<div>
<img src="<?php echo JURI::root(true);?>/images/joomlart/demo/default.jpg" alt="Default Image"/>
</div>
<?php endif; ?>
</div><div class="item-desc back" onClick="sendClick(this);">
<?php if ($params->get('show_title')) : ?>
<?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?>
<?php endif; ?><!-- Aside -->
<?php if ($topInfo || $icons) : ?>
<aside class="article-aside clearfix">
<?php if ($topInfo): ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
<?php endif; ?><?php if ($icons): ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('item' => $this->item, 'params' => $params)); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
<!-- //Aside --><section class="article-intro clearfix" itemprop="articleBody">
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?><?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo $this->item->introtext; ?>
</section><!-- footer -->
<?php if ($botInfo) : ?>
<footer class="article-footer clearfix">
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
</footer>
<?php endif; ?>
<!-- //footer --><?php if ($params->get('show_readmore') && $this->item->readmore) :
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);
$link->setVar('return', base64_encode($returnURL));
endif;
?>
<section class="readmore">
<a class="btn btn-default" href="<?php echo $link; ?>" itemprop="url">
<span>
<?php if (!$params->get('access-view')) :
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($readmore = $this->item->alternative_readmore) :
echo $readmore;
if ($params->get('show_readmore_title', 0) != 0) :
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif;
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else :
echo JText::_('COM_CONTENT_READ_MORE');
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif; ?>
</span>
</a>
</section>
<?php endif; ?></div>
</article>
<!-- //Article --><?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
</div>
<?php endif; ?><?php echo $this->item->event->afterDisplayContent; ?>
</div>
<script>
function sendClick (el) {
var anchor = jQuery(el).find('a');
window.location.replace((anchor.attr('href')));
};
</script>Thank you,
Viet Vujooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 4, 2015 at 8:40 am #747494Hi there
Have done. Please check it at your side.
We are using js to redirect .<?php
/**
* ------------------------------------------------------------------------
* JA Decor Template
* ------------------------------------------------------------------------
* Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - Copyrighted Commercial Software
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com - http://www.joomlancers.com
* This file may not be redistributed in whole or significant part.
* ------------------------------------------------------------------------
*/defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
if(version_compare(JVERSION, '3.0', 'lt')){
JHtml::_('behavior.tooltip');
}
JHtml::_('behavior.framework');// Create a shortcut for params.
$params = & $this->item->params;
$images = json_decode($this->item->images);
$canEdit = $this->item->params->get('access-edit');
$info = $params->get('info_block_position', 2);
$aInfo1 = ($params->get('show_publish_date') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author'));
$aInfo2 = ($params->get('show_create_date') || $params->get('show_modify_date') || $params->get('show_hits'));
$topInfo = ($aInfo1 && $info != 1) || ($aInfo2 && $info == 0);
$botInfo = ($aInfo1 && $info == 1) || ($aInfo2 && $info != 0);
$icons = $params->get('access-edit') || $params->get('show_print_icon') || $params->get('show_email_icon');$loadParamsContents = DecorHelper::loadParamsContents($this->item);
$grid_info = explode('x',$loadParamsContents['size']);
$grid = '';
$grid .= $grid_info[0] > 1?'item-w'.$grid_info[0]:'';
$grid .= $grid_info[1] > 1?'item-h'.$grid_info[1]:'';// update catslug if not exists - compatible with 2.5
if (empty ($this->item->catslug)) {
$this->item->catslug = $this->item->category_alias ? ($this->item->catid.':'.$this->item->category_alias) : $this->item->catid;
}
?>
<div class="item isotope-item <?php echo $grid;?>"><?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
<div class="system-unpublished">
<?php endif; ?><!-- Article -->
<article>
<div class="item-image front">
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>"
alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>
<?php else: ?>
<div>
<img src="<?php echo JURI::root(true);?>/images/joomlart/demo/default.jpg" alt="Default Image"/>
</div>
<?php endif; ?>
</div><div class="item-desc back" onClick="sendClick(this);">
<?php if ($params->get('show_title')) : ?>
<?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?>
<?php endif; ?><!-- Aside -->
<?php if ($topInfo || $icons) : ?>
<aside class="article-aside clearfix">
<?php if ($topInfo): ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
<?php endif; ?><?php if ($icons): ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('item' => $this->item, 'params' => $params)); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
<!-- //Aside --><section class="article-intro clearfix" itemprop="articleBody">
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?><?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo $this->item->introtext; ?>
</section><!-- footer -->
<?php if ($botInfo) : ?>
<footer class="article-footer clearfix">
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
</footer>
<?php endif; ?>
<!-- //footer --><?php if ($params->get('show_readmore') && $this->item->readmore) :
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);
$link->setVar('return', base64_encode($returnURL));
endif;
?>
<section class="readmore">
<a class="btn btn-default" href="<?php echo $link; ?>" itemprop="url">
<span>
<?php if (!$params->get('access-view')) :
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($readmore = $this->item->alternative_readmore) :
echo $readmore;
if ($params->get('show_readmore_title', 0) != 0) :
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif;
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else :
echo JText::_('COM_CONTENT_READ_MORE');
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif; ?>
</span>
</a>
</section>
<?php endif; ?></div>
</article>
<!-- //Article --><?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
</div>
<?php endif; ?><?php echo $this->item->event->afterDisplayContent; ?>
</div>
<script>
function sendClick (el) {
var anchor = jQuery(el).find('a');
window.location.replace((anchor.attr('href')));
};
</script>Thank you,
Viet Vu -
AuthorPosts
This topic contains 15 replies, has 2 voices, and was last updated by jooservices 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum