403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /expert/htwebs/www.begirale.com/public/wp-content/themes/perspective-theme//single.php
<?php
	cs_slider_gallery_template_redirect();
	global $node,$cs_theme_option,$counter_node,$video_width;
	$node = new stdClass();
  	get_header();
	$cs_layout = '';
	$post_xml = get_post_meta($post->ID, "post", 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;
		if ( $cs_layout == "left") {
			$cs_layout = "content-right span9";
			$video_width = 870;
			$custom_height = 366;
 		}
		else if ( $cs_layout == "right" ) {
			$cs_layout = "content-left span9";
			$video_width = 870;
			$custom_height = 366;
 		}elseif( $cs_layout == "both_right" ){
			$cs_layout = "content-left span6";
			$video_width = 570;
			$custom_height = 200;
		}
		elseif( $cs_layout == "both_left" ){
			$cs_layout = "content-right span6";
			$video_width = 570;
			$custom_height = 200;
		}
		elseif( $cs_layout == "both" ){
			$cs_layout = "span6";
			$video_width = 570;
			$custom_height = 200;
		}
		else {
			$cs_layout = "span12";
			$video_width = 1170;
			$custom_height = 490;
		}
 	}else{
		$cs_layout = "span12";
		$custom_height = 490;
	}
	if (have_posts()):
		while (have_posts()) : the_post();
			$image_id = get_post_thumbnail_id($post->ID);
			$post_xml = get_post_meta($post->ID, "post", true);	
			if ( $post_xml <> "" ) {
				$xmlObject = new SimpleXMLElement($post_xml);
				$post_view = $xmlObject->inside_post_thumb_view;
 				$post_video = $xmlObject->inside_post_thumb_video;
				$post_audio = $xmlObject->inside_post_thumb_audio;
				$post_slider = $xmlObject->inside_post_thumb_slider;
				$post_slider_type = $xmlObject->inside_post_thumb_slider_type;
				$width = 1170;
				$height = 490;
				
				$image_id = cs_get_post_img($post->ID, $width,$height);
				$image_url = cs_get_post_img_src($post->ID, $width, $height);
			}
			else {
				$xmlObject = new stdClass();
				$post_view = '';
 				$post_video = '';
				$post_audio = '';
				$post_slider = '';
				$post_slider_type = '';
				$width = 0;
				$height = 0;
				$image_id = 0;
				$xmlObject->post_social_sharing = '';
				$xmlObject->post_related = '';
				$custom_height = '';
			}								
			?>
                <!-- Columns Start -->
                <div class="clear"></div>
                <!-- Content Section Start -->
    			<div id="main" role="main">
    			<!-- Container Start -->
					<div class="container">
        			<!-- Row Start -->
                        <div class="row">
                        <!-- Need to add code below in function file to call it on all pages -->
                        <!--Left Sidebar Starts-->
                        <?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-->
                        <!-- Blog Detail Start -->
                        <div class="<?php echo $cs_layout; ?>">
							<!-- Blog Start -->
							<div class="blog blogdetail">
								<!-- Blog Post Start -->
                    			<article>
                    				<!-- Blog Post Thumbnail Start -->
                        	 		<figure class="detail_figure <?php if ($image_id == '') echo 'no-image'; ?>" >
										<?php
											if ( $post_view == "Map" and $post_view <> ''){
												$node->map_lat = $xmlObject->inside_post_thumb_map_lat;
												$node->map_lon = $xmlObject->inside_post_thumb_map_lon;
												$node->map_zoom = $xmlObject->inside_post_thumb_map_zoom;
												$node->map_info = $xmlObject->inside_post_thumb_map_address;
												$node->map_controls = $xmlObject->inside_post_thumb_map_controls;
												$node->map_height = $custom_height;
												$node->map_element_size = 'default';
												$node->map_title = '';
												$node->map_show_marker = '';
												
												echo cs_map_page();
											}elseif( $post_view == "Slider" and $post_slider_type == "Flex Slider" and $post_view <> ''){
                                                 cs_flex_slider($width, $height,$post_slider);
                                            }elseif ( $post_view == "Slider" and $post_slider_type == "Nivo Slider" and $post_view <> ''){
                                                 cs_nivo_slider($width, $height,$post_slider);
                                            }elseif($post_view == "Single Image"){ 
                                                echo '<a>'.$image_id.'</a>
												<span class="cuting_border"></span>';
                                              }elseif($post_view == "Video" and $post_video <> '' and $post_view <> ''){
                                                $url = parse_url($post_video);
                                                if($url['host'] == $_SERVER["SERVER_NAME"]){?>
                                                    <video width="100%" class="mejs-wmp" height="<?php echo $custom_height; ?>" src="<?php echo $post_video ?>"  id="player1" poster="<?php echo $image_url; ?>" controls="controls" preload="none"></video>
                                                <?php
                                                }else{
                                                      echo wp_oembed_get($post_video,array('height'=>$custom_height));
                                                }
                                            }elseif($post_view == "Audio" and $post_view <> ''){
												?>
												<audio style="width:100%;" src="<?php echo $post_audio; ?>" type="audio/mp3" controls="controls"></audio>
                                                <?php
											}
                                            cs_featured(); 
											?>
                                            
                                    </figure>
                                 	<!-- Blog Post Thumbnail End -->
                                    <!-- Post Options Start -->
                            		<ul class="post-options">
                                    	<li>
                                            <time datetime="<?php echo date('Y-m-d',strtotime(get_the_date()));?>"><?php if($cs_theme_option['trans_switcher']== "on"){ _e('Posted on','Perspective');}else{ echo $cs_theme_option['trans_posted_on']; } ?> <?php echo get_the_date();?></time>
                                        </li>
                                        <li>
                                        	<?php printf( __('By: %s','Perspective'), '<a href="'.get_author_posts_url(get_the_author_meta('ID')).'" class="colr">'.get_the_author().'</a>' ); ?>
                                         </li>
                                    	<li>
                                        	<?php 
                                            	/* translators: used between list items, there is a space after the comma */
                                                $before_cat = " ".__( 'Categories','Perspective' ).":";
                                                $categories_list = get_the_term_list ( get_the_id(), 'category', $before_cat, ', ', '' );
                                                if ( $categories_list ){
													printf( __( '%1$s', 'Perspective' ),$categories_list );  
												} // End if categories 
                                        	?>
                                        </li>
                                        
											<?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(), 'post_tag',$before_tag, ',', '</li>' );
                                                if ( $tags_list){
                                            		printf( __( '%1$s', 'Perspective' ),$tags_list ); 
                                                } // End if categories 
                                            ?>  
                                        
                                  	</ul>
                                    <!-- Post Options End -->
                         		</article>
                   			<!-- Blog Post End -->
                            <!-- Detail Text Start -->
							<div class="detail_text">
                                 <?php the_content(); ?>
                            </div>   
                            <!-- Post Text End -->
                            <!-- Share Post Start -->
                        	<div class="share_post">
                            	<?php
                                    if ($xmlObject->post_social_sharing == "on"){
								?>
                                		<a class="uppercase share_link colrhover"><?php if($cs_theme_option['trans_switcher']== "on"){ _e('Share Post','Perspective');}else{ echo $cs_theme_option['trans_share_this_post']; } ?></a>
                                        <?php cs_social_share(); ?>
                                <?php } ?>
                            </div>
                            <!-- Post Sharing Section End -->
                            <?php cs_next_prev_post();?>
                            <!-- Related Posts Starts -->
                        	<?php if ($xmlObject->post_related == "on") { ?>
							
                        	<div class="wrapper-slider related-posts">
                            
                             <header class="heading">
                                    <h2 class="heading-color section-title cs-heading-color"><?php echo $xmlObject->inside_post_related_post_title; ?></h2>
                            </header>
                            <div  class="bolg_column  jcarousel-skin-tango">
                            <ul id="mycarousel">
						   <?php
                           $custom_taxterms='';
                           $custom_taxterms = wp_get_object_terms( $post->ID, array('category','post_tag'), array('fields' => 'ids') );
                            // arguments
                            $args = array(
                            'post_type' => 'post',
                            'post_status' => 'publish',
                            'posts_per_page' => -1, // you may edit this number
                            'orderby' => 'DESC',
                            'tax_query' => array(
                                'relation' => 'OR',
                                array(
                                    'taxonomy' => 'post_tag',
                                    'field' => 'id',
                                    'terms' => $custom_taxterms
                                ),
                                array(
                                    'taxonomy' => 'category',
                                    'field' => 'id',
                                    'terms' => $custom_taxterms
                                )
                            ),
                            'post__not_in' => array ($post->ID),
                            ); 
                            $custom_query = new WP_Query($args);
							if($custom_query->have_posts()):
								cs_enqueue_jcarousel_style_script();
							?>
                            <script type="text/javascript">
								jQuery(document).ready(function(){	
									jQuery('#mycarousel').jcarousel({
										easing: 'easeOutCubic',
										animation: 1000
									});
								});
                        	</script>
                            <?php
							while ($custom_query->have_posts()) : $custom_query->the_post();
								$post_xml = get_post_meta($post->ID, "post", true);	
								if ( $post_xml <> "" ) {
									$xmlObject = new SimpleXMLElement($post_xml);
									$post_view = $xmlObject->post_thumb_view;
									$post_image = $xmlObject->post_thumb_image;
									$post_video = $xmlObject->post_thumb_video;
									$post_audio = $xmlObject->post_thumb_audio;
									$post_slider = $xmlObject->post_thumb_slider;
									$post_slider_type = $xmlObject->post_thumb_slider_type;
									$width 	= 360;
									$height = 370;
									
									$image_url = cs_get_post_img_src($post->ID, $width, $height);
								}else{
									$post_view = '';
								}
								?>
								<!-- List Post Start -->
                                <li>
									<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
							<!-- Blog Post Thumbnail Start -->
							<figure>
								<?php
									 if ($post_view == "Map" and $post_view <> ''){
										$node->map_lat = $xmlObject->post_thumb_map_lat;
										$node->map_lon = $xmlObject->post_thumb_map_lon;
										$node->map_zoom = $xmlObject->post_thumb_map_zoom;
										$node->map_address = $xmlObject->post_thumb_map_address;
										$node->map_controls = $xmlObject->post_thumb_map_controls;
										$node->map_height = $height;
										echo cs_map_page();
									}elseif( $post_view == "Slider" and $post_slider_type == "Flex Slider" and $post_view <> ''){
										 cs_flex_slider($width,$height,$post_slider);
									}elseif ( $post_view == "Slider" and $post_slider_type == "Nivo Slider" and $post_view <> ''){
										 cs_nivo_slider($width,$height,$post_slider);
									}elseif($post_view == "Single Image" and $post_view <> ''){
										cs_enqueue_gallery_style_script();
										echo "<a href='".get_permalink()."' ><img src='".$image_url."' alt=''><span  class='icon-hover'><i class='icon-reorder'></i></span></a>";
											
										
									}elseif($post_view == "Video" and $post_view <> ''){
										$url = parse_url($post_video);
										if($url['host'] == $_SERVER["SERVER_NAME"]){?>
											<video width="360" class="mejs-wmp" height="245" src="<?php echo $post_video ?>" id="player1" poster="<?php echo $image_url; ?>" controls="controls" preload="none"></video>
									<?php
										}else{
												
											$width = 360;
                                            $height = 245;
                                            echo wp_oembed_get($post_video,array('width'=>$width,'height' => $height));
										}
									}elseif($post_view == "Audio" and $post_view <> ''){
										?>
										<audio style="width:100%;" src="<?php echo $post_audio; ?>" controls="controls"></audio>
										<?php
									}
									
									echo "<figcaption>
												<header><h6><a href='".get_permalink()."'>".substr(get_the_title(),0,30)."</a></h6></header>
                                                 <div class='peragraph webkit'>"; ?>  
													<p><?php echo cs_get_the_excerpt(120,true) ?></p>
                                     	 <?php
										 		echo "</div>
                                    	</figcaption>";
                                    ?>
 							</figure>
                            <!-- Text Start -->
                            <div class="text webkit">
                            	<ul class="post-options">
                                	<li>
										<?php 
                                            /* translators: used between list items, there is a space after the comma */
                                            $before_cat = " ".__( '','Perspective' )."";
                                            $categories_list = get_the_term_list ( get_the_id(), 'category', $before_cat, ', ', '' );
                                            if ( $categories_list ){
                                                printf( __( '%1$s', 'Perspective' ),$categories_list );  
                                            } // End if categories 
                                        ?>
                                    </li>
                                    <li>
                                        <p><?php echo get_the_date();?></p>
                                    </li>
                                </ul>
                            </div>
                            <!-- Text End -->                            
						</article>
								</li>
                                <!-- Blog Post End -->
                                <?php
							endwhile; endif;
						wp_reset_query();
						?>
                        </ul>
                        </div>
                        </div>
                        	
                        <?php }?>
                        <!-- Related Posts End -->
                            <!-- About Author Start -->
                            <?php 
							if (get_the_author_meta('description')){ ?>
								<div class="about-author">
									<header class="heading"><h2 class="headding-color section-heading"><?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"){  _e('Follow Us on Twitter','Perspective');}else{ echo $cs_theme_option['trans_follow_twitter'];} ?></a>
                                   	</div>
                              	</div>
                                <!-- About Author End -->
                        <?php } ?>
                        <?php comments_template('', true); ?>
					</div>
                    <!-- Blog Post End -->
               	</div>
                 
  	<?php endwhile;   endif;?>
                <!--Content Area End-->
                <!--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 } ?>

<!-- Columns End -->
<!--Footer-->
<?php get_footer(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit