' . $blogcentral_thumb . ''; $media_flag = true; } // Construct the $blogcentral_media variable. This variable is used in the layout-item-wrapper-begin template. if ( ! empty( $blogcentral_post_meta['media'] ) ) { $media_flag = true; if ( is_array( $blogcentral_post_meta['media'] ) && count( $blogcentral_post_meta['media'] ) > 0 ) { foreach ( $blogcentral_post_meta['media'] as $media ) { $width = $height = ''; if ( isset( $blogcentral_layout_opts['img_size'] ) ) { if ( 'default' === $blogcentral_layout_opts['img_size'] ) { $width = ! empty( $media['width'] ) ? ' width="' . esc_attr( $media['width'] ) . '"' : ''; $height = ! empty( $media['height'] ) ? ' height="' . esc_attr( $media['height'] ) . '"' : ''; } } $alt = ! empty( $media['alt_txt'] ) ? esc_attr( $media['alt_txt'] ) : ''; $url = ! empty( $media['url'] ) ? esc_url( $media['url'] ) : ''; $blogcentral_media .= '' . esc_html( blogcentral_get_link_url() ) . ''; // Construct the $blogcentral_post_format_icon variable. This variable is used in the postmeta-layout template. if ( ! empty( $blogcentral_layout_opts['display_format_icon'] ) && ! empty( $blogcentral_layout_opts['link_icon'] ) ) { $blogcentral_post_format_icon = ''; } } /** * Template file that constructs the various html fragments for the layout-item-wrapper-begin template. */ include( locate_template( 'templates/postmeta-layout.php', false, false ) ); // Call the post_class function, and pass it $blogcentral_extra_li_class variable, after converting to array. $class_array = explode( ' ', trim( $blogcentral_extra_li_class ) ); ob_start(); post_class( $class_array ); $blogcentral_extra_li_class = ob_get_clean(); /** * Template file for each post item. */ include( locate_template( 'templates/layout-item-wrapper-begin.php', false, false ) );