php - Joomla! Need to make linkable banner images with Camera Slideshow -


need make linkable images camera slideshow. url must received url_a in material.

in _item.php

<div class="camera-item" data-src="<?php echo htmlspecialchars($images->image_intro); ?>"> 

i tried do

<?php $urls = json_decode($item->urls); ?> <a href="<?php echo $urls->urla;?>"> <div class="camera-item" data-src="<?php echo htmlspecialchars($images->image_intro); ?>"> </div></a> 

but got error. novice please! , sorry bad english :)

21.08 full code of _item.php changes

    <?php  defined('_jexec') or die; $images = json_decode($item->images); $urls = json_decode($item->urls); $slider_img = htmlspecialchars($images->image_intro); ?>   <div class="camera-item" rel="<?php echo $urls->urla;?>" data-src="<? echo $slider_img; ?>">      <?php if ($params->get('show_caption')): ?>         <div class="camera_caption <?php echo $params->get('captioneffect'); ?>">             <?php $item_heading = $params->get('item_heading', 'h4'); ?>             <?php if ($params->get('item_title')) : ?>                  <<?php echo $item_heading; ?> class="slide-title<?php echo $params->get('moduleclass_sfx'); ?>">                 <?php if ($params->get('link_titles') && $item->link != '') : ?>                     <a href="<?php echo $item->link;?>">                         <?php echo $item->title;?></a>                 <?php else : ?>                     <?php echo $item->title; ?>                 <?php endif; ?>                 </<?php echo $item_heading; ?>>              <?php endif; ?>              <?php if (!$params->get('intro_only')) :                 echo $item->afterdisplaytitle;             endif; ?>              <?php echo $item->beforedisplaycontent; ?>               <?php echo $item->introtext; ?>              <?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :                 echo '<a class="readmore" href="'.$item->link.'">'.$item->linktext.'</a>';             endif; ?>         </div>     <?php endif; ?>  </div> 

i got url atribute rel still can't make clickable images :( in firebug

<div id="camera-slideshow" class="camera_wrap" style="height: 755px;"> <div class="camera_fakehover"> <div class="camera_src camerastarted camerasliding"> <div class="camera-item" data-src="images/slide1.jpg" rel="/index.php/urla"> </div> <div class="camera-item" data-src="images/slide2.jpg" rel="/index.php/urla"> </div> <div class="camera-item" data-src="images/slide3.jpg" rel=""> </div> </div> 

source code

<div class="camera-item" rel="/index.php/urla" data-src="images/slide1.jpg">              <div class="camera_caption fadein">              <div class="txt1">some text</div> <div class="txt2">some text</div>                        </div>  </div> 


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -