Пример #1
0
$posts->handlePostViewsById(URI::getPageId());
?>
        <?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">
            <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>
                <p><?php 
echo $row['post_excerpt'];
?>
</p>
                <p><?php 
echo $row['post_content'];
?>
</p>
                <?php 
if (Users::getUsernameBySeassion() !== false && Users::isAdmin(Users::getUsernameBySeassion())) {
Пример #2
0
">
        </div>
        <div class="col-xs-4 col-sm-8 col-md-4 col-lg-4">
            <h3><?php 
_e('today_visitors', '', ':');
?>
</h3><?php 
echo getTodayVisitorsCount();
?>
            <br>
            <h3>Today:</h3>
            <?php 
if (Language == 'en') {
    ?>
            <span><?php 
    echo englishConvertDate();
    ?>
</span>&nbsp;&nbsp;<span id="time"></span>
            <?php 
} elseif (Language == 'fa') {
    ?>
            <span dir="rtl"><?php 
    echo iranianConvertDate(null, true);
    ?>
</span>&nbsp;&nbsp;<span id="time"></span>
            <?php 
}
?>
        </div>
        <div class="col-xs-4 col-sm-8 col-md-4 col-lg-4">
        </div>
Пример #3
0
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-md-offset-4 col-lg-offset-4">
    <h3><i class="mdi mdi-forum"></i>&nbsp;Comments:</h3><br>
    <div id="comments">
        <?php 
$comment_status = $row['comment_status'];
?>
        <?php 
while ($row = $comments->getCommentsLoop()) {
    ?>
            <p><em><?php 
    echo Users::getUserById($row['user_id'])['username'];
    ?>
</em> on <span class="help-block" style="display: inline;"><?php 
    echo englishConvertDate($row['date']);
    ?>
</span> said:</p>
            <div><?php 
    echo $row['content'];
    ?>
</div><br>
        <?php 
}
?>
    </div>
    <script src="<?php 
echo THEME_BASE;
?>
js/spin.min.js"></script>
    <script src="<?php 
echo THEME_BASE;
?>