HEX
Server: LiteSpeed
System: Linux da4 4.18.0-553.74.1.lve.el8.x86_64 #1 SMP Tue Sep 9 14:25:24 UTC 2025 x86_64
User: wwwprimemarka (2294)
PHP: 5.6.40
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wwwprimemarka/public_html/wp-content/themes/Zephyr/framework/shortcodes/vc_wp_custommenu.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Shortcode: vc_wp_custommenu
 *
 * Overloaded by UpSolution custom implementation.
 *
 * Dev note: if you want to change some of the default values or acceptable attributes, overload the shortcodes config.
 *
 * @var   $shortcode      string Current shortcode name
 * @var   $shortcode_base string The original called shortcode name (differs if called an alias)
 * @var   $atts           array Shortcode attributes
 *
 */

$title = $nav_menu = $el_class = '';
$output = '';
$atts = us_shortcode_atts( $atts, $shortcode_base );

if ( ! empty( $atts['layout'] ) )  {
	$el_class .= ' layout_' . $atts['layout'];
}
$el_class .= ' align_' . $atts['align'];

if ( $atts['el_class'] != '' ) {
	$el_class .= ' ' . $atts['el_class'];
}

$output = '<div class="vc_wp_custommenu ' . esc_attr( $el_class ) . '"';
if ( ! empty( $atts['el_id'] ) )  {
	$output .= ' id="' . $atts['el_id'] . '"';
}
if ( ! empty( $atts['font_size'] ) )  {
	$output .= ' style="font-size:' . $atts['font_size'] . ';"';
}
$output .= '>';
$type = 'WP_Nav_Menu_Widget';
$args = array();
global $wp_widget_factory;
// to avoid unwanted warnings let's check before using widget
if ( is_object( $wp_widget_factory ) && isset( $wp_widget_factory->widgets, $wp_widget_factory->widgets[ $type ] ) ) {
	ob_start();
	the_widget( $type, $atts, $args );
	$output .= ob_get_clean();
	$output .= '</div>';

	echo $output;
} else {
	echo 'Widget ' . esc_attr( $type ) . 'Not found in : vc_wp_custommenu';
}