Hello, I would like to add an additional field to the Portfolio II Item preview.
The field needed is the K2 itemVideo, but using a jcemediabox-zoom-image.
Any suggestions for simplifications?
Regards
if($this->parent->config['portal_mode_portfolio2_popup'] == '1') {
echo 'data-cat-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_CAT_TEXT').'"
data-date="'.JHTML::_('date', $this->parent->content[$i]['date'], 'F j, Y').'"
data-date-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_DATE_TEXT').'"
data-author="'.$this->parent->content[$i]['author_username'].'"
data-author-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_AUTHOR_TEXT').'"
data-img="'.strip_tags($this->get_image($i)).'"';
}
function showItem(img) {
img = jQuery(img);
popup_image_wrap.html('<a href="' + img.attr('href') + '"><img src="' + img.attr('data-img') + '" /></a>');
popup_title.html(img.attr('title'));
popup_cat.html('<span>' + img.attr('data-cat-text') + '</span>' + img.attr('data-cat'));
popup_author.html('<span>' + img.attr('data-author-text') + '</span>' + img.attr('data-author'));
popup_date.html('<span>' + img.attr('data-date-text') + '</span>' + img.attr('data-date'));
var image = popup_image_wrap.find('img');
var timer = setInterval(function() {
if(image[0].complete) {
clearInterval(timer);
setTimeout(function() { popup_image_wrap.addClass('active'); }, 100);
setTimeout(function() { popup_title.addClass('active'); }, 200);
setTimeout(function() { popup_cat.addClass('active'); }, 300);
setTimeout(function() { popup_author.addClass('active'); }, 400);
setTimeout(function() {
popup_date.addClass('active');
blank = false;
}, 500);
}
}, 300);
}