K2 portfolio-grid background-image

GK User
Thu Jan 07, 2016 4:59 pm
Hi guys,
i am trying to use K2 portfolio-grid template from this Photo template in other GK Joomla template. I have everything ready with only one trouble.
In Category Item there is div:

<div class="itemImageBlock lazy" data-original="/media/k2/items/cache/65672688a4f4c8a57ea38e20056bdce1_L.jpg" style="display: block; background-image: url(&quot;/media/k2/items/cache/65672688a4f4c8a57ea38e20056bdce1_L.jpg&quot;);">

Made by code:

if($this->item->image) {
$bg = ' lazy" data-original="' . $this->item->image . '';
} else {
$bg = ' no-image';
}

?>


<div class="itemImageBlock<?php echo $bg; ?>">


I have no idea from where - style="display: block; background-image: url(&quot;/media/k2/items/cache/65672688a4f4c8a57ea38e20056bdce1_L.jpg&quot;);

comes from.


There is similar div used as header in item view:

<div class="header <?php if(!($params->get('itemImage') && !empty($this->item->image))): ?> no-image<?php endif; ?>" style="background-image: url('<?php echo $this->item->image; ?>');">

Where it is perfectly clear because style="background-image: is used in code

I was looking everywhere also in .js and found nothing. :blush:

Thank you for your help.
Ladislav
User avatar
Fresh Boarder

teitbite
Mon Jan 11, 2016 10:26 am
I’m afraid that modifications such as this require extensive changes to the theme’s code; I do apologize but such large changes are custom work that are beyond the scope of our technical support.
User avatar
Moderator


cron