![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/single/ |
<?php /** * Post single meta * * @package Apper WordPress theme */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } // Get meta sections $sections = acmthemes_blog_single_meta(); // Return if sections are empty if ( empty( $sections ) || 'post' != get_post_type() ) { return; } // Return if quote format if ( 'quote' == get_post_format() ) { return; } ?> <?php do_action( 'before_single_post_meta' ); ?> <ul class="meta clr"> <?php // Loop through meta sections foreach ( $sections as $section ) { ?> <?php if ( 'author' == $section ) { ?> <li class="meta-author"<?php acmthemes_schema_markup( 'author_name' ); ?>><i class="icon-user"></i><?php echo the_author_posts_link(); ?></li> <?php } ?> <?php if ( 'date' == $section ) { ?> <li class="meta-date"<?php acmthemes_schema_markup( 'publish_date' ); ?>><i class="icon-clock"></i><?php echo get_the_date(); ?></li> <?php } ?> <?php if ( 'categories' == $section ) { ?> <li class="meta-cat"><i class="icon-folder"></i><?php the_category( ' <span class="owp-sep">/</span> ', get_the_ID() ); ?></li> <?php } ?> <?php if ( 'comments' == $section && comments_open() && ! post_password_required() ) { ?> <li class="meta-comments"><i class="icon-bubble"></i><?php comments_popup_link( esc_html__( '0 Comments', 'apper' ), esc_html__( '1 Comment', 'apper' ), esc_html__( '% Comments', 'apper' ), 'comments-link local' ); ?></li> <?php } ?> <?php } ?> </ul> <?php do_action( 'after_single_post_meta' ); ?>