Example #1
0
File: index.php Project: VSG24/ccms
    echo englishConvertDate($row['post_date']);
    ?>
</em></span><br>
            <?php 
}
?>
            <br><a href="<?php 
echo SITE_DOMAIN . 'news.php';
?>
" class="btn btn-info"><i class="mdi mdi-archive"></i>&nbsp;Archive</a><br><br>
        </div>
        <div style="text-align: left" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 div_white_left">
            <br>
            <article>
            <?php 
while ($row = $posts2->getPostsLoop(1)) {
    ?>
                <a href="<?php 
    echo $posts->getPostPermLink($row['ID'], $row['post_type'], $row['link_title']);
    ?>
"><h4 style="font-weight: bold;"><?php 
    echo strip_tags($row['post_title']);
    ?>
</h4></a>&nbsp;<span style="color: #808080;"><i style="vertical-align: middle;" class="mdi mdi-calendar"></i>&nbsp;<?php 
    echo englishConvertDate($row['post_date']);
    ?>
</span>
                <p><?php 
    echo $row['post_excerpt'];
    ?>
</p>
Example #2
0
function generatePagesSitemap()
{
    $sitemap = new Sitemap(SITE_DOMAIN);
    $sitemap->setPath(DOC_ROOT . '/');
    $sitemap->setFilename('page');
    $posts = new Posts();
    $sitemap->addItem('', '1.0', 'daily', 'Today');
    while ($row = $posts->getPostsLoop(null, 'page')) {
        $sitemap->addItem($posts->getPostPermLink($row['ID'], $row['post_type'], $row['link_title']), '0.8', 'weekly', $row['post_date']);
    }
    $sitemap->createSitemapIndex(SITE_DOMAIN, 'Today');
}
Example #3
0
File: news.php Project: VSG24/ccms
    <?php 
include_once 'sidebar.php';
?>

    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-md-offset-1 col-lg-offset-1 div_white_left">
        <br>
        <div style="text-align: center" class="search">
            <form action="<?php 
echo SITE_DOMAIN;
?>
search.php" method="GET">
                <input class="form-block" type="search" name="search_query">&nbsp;<input rel="search" type="submit" name="search_submit" class="btn btn-search" style="margin-bottom: 3px;" value="Search">
            </form>
        </div>
<?php 
while ($row = $posts->getPostsLoop()) {
    ?>
    <article class="post">
        <a href="<?php 
    echo $posts->getPostPermLink($row['ID'], $row['post_type'], $row['link_title']);
    ?>
"><h3 style="font-weight: bold;"><?php 
    echo strip_tags($row['post_title']);
    ?>
</h3></a>&nbsp;&nbsp;<span style="color: #808080;"><i style="vertical-align: middle;" class="mdi mdi-calendar"></i>&nbsp;<?php 
    echo englishConvertDate($row['post_date']);
    ?>
&nbsp;<i style="vertical-align: middle;" class="mdi mdi-file"></i>&nbsp;<?php 
    echo getCategoryById(getPostCategories($row['ID'])[0]);
    ?>
</span>