%PDF- %PDF-
Direktori : /home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/elements/layout_2/ |
Current File : //home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/elements/layout_2/index.php |
<div id="stb_container" class="stb-container"> <?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_2/includes/toolbar.php'; ?> <div class="stb-blog-list"> <?php if(!empty($tpl['arr'])){ ?> <div id="stb_blog_list" class="stb-blog-list-inner"> <?php foreach($tpl['arr'] as $v){ if ($tpl['option_arr']['o_seo_url'] == 'No') { $detail_url = $_SERVER['SCRIPT_NAME'] . '?controller=pjLoad&action=pjActionView&id=' . $v['id'] .(isset($_GET['iframe']) ? '&iframe' : NULL); } else { $path = str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME'])); $path = $path == '/' ? '' : $path; $detail_url = $path .'/'. $controller->friendlyURL($v['title']) . "-". $v['id'] . ".html"; } $image_url = PJ_INSTALL_URL . PJ_IMG_PATH . 'frontend/no_image.png'; if(!empty($v['thumb_path'])){ $image_url = PJ_INSTALL_URL . $v['thumb_path']; } ?> <div class="stb-blog-box stb-blog-row" lang="<?php echo $v['id']; ?>"> <div class="inner-box"> <div class="narrow-heading"> <div class="stb-blog-title"> <div class="category"><?php echo pjSanitize::clean($v['category']); ?></div> </div> <div class="stb-blog-comment"> <div class="comments"><?php echo $v['cnt_comments']; ?></div><div class="stb-clear_both"></div> </div> </div> <div class="stb-clear_both"></div> <div class="stb-blog-detail"> <div class="blog-img"> <a href="<?php echo $detail_url; ?>"><img class="blog-img" src="<?php echo $image_url; ?>" /></a> </div> <div class="blog-detail"> <div class="wide-heading"> <div class="stb-blog-title"> <div class="category"><?php echo pjSanitize::clean($v['category']); ?></div> </div> <div class="stb-blog-comment"> <div class="comments"><?php echo $v['cnt_comments']; ?></div> </div> </div> <label class="title"><?php echo pjSanitize::html($v['title']);?></label> <div class="author"><?php __('label_by', false, true);?> <span><?php echo $v['name']; ?></span> <?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['published_date'])), 'Y-m-d', $tpl['option_arr']['o_date_format']); ?></div> <div class="blog-description"><?php echo pjUtil::truncateDescription(pjUtil::html2txt($v['body']), 140, ' ');?></div> </div> </div> </div> <div id="stb_blog_overlay_<?php echo $v['id'];?>" class="stb-blog-overlay"> <a id="stb_blog_reading_<?php echo $v['id'];?>" class="continue-reading" href="<?php echo $detail_url; ?>"><?php __('label_continue_reading', false, true);?></a> <?php if($tpl['option_arr']['o_show_rating'] == 'Yes'){ ?> <div style="clear: both;"></div> <div class="rating-container"> <form action="#" method="post"> <input type="hidden" name="post_id" value="<?php echo $v['id'];?>"> <span class="post-rating" > <select name="rate"> <?php $avg = floor($v['avg_rate']); for ($j=1; $j<=5; $j++) { ?> <option value="<?php echo $j;?>" <?php echo ($avg == $j) ? 'selected="selected"' : '';?>><?php echo $j;?></option> <?php } ?> </select> </span> <span id="rating_message_<?php echo $v['id'];?>" class="rating-label"><?php echo number_format(round($v['avg_rate'], 2), 2) ;?> <?php __('label_of', false, true);?> <?php echo intval($v['cnt']);?> <?php __('label_votes', false, true);?></span> </form> </div> <?php } ?> </div> </div> <?php } ?> </div> <?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_2/includes/paginator.php'; }else{ __('label_no_post'); } ?> </div> </div>