コード例 #1
0
ファイル: index.php プロジェクト: manelio/woolr
    //$conversation_extra = ' ['.Post::get_unread_conversations($user->id).']';
    $conversation_extra = ' [<span id="p_c_counter">0</span>]';
    $view = 0;
    $options = array(_('todas') => post_get_base_url(''), _('amigos') => post_get_base_url("{$current_user->user_login}/_friends"), _('favoritos') => post_get_base_url("{$current_user->user_login}/_favorites"), _('conversación') . $conversation_extra => post_get_base_url("{$current_user->user_login}/_conversation"), _('últimas imágenes') => "javascript:fancybox_gallery('post');", _('debates') . '&nbsp;&rarr;' => $globals['base_url'] . "between?type=posts&amp;u1={$current_user->user_login}");
} else {
    $options = false;
}
do_post_subheader($options, $view, $rss_option);
/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_banner_right();
//do_best_stories();
if ($rows > 20) {
    do_best_posts();
    do_best_comments();
    do_last_subs('published');
    do_last_blogs();
}
do_banner_promotions();
echo '</div>' . "\n";
/*** END SIDEBAR ***/
echo '<div id="newswrap"><!-- sneakme/index.php -->' . "\n";
do_pages($rows, $page_size);
echo '<div class="notes">';
if ($current_user->user_id > 0) {
    echo '<div id="addpost"></div>';
    echo '<ol class="comments-list"><li id="newpost"></li></ol>' . "\n";
}
if ($argv[0] == '_geo') {
    echo '<div class="topheading"><h2>' . _('notas de las últimas 24 horas') . '</h2></div>';
    echo '<div id="map" style="width: 95%; height: 500px;margin:0 0 0 20px;"></div></div>';
コード例 #2
0
ファイル: topstories.php プロジェクト: GallardoAlba/Meneame
            }
            memcache_madd($memcache_key . 'rows', $rows, $ttl);
            memcache_madd($memcache_key, serialize($links), $ttl);
        }
    }
}
do_header(_('más votadas') . ' | ' . $globals['site_name'], _('populares'));
$globals['tag_status'] = 'published';
do_tabs('main', 'popular');
print_period_tabs();
/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_banner_right();
do_active_stories();
do_banner_promotions();
do_last_subs('published', 5, 'link_votes');
do_best_comments();
do_vertical_tags('published');
echo '</div>' . "\n";
/*** END SIDEBAR ***/
echo '<div id="newswrap">' . "\n";
if ($links) {
    $counter = 0;
    foreach ($links as $dblink) {
        $link = Link::from_db($dblink->link_id);
        $link->show_clicks = true;
        $link->print_summary();
        $counter++;
        Haanga::Safe_Load('private/ad-interlinks.html', compact('counter', 'page_size'));
    }
}
コード例 #3
0
ファイル: shakeit.php プロジェクト: GallardoAlba/Meneame
        break;
}
$pagetitle = _('noticias pendientes');
if ($page > 1) {
    $pagetitle .= " ({$page})";
}
do_header($pagetitle, _('nuevas'));
print_shakeit_tabs($tab);
/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_sub_message_right();
do_banner_right();
if ($globals['show_popular_queued']) {
    do_best_queued();
}
do_last_subs('queued', 15, 'link_karma');
//do_last_blogs();
//do_best_comments();
//do_categories_cloud('queued', 24);
do_vertical_tags('queued');
echo '</div>' . "\n";
/*** END SIDEBAR ***/
echo '<div id="newswrap">' . "\n";
$sql = "SELECT" . Link::SQL . "INNER JOIN (SELECT link FROM sub_statuses {$from} WHERE {$where} {$order_by} LIMIT {$offset},{$page_size}) as ids on (ids.link = link_id)";
$links = $db->object_iterator($sql, "Link");
if ($links) {
    foreach ($links as $link) {
        if ($link->votes == 0 && $link->author != $current_user->user_id) {
            continue;
        }
        $link->max_len = 600;