Ejemplo n.º 1
0
function render_news($subject, $news, $info)
{
    global $locale, $data, $settings;
    echo !isset($_GET['readmore']) && $info['news_ext'] == "y" ? "<h2 class='posttitle'><a href='/news.php?readmore=" . $info['news_id'] . "'>" . strip_tags($subject) . "</a></h2>\n" : opentable($subject);
    ?>
<div class="postmeta"> <span><?php 
    echo showdate("%B %d, %Y", $info['news_date']);
    ?>
</span> <span class="i-cat">in <?php 
    echo substr(newscat($info), 18);
    ?>
 </span> <span class="i-aur">by <?php 
    echo profile_link($info['user_id'], $info['user_name'], $info['user_status']);
    ?>
</span> <span class="i-com"> <?php 
    echo $info['news_allow_comments'] && $settings['comments_enabled'] == "1" ? "<a href='news.php?readmore=" . $info['news_id'] . "#comments'>" . ($info['news_comments'] != 0 ? $info['news_comments'] : "") . ($info['news_comments'] == 1 || $info['news_comments'] == 0 ? $locale['global_073b'] : $locale['global_073']) . "</a>" : "";
    ?>
</span> </div>
<div class="post"> <?php 
    echo "{$news}\n";
    ?>
 </div>
<?php 
    closetable();
}
Ejemplo n.º 2
0
function render_news($subject, $news, $info)
{
    echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
    echo "<td class='capmain-left'></td>\n";
    echo "<td class='capmain'>" . $subject . "</td>\n";
    echo "<td class='capmain-right'></td>\n";
    echo "</tr>\n</table>\n";
    echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
    echo "<td class='main-body middle-border'>" . $info['cat_image'] . $news . "</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td align='center' class='news-footer middle-border'>\n";
    echo newsposter($info, " &middot;") . newscat($info, " &middot;") . newsopts($info, "&middot;") . itemoptions("N", $info['news_id']);
    echo "</td>\n";
    echo "</tr><tr>\n";
    echo "<td style='height:5px;background-color:#f6a504;'></td>\n";
    echo "</tr>\n</table>\n";
}
Ejemplo n.º 3
0
function render_news($subject, $news, $info)
{
    global $_GET;
    $image = "";
    $image = $info['cat_image'];
    echo "<a name='news_" . $info['news_id'] . "' id='news_" . $info['news_id'] . "'></a>\n";
    echo "<div class='news-item floatfix'>\n";
    echo "<div class='content'>\n";
    echo "<div class='image'>" . $image . "</div>\n";
    echo "<div class='info'>\n";
    echo "<span class='title'><a href='" . BASEDIR . "news.php?readmore=" . $info['news_id'] . "'>" . $info['news_subject'] . "</a></span>\n";
    echo "<span class='poster'>" . newsposter($info, "") . "</span>\n";
    echo "</div>\n";
    echo "<div class='subject'>" . $news . "</div>\n";
    echo "<div class='footer'>\n";
    echo "<span class='category'>" . newscat($info, " - ") . "</span>";
    echo "<span class='read-more'>" . newsopts($info, " - ") . "</span>";
    echo "</div>\n";
    echo "</div>\n";
    echo "<div class='clear'></div>\n";
    echo "</div>\n";
}