%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/view.php

<div id="stb_container" class="stb-container">
	<?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_3/includes/toolbar.php'; ?>
	
	<div id="stb_detail_container" class="stb-detail-container">
		<?php
		if (@$_GET['controller'] == 'pjLoad' && @$_GET['action'] == 'pjActionView')
		{
			$back = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : $_SERVER['PHP_SELF'] .'?controller=pjLoad&amp;action=pjActionIndex'. (isset($_GET['iframe']) ? '&amp;iframe' : NULL);
			?>
			<div class="stb-back"><a href="<?php echo $back;?>"><abbr></abbr><span><?php __('label_back');?></span></a></div>
			<?php
		}

		if(isset($tpl['arr']))
		{
			$title = pjSanitize::html(stripslashes($tpl['arr']['title']));
			$minus_name = $controller->friendlyURL($title, '-');
			$plus_name = str_replace('-', "+", $minus_name);
			$url = str_replace("&", "%26", pjUtil::getPageURL()); 
			?>
			
			<div class="stb-inner-detail">
				<div class="heading">
					<div class="heading-left">
						<label class="title"><?php echo $title;?></label>
						<div class="author">
							<label><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($tpl['arr']['published_date'])), 'Y-m-d', $tpl['option_arr']['o_date_format']); ?></label>&nbsp;<?php __('label_by'); ?>&nbsp;<span><?php echo $tpl['arr']['name'];?></span>
						</div>
					</div>
					<div class="heading-right">
						<div class="stb-post-stat">
							<div class="comments"><?php echo $tpl['arr']['cnt_comments']; ?></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 $tpl['arr']['id'];?>">
										<span class="post-rating" >
											<select name="rate">
												<?php
												$avg = floor($tpl['arr']['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 $tpl['arr']['id'];?>" class="rating-label"><?php echo number_format(round($tpl['arr']['avg_rate'], 2), 2) ;?> <?php __('label_of', false, true);?> <?php echo intval($tpl['arr']['cnt']);?> <?php __('label_votes', false, true);?></span>
									</form>
								</div>
								<?php
							} 
							?>
						</div>
					</div>
				</div><!-- heading -->
				<div class="stb-description">
					<?php
					$pin_image = '';
					if(!empty($tpl['arr']['source_path'])){
						$image_url = PJ_INSTALL_URL . $tpl['arr']['source_path'];
						$pin_image = PJ_INSTALL_URL . $tpl['arr']['medium_path'];
						?><img class="post-image" src="<?php echo $image_url;?>" /><?php
					} 
					echo stripslashes($tpl['arr']['body']);
					$short_description = pjUtil::truncateDescription(pjUtil::html2txt($tpl['arr']['body']), 90, ' ');
					?>
				</div>
				<div class="stb-sharing-container">
					<?php
					if($tpl['option_arr']['o_send_to_friend'] == 'Yes'){  
						?>
						<div class="stb-send-to-friend">
							<a class="stb-send-to" href="javascript:void(0);"><?php __('label_send_to_friend', false, true);?></a>
							<a class="stb-scrollup" href="javascript:void(0);"><?php __('label_back_to_top', false, true);?></a>
							<div class="stb-social-sharing">
								<a class="facebook" href="http://www.facebook.com/sharer.php?u=<?php echo $url;?>&t=<?php echo $plus_name;?>" target="_blank"></a>
								<a class="twitter" href="https://twitter.com/intent/tweet?source=webclient&text=<?php echo $plus_name; ?>&url=<?php echo $url?>" target="_blank"></a>
								<a class="pinterest" href="http://pinterest.com/pin/create/button/?url=<?php echo $url; ?>&media=<?php echo $pin_image;?>&description=<?php echo $short_description;?>" target="_blank" data-pin-do="buttonPin" data-pin-config="above"></a>
								<a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url?>&title=<?php echo $plus_name; ?>&source=<?php echo $url?>" target="_blank"></a>
								<a class="google" href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php echo $url;?>" target="_blank" ></a>
							</div>
						</div>
						<div id="stb_send_form" class="stb-send-form">
							<form id="frmSendToFriend" class="stb-form">
								<input type="hidden" name="id" value="<?php echo intval($tpl['arr']['id']);?>" />
								
								<p>
									<input name="send_to" class="stb-text required email" placeholder="<?php __('label_email');?>"/>
								</p>
								<p>
									<input name="subject" class="stb-text required" placeholder="<?php __('label_subject');?>"/>
								</p>
								<p>
									<textarea name="message" class="stb-textarea required stb-h120" placeholder="<?php __('front_enter_message');?>"><?php echo pjUtil::getPageURL(); ?></textarea>
								</p>
								<p>
									<span class="stb-block stb-overflow">
										<input name="captcha" class="stb-text stb-captcha required" maxlength="6" placeholder="<?php __('front_enter_captcha');?>"/>
										<img id="stb_captcha_image" src="<?php echo PJ_INSTALL_FOLDER; ?>index.php?controller=pjFront&amp;action=pjActionCaptchaSend&amp;rand=<?php echo rand(1, 999999); ?>" alt="Captcha" class="stb-block stb-float-left" />
									</span>
								</p>
								<p id="stb_send_message" class="stb-send-message"></p>
								<p>
									<input type="button" name="" value="<?php __('button_send', false, true);?>" class="stb-button stb-send-button"/>
									<input type="button" name="" value="<?php __('button_cancel', false, true);?>" class="stb-button stb-cancel-button"/>
								</p>
							</form>
						</div>
						<?php
					}
					?>
				</div>
				<div class="stb-comment-container">
					<div class="heading"><?php echo $tpl['arr']['cnt_comments']; ?>&nbsp;<?php echo $tpl['arr']['cnt_comments'] == 1 ? __('label_comment', true, false) : __('label_comments', true, false);?></div>
					<div class="stb-comment-list">
						<?php
						if(!empty($tpl['comment_arr'])){
							foreach($tpl['comment_arr'] as $v){
								?>
								<div class="comment-box">
									<div class="author">
										<label><?php echo $v['name']?></label>
										<span><abbr><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['created'])), 'Y-m-d', $tpl['option_arr']['o_date_format'])?></abbr><abbr><?php echo pjUtil::formatTime(date('H:i:s', strtotime($v['created'])), 'H:i:s', $tpl['option_arr']['o_time_format']); ?></abbr></span>
									</div>
									<div class="comment-text">
										<?php echo nl2br(pjSanitize::clean($v['comment']));?>
									</div>
								</div>
								<?php
							}
						} else {
							?><label class="stb-no-comment"><?php __('label_comment_not_found', false, true);?></label><?php
						}
						?>
					</div>
					<?php
					if($tpl['option_arr']['o_allow_posting_comment'] == 'Yes'){ 
						?>
						<div id="stb_comment_form" class="stb-comment-form">
							<?php
							if(isset($_GET['err'])){
								$error_message = __('post_messages', true, false);
								if($_GET['err'] != '9999' && $_GET['err'] != '9998'){
									?><div class="std-comment-error"><?php echo $error_message[$_GET['err']]; ?></div><?php
								}else{
									?><div class="std-comment-message"><?php echo $error_message[$_GET['err']]; ?></div><?php
								}
							}
							if ($tpl['option_arr']['o_seo_url'] == 'No')
							{
								$detail_url = $_SERVER['SCRIPT_NAME'] . '?controller=pjLoad&amp;action=pjActionView&amp;id=' . $tpl['arr']['id'] .(isset($_GET['iframe']) ? '&amp;iframe' : NULL);
							} else {
								$path = str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME']));
								$path = $path == '/' ? '' : $path;
								$detail_url = $path .'/'. $controller->friendlyURL($tpl['arr']['title']) . "-". $tpl['arr']['id'] . ".html";
							} 
							?>
							<form id="frmPostComment" name="frmPostComment" action="<?php echo $detail_url; ?>" method="post" class="stb-form">
								<input type="hidden" name="post_comment" value="1" />
								<input type="hidden" name="post_id" value="<?php echo $tpl['arr']['id'];?>" />
								<input type="hidden" name="category_id" value="<?php echo $tpl['arr']['category_id'];?>" />
								
								<p>
									<label class="stb-form-title"><?php echo strtoupper(__('label_name', true, false));?></label>
									<input name="name" class="stb-text required" />
								</p>
								<p>
									<label class="stb-form-title"><?php echo strtoupper(__('label_email', true, false));?></label>
									<input name="email" class="stb-text required email"/>
								</p>
								<p>
									<label class="stb-form-title"><?php echo strtoupper(__('label_comment', true, false));?></label>
									<textarea name="comment" class="stb-textarea required stb-h170"></textarea>
								</p>
								<p>
									<label class="stb-form-title"><?php echo strtoupper(__('label_captcha', true, false));?></label>
									<span class="stb-block stb-overflow">
										<input name="captcha" class="stb-text stb-captcha required" maxlength="6"/>
										<img src="<?php echo PJ_INSTALL_FOLDER; ?>index.php?controller=pjFront&amp;action=pjActionCaptcha&amp;rand=<?php echo rand(1, 999999); ?>" alt="Captcha" class="stb-block stb-float-left" />
									</span>
								</p>
								<p>
									<input type="submit" name="" value="<?php __('button_post_comment', false, true);?>" class="stb-button"/>
								</p>
							</form>
						</div>
						<?php
					} 
					?>
				</div><!-- comment container -->
			</div>
			<?php
		}else{
			__('label_post_not_found');
		} 
		?>
	</div>
</div>

Zerion Mini Shell 1.0