- Posts: 40
COMMUNITY FORUM
K2 Image sizes
- Carlos
- Topic Author
- Offline
- Senior Member
Less
More
13 years 2 months ago #98376
by Carlos
Replied by Carlos on topic K2 Image sizes
If i replace the <!-- Item Image --> section with this then the page doesn't load at all
Please Log in or Create an account to join the conversation.
- Carlos
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
13 years 2 months ago #98377
by Carlos
Replied by Carlos on topic K2 Image sizes
This i s what i have in item.php in the K2 template folder of my Mobile template:
<!-- Item Image --> <?php if($this->item->params->get('itemImage') && !empty($this->item->imageLarge)): ?> <!-- Item Image --> <div class="itemImageBlock"> <span class="itemImage"> <a class="modal" href="<?php echo $this->item->imageLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>"> <img src="<?php echo $this->item->imageLarge; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" /> </a> </span> <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?> <!-- Image caption --> <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span> <?php endif; ?> <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?> <!-- Image credits --> <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span> <?php endif; ?> <div class="clr"></div> </div> <?php endif; ?> </a> </span> <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?> <!-- Image caption -->
I notice if change the to say the smallest image the image will be smaller, but when i select a larger image size it doesnt change. I also noticed that if i switch my phone from portrait to landscape and back the image is a little bigger. It almost seems like something is automatically resizing it. i don't know what could be doing it though. Any thoughts, this is the last issue i need to get by before going live.
<!-- Item Image --> <?php if($this->item->params->get('itemImage') && !empty($this->item->imageLarge)): ?> <!-- Item Image --> <div class="itemImageBlock"> <span class="itemImage"> <a class="modal" href="<?php echo $this->item->imageLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>"> <img src="<?php echo $this->item->imageLarge; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" /> </a> </span> <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?> <!-- Image caption --> <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span> <?php endif; ?> <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?> <!-- Image credits --> <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span> <?php endif; ?> <div class="clr"></div> </div> <?php endif; ?> </a> </span> <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?> <!-- Image caption -->
I notice if change the to say the smallest image the image will be smaller, but when i select a larger image size it doesnt change. I also noticed that if i switch my phone from portrait to landscape and back the image is a little bigger. It almost seems like something is automatically resizing it. i don't know what could be doing it though. Any thoughts, this is the last issue i need to get by before going live.
Please Log in or Create an account to join the conversation.