K2 modal Box override ?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Mar 07, 2014 1:48 pm
Reply with quote
Report this post
Hi,

we will override the Modalbox effect for the K2. i cant find a solution for the mo template.

The effect is only to kill with a override.

I little help was fine

Best
Michael
User avatar
Gold Boarder

teitbite
Fri Mar 07, 2014 5:16 pm
Reply with quote
Report this post
Hi

Can You please tell em a little more details ? Modal box is triggered with "modal" class, so You probably just need to edit K2 layouts and remove this class.
User avatar
Moderator

GK User
Tue Mar 11, 2014 3:38 pm
Reply with quote
Report this post
teitbite wrote:Hi

Can You please tell em a little more details ? Modal box is triggered with "modal" class, so You probably just need to edit K2 layouts and remove this class.


Yes shure. It was a zoom effect if we go over a Image. IYou can see it in the Article and in the GK5News Modul.

We dont need the Zoom effect.

Best

Michael
User avatar
Gold Boarder

teitbite
Tue Mar 11, 2014 8:46 pm
Reply with quote
Report this post
Hi

Zoom effect ? I believe You mean a popup with bigger image. Please edit file /html/com_k2/default/item.php and find code:

Code: Select all
          <div class="itemImageBlock"> <a class="itemImage modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
                    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
                    </a>
                    <?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
                    <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
                    <?php endif; ?>
                    <?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
                    <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
                    <?php endif; ?>
          </div>


please replace it with:

Code: Select all
          <div class="itemImageBlock">
                    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
                    <?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
                    <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
                    <?php endif; ?>
                    <?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
                    <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
                    <?php endif; ?>
          </div>
User avatar
Moderator

GK User
Thu Mar 13, 2014 8:41 am
Reply with quote
Report this post
teitbite wrote:Hi

Zoom effect ? I believe You mean a popup with bigger image. Please edit file /html/com_k2/default/item.php and find code:

Code: Select all
          <div class="itemImageBlock"> <a class="itemImage modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
                    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
                    </a>
                    <?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
                    <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
                    <?php endif; ?>
                    <?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
                    <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
                    <?php endif; ?>
          </div>


please replace it with:

Code: Select all
          <div class="itemImageBlock">
                    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
                    <?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
                    <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
                    <?php endif; ?>
                    <?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
                    <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
                    <?php endif; ?>
          </div>


Sorry but dont works.

No what i mean is the effect if we go over the pic with the mouse in GK5N or in the Article "TOP Pic " the pic zoom´s out a little bit bigger

If we use the template overwrite this:

.nspArts .nspImageWrapper:hover img {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
}

the effekt is disable in the GK-News Modul but not in the Article.

You can see it here http://www.pentax-akademie.de

Best
Michael
User avatar
Gold Boarder

teitbite
Thu Mar 13, 2014 10:37 pm
Reply with quote
Report this post
Hi

Och, now I understand. Please go to http://pentax-akademie.de/templates/gk_ ... joomla.css and lin line 360 remove the class:

Code: Select all
.itemImageBlock img:hover {
    transform: scale(1.06);
}
User avatar
Moderator

GK User
Fri Mar 14, 2014 11:10 am
Reply with quote
Report this post
teitbite wrote:Hi

Och, now I understand. Please go to http://pentax-akademie.de/templates/gk_ ... joomla.css and lin line 360 remove the class:

Code: Select all
.itemImageBlock img:hover {
    transform: scale(1.06);
}



Great it works. Many Thanks

Michael
User avatar
Gold Boarder

teitbite
Fri Mar 14, 2014 11:40 pm
Reply with quote
Report this post
Hi

No problem. Glad I could help.
User avatar
Moderator


cron