403Webshell
Server IP : 51.91.236.193  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux webm010.cluster128.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 : institutah ( 16501)
PHP Version : 7.2.34
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/institutah/www/wp-content/themes/makali/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/institutah/www/wp-content/themes/makali/content-gallery.php
<?php
/**
 * The template for displaying posts in the Gallery post format
 *
 * @package WordPress
 * @subpackage Makali_Theme
 * @since Makali 1.0
 */
$makali_opt = get_option( 'makali_opt' );
$makali_postthumb = Makali_Class::makali_post_thumbnail_size('');
if(Makali_Class::makali_post_odd_event() == 1){
	$makali_postclass='even';
} else {
	$makali_postclass='odd';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class($makali_postclass); ?>>
	<?php if ( is_single() ) : ?>
		<div class="entry-header">
			<h1 class="entry-title"><?php the_title(); ?></h1>
			<div class="post-meta">
				<span class="post-author">
					<?php esc_html_e('Posted by', 'makali');?> :
					<span class="post-by"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a> </span>
				</span>
				<span class="post-separator">/</span>
				<span class="post-date"> 
					<?php esc_html_e('Posted on : ', 'makali');?>
					<?php 
						$archive_year  = get_the_time('Y', $post->ID);
						$archive_month = get_the_time('m', $post->ID);
					?>
					<a href="<?php echo get_month_link( $archive_year, $archive_month ); ?>"><?php echo get_the_date('', $post->ID);?></a>
				</span>
				<?php if (do_shortcode(get_post_meta( $post->ID, '_makali_post_intro', true )) == '') { ?>
					<?php if(has_category()) { ?>
						<span class="post-separator">/</span>
						<span class="post-category">
							<?php esc_html_e('Category', 'makali');?> :
							<?php echo get_the_category_list( ', ' ); ?>
						</span> 
					<?php } ?>
				<?php } ?>
			</div>
		</div>
	<?php endif; ?>
	<?php if ( ! post_password_required() && ! is_attachment() ) : ?>
		<?php 
			if ( is_single() ) { ?>
				<?php if (do_shortcode(get_post_meta( $post->ID, '_makali_post_intro', true )) != '') { ?>
					<div class="post-thumbnail-wrapper">
						<div class="post-thumbnail">
							<?php echo do_shortcode(get_post_meta( $post->ID, '_makali_post_intro', true )); ?>
							<?php if(has_category()) { ?>
								<div class="post-category">
									<?php echo get_the_category_list(' '); ?>
								</div> 
							<?php }?>
						</div>
					</div>
				<?php }?>
			<?php }
		?>
		<?php if ( !is_single() ) { ?>
			<?php if (do_shortcode(get_post_meta( $post->ID, '_makali_post_intro', true )) != '') { ?>
				<div class="post-thumbnail-wrapper">
					<div class="post-thumbnail">
						<?php echo do_shortcode(get_post_meta( $post->ID, '_makali_post_intro', true )); ?>
						<?php if(has_category()) { ?>
							<div class="post-category">
								<?php echo get_the_category_list(' '); ?>
							</div> 
						<?php }?>
					</div>
				</div>
			<?php }?>
		<?php } ?>
	<?php endif; ?>
	<div class="postinfo-wrapper <?php if ( !has_post_thumbnail() ) { echo 'no-thumbnail';} ?>">
		<div class="post-info"> 
			<?php if ( is_single() ) : ?>
				<div class="entry-content">
					<?php the_content( wp_kses(__( 'Continue reading <span class="meta-nav">&rarr;</span>', 'makali' ), array('span'=>array('class'=>array())) )); ?>
					<?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'makali' ), 'after' => '</div>', 'pagelink' => '<span>%</span>' ) ); ?>
				</div>
			<?php else : ?>
				<h2 class="entry-title">
					<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
				</h2>
				<div class="post-meta">
					<span class="post-author">
						<?php esc_html_e('Posted by', 'makali');?> :
						<span class="post-by"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a> </span>
					</span>
					<span class="post-separator">/</span>
					<span class="post-date"> 
						<?php esc_html_e('Posted on : ', 'makali');?>
						<?php 
							$archive_year  = get_the_time('Y', $post->ID);
							$archive_month = get_the_time('m', $post->ID);
						?>
						<a href="<?php echo get_month_link( $archive_year, $archive_month ); ?>"><?php echo get_the_date('', $post->ID);?></a>
					</span>
					<?php if (do_shortcode(get_post_meta( $post->ID, '_makali_post_intro', true )) == '') { ?>
						<?php if(has_category()) { ?>
							<span class="post-separator">/</span>
							<span class="post-category no-thumbnail">
								<?php esc_html_e('Category', 'makali');?> :
								<?php echo get_the_category_list( ', ' ); ?>
							</span>
						<?php } ?>
					<?php } ?>
				</div> 
				<?php 
				if ( !is_single() ) {
					// If not a single post, highlight the gallery.
					if ( get_post_gallery() ) {
						echo '<div class="entry-gallery">';
							echo get_post_gallery();
						echo '</div>';
					}; 
				}?>
				<div class="entry-summary">
					<div><?php echo Makali_Class::makali_excerpt_by_id($post->ID, $length = $makali_opt['excerpt_length']); ?></div>
					<div class="clearfix"></div>
					<div><a class="readmore button" href="<?php the_permalink(); ?>"><?php if(isset($makali_opt['readmore_text']) && $makali_opt['readmore_text']!=''){ echo esc_html($makali_opt['readmore_text']); } else { esc_html_e('+ Read more', 'makali');}  ?></a></div>
				</div>
			<?php endif; ?>
			<?php if ( is_single() ) : ?>
				<?php Makali_Class::makali_entry_meta(); ?>
				<?php if( function_exists('makali_blog_sharing') ) { ?>
					<div class="social-sharing"><?php makali_blog_sharing(); ?></div>
				<?php } ?>
				<?php if(get_the_author_meta()!="") { ?>
				<div class="author-info">
					<div class="author-avatar">
						<?php
						$author_bio_avatar_size = apply_filters( 'makali_author_bio_avatar_size', 68 );
						echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
						?>
					</div>
					<div class="author-description">
						<h2><?php esc_html_e( 'About the Author:', 'makali'); printf( '<a href="'.esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ).'" rel="author">%s</a>' , get_the_author()); ?></h2>
						<p><?php the_author_meta( 'description' ); ?></p>
					</div>
				</div>
				<?php } ?>
				<?php 
				
				//related posts
				$orig_post = $post;
				global $post;
				$tags = wp_get_post_tags($post->ID);
				if ($tags) { 
					$tag_ids = array();
					foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
					$args=array(
					'tag__in' => $tag_ids,
					'post__not_in' => array($post->ID),
					'posts_per_page'=>3, // Number of related posts to display.
					'ignore_sticky_posts'=>1
					);
					$my_query = new wp_query( $args );$tag_ids = array();
					if($my_query->have_posts()) { ?>
						<div class="relatedposts">
							<h3><?php esc_html_e('Related posts', 'makali');?></h3>
							<div class="row">
								<?php
								while( $my_query->have_posts() ) {
									$my_query->the_post();
									?>
									<div class="relatedthumb col-lg-4 col-md-6">
										<?php if ( has_post_thumbnail() ) : ?>
											<div class="image">
												<?php the_post_thumbnail('makali-post-thumb'); ?>
											</div> 
										<?php endif; ?>
										<h4><a rel="external" href="<?php the_permalink()?>"><?php the_title(); ?></a></h4>
										<span class="post-date"> <?php echo get_the_date('', $post->ID);?> </span>
									</div>
								<?php }
								$post = $orig_post;
								wp_reset_postdata();
								?>
							</div> 
						</div>
					<?php } ?>
				<?php } ?>
				
			<?php endif; ?>
		</div>
	</div>
</article>

Youez - 2016 - github.com/yon3zu
LinuXploit