%PDF- %PDF-
Direktori : /home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/elements/layout_1/ |
Current File : //home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/elements/layout_1/index.php |
<div id="stb_container" class="stb-container"> <?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_1/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"> <div class="stb-blog-inner-box"> <div class="inner-box"> <a href="<?php echo $detail_url; ?>"><img class="blog-img" src="<?php echo $image_url; ?>" /></a> <div class="stb-overflow stb-b5"> <div class="date"><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['published_date'])), 'Y-m-d', $tpl['option_arr']['o_date_format']); ?></div> <div class="comments<?php echo $v['cnt_comments'] > 0 ? ' comment-red' : null; ?>"><span><?php echo $v['cnt_comments']; ?></span></div> </div> <div class="post-title"> <label><?php echo pjUtil::truncateDescription(pjSanitize::html($v['title']), 24, ' ');?></label> <?php __('label_by');?> <span><?php echo pjSanitize::html($v['name']);?></span> </div> <?php if($tpl['option_arr']['o_show_rating'] == 'Yes'){ ?> <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 class="button"><a class="continue-reading" href="<?php echo $detail_url; ?>"><?php __('label_continue_reading', false, true);?></a></div> </div> </div> </div> <?php } ?> </div> <?php if (isset($tpl['paginator'])){ $page = 1 ; $query_string = $_SERVER['QUERY_STRING']; if(empty($query_string)){ $query_string = "controller=pjLoad&action=pjActionIndex"; } if(isset($_GET['pjPage'])){ $page = $_GET['pjPage']; $query_string = str_replace("&pjPage=" . $page, "", $query_string); } $query_string = str_replace("pjActionIndex", "pjActionLoadMore", $query_string); if($page < $tpl['paginator']['pages']){ ?> <a class="stb-load-more" href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $query_string;?>" rev="<?php echo $tpl['paginator']['pages']; ?>" rel="<?php echo $page + 1; ?>"><?php __('label_load_more', false, true);?></a> <form name="frmLoadMore" action="#" method="post"> <?php if(isset($_GET['dosearch'])) { ?><input type="hidden" name="dosearch" value=""><?php } if(isset($_GET['keyword'])) { ?><input type="hidden" name="keyword" value="<?php echo $_GET['keyword'];?>"><?php } if(isset($_GET['category_id'])) { ?><input type="hidden" name="category_id" value="<?php echo $_GET['category_id'];?>"><?php } ?> <input type="hidden" name="script_name" value="<?php echo $_SERVER['SCRIPT_NAME'];?>"> </form> <?php } } } else { ?><br/><?php __('label_no_post'); } ?> </div> </div>