| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/themes/trackstore/framework/modules/header/parts/ |
Upload File : |
<?php
$attachment_meta = trackstore_elated_get_attachment_meta_from_url($logo_image);
$hwstring = !empty($attachment_meta) ? image_hwstring( $attachment_meta['width'], $attachment_meta['height'] ) : '';
if(!empty($logo_image_dark)) {
$attachment_meta_dark = trackstore_elated_get_attachment_meta_from_url($logo_image_dark);
$hwstring_dark = !empty($attachment_meta_dark) ? image_hwstring($attachment_meta_dark['width'], $attachment_meta_dark['height']) : '';
}
if(!empty($logo_image_light)) {
$attachment_meta_light = trackstore_elated_get_attachment_meta_from_url( $logo_image_light );
$hwstring_light = !empty($attachment_meta_light) ? image_hwstring($attachment_meta_light['width'], $attachment_meta_light['height']) : '';
}
?>
<?php do_action('trackstore_elated_before_site_logo'); ?>
<div class="eltd-logo-wrapper">
<a itemprop="url" href="<?php echo esc_url(home_url('/')); ?>" <?php trackstore_elated_inline_style($logo_styles); ?>>
<img itemprop="image" class="eltd-normal-logo" src="<?php echo esc_url($logo_image); ?>" <?php echo wp_kses($hwstring, array('width' => true, 'height' => true)); ?> alt="<?php esc_html_e('logo','trackstore'); ?>"/>
<?php if(!empty($logo_image_dark)){ ?><img itemprop="image" class="eltd-dark-logo" src="<?php echo esc_url($logo_image_dark); ?>" <?php echo wp_kses($hwstring_dark, array('width' => true, 'height' => true)); ?> alt="<?php esc_html_e('dark logo','trackstore'); ?>"/><?php } ?>
<?php if(!empty($logo_image_light)){ ?><img itemprop="image" class="eltd-light-logo" src="<?php echo esc_url($logo_image_light); ?>" <?php echo wp_kses($hwstring_light, array('width' => true, 'height' => true)); ?> alt="<?php esc_html_e('light logo','trackstore'); ?>"/><?php } ?>
</a>
</div>
<?php do_action('trackstore_elated_after_site_logo'); ?>