Пример #1
0
}
echo '</div>' . "\n";
?>

<ul id="nav">
<?php 
$order = $fof_prefs_obj->get('feed_order');
$direction = $fof_prefs_obj->get('feed_direction');
$sharing = $fof_prefs_obj->get('sharing');
/* these parameters control highlighting of the active view */
$what = fof_sidebar_get_key_($_GET, 'what', 'unread');
$what_a = explode(' ', $what);
$when = fof_sidebar_get_key_($_GET, 'when');
$search = fof_sidebar_get_key_($_GET, 'search');
$feed = fof_sidebar_get_key_($_GET, 'feed');
$feeds = fof_get_feeds(fof_current_user(), $order, $direction);
$unread = 0;
$starred = 0;
$total = 0;
$n = 0;
foreach ($feeds as $row) {
    $n++;
    $unread += fof_sidebar_get_key_($row, 'feed_unread', 0);
    $starred += fof_sidebar_get_key_($row, 'feed_starred', 0);
    $total += fof_sidebar_get_key_($row, 'feed_items', 0);
}
$page_title_js = 'Feed on Feeds';
if (!empty($unread)) {
    $page_title_js .= " ({$unread})";
}
?>
Пример #2
0
	</head>

<body id="panel-page">

<div id="feeds">

<?php 
$order = $_GET['order'];
$direction = $_GET['direction'];
if (!isset($order)) {
    $order = "title";
}
if (!isset($direction)) {
    $direction = "asc";
}
$feeds = fof_get_feeds($order, $direction);
foreach ($feeds as $row) {
    $n++;
    $unread += $row['unread'];
}
?>

<p><?php 
echo $n;
?>
 feeds, <?php 
echo $unread;
?>
 new items.</p>

<table cellspacing="0" cellpadding="1" border="0">
Пример #3
0
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="fof.css" media="screen" />
		<script src="fof.js" type="text/javascript"></script>
		<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
	</head>

	<body id="panel-page">

<?php 
readfile("panel-menu.html");
?>

<table class="feeds">

<?php 
$feeds = fof_get_feeds();
foreach ($feeds as $row) {
    $id = $row['id'];
    $url = $row['url'];
    $title = $row['title'];
    $link = $row['link'];
    $description = $row['description'];
    $age = fof_rss_age($row['url']);
    $unread = $row['unread'];
    $items = $row['items'];
    $agestr = $row['agestr'];
    if (++$t % 2) {
        print "<tr class=\"odd-row\">";
    } else {
        print "<tr>";
    }