HEX
Server: Apache
System: Linux ebs-147252 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64
User: jumuhardware (65594)
PHP: 8.2.20
Disabled: link,symlink,passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server,pcntl_fork,pcntl_rfork
Upload Files
File: /home/wwwroot/jumuhardware/wwwroot/wp-content/themes/flatsome/inc/functions/function-theme-mods.php
<?php

$_flatsome_theme_mod_site_url = site_url( '', 'http' );
$_flatsome_theme_mod_site_url_secure = site_url( '', 'https' );

function flatsome_theme_mod_fix ( $value ) {
  if ( ! is_string( $value ) ) return $value;
  global $_flatsome_theme_mod_site_url;
  global $_flatsome_theme_mod_site_url_secure;
  return str_replace(
    array( '[site_url]', '[site_url_secure]' ),
    array( $_flatsome_theme_mod_site_url, $_flatsome_theme_mod_site_url_secure ),
    $value
  );
}

add_filter( 'theme_mod_footer_1_bg_image', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_footer_2_bg_image', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_custom_cart_icon', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_site_logo', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_site_logo_dark', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_header_bg_img', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_header_newsletter_bg', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_site_logo_sticky', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_body_bg_image', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_portfolio_archive_bg', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_header_shop_bg_image', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_facebook_login_bg', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_payment_icons_custom', 'flatsome_theme_mod_fix' );
add_filter( 'theme_mod_follow_snapchat', 'flatsome_theme_mod_fix' );