Exemple #1
0
<?php

/*
 * This file is part of FEED ON FEEDS - http://feedonfeeds.com/
 *
 * item.php - renders a single item (useful for Ajax)
 *
 *
 * Copyright (C) 2004-2007 Stephen Minutillo
 * steve@minutillo.com - http://minutillo.com/steve/
 *
 * Distributed under the GPL - see LICENSE
 *
 */
include_once "fof-main.php";
include_once "fof-render.php";
fof_set_content_type();
$row = fof_get_item(fof_current_user(), $_GET['id']);
/* show item without its enclosing div */
fof_render_item($row, false);
Exemple #2
0
<?php

/*
 * This file is part of FEED ON FEEDS - http://feedonfeeds.com/
 *
 * item.php - renders a single item (useful for Ajax)
 *
 *
 * Copyright (C) 2004-2007 Stephen Minutillo
 * steve@minutillo.com - http://minutillo.com/steve/
 *
 * Distributed under the GPL - see LICENSE
 *
 */
include_once "fof-main.php";
include_once "fof-render.php";
fof_set_content_type();
$row = fof_get_item(fof_current_user(), $_GET['id']);
fof_render_item($row);
Exemple #3
0
<!-- close this form to fix first item! -->
		<form id="itemform" name="items" action="view-action.php" method="post" onSubmit="return false;">
		<input type="hidden" name="action" />
		<input type="hidden" name="return" />

<?php 
$links = fof_get_nav_links($feed, $what, $when, $which, $howmany, $search, $itemcount);
$links = ($links ? '<div class="pagination-nav">' : '') . $links . ($links ? "</div>\n" : '');
echo $links;
$items = fof_get_items(fof_current_user(), $feed, $what, $when, $which, $howmany, $order, $search);
if (!empty($items)) {
    list($first_item) = $items;
    echo "<script>firstItem = 'i" . $first_item['item_id'] . "';</script>\n";
    foreach ($items as $item) {
        fof_render_item($item, true);
    }
} else {
    echo "<p><i>No items found.</i></p>\n";
}
?>
<div id="end-of-items"></div>
		</form>


<?php 
echo $links;
?>

<script>itemElements = $$('.item');</script>