%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/view.php |
<div id="stb_container" class="stb-container"> <?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_1/includes/toolbar.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 id="stb_detail_container" class="stb-detail-container<?php echo empty($tpl['related_arr']) ? ' stb-no-relative' : null; ?>"> <div class="stb-inner-detail"> <label class="post-title"><?php echo $title;?></label> <div class="stb-statistics"> <div class="date"><span><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($tpl['arr']['published_date'])), 'Y-m-d', $tpl['option_arr']['o_date_format']); ?> </span><?php __('label_by');?> <label><?php echo $tpl['arr']['name']?></label></div> <div class="right"> <div class="comments<?php echo $tpl['arr']['cnt_comments'] > 0 ? ' comment-red' : null; ?>"><span><?php echo $tpl['arr']['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 $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 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> <?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);"><span><?php __('label_send_to_friend', false, true);?></span><abbr></abbr></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://plus.google.com/share?url=<?php echo $url;?>&title=<?php echo $title;?>" 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&action=pjActionCaptchaSend&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 __('label_comments', false, true);?></div> <?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><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['created'])), 'Y-m-d', $tpl['option_arr']['o_date_format']) . ' ' . pjUtil::formatTime(date('H:i:s', strtotime($v['created'])), 'H:i:s', $tpl['option_arr']['o_time_format']); ?></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 } ?> <?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&action=pjActionView&id=' . $tpl['arr']['id'] .(isset($_GET['iframe']) ? '&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> <input name="name" class="stb-text required" placeholder="<?php __('label_name');?>"/> </p> <p> <input name="email" class="stb-text required email" placeholder="<?php __('label_email');?>"/> </p> <p> <textarea name="comment" class="stb-textarea required stb-h170" placeholder="<?php __('front_enter_comment');?>"></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 src="<?php echo PJ_INSTALL_FOLDER; ?>index.php?controller=pjFront&action=pjActionCaptcha&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><!-- stb-comment-container --> </div><!-- stb-detail-container --> <?php if(!empty($tpl['related_arr'])){ $tpl['arr'] = $tpl['related_arr']; ?> <div class="stb-related-container"> <div class="heading"><?php __('label_related', false, true);?></div> <?php include_once PJ_VIEWS_PATH . 'pjLoad/pjActionLoadMore.php'; ?> </div><!-- stb-related-container --> <?php } }else{ ?> <div class="stb-detail-container"><?php __('label_post_not_found');?></div> <?php } ?> </div>