settings = $settings;
add_action('wp_head', [$this, 'assets'], 3);
}
public function assets()
{
if ($this->settings->logo) {
echo sprintf('', esc_attr($this->settings->logo));
echo "\r\n";
}
if ($this->settings->backgroundImage) {
$file = wp_get_attachment_url($this->settings->backgroundImage);
$type = wp_check_filetype($file);
if (strpos($type['type'], 'image') !== false && $this->settings->logo !== $this->settings->backgroundImage) {
echo sprintf('', esc_attr($file));
echo "\r\n";
}
}
}
}