Server IP : 172.67.157.199 / Your IP : 3.21.248.77 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/themes/sammy/template-parts/parts/ |
Upload File : |
<?php if( !is_search() ){ if( is_single() ){ $show_date = podover_post_show_date() == 'yes' ? true: false; $show_cat = podover_post_show_cat() == 'yes' ? true: false; $show_author = podover_post_show_author() == 'yes' ? true: false; $show_comment = podover_post_show_comment() == 'yes' ? true: false; }else{ $show_date = podover_blog_show_date() == 'yes' ? true: false; $show_cat = podover_blog_show_cat() == 'yes' ? true: false; $show_author = podover_blog_show_author() == 'yes' ? true: false; $show_comment = podover_blog_show_comment() == 'yes' ? true: false; } ?> <?php if( $show_date || $show_cat || $show_author || $show_comment ){ ?> <ul class="post-meta"> <?php } ?> <?php if( $show_date ){ ?> <li class="date"> <i class="ovaicon-calendar-1"></i> <?php the_time( get_option( 'date_format' ));?> </li> <?php } ?> <?php if( $show_cat ){ ?> <li class="category"> <i class="ovaicon-folder-1"></i> <?php $categories = get_the_category(); if ( !empty( $categories ) && is_array( $categories ) ) { printf( '<a href="%s">%s</a>', esc_url( get_category_link( $categories[0]->term_id ) ), esc_html( $categories[0]->name ) ); } ?> </li> <?php } ?> <?php if( $show_author ){ ?> <li class="author"> <i class="ovaicon-user-1"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> <?php the_author_meta( 'display_name' ); ?> </a> </li> <?php } ?> <?php if( $show_comment ){ ?> <li class="comment"> <i class="ovaicon-chat-comment-oval-speech-bubble-with-text-lines"></i> <?php comments_popup_link( esc_html__(' 0 Comments', 'podover'), esc_html__(' 1 Comment', 'podover'), ' % '.esc_html__('Comments', 'podover'), '', esc_html__( 'Comment off', 'podover' ) ); ?> </li> <?php } ?> <?php if( $show_date || $show_cat || $show_author || $show_comment ){ ?> </ul> <?php } ?> <?php } ?>