%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/elements/layout_3/
Upload File :
Create Path :
Current File : //home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/elements/layout_3/index.php

<div id="stb_container" class="stb-container">
	<?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_3/includes/toolbar.php'; ?>
	<div class="stb-blog-list">
		<?php
		if(!empty($tpl['arr'])){
			?>
			<div id="stb_blog_list" class="stb-blog-list-inner">
				<?php
				$i = 1;
				foreach($tpl['arr'] as $v){
					
					if ($tpl['option_arr']['o_seo_url'] == 'No')
					{
						$detail_url = $_SERVER['SCRIPT_NAME'] . '?controller=pjLoad&amp;action=pjActionView&amp;id=' . $v['id'] .(isset($_GET['iframe']) ? '&amp;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_480.png';
					if(!empty($v['medium_path'])){
						$image_url = PJ_INSTALL_URL . $v['medium_path'];
					}
					?>
					<div class="stb-blog-box">
						<div class="stb-blog-inner-box">
							<div class="stb-image-container" lang="<?php echo $v['id']; ?>">
								<img class="blog-img" src="<?php echo $image_url; ?>" />
								<div id="stb_blog_overlay_<?php echo $v['id'];?>" class="stb-blog-overlay">
									<div class="blog-description"><?php echo pjUtil::truncateDescription(pjUtil::html2txt($v['body']), 300, ' ');?></div>
									<a id="stb_blog_reading_<?php echo $v['id'];?>" class="continue-reading" href="<?php echo $detail_url; ?>"><?php __('label_continue_reading', false, true);?></a>
									<div class="stb-clear_both"></div>
									<div class="comments"><span><?php echo $v['cnt_comments']; ?></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>
							</div>
							<div class="post-title">
								<label><?php echo pjUtil::truncateDescription(pjSanitize::html($v['title']), 40, ' ');?></label>
								<span><abbr class="date"><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['published_date'])), 'Y-m-d', $tpl['option_arr']['o_date_format']); ?></abbr>&nbsp;<?php __('label_by'); ?>&nbsp;<?php echo pjSanitize::html($v['name']);?></span>
							</div>
						</div>
					</div>
					<?php
					$i++;
				}
				?>
			</div>
			<?php
			include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_3/includes/paginator.php';
		}else{
			__('label_no_post');
		} 
		?>
	</div>
</div>

Zerion Mini Shell 1.0