- Messaggi: 17
- Ringraziamenti ricevuti 5
Si prega Accedi o Crea un account a partecipare alla conversazione.
[...]
<div class="items">
<?php foreach ($stamp->items as $item){ ?>
<a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
<div class="event">
...
...Your code for one event...
...
</div>
</a>
<?php } ?>
[...]
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
<?php // List of events Template ?>
<div>
<div class="items">
<?php foreach ($stamp->items as $item){ ?>
<a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
<div class="event">
<?php if ($item->next): ?>
<span href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
<?php if (!$item->image): ?>
<div class="box_date">
<span class="day"><?php echo $item->day; ?></span><br/><?php echo $item->monthShort; ?>
<span class="noimage"><?php echo JTEXT::_('COM_ICAGENDA_EVENTS_NOIMAGE'); ?></span>
</div>
<?php endif; ?>
<?php if ($item->image): ?>
<div class="box_date" style="background:(<?php echo $item->image; ?>) no-repeat center center; background-size: cover; border: 1px solid <?php echo $item->cat_color; ?>">
<span class="day"><?php echo $item->day; ?></span><br/><?php echo $item->monthShort; ?>
</div>
<?php endif; ?>
</span>
<?php endif; ?>
<div class="content">
<div class="eventtitle">
<table class="table">
<tbody>
<tr>
<td class="tit" valign="middle">
<div>
<h1><a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>"><?php echo $item->title; ?></a></h1>
</div>
</td>
<td class="cat" valign="middle">
<div style="color:<?php echo $item->cat_color; ?>;">
<?php echo $item->cat_title; ?>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="clear:both"></div>
<?php if ($item->desc): ?>
<div class="descshort"><?php echo $item->descShort ; ?></div>
<?php endif; ?>
<div class="moreinfos">
<?php echo JTEXT::_('COM_ICAGENDA_EVENTS_MORE_INFO'); ?>
</div>
</div>
<div style="clear:both"></div>
</div>
</a>
<?php } ?>
<?php if ($this->atlist): ?>
<div class="share"><?php echo $item->share; ?></div>
<?php endif; ?>
</div>
</div>
<div style="clear:both"></div>
Si prega Accedi o Crea un account a partecipare alla conversazione.
<?php // List of events Template ?>
<div>
<div class="items">
<?php foreach ($stamp->items as $item){ ?>
<div>
<a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
<div class="event">
<?php if ($item->next): ?>
<span href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
<?php if (!$item->image): ?>
<div class="box_date">
<span class="day"><?php echo $item->day; ?></span><br/><?php echo $item->monthShort; ?>
<span class="noimage"><?php echo JTEXT::_('COM_ICAGENDA_EVENTS_NOIMAGE'); ?></span>
</div>
<?php endif; ?>
<?php if ($item->image): ?>
<div class="box_date" style="background:(<?php echo $item->image; ?>) no-repeat center center; background-size: cover; border: 1px solid <?php echo $item->cat_color; ?>">
<span class="day"><?php echo $item->day; ?></span><br/><?php echo $item->monthShort; ?>
</div>
<?php endif; ?>
</span>
<?php endif; ?>
<div class="content">
<div class="eventtitle">
<table class="table">
<tbody>
<tr>
<td class="tit" valign="middle">
<div>
<h1><a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>"><?php echo $item->title; ?></a></h1>
</div>
</td>
<td class="cat" valign="middle">
<div style="color:<?php echo $item->cat_color; ?>;">
<?php echo $item->cat_title; ?>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="clear:both"></div>
<?php if ($item->desc): ?>
<div class="descshort"><?php echo $item->descShort ; ?></div>
<?php endif; ?>
<div class="moreinfos">
<?php echo JTEXT::_('COM_ICAGENDA_EVENTS_MORE_INFO'); ?>
</div>
</div>
<div style="clear:both"></div>
</div>
</a>
</div>
<?php } ?>
<?php if ($this->atlist): ?>
<div class="share"><?php echo $item->share; ?></div>
<?php endif; ?>
</div>
</div>
<div style="clear:both"></div>
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
$text=strip_tags($text).'<a href="'.$url.'" class="more">'.$readmore.'</a>';
$text=strip_tags($text).' '.$readmore.' ';
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Mark21 ha scritto: Yes that works! Thanks!
Si prega Accedi o Crea un account a partecipare alla conversazione.