HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //var/www/html/bwcdev/wp-content/plugins/salient-core/includes/vc_templates/page_submenu.php
<?php 

extract(shortcode_atts(array(
  "alignment" => "center", 
  "sticky" => "false", 
  "bg_color" => '#ffffff', 
  "link_color" => '#000000'), $atts));

global $nectar_options;

$wrapping_class = ( $alignment !== 'center' ) ?  'full-width-section' : 'full-width-content';

echo '<div class="page-submenu" data-bg-color="'.esc_attr($bg_color).'" data-sticky="'.esc_attr($sticky).'" data-alignment="'.esc_attr($alignment).'"><div class="'.$wrapping_class.'" style="background-color:'.esc_attr($bg_color).'; color: '.esc_attr($link_color).';">';
if($wrapping_class === 'full-width-section') {
  echo '<div class="container">';
}
echo '<a href="#" class="mobile-menu-link"><i class="salient-page-submenu-icon"></i>'. esc_html__('Menu','salient') .'</a><ul style="background-color:'.esc_attr($bg_color).'; color: '.esc_attr($link_color).';">'.do_shortcode($content).'</ul>';
if($wrapping_class === 'full-width-section') {
  echo '</div>';
}
echo'</div></div>';



?>