Beispiel #1
0
// Ricardo Galli <gallir at uib dot es>.
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
// 		http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".
include 'config.php';
include mnminclude . 'html1.php';
include mnminclude . 'geo.php';
geo_init('onLoad', false, 2);
array_push($globals['extra_js'], 'markermanager.js');
do_header(_('mapa de las últimas noticias') . ' | ' . _('menéame'));
do_tabs('main', 'map');
/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_banner_right();
do_vertical_tags();
echo '</div>' . "\n";
/*** END SIDEBAR ***/
echo '<div id="newswrap">' . "\n";
echo '<div class="topheading"><h2>' . _('noticias de las últimas 24 horas') . '</h2></div>';
echo '<div style="margin:0 0 10px 20px; text-align:center">';
echo '<form action="" id="map-control" name="map-control">';
echo '<label>' . _('publicadas') . '&nbsp;<img src="' . $globals['base_static'] . 'img/geo/common/geo-published01.png" width="20" height="25" alt="' . _('publicadas') . '" title="' . _('publicadas') . '"/><input type="checkbox" checked="checked"  id="published" onclick="toggle(\'published\')" /></label>';
echo '&nbsp;&nbsp;&nbsp;';
echo '<label>' . _('pendientes') . '&nbsp;<img src="' . $globals['base_static'] . 'img/geo/common/geo-new01.png" width="20" height="25" alt="' . _('pendientes') . '" title="' . _('pendientes') . '"/><input type="checkbox" checked="checked"  id="queued" onclick="toggle(\'queued\')" /></label>';
echo '&nbsp;&nbsp;&nbsp;';
echo '<label>' . _('autores') . '&nbsp;<img src="' . $globals['base_static'] . 'img/geo/common/geo-user01.png" width="20" height="25" alt="' . _('autores') . '" title="' . _('autores') . '"/><input type="checkbox"  id="author" onclick="toggle(\'author\')" /></label>';
echo '</form>';
echo '</div>';
echo '<div id="map" style="width: 95%; height: 500px;margin:0 0 0 20px"></div></div>';
?>
Beispiel #2
0
function do_tags_comments()
{
    global $globals;
    do_vertical_tags();
    do_best_comments();
}
Beispiel #3
0
	print_index_tabs(0); // No other view
	$from_where = "FROM links WHERE link_status='published' ";
}

do_mnu_categories_horizontal($_REQUEST['category']);

/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_banner_right();
if ($globals['show_popular_published']) do_best_stories();
do_best_sites();
do_categories_cloud('published');
if ($page < 2) {
	do_best_comments();
}
do_vertical_tags('published');
do_banner_promotions();
echo '</div>' . "\n";
/*** END SIDEBAR ***/

echo '<div id="newswrap">'."\n";

if($cat) {
	$from_where .= " AND link_category=$cat ";
}
$order_by = " ORDER BY link_date DESC ";

$link = new Link;
$rows = $db->get_var("SELECT SQL_CACHE count(*) $from_where");

$links = $db->get_col("SELECT SQL_CACHE link_id $from_where $order_by LIMIT $offset,$page_size");
Beispiel #4
0
}


do_header(_('noticias pendientes') . ' | ' . _('menéame'));
do_tabs("main","shakeit");
print_shakeit_tabs($tab);

do_mnu_categories_horizontal($_REQUEST['category']);

/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_banner_right();
if ($globals['show_popular_queued']) do_best_queued();
//do_best_comments();
do_categories_cloud('queued', 24);
do_vertical_tags('queued');
echo '</div>' . "\n";
/*** END SIDEBAR ***/


echo '<div id="newswrap">'."\n";

$links = $db->get_col("SELECT SQL_CACHE link_id $from_where $order_by LIMIT $offset,$page_size");
if ($links) {
	foreach($links as $link_id) {
		$link = Link::from_db($link_id);
		if ($link->votes == 0 && $link->author != $current_user->user_id) continue;
		if ($offset < 1000) {
			$link->print_summary('full', 16);
		} else {
			$link->print_summary('full');