![]() 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/entry/media/ |
<?php /** * Blog entry link format media * * @package Apper WordPress theme */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } // Return if there isn't a thumbnail defined if ( ! has_post_thumbnail() ) { return; } // Add images size if blog grid if ( 'grid-entry' == acmthemes_blog_entry_style() ) { $size = acmthemes_blog_entry_images_size(); } else { $size = 'full'; } // Image args $img_args = array( 'alt' => get_the_title(), ); if ( acmthemes_get_schema_markup( 'image' ) ) { $img_args['itemprop'] = 'image'; } // Caption $caption = get_the_post_thumbnail_caption(); ?> <div class="thumbnail"> <a href="<?php the_permalink(); ?>" class="thumbnail-link"> <?php // Image width $img_width = apply_filters( 'blog_entry_image_width', absint( get_theme_mod( 'blog_entry_image_width' ) ) ); $img_height = apply_filters( 'blog_entry_image_height', absint( get_theme_mod( 'blog_entry_image_height' ) ) ); // Images attr $img_id = get_post_thumbnail_id( get_the_ID(), 'full' ); $img_url = wp_get_attachment_image_src( $img_id, 'full', true ); if ( ACMTHEMES_EXTRA_ACTIVE && function_exists( 'extra_image_attributes' ) ) { $img_atts = extra_image_attributes( $img_url[1], $img_url[2], $img_width, $img_height ); } // If acmthemes Extra is active and has a custom size if ( ACMTHEMES_EXTRA_ACTIVE && function_exists( 'extra_resize' ) && ! empty( $img_atts ) ) { ?> <img src="<?php echo extra_resize( $img_url[0], $img_atts[ 'width' ], $img_atts[ 'height' ], $img_atts[ 'crop' ], true, $img_atts[ 'upscale' ] ); ?>" alt="<?php the_title_attribute(); ?>" width="<?php echo esc_attr( $img_width ); ?>" height="<?php echo esc_attr( $img_height ); ?>"<?php acmthemes_schema_markup( 'image' ); ?> /> <?php } else { // Display post thumbnail the_post_thumbnail( $size, $img_args ); } </a> <?php // Caption if ( $caption ) { ?> <div class="thumbnail-caption"> <?php echo esc_attr( $caption ); ?> </div> <?php } ?> <div class="link-entry clr"> <a href="<?php echo esc_url( get_post_meta( get_the_ID(), 'link_format', true ) ); ?>" target="_<?php echo esc_attr( get_post_meta( get_the_ID(), 'link_format_target', true ) ); ?>"><i class="icon-link"></i></a> </div> </div>