$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> <span style="color: #808080;"><i style="vertical-align: middle;" class="mdi mdi-calendar"></i> <?php echo englishConvertDate($row['post_date']); ?> <i style="vertical-align: middle;" class="mdi mdi-file"></i> <?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())) {
"> </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> <span id="time"></span> <?php } elseif (Language == 'fa') { ?> <span dir="rtl"><?php echo iranianConvertDate(null, true); ?> </span> <span id="time"></span> <?php } ?> </div> <div class="col-xs-4 col-sm-8 col-md-4 col-lg-4"> </div>
<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> 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; ?>