Server : LiteSpeed System : Linux webbox1.ncrdns.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : rahcos ( 1533) PHP Version : 8.4.23 Disable Function : NONE Directory : /home/rahcos/.trash/wp-content/themes/hara/elementor_templates/ |
<?php
/**
* Templates Name: Elementor
* Widget: Site Logo
*/
$settings['image']['url'] = $settings['image_logo']['url'];
$settings['image']['id'] = $settings['image_logo']['id'];
if (empty($settings['image']['url'])) {
return;
}
$this->add_render_attribute('logo_img', [
'src' => $settings['image']['url'],
'class' => 'header-logo-img',
]);
$has_caption = ! empty($settings['caption']);
$this->add_render_attribute('content', 'class', 'header-logo');
if (! empty($settings['shape'])) {
$this->add_render_attribute('wrapper', 'class', 'elementor-image-shape-' . $settings['shape']);
}
$link = $this->get_link_url($settings);
if ( !empty($link['url']) ) {
$this->add_render_attribute('link', [
'href' => $link['url'],
]);
} ?>
<div <?php echo $this->get_render_attribute_string('wrapper'); ?>>
<div <?php echo $this->get_render_attribute_string('content'); ?>>
<?php if ( !empty($link['url']) ) : ?>
<a <?php echo $this->get_render_attribute_string('link'); ?>>
<?php echo wp_get_attachment_image( $settings['image']['id'], 'full', false, array( "class" => "header-logo-img" ) ); ?>
</a>
<?php else: ?>
<?php echo wp_get_attachment_image( $settings['image']['id'], 'full', false, array( "class" => "header-logo-img" ) ); ?>
<?php endif; ?>
</div>
</div>