_e('Past week'); ?> </a></li> <li class="last"><a href="index.php?hours=-1"><span><?php _e('Show all'); ?> </span></a></li> </ul> </div> <div id="main"> <?php $num = 0; if (has_items()) { while (has_items()) { the_item(); ?> <?php the_date('before=<h1 title="' . _r('Click to expand/collapse date') . '">' . _r('News stories from') . ' &after=</h1>&format=l d F, Y'); ?> <div class="item c2 feed-<?php the_feed_id(); ?> " id="item-<?php echo $num; ?> "> <img src="<?php the_feed_favicon(); ?> " alt="<?php
public static function rss2() { header('Content-Type: application/rss+xml; charset=' . get_option('encoding', 'utf-8'), true); echo '<?xml version="1.0" encoding="' . get_option('encoding', 'utf-8') . '"?' . '>'; ?> <!-- Generated by Lilina/<?php echo LILINA_CORE_VERSION; ?> --> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" <?php do_action('rss2_ns'); ?> > <channel> <title><?php echo get_option('sitename'); ?> </title> <link><?php echo get_option('baseurl'); ?> </link> <description><?php echo get_option('sitename'); ?> </description> <atom:link href="<?php echo get_option('baseurl'); ?> rss.php" rel="self" type="application/rss+xml" /> <?php //Need to fix this ?> <pubDate><?php echo date('D, d M Y H:i:s +0000'); ?> </pubDate> <generator>http://getlilina.org/?v=<?php echo LILINA_CORE_VERSION; ?> </generator> <language><?php echo get_option('lang'); ?> </language> <?php do_action('rss2_head'); if (has_items()) { while (has_items()) { the_item(); ?> <item> <title><![CDATA[<?php the_title(); ?> ]]></title> <link><?php the_link(); ?> </link> <pubDate><?php the_date(array('format' => 'D, d M Y H:i:s +0000')); ?> </pubDate> <?php //Not entirely accurate; uses the feed name, not the author ?> <dc:creator><?php the_feed_name(); ?> </dc:creator> <guid isPermaLink="false"><?php the_id(); ?> </guid> <description><![CDATA[<?php the_summary(); ?> ]]></description> <content:encoded><![CDATA[<?php the_content(); ?> ]]></content:encoded> <?php do_action('rss2_item'); ?> </item> <?php } } ?> </channel> </rss> <?php }
<div class="left"> <?php $category = the_item(); have_items(); if (searched_type() === 'products') { if (exists()) { echo '<div class="title"> <span style="color: #efefef;">' . $category->name . '</span> Products <div class="shareico" style="position: relative; float: right;" data-ttip="RSS Feed"><a href="' . tlink('plugin/rss2-products.xml', 'cat=' . $category->ID) . '"></a></div> </div> <div style="margin-bottom: 20px;"> <ul class="category"> <li><a href="' . get_remove(array('type', 'page')) . '">Coupons</a></li>'; if (theme_has_products()) { echo '<li class="active">Products</li>'; } echo '</ul>'; if (!empty($category->description)) { echo '<article class="array_item category_box" style="border-top: 0;">' . $category->description . '</article>'; } echo '</div>'; if (results() > 0) { foreach (items(array('orderby' => 'active desc')) as $item) { echo '<article class="array_item product"> <div class="table"> <div class="left"> <img src="' . product_avatar($item->image) . '" alt="">
<div class="left"> <?php if (exists()) { $item = the_item(); echo '<article class="array_item"> <div class="table" itemscope itemtype="http://data-vocabulary.org/Review-aggregate"> <div class="left"> <img src="' . store_avatar($item->image) . '" alt="" itemprop="photo" /> <span class="rating"><span style="width:' . $item->stars * 16 . 'px;"></span></span> <div itemprop="rating" itemscope itemtype="http://data-vocabulary.org/Rating"> <span itemprop="average" style="display: none;">' . number_format($item->stars, 2) . '</span> <span itemprop="best" style="display: none;">5</span> </div> <a href="' . $item->reviews_link . '"><span itemprop="votes">' . $item->reviews . '</span> reviews</a> </div> <div class="right"> <div class="title" itemprop="itemreviewed">' . $item->name . '</div> <div class="description">' . (!empty($item->description) ? nl2br($item->description) : 'no description') . '</div> <div class="links"> <a href="' . tlink('plugin/click.html', 'id=' . $item->ID) . '" target="_blank" class="btn open_site">Open website</a>'; if (me()) { if (is_favorite()) { echo '<a href="' . tlink('ajax/favorite.html', 'action=remFavorite&id=' . $item->ID, 'this') . '" class="btn remove_favorite">-Favorite</a>'; } else { echo '<a href="' . tlink('ajax/favorite.html', 'action=addFavorite&id=' . $item->ID, 'this') . '" class="btn add_favorite">+Favorite</a>'; }
<span class="site-name"><?php template_sitename() ?></span> | <a href="admin/"><?php echo ($test ? 'Admin Panel' : 'Log In' ); ?></a> | <a href="atom.php">Subscribe to Feed</a> | <a href="opml.php">OPML</a> </div> <div id="main"> <div id="wrapper"> <div id="content"> <h1 id="page-title"><?php /*the_page_title();*/ ?>Hello</h1> <div id="content-quicklinks"><?php /* Nothing yet */ ?></div> <ul> <?php // We call it with false as a parameter to avoid incrementing the item number if(has_items(false)) { while(has_items()): the_item(); ?> <li class="feed-<?php the_feed_id(); ?> item" id="item-<?php the_id(); ?>"> <div class="title-bar"> <div class="main-section"> <h3 class="title" id="title-<?php the_id(); ?>"><?php the_title(); ?></h3> <div class="excerpt"><p><?php the_summary(200) ?></p></div> <div class="read"><a href="<?php the_link(); ?>">Continue reading on the original site.</a></div> </div> <div class="secondary-section"> <span class="feed"><?php the_feed_name() ?></span> <span class="date"><?php the_date('format=l d F, Y H:i'); ?></span> </div> <div class="clearer"></div> </div>