- Posts: 17
- Thank you received: 5
Please Log in or Create an account to join the conversation.
[...]
<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 } ?>
[...]
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<?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>
Please Log in or Create an account to join the conversation.
<?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>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$text=strip_tags($text).'<a href="'.$url.'" class="more">'.$readmore.'</a>';
$text=strip_tags($text).' '.$readmore.' ';
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Mark21 wrote: Yes that works! Thanks!
Please Log in or Create an account to join the conversation.