| Server IP : 172.67.153.42 / Your IP : 216.73.217.138 Web Server : Apache System : Linux vps-850873.bgcolombia.com 3.10.0-1160.144.1.el7.tuxcare.els5.x86_64 #1 SMP Wed May 13 12:31:54 UTC 2026 x86_64 User : melizav ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/melizav/.trash/oceanwp/partials/edd/ |
Upload File : |
<div class="edd_download_image">
<a href="<?php the_permalink(); ?>">
<?php
if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( get_the_ID() ) ) : ?>
<?php
$img_width = get_theme_mod( 'ocean_edd_archive_image_width', 450 );
$img_height = get_theme_mod( 'ocean_edd_archive_image_height', 450 );
// Images attr
$img_id = get_post_thumbnail_id( get_the_ID(), 'full' );
$img_url = wp_get_attachment_image_src( $img_id, 'full', true );
if ( OCEAN_EXTRA_ACTIVE
&& function_exists( 'ocean_extra_image_attributes' ) ) {
$img_atts = ocean_extra_image_attributes( $img_url[1], $img_url[2], $img_width, $img_height );
}
if ( OCEAN_EXTRA_ACTIVE
&& function_exists( 'ocean_extra_resize' )
&& ! empty( $img_atts ) ) { ?>
<img src="<?php echo ocean_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 oceanwp_schema_markup( 'image' ); ?> />
<?php
} else {
// Display post thumbnail
the_post_thumbnail( 'full' );
}
?>
<?php else:
echo '<img src="' . get_template_directory_uri() . '/assets/img/placeholder.png' . '">';
endif; ?>
</a>
</div>