| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/themes/perspective-theme/ |
Upload File : |
<?php
get_header();
global $xmlObject, $node,$cs_theme_option;
$cs_layout = '';
$post_xml = get_post_meta($post->ID, "cs_review", true);
if ( $post_xml <> "" ) {
$xmlObject = new SimpleXMLElement($post_xml);
$cs_layout = $xmlObject->sidebar_layout->cs_layout;
$cs_sidebar_left = $xmlObject->sidebar_layout->cs_sidebar_left;
$cs_sidebar_right = $xmlObject->sidebar_layout->cs_sidebar_right;
$review_social = $xmlObject->review_social;
$rating_styles = $xmlObject->rating_styles;
$rating_position = $xmlObject->rating_position;
if ( $cs_layout == "left") {
$cs_layout = "content-right span9";
}
else if ( $cs_layout == "right" ) {
$cs_layout = "content-left span9";
}elseif( $cs_layout == "both_right" ){
$cs_layout = "content-left span6";
}
elseif( $cs_layout == "both_left" ){
$cs_layout = "content-right span6";
}
elseif( $cs_layout == "both" ){
$cs_layout = "span6";
}
else $cs_layout = "span12";
}
else {
$review_social = '';
$rating_styles = '';
$rating_position = '';
}
$image_id = cs_get_post_img($post->ID, 370, 208);
?>
<!-- Columns Start -->
<div class="clear"></div>
<!-- Content Section Start -->
<div id="main" role="main">
<!-- Container Start -->
<div class="container">
<!-- Row Start -->
<div class="row">
<?php if ($cs_layout == 'content-right span9' || $cs_layout == 'span6'){ ?>
<aside class="sidebar-left span3"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($cs_sidebar_left) ) : ?><?php endif; ?></aside>
<?php } ?>
<!---------Left Sidebar End----------->
<?php
wp_reset_query();
?>
<div class="<?php if(isset($cs_layout)) echo $cs_layout; ?>">
<?php
if ( have_posts() ) while ( have_posts() ) : the_post();?>
<div class="courses blogdetail">
<!-- Article Start -->
<article class="coursesarticle">
<!-- Courses Text Start -->
<div class="courtext webkit <?php if($image_id == '')echo "no-img";?>">
<?php if($image_id <> '' ){ ?>
<figure><a><?php echo $image_id; ?></a></figure>
<?php } ?>
<!-- Text Start -->
<div class="text">
<div class="top">
<ul>
<li><i class="icon-time"></i><?php echo get_the_date();?></li>
<li><i class="icon-comment"></i><a href="<?php echo get_permalink();?>#comments"><?php echo comments_number(__('No Comments', 'Perspective'), __('1 Comment', 'Perspective'), __('% Comments', 'Perspective') );?></a></li>
<li><i class="icon-eye-open"></i><?php echo get_post_meta(get_the_ID(), "review_counter", true).' '; if($cs_theme_option['trans_switcher']== "on"){ _e('Views','Perspective'); }else{ echo $cs_theme_option['trans_review_views']; } ?></li>
</ul>
</div>
<div class="bottom">
<ul>
<?php
/* translators: used between list items, there is a space after the comma */
$before_tag = "<li>".__( 'Tags','Perspective' ).": ";
$tags_list = get_the_term_list ( get_the_id(), 'review-tag',$before_tag, ', ', '</li>' );
if ( $tags_list){
printf( __( '%1$s', 'Perspective' ),$tags_list );
} // End if categories
?>
<?php
/* translators: used between list items, there is a space after the comma */
if($cs_theme_option['trans_switcher']== "on"){ $before_cat = "<li>"._e('Listed in','Perspective').": "; }else{ $before_cat = "<li>".$cs_theme_option['trans_listed_in'].": "; }
$categories_list = get_the_term_list ( get_the_id(), 'review-category', $before_cat, ', ', ' </li>' );
if ( $categories_list ){
printf( __( '%1$s', 'Perspective' ),$categories_list );
} // End if categories
?>
</ul>
<?php if ($review_social == "on"){?>
<a href="#share" class="shar_btn colrhover"><i class="icon-plus-sign"></i><?php if($cs_theme_option['trans_switcher']== "on"){ _e('Share Post','Perspective');}else{ echo $cs_theme_option['trans_share_this_post']; } ?></a>
<?php }?>
</div>
</div>
<!-- Text End -->
</div>
<!-- Courses Text End -->
<!-- Rating Start -->
<div class="rating webkit">
<div class="top">
<h5 class="heading-color">
<?php echo cs_admin_reviews(); ?>
</h5>
</div>
<div class="bottom">
<h6>USER RATING</h6>
<span class="stars-large" id="jRatingColor2">
<span class="jRatingColor2" style="width:<?php echo cs_user_rating(); ?>%"></span>
</span>
<div id="rating_saved2">
<h6 class="heading-color">
<?php
cs_user_rating();
if ( get_post_meta(get_the_id(), "rating_vote_counter", true) > 0 ) {
$rating_vote_counter = get_post_meta(get_the_id(), "rating_vote_counter", true);
}
else {
$rating_vote_counter = 0;
}
echo " ( " . $rating_vote_counter . " Votes )";
?>
</h6>
</div>
<div id="rating_loading2" style="display:none"><img src="<?php echo get_template_directory_uri()?>/images/preloader.gif" /></div>
</div>
</div>
<!-- Rating End -->
</article>
<!-- Article End -->
<div class="rating-container rating-<?php echo $rating_position ?>">
<?php if ($rating_position == 'top'){ ?>
<!-- Table Start -->
<table class="table table-hover <?php //echo "rating-".$rating_position; ?> <?php //echo $rating_styles; ?>">
<thead>
<tr>
<th colspan="2"><?php if($cs_theme_option['trans_switcher']== "on"){ _e('Reviews Title','Perspective'); }else{ echo $cs_theme_option['trans_review_title']; } ?></th>
</tr>
</thead>
<tbody>
<div class="rating-item-box">
<?php
if ( $rating_styles == "Stars" ) {
echo '<div class="reviews-section">';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $subject ){
if ( $subject->getName() == "subject" ) {
echo "<div class='title-subject'>
<p class='subject-heading'>".$subject->subject_title."</p>";
echo "<span class='stars-large'>";
echo "<span style='width:".$subject->rating_value."%'></span>";
echo "</span></div>";
}
}
}
echo '</div>';
}
elseif ( $rating_styles == "Points" ) {
echo '<div class="reviews-section rating-'.$rating_position.'">';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $subject ){
if ( $subject->getName() == "subject" ) {
echo "<div class='title-subject'><p>".$subject->subject_title." = ";
echo $subject->rating_value / 10;
echo "</p><div class='progrees-rating-bar'><span style='width:".$subject->rating_value."%;'></span></div></div>";
}
}
}
echo '</div>';
}
elseif ( $rating_styles == "Percent" ) {
echo '<div class="reviews-section rating-'.$rating_position.'">';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $subject ){
if ( $subject->getName() == "subject" ) {
echo '<tr>
<td>'. $subject->subject_title.'</td>
<td width="50%"><div class="relative"><span style="background-color:#175977; border-radius:3px; transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; float: left; width:'.$subject->rating_value.'%; display:block;"> </span><span class="percent-rating">'.$subject->rating_value.'% </span></div></td>
</tr>';
}
}
}
echo '</div>';
}
?>
<tr>
<td colspan="2">
<p class="progress-info post-like">
<?php
$rating_value = get_post_meta($post->ID, "rating_value", true);
if($rating_value == ''){
$rating_value = 0;
}
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".basic ").jRating({
bigStarsPath : '<?php echo get_template_directory_uri(); ?>/images/stars.png', // path of the icon stars.png
smallStarsPath : '<?php echo get_template_directory_uri(); ?>/images/small.png', // path of the icon small.png
phpPath : '<?php echo get_template_directory_uri()."/include/review_save.php?id=".$post->ID?>', // path of the php file jRating.php
rateMax : 100,
length : 5
});
});
</script>
<?php cs_enqueue_rating_style_script();?>
<strong>User Rating: </strong>
<div id="rating_saved">
<div id="rating_saved">
<h6 class="heading-color">
<?php
cs_user_rating();
if ( get_post_meta(get_the_id(), "rating_vote_counter", true) > 0 ) {
$rating_vote_counter = get_post_meta(get_the_id(), "rating_vote_counter", true);
}
else {
$rating_vote_counter = 0;
}
echo " ( " . $rating_vote_counter . " Votes )";
?>
</h6>
</div>
</div>
<div id="rating_loading" style="display:none"><img src="<?php echo get_template_directory_uri()?>/images/preloader.gif" /></div>
<div class="basic <?php if ( isset($_COOKIE["rating_vote_counter".$post->ID ]) ){echo "jDisabled"; }?>" data="<?php cs_user_rating() ?>"></div>
</p>
</td>
</tr>
</div>
</tbody>
</table>
<!-- Table End -->
<div class="detail_text">
<?php the_content(); ?>
</div>
<?php } else{ ?>
<!-- Detail Text Start -->
<div class="detail_text">
<?php the_content(); ?>
</div>
<!-- Post Text End -->
<!-- Table Start -->
<table class="table table-hover <?php //echo "rating-".$rating_position; ?> <?php //echo $rating_styles; ?>">
<thead>
<tr>
<th colspan="2"><?php if($cs_theme_option['trans_switcher']== "on"){ _e('Reviews Title','Perspective'); }else{ echo $cs_theme_option['trans_review_title']; } ?></th>
</tr>
</thead>
<tbody>
<div class="rating-item-box">
<?php
if ( $rating_styles == "Stars" ) {
echo '<div class="reviews-section">';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $subject ){
if ( $subject->getName() == "subject" ) {
echo "<div class='title-subject'>
<p class='subject-heading'>".$subject->subject_title."</p>";
echo "<span class='stars-large'>";
echo "<span style='width:".$subject->rating_value."%'></span>";
echo "</span></div>";
}
}
}
echo '</div>';
}
elseif ( $rating_styles == "Points" ) {
echo '<div class="reviews-section rating-'.$rating_position.'">';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $subject ){
if ( $subject->getName() == "subject" ) {
echo "<div class='title-subject'><p>".$subject->subject_title." = ";
echo $subject->rating_value / 10;
echo "</p><div class='progrees-rating-bar'><span style='width:".$subject->rating_value."%;'></span></div></div>";
}
}
}
echo '</div>';
}
elseif ( $rating_styles == "Percent" ) {
echo '<div class="reviews-section rating-'.$rating_position.'">';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $subject ){
if ( $subject->getName() == "subject" ) {
echo '<tr>
<td>'. $subject->subject_title.'</td>
<td width="50%"><div class="relative"><span style="background-color:#175977; border-radius:3px; transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; float: left; width:'.$subject->rating_value.'%; display:block;"> </span><span class="percent-rating">'.$subject->rating_value.'% </span></div></td>
</tr>';
}
}
}
echo '</div>';
}
?>
<tr>
<td colspan="2">
<p class="progress-info post-like">
<?php
$rating_value = get_post_meta($post->ID, "rating_value", true);
if($rating_value == ''){
$rating_value = 0;
}
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".basic ").jRating({
bigStarsPath : '<?php echo get_template_directory_uri(); ?>/images/stars.png', // path of the icon stars.png
smallStarsPath : '<?php echo get_template_directory_uri(); ?>/images/small.png', // path of the icon small.png
phpPath : '<?php echo get_template_directory_uri()."/include/review_save.php?id=".$post->ID?>', // path of the php file jRating.php
rateMax : 100,
length : 5
});
});
</script>
<?php cs_enqueue_rating_style_script();?>
<strong>User Rating: </strong>
<div id="rating_saved">
<h6 class="heading-color">
<?php
cs_user_rating();
if ( get_post_meta(get_the_id(), "rating_vote_counter", true) > 0 ) {
$rating_vote_counter = get_post_meta(get_the_id(), "rating_vote_counter", true);
}
else {
$rating_vote_counter = 0;
}
echo " ( " . $rating_vote_counter . " Votes )";
?>
</h6>
</div>
<div id="rating_loading" style="display:none"><img src="<?php echo get_template_directory_uri()?>/images/preloader.gif" /></div>
<div class="basic <?php if ( isset($_COOKIE["rating_vote_counter".$post->ID ]) ){echo "jDisabled"; }?>" data="<?php cs_user_rating() ?>"></div>
</p>
</td>
</tr>
</div>
</tbody>
</table>
<!-- Table End -->
<?php } ?>
</div>
<!-- Share Post Start -->
<?php
if ($review_social == "on"){
?>
<a id="share"></a>
<div class="share_post">
<a class="uppercase share_link colrhover"><?php if($cs_theme_option['trans_switcher']== "on"){ echo _e('Share Post','Perspective');}else{ echo $cs_theme_option['trans_share_this_post']; } ?></a>
<?php cs_social_share(); ?>
</div>
<?php } ?>
<!-- Share Post End -->
<?php cs_next_prev_post();?>
<!-- About Author Start -->
<?php
if (get_the_author_meta('description')){ ?>
<div class="about-author">
<header class="heading"><h2 class="heading-color section-title cs-heading-color"><?php _e('About', 'Perspective');?> <?php _e('Author', 'Perspective');?></h2></header>
<!-- Thumbnail List Start -->
<div class="thumb">
<!-- Thumbnail List Item Start -->
<figure>
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php echo get_avatar(get_the_author_meta('user_email'), apply_filters('PixFill_author_bio_avatar_size', 63)); ?></a>
</figure>
</div>
<div class="text">
<h5 class="colrhover"><a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" class="color"> <?php echo get_the_author(); ?></a></h5>
<p class="line"><?php the_author_meta('description'); ?></p>
<a href="http://twitter.com/<?php the_author_meta('twitter'); ?>" target="_blank" class="colr tweet_follow"><i class="icon-twitter colr icon-2"></i>
<?php if($cs_theme_option['trans_switcher']== "on"){ echo _e('Follow Us on Twitter','Perspective');}else{ echo $cs_theme_option['trans_follow_twitter'];} ?></a>
</div>
</div>
<?php } ?>
<!-- About Author End -->
<!-- Comments Start -->
<?php comments_template('', true); ?>
<!-- Comments End -->
</div>
<?php endwhile; ?>
</div>
<!---------Right Sidebar Starts----------->
<?php if ( $cs_layout == 'content-left span9' || $cs_layout == 'span6' ){ ?>
<aside class="sidebar-right span3"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($cs_sidebar_right) ) : ?><?php endif; ?></aside>
<?php } ?>
<!---------Right Sidebar End----------->
</div>
</div>
<?php get_footer(); ?>