| 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 : |
<?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 ( ! empty( $car_dealer_options['archive_header'] ) ) {
$archive_header = $car_dealer_options['archive_header'];
$archive_header_author = $archive_header['author'];
$archive_header_category = $archive_header['category'];
$archive_header_tag = $archive_header['tag'];
}
if ( is_author() && ! empty( $archive_header_author ) && get_the_author_meta( 'description' ) ) {
?>
<div class="archive-header">
<div class="row">
<div class="col-sm-12">
<div class="author-info">
<div class="author-avatar">
<?php
$author_bio_avatar_size = apply_filters( 'cardealer_author_bio_avatar_size', 68 );
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2>
<?php
printf(
/* translators: 1: Author Name */
esc_html__( 'About %s', 'cardealer' ),
get_the_author()
);
?>
</h2>
<p><?php the_author_meta( 'description' ); ?></p>
</div><!-- .author-description -->
</div><!-- .author-info -->
</div>
</div>
</div>
<?php
} elseif ( is_category() && ! empty( $archive_header_category ) && category_description() ) {
?>
<div class="archive-header">
<div class="row">
<div class="col-sm-12">
<div class="archive-description">
<?php echo category_description(); ?>
</div>
</div>
</div>
</div>
<?php
} elseif ( is_tag() && ! empty( $archive_header_tag ) && tag_description() ) {
?>
<div class="archive-header">
<div class="row">
<div class="col-sm-12">
<div class="archive-description">
<?php echo tag_description(); ?>
</div>
</div>
</div>
</div>
<?php
}
?>