Spamworldpro Mini Shell
Spamworldpro


Server : nginx/1.20.1
System : Linux ccpf-production-2021 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64
User : forge ( 1000)
PHP Version : 7.4.21
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /home/forge/gcc-ccpf.com/wp-content/themes/labora/slider/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/forge/gcc-ccpf.com/wp-content/themes/labora/slider/flex-slider.php
<?php
$fs_slidelimit = get_option( 'labora_flexslidelimit' ) ? get_option( 'labora_flexslidelimit' ) : '3';
$pageslider = get_post_meta( $post->ID, 'labora_page_slider', true );

if ( '' !== $pageslider ) {
	$slider_cat = get_post_meta( $post->ID,'labora_flexslidercat', true );
} else {
	$slider_cat = get_option( 'labora_flexslidercat' );
}
?>
<section id="featured_slider" class="clearfix">
<?php
do_action( 'labora_theme_flexslider', $post->ID );
?>
	<div class="slider_wrapper">
		<div class="flexslider">
			<ul class="slides">
				<?php
				$query = array(
					'post_type'			=> 'slider',
					'posts_per_page'	=> $fs_slidelimit,
					'tax_query' => array(
						'relation' => 'OR',
					),
					'orderby'			=> 'menu_order',
					'order'				=> 'ASC',
				);

				if ( '' !== $slider_cat ) {
					$tax_cat = array(
						'taxonomy' 		=> 'slider_cat',
						'field' 		=> 'slug',
						'terms' 		=> $slider_cat,
					);
					array_push( $query['tax_query'],$tax_cat );
				}
				$labora_slider = new WP_Query( $query );
				while ( $labora_slider->have_posts() ) : $labora_slider->the_post();
					$terms = get_the_terms( get_the_ID(), 'slider_cat' );
					$terms_slug = array();
					if ( is_array( $terms ) ) {
						foreach ( $terms as $term ) {
							$terms_slug[] = $term->slug;
						}
					}
					$width = '';
					$height = '650';
					if ( 'stretched' === get_option( 'labora_layoutoption' ) ) {
						$width = '1920';
					} else {
						$width = '1280';
					}

					$postlinktype_options 	= get_post_meta( get_the_ID(), 'labora_postlinktype_options', true );
					$flex_sliderdescription	= get_post_meta( get_the_ID(), 'labora_slider_desc', true );
					$postlinkurl 			= labora_generator( 'labora_post_link_to', $postlinktype_options );
					$slidercaption 			= get_post_meta( get_the_ID(), 'labora_slider_caption', true );
					$slider_align = get_post_meta(get_the_ID(), 'labora_slider_cap_align', true ) ? get_post_meta(get_the_ID(), 'labora_slider_cap_align', true ) : 'center';
					switch ( $slider_align ) {
						case 'left':
									$slider_align_class = 'fs-left';
									break;
						case 'right':
									$slider_align_class = 'fs-right';
									break;
						case 'center':
									$slider_align_class = 'fs-center';
									break;
						default :
									$slider_align_class = 'fs-center';
					}

					echo '<li>';
					if ( $postlinkurl != 'nolink') {
						echo '<a href="' . esc_url( $postlinkurl ) . '"  >' . wp_kses_post( labora_img_resize( get_the_ID(), '', $width, $height, '','' ) ) . '</a>';
					} else {
						echo wp_kses_post( labora_img_resize( get_the_ID(), '', $width, $height, '', '' ) );
					}
					if ( $slidercaption != 'on' ) { ?>
						<div class="flex-caption <?php echo $slider_align_class; ?>">
							<div class="flex-caption-inner">
							<?php if ( $flex_sliderdescription != '' ) { ?>
								<div class="flex-title"><h2><?php the_title();?></h2>
									<div class="flex-content"><?php echo do_shortcode( $flex_sliderdescription ); ?></div>
								</div><!-- .flex-title -->
							<?php } ?>
							</div><!-- .flex-caption-inner -->
						</div><!-- .flex-caption -->
						<?php 
					}
					echo '</li>';
				endwhile;
				wp_reset_postdata(); ?>
			</ul>
		</div><!-- .flexslider -->
	</div><!-- .flexslider_wrap -->
</section><!-- #featured_slider -->
<?php

Spamworldpro Mini