Пример #1
0
function list_blogs()
{
    $feeds = list_feeds();
    for ($n = 0; $n < count($feeds); $n++) {
        $blog = $feeds[$n];
        $feed_link = " <small><a href=\"{$blog['feedUrl']}\" class=\"feed\">Feed</a></small>";
        echo "<li><a href=\"{$blog['pageUrl']}\" title=\"{$blog['description']}\">{$blog['title']}</a>{$feed_link}</li>";
    }
}
Пример #2
0
function list_blogs()
{
    $feeds = list_feeds();
    for ($n = 0; $n < count($feeds); $n++) {
        $blog = $feeds[$n];
        $feed_link = " <a href=\"{$blog['feedUrl']}\" class=\"feed-link\">&#8594;Feed</a>";
        echo "<li><a href=\"{$blog['pageUrl']}\" title=\"{$blog['description']}\">{$blog['title']}</a>{$feed_link}</li>";
        if ($n % 4 == 0 && $n != 0) {
            echo "</ul></div><div class=\"row\"><ul>";
        }
    }
}
Пример #3
0
<?php

header("Content-Type: text/xml");
require_once 'inc/simplepie/idn/idna_convert.class.php';
require_once 'inc/simplepie/simplepie.inc';
require_once 'config.php';
require_once 'planetoid.php';
$feeds_list = list_feeds();
?>
<!-- Generated by Planetoid <?php 
echo PLANETOID_VERSION;
?>
.<?php 
echo PLANETOID_REVISION;
?>
 -->
<opml version="1.0">
	<head>
		<title>Blogs aggregated on <?php 
echo get_title();
?>
</title>
		<dateCreated><?php 
echo last_refresh();
?>
</dateCreated>
	</head>
	<body>
<?php 
for ($n = 0; $n < count($feeds_list); $n++) {
    $feed = $feeds_list[$n];
Пример #4
0
<?php 
}
?>
	</div>
</div>

<?php 
if (has_feeds()) {
    ?>
<div id="sources">
	<h3><?php 
    _e('Sources');
    ?>
</h3>
	<ul><?php 
    list_feeds('format=<li><a href="%1$s">%3$s</a> <a href="%4$s" class="feed-link">(' . _r('Feed') . ")</a></li>\n");
    ?>
	</ul>
	<div class="clearer">&nbsp;</div>
</div>
<?php 
} else {
    //Already handled above; if there are no feeds, then there should be no items...
}
?>
<div id="footer">
<p><?php 
printf(_r('%s is proudly powered by <a href="http://getlilina.org/">Lilina News Aggregator</a>'), get_option('sitename'));
?>
</p>
<!-- <?php 
Пример #5
0
?>
			</ul>
		</div>
	</div>
</div>


<div id="sidebar">
	<ul>
		<?php 
if (has_feeds()) {
    ?>
		<li id="sources"><h3>Sources</h3>
			<ul>
				<?php 
    list_feeds('title_length=35&format=<li><a href="%1$s"><img class="icon" src="%2$s" /><span class="title">%3$s</span></a></li>');
    ?>
			</ul>
		</li>
		<?php 
}
?>
		<li>Powered by <a href="http://getlilina.org/">Lilina News Aggregator</a></li>
	</ul>
</div>

<?php 
template_footer();
?>
<!-- Generated in: <?php 
global $timer_start;
Пример #6
0
</p>
</div>
</div>
<?php 
    $notfirst = true;
}
?>

<div class="sidebar">
<img src="admin/logo-small.png" width="136" id="logo" />

<h2>Subscriptions</h2>
<ul>
<?php 
list_feeds('format=<li>
<a href="%4$s" title="subscribe"><img src="%2$s" alt="(feed)" height="16" width="16"></a> <a href="%1$s">%3$s</a>
</li>');
?>
</ul>

<p>
<strong>Last Updated:</strong><br />
<?php 
echo date('F d y h:m:s A');
?>
<br />
<em>All times are UTC.</em><br />
<br />
Powered by <a href="http://getlilina.org/">Lilina</a>. <a href="admin/">Admin</a>.
</p>
Пример #7
0
}
?>
		</ul>
	</div> <!-- #main -->

<?php 
if (has_feeds()) {
    ?>
	<div id="sources">
		<h2><?php 
    _e('Sources', 'watchorn');
    ?>
</h2>
		<ol class="xoxo">
			<?php 
    list_feeds('format=<li class="source"><a href="%1$s" class="source-link">%3$s</a> <ul><li><a href="%4$s" class="source-feed">' . _r('Feed') . "</a></li></ul></li>\n\t\t");
    ?>
		</ol>
	</div> <!-- #sources -->
<?php 
}
?>

	<div id="footer">
		<span id="generator-link"><a href="http://getlilina.org/" title="Lilina" rel="generator">Lilina</a></span>
		<span class="meta-sep">|</span>
		<span id="theme-link"><a href="http://getlilina.org/docs/template:watchorn" title="<?php 
_e('Watchorn theme for Lilina', 'watchorn');
?>
" rel="designer"><?php 
_e('Watchorn', 'watchorn');
Пример #8
0
</p>
</div>
</div>
<?php 
    $notfirst = true;
}
?>

<div class="sidebar">
<img src="admin/logo-small.png" width="136" alt="">

<h2>Subscriptions</h2>
<ul>
<?php 
list_feeds('format=<li>
<a href="%4$s" title="subscribe"><img src="' . get_template_directory() . '/images/feed.png" alt="(feed)"></a> <a href="%1$s">%3$s</a>
</li>');
?>
</ul>

<p>
<strong>Last Updated:</strong><br />
<?php 
echo date('F d y h:m:s A');
?>
<br />
<em>All times are UTC.</em><br />
<br />
Powered by <a href="http://getlilina.org/">Lilina</a>. <a href="admin/">Admin</a>.
</p>
Пример #9
0
function link_feeds()
{
    $feeds = list_feeds();
    $html = '';
    for ($n = 0; $n < count($feeds); $n++) {
        $feed = $feeds[$n];
        $url = $feed['feedUrl'];
        $title = $feed['title'];
        $type = $feed['type'];
        $html .= "\t\t" . link_to_feed($url, $title, $type) . "\n";
    }
    echo $html;
}