-
-
Save silentworks/969704 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if( ! empty($feed)): ?> | |
<?php foreach ($feed as $row):?> | |
<?php if ($row->content_category == 'news') { ?> | |
<li class="news"> | |
<a class="title" href="<?php echo site_url('news') . '/' . $row->content_id . '/' . $row->content_url; ?>"><h2><?php echo $row->content_title; ?></h2></a> | |
<p class="created">News from <a href="<?php echo creator($row->content_parent, 'url'); ?>"><?php echo creator($row->content_parent, 'title'); ?></a></p> | |
<p class="info"><?php echo character_limiter($row->content_body, 80); ?></p> | |
</li> | |
<?php }; ?> | |
<?php if ($row->content_category == 'features') { ?> | |
<li class="features"> | |
<a class="title" href="<?php echo site_url('features') . '/' . $row->content_id . '/' . $row->content_url; ?>"><h2><?php echo $row->content_title; ?></h2></a> | |
<p class="created">Feature about <a href="<?php echo creator($row->content_parent, 'url'); ?>"><?php echo creator($row->content_parent, 'title'); ?></a></p> | |
<p class="info"><?php echo character_limiter($row->content_body, 80); ?></p> | |
</li> | |
<?php }; ?> | |
<?php if ($row->content_category == 'events') { ?> | |
<li class="events"> | |
<a class="title" href="<?php echo site_url('events') . '/' . $row->content_id . '/' . $row->content_url; ?>"><h2><?php echo $row->content_title; ?></h2></a> | |
<p class="created">Event by <a href="<?php echo creator($row->content_parent, 'url'); ?>"><?php echo creator($row->content_parent, 'title'); ?></a></p> | |
<p class="info"><?php echo character_limiter($row->content_body, 80); ?></p> | |
<div class="actions"> | |
<div class="email" href="#"></div> | |
<div class="calendar" href="#"></div> | |
<div class="heart" href="#"></div> | |
<div class="date"><?php echo date('d/m/Y - h:ma', strtotime($row->content_start)); ?></div> | |
</div> | |
</li> | |
<?php }; ?> | |
<?php endforeach;?> | |
<?php else: ?> | |
<li><p>Click favourite on authors pages you like and their news, events and updates will appear in this custom feed panel in realtime!</p></li> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment