HEX
Server: Apache/2.4.6 (CentOS) PHP/5.6.39
System: Linux izj6c6ukj0hyugxsgmuxz3z 3.10.0-514.6.2.el7.x86_64 #1 SMP Thu Feb 23 03:04:39 UTC 2017 x86_64
User: root (0)
PHP: 5.6.39
Disabled: NONE
Upload Files
File: /web/data/blog.tbbbearing.com/wp-content/themes/blogasm/template-parts/page/content-page.php
<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Blogasm
 */
global $post;
$header_class               = array( 'entry-header d-flex flex-wrap' );
$header_element_class       = array( 'header-elements entry-header d-flex flex-wrap align-items-center' );
$header_element_class[]     = 'text-left';
$featured_img_meta_value    = get_post_meta( $post->ID, 'blogasm_featured_img_type', true );
$featured_img_type          = !empty( $featured_img_meta_value ) ? $featured_img_meta_value : 'portrait-img';

if ( $featured_img_type == 'landscape-img' ) {

	$thumbnail_size = 'blogasm-1370-850';
	$header_element_class[] = 'w-100';

} elseif ( $featured_img_type == 'full-width-img' ) {

	$thumbnail_size = 'blogasm-1800-540';
	$header_element_class[] = 'w-100';

} elseif ($featured_img_type == 'portrait-img') {

	$thumbnail_size = 'blogasm-576-portrait';
	$header_class[] = 'align-items-end';

}

$content_class          = array( 'entry-content' );
$content_class[]        = 'text-left';
$footer_class           = array( 'entry-footer d-flex flex-wrap align-items-center' );
$footer_class[]         = 'text-left'; ?>

<article id="post-<?php the_ID(); ?>" <?php post_class( 'have-' . $featured_img_type ); ?>>
    <header class="<?php echo esc_attr( implode( ' ', $header_class ) ); ?>">

        <?php if ( has_post_thumbnail() && ( $featured_img_type !== 'full-width-img' ) ) : ?>

            <figure class="post-featured-image">

                <?php the_post_thumbnail( $thumbnail_size, array(
                    'alt' => the_title_attribute( array(
                        'echo' => false,
                    ) ),
                ) ); ?>

            </figure><!-- .post-featured-image -->

        <?php endif; ?>

        <div class="<?php echo esc_attr( implode( ' ', $header_element_class ) ); ?>">

            <?php

            the_title( '<h1 class="entry-title w-100">', '</h1>' );

            ?>

        </div><!-- .header-elements -->
    </header><!-- .entry-header -->

    <div class="<?php echo esc_attr( implode( ' ', $content_class ) ); ?>">

        <?php the_content();

        wp_link_pages( array(
            'before'      => '<div class="page-links d-flex flex-wrap align-items-center py-24">' . esc_html__( 'Pages:', 'blogasm' ),
            'after'       => '</div>',
            'link_before' => '<span class="page-number">',
            'link_after'  => '</span>',
        ) );

        if ( get_edit_post_link() ) :

            edit_post_link(
                sprintf(
                    wp_kses(
                    /* translators: %s: Name of current post. Only visible to screen readers */
                        __( 'Edit <span class="screen-reader-text">%s</span>', 'blogasm' ),
                        array(
                            'span' => array(
                                'class' => array(),
                            ),
                        )
                    ),
                    get_the_title()
                ),
                '<span class="edit-link">',
                '</span>'
            );

        endif; ?>

    </div><!-- .entry-content -->


        <footer class="<?php echo esc_attr( implode( ' ', $footer_class ) ); ?>">

            <?php
            // If comments are open or we have at least one comment, load up the comment template.
            if ( comments_open() || get_comments_number() ) :
                comments_template();

            endif; ?>

        </footer><!-- .entry-footer -->


</article><!-- #post-<?php the_ID(); ?> -->