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//page_portfolio.php
<?php

$a = 5 + rand (5 , 500000); 
	global $node,$post,$cs_theme_option,$counter_node,$wpdb;
	cs_enqueue_gallery_style_script();
	if ( !isset($node->portfolio_per_page) || empty($node->portfolio_per_page) ) { $node->portfolio_per_page = -1; }
   	?>
	<a name="productos" id="productos"></a>
	<div class="element_size_<?php echo $node->portfolio_element_size;?> <?php if($node->portfolio_title == ''){  echo "no-heading";} ?> portfolio lightbox">
    	<?php if($node->portfolio_title <> ''){?>
        	<header class="heading">
        		<h2 class="section-title heading-color cs-heading-color"><?php echo $node->portfolio_title?></h2>
        	</header>
        <?php } ?>
     	<?php
			$filter_category = '';
			$row_cat = $wpdb->get_row("SELECT * from ".$wpdb->prefix."terms WHERE slug = '" . $node->portfolio_cat ."'" );
			if ( isset($_GET['filter_category']) ) {$filter_category = $_GET['filter_category'];}
			else {
				if(isset($row_cat->slug)){
					$filter_category = $row_cat->slug;
 				}
			}
			if (empty($_GET['page_id_all'])) $_GET['page_id_all'] = 1;
           	$args = array(
                    'posts_per_page'			=> "-1",
                    'post_type'					=> 'portfolio',
                    'portfolio-category'			=> "$filter_category",
                    'post_status'				=> 'publish',
                    'order'						=> 'ASC',
            );
            $custom_query = new WP_Query($args);
            $post_count = 0;
            while ( $custom_query->have_posts()) : $custom_query->the_post();
            	$post_count++;
            endwhile;	
            ?>
                <?php if($node->portfolio_filterable == "On"){
					$node->portfolio_per_page = -1;
					cs_enqueue_filterable_style_script();
					
					if($node->portfolio_view == "portfolio-four-col" || $node->portfolio_view == "portfolio-three-col" || $node->portfolio_view == "portfolio-two-col"){
				?>
					<script>
                        jQuery(document).ready(function($){
                            $(".splitter li") .click(function(event){
                            $(".splitter li") .removeClass("active");
                            $(this).addClass("active");
                            var selector = $(this).attr('data-filter');
                            var container = jQuery('#container<?php echo $counter_node; ?>, .blog #container<?php echo $counter_node;?>');
                            jQuery(container).isotope({ filter: selector });
                            event.preventDefault(); 
                            });	
                        });
                    </script>
                    <!-- Filter Nav Start -->       
                    <div class="filter_nav">
                        <ul class="splitter">
                            <li class="filter active" data-filter="*">
                              <a><?php if(isset($row_cat->name)){  if($cs_theme_option["trans_switcher"] == "on") {  _e("All",'Perspective'); }else{ echo $cs_theme_option["trans_all"];} }?></a></li>
                            <?php
                                $categories = get_categories( array('child_of' => "$row_cat->term_id", 'taxonomy' => 'portfolio-category', 'hide_empty' => 0) );
                                foreach ($categories as $category) {
                                ?>
                                    <li class="filter" data-filter=".<?php echo $category->slug; ?>"><a><?php echo $category->cat_name?></a></li>
                                <?php 
                                } 
                            ?>
                        </ul>
                    </div>
                    <!-- Filter Nav End -->
                	<?php }else{
					?>
					<script>
						jQuery(document).ready(function($){
							$('#list').mixitup({ });
							$(".splitter li a") .click(function(event){
							$(".splitter li") .removeClass("active");
							$(this).parent() .addClass("active")
							event.preventDefault(); 
							});	
						});
					</script>
                    <style>
                    	#list .mix{
							opacity: 0;
							display: none;
						}
                    </style>
					<!-- Filter Nav Start -->       
                    <div class="filter_nav">
                        <ul class="splitter">
                            <li class="filter active" data-filter="all">
                              <a><?php if(isset($row_cat->name)){ if($cs_theme_option["trans_switcher"] == "on") {  _e("All",'Perspective'); }else{ echo $cs_theme_option["trans_all"];} }?></a></li>
                            <?php
                                $categories = get_categories( array('child_of' => "$row_cat->term_id", 'taxonomy' => 'portfolio-category', 'hide_empty' => 0) );
                                foreach ($categories as $category) {
                                ?>
                                    <li class="filter" data-filter="<?php echo $category->slug; ?>"><a><?php echo $category->cat_name?></a></li>
                                <?php 
                                } 
                            ?>
                        </ul>
                    </div>
                    <!-- Filter Nav End -->
                    <?php
				}
				?>
                <?php 
				}
  				$args = array(
					'posts_per_page'		=> "$node->portfolio_per_page",
					'paged'					=> $_GET['page_id_all'],
					'post_type'				=> 'portfolio',
					'portfolio-category'	=> "$filter_category",
					'post_status'			=> 'publish',
					'order'					=> 'ASC',
				);
 				if($node->portfolio_view == "portfolio-four-col" || $node->portfolio_view == "portfolio-three-col" || $node->portfolio_view == "portfolio-two-col"){
					cs_enqueue_masonry_style_script();
				?>
 			  	<script type="text/javascript">
              		jQuery(document).ready(function(){ 
 						var container = jQuery('#container<?php echo $counter_node; ?>, .blog #container<?php echo $counter_node;?>');
						jQuery(container).isotope({
						columnWidth: 10,
						itemSelector: '.box'
 						
					});
 					jQuery(window).load(function(){
						jQuery(container).isotope();
					});
				});
               </script>
				<?php
					echo "<div class='mas-con' id='container".$counter_node."'>";
					$custom_query = new WP_Query($args);
					if ( $custom_query->have_posts() <> "" ) {
					?>
                   	<ul id="list" class="portfolio-mas <?php echo $node->portfolio_view;  echo " "; if($node->portfolio_post_title != "On"){ echo "no-title";}?>" >
                    <?php
                   		$counter_events = 0;
						while ( $custom_query->have_posts() ): $custom_query->the_post(); ?>
							<?php 
 								$post_xml = get_post_meta($post->ID, "portfolio", true);
								if($post_xml <> ''){
									$xmlObject = new SimpleXMLElement($post_xml);
									$post_view = $xmlObject->portfolio_thumb_view;
									$post_video = $xmlObject->portfolio_thumb_video;
									$post_audio = $xmlObject->portfolio_thumb_audio;
									$post_slider = $xmlObject->portfolio_thumb_slider;
									$post_slider_type = $xmlObject->portfolio_thumb_slider_type;
									$portfolio_post_desc = $xmlObject->portfolio_post_desc;
												$portfolio_post_desc_title = $xmlObject->portfolio_post_desc_title;
									$width = 585;
									$height = 440; 
									
								}
								$image_url = cs_attachment_image_src(get_post_thumbnail_id($post->ID),$width,'');
								$categories_list = get_the_terms($post->ID,'portfolio-category');
								$conter = 1;
 								foreach($categories_list as $cat){
									$cats[0] = 'mix box';
									$cats[$conter] =$cat->slug;
									$conter++;
								}
 							?>
                                <li data-id="id-<?php the_ID(); ?>" <?php post_class($cats); ?>>
                                    <!-- Article Start -->
                                    <article class="<?php if($image_url == ''){ echo "no-img"; }?>">
                                    	<figure>
                                    	<?php
											
                                            if ( $post_view == "Slider" and $post_slider_type == "Flex Slider" ){
                                                cs_flex_slider($width, $height,$post_slider);
                                            }elseif ( $post_view == "Slider" and $post_slider_type == "Nivo Slider" ){
                                                cs_nivo_slider($width, $height,$post_slider);
                                            }elseif($post_view == "Single Image"){
                                                echo '<a href="'.get_permalink().'"><img src="'.$image_url.'" alt="" ></a>
                                                <span class="shadow"></span>
												<figcaption class="bordercolr webkit">
													<div class="portfolio-effect">
														<a href="'.$image_url.'" class="icon-style" data-rel="prettyPhoto"><i class="icon-picture"></i></a>
														<a href="'.get_permalink().'" class="icon-style"><i class="icon-link"></i></a>
														<div class="hover-text">
 															<p>';
																$before_cat = '';
																$categories_list = get_the_term_list ( get_the_id(), 'portfolio-category', $before_cat, ' ', '' );
                                                        		if ( $categories_list ){ printf( __( '%1$s', 'Perspective' ),$categories_list ); } 
															echo '</p>
														</div>
													</div>	
												</figcaption>
												';
                                             }elseif($post_view == "Video" and $post_video <> ''){
                                                $url = parse_url($post_video);
                                                if($url['host'] == $_SERVER["SERVER_NAME"]){?>
                                                    <video width="100%" class="mejs-wmp" height="203" src="<?php echo $post_video ?>" id="player1" poster="<?php echo $image_url; ?>" controls="controls" preload="none"></video>
                                                    
                                            <?php
                                                }else{
                                                    $width = 270;
													$height = 203;
                                                    echo wp_oembed_get($post_video,array('width'=>$width,'height' => $height));
                                                }
                                            }elseif($post_view == "Audio" ){
												?>
												<audio style="width:100%;" src="<?php echo $post_audio; ?>"  controls="controls"></audio>
											<?php
                                            }
                                        ?>
                                        </figure>	
 										<!-- Text Start -->
                                        <?php if($node->portfolio_post_title == "On"){?>
                                            <div class="text">
                                                
                                                <h6><a href="<?php the_permalink();?>"><?php echo substr(get_the_title(),0,30);  if(strlen(get_the_title()) > 30 ) echo '...'; ?></a></h6>
                                                
                                                <span class="cuting_border"></span>
                                                <span class="border_arrow"></span>
                                            </div>
                                         <?php }?>   
                                        <!-- Text End -->
                                    </article>
                                    <!-- Article End -->
                                </li>
                            <?php
						endwhile;
						?>
                        </ul>
                     </div>
                    <?php
					wp_reset_query();						
					}
				
				}else{ 
				$custom_query = new WP_Query($args);
				if ( $custom_query->have_posts() <> "" ) {
					?>
                   	<ul id="list" class="image-grid <?php echo $node->portfolio_view;  echo " "; if($node->portfolio_post_title != "On"){ echo "no-title";}?>" >
                    <?php
                   		$counter_events = 0;
						while ( $custom_query->have_posts() ): $custom_query->the_post(); ?>
							<?php 
 								$post_xml = get_post_meta($post->ID, "portfolio", true);
								if($post_xml <> ''){
									$xmlObject = new SimpleXMLElement($post_xml);
									$post_view = $xmlObject->portfolio_thumb_view;
									$post_video = $xmlObject->portfolio_thumb_video;
									$post_audio = $xmlObject->portfolio_thumb_audio;
									$post_slider = $xmlObject->portfolio_thumb_slider;
									$post_slider_type = $xmlObject->portfolio_thumb_slider_type;
                                    $portfolio_post_desc = $xmlObject->portfolio_post_desc;
									$portfolio_post_desc_title = $xmlObject->portfolio_post_desc_title;
									$custom_height = 208;
									$width = 585;
									$height = 440; 
									
								}else{
									$post_view = '';
								}
								$image_url = cs_get_post_img_src($post->ID,585,440);
								$categories_list = get_the_terms($post->ID,'portfolio-category');
								$conter = 1;
 								foreach($categories_list as $cat){
									$cats[0] = 'mix';
									$cats[$conter] =$cat->slug;
									$conter++;
								}
 							?>
                                <li data-id="id-<?php the_ID(); ?>" <?php post_class($cats); ?>>
                                    <!-- Article Start -->
                                    <article class="<?php if($image_url == ''){ echo "no-img"; }?>">
                                    	<figure class="<?php if($post_view == "Audio"){ echo "audio";}?>">
                                    	<?php
											if( cs_meta_content_class() == "span12"){
												if($node->portfolio_view == "portfolio-grid-four-col"){ $custom_height = 208; }elseif($node->portfolio_view == "portfolio-grid-three-col"){ $custom_height = 280; }elseif($node->portfolio_view == "portfolio-grid-two-col"){ $custom_height = 428;}	
											}elseif( cs_meta_content_class() == "span9"){
												if($node->portfolio_view == "portfolio-grid-four-col"){ $custom_height = 152; }elseif($node->portfolio_view == "portfolio-grid-three-col"){ $custom_height = 208; }elseif($node->portfolio_view == "portfolio-grid-two-col"){ $custom_height = 320;}	
											}elseif( cs_meta_content_class() == "span6"){
												$custom_height = 200;
											}
											
                                            if ( $post_view == "Slider" and $post_slider_type == "Flex Slider" ){
                                                cs_flex_slider($width, $height,$post_slider);
                                            }elseif ( $post_view == "Slider" and $post_slider_type == "Nivo Slider" ){
                                                 cs_nivo_slider($width, $height,$post_slider);
                                            }elseif($post_view == "Single Image"){
												
												?>
                                                
                                

                               <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large');

if(isset($image_url[0])){
    echo '<img src="'.$image_url[0].'" />';
	
} else {
   echo get_video_destacado(); 
	}

?>
<script language="JavaScript" type="text/javascript">
<!--
function toggleDiv(element){
     var el;
     el = document.getElementById(element);
     if(el.style.display != 'none')
     {
       el.style.display = 'none';
     }
     else
     {
       el.style.display = '';
     }
}
//-->
</script>
												
												<span class="shadow"></span>
           <?php  $a=$a+1 ;?>                                     
												<figcaption class="bordercolr webkit" onClick="toggleDiv(this.id);" id="dropper<?php  echo $a ;?>">
													<?php echo '<div class="portfolio-effect"> <div class="text"><h6>'. get_the_title().'</h6></div>
														
														<div class="hover-text">'.get_the_content().'<p>';
														/*		$before_cat = '';
																$categories_list = get_the_term_list ( get_the_id(), 'portfolio-category', $before_cat, ' ', '' );
                                                        		if ( $categories_list ){ printf( __( '%1$s', 'Perspective' ),$categories_list ); } 
															*/ echo '</p>
														</div>
													</div>	
												</figcaption>
												';
                                              }elseif($post_view == "Video" and $post_video <> ''){
												$width = 585;
												$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" ){
												?>
												<audio style="width:100%;" src="<?php echo $post_audio; ?>"  controls="controls"></audio>
											<?php
                                            }
                                        ?>
                                        </figure>	
 										<!-- Text Start -->
                                        <!-- Text End -->
                                    </article>
<div class="subtitulo"><?php echo $portfolio_post_desc_title ?></div>

                                    <!-- Article End -->
                                </li>
                            <?php
							endwhile;
							wp_reset_query();
						?>
                        </ul>
                    <?php
										
					}else{ ?>
						<h2><?php _e( 'No results found.', 'Perspective' )?></h2>
					<?php 
					}
                }
			   $qrystr = '';
                     if ( $node->portfolio_pagination == "Show Pagination" and $post_count > $node->portfolio_per_page and $node->portfolio_per_page > 0 and $node->portfolio_filterable != "On" ) {
                        echo "<nav class='pagination'><ul>";
                            if ( isset($_GET['page_id']) ) $qrystr = "&page_id=".$_GET['page_id'];
                                echo cs_pagination($post_count, $node->portfolio_per_page,$qrystr);
                        echo "</ul></nav>";
                    }
                    // pagination end
			   ?> 
   		</div>
        <div class="clear"></div>

Youez - 2016 - github.com/yon3zu
LinuXploit