/home/techb158/balacoffee.com/wp-content/plugins/coming-soon/app
NameSizeModeActions
backwards/-0755rm
includes/-0755rm
bootstrap.php190410644editdlrm
class-seedprod-notifications.php98150644editdlrm
cpt.php10860644editdlrm
functions-addons.php183100644editdlrm
functions-envira-gallaries.php7140644editdlrm
functions-inline-help.php54730644editdlrm
functions-mypaykit.php20140644editdlrm
functions-openai.php169270644editdlrm
functions-rafflepress.php19040644editdlrm
functions-seedprod-gallery.php70644editdlrm
functions-utils.php2694250644editdlrm
functions-wpforms.php16360644editdlrm
import-cross-site-functions.php33950644editdlrm
license.php57600644editdlrm
load_controller.php17550644editdlrm
lpage.php361020644editdlrm
nestednavmenu.php52330644editdlrm
render-csp-mm.php103180644editdlrm
render-dynamic-tags.php268780644editdlrm
render-lp.php12880644editdlrm
routes.php58720644editdlrm
settings.php62130644editdlrm
setup-wizard.php120990644editdlrm
subscriber.php70644editdlrm
theme-templates.php411950644editdlrm
Edit: /home/techb158/balacoffee.com/wp-content/plugins/coming-soon/app/nestednavmenu.php (5233B)
$navmenu_name, 'container_class' => 'nav-menu-bar', 'menu_class' => 'seedprod-menu-list', 'walker' => new SeedProd_Lite_Menu_Walker( $divider ), ); } else { $args = array( 'menu' => $navmenu_name, 'container_class' => 'nav-menu-bar', 'menu_class' => 'seedprod-menu-list', ); } wp_nav_menu( $args ); wp_die(); } } /** * SeedProd Menu Walker Class for adding menu list divider */ class SeedProd_Lite_Menu_Walker extends Walker_Nav_Menu { /** * Separators value. * * @var string */ private $separators; /** * Create class instance. * * @param string $separators Separators passed to class. */ public function __construct( $separators = '' ) { $this->separators = $separators; add_filter( 'wp_nav_menu_items', 'seedprod_lite_remove_last_divider' ); } /** * Add/List separators. * * @param string $output Output string. * @param string $item Item string. * @param integer $depth Depth integer. * @param array $args Args array. * @return void */ public function end_el( &$output, $item, $depth = 0, $args = array() ) { $output .= ''; if ( 0 === $depth ) { if ( '' !== $this->separators ) { $output .= "'; } } } } /** * Shortcode to fetch select WordPress menu */ add_shortcode( 'seedprodnestedmenuwidget', 'seedprod_lite_wordpress_menuwidget' ); /** * WordPress Menu Widget. * * @param array $atts Shortcode attributes. * @return string $content */ function seedprod_lite_wordpress_menuwidget( $atts ) { $menu_atts = shortcode_atts( array( 'menu' => '', 'menudivider' => '', 'layout' => 'h', ), $atts ); $navmenu_name = ''; if ( isset( $menu_atts['menu'] ) ) { $navmenu_name = $menu_atts['menu']; } $navmenu_seperator = ''; if ( isset( $menu_atts['menudivider'] ) ) { $navmenu_seperator = $menu_atts['menudivider']; } $layout = ''; if ( isset( $menu_atts['layout'] ) ) { $layout = $menu_atts['layout']; } $walker_divider = true; if ( '' === $navmenu_seperator || 'v' === $layout ) { $walker_divider = false; } if ( true === $walker_divider ) { $args = array( 'menu' => $navmenu_name, 'container_class' => 'nav-menu-bar', 'menu_class' => 'seedprod-menu-list', 'walker' => new SeedProd_Lite_Menu_Walker( $navmenu_seperator ), ); } else { $args = array( 'menu' => $navmenu_name, 'container_class' => 'nav-menu-bar', 'menu_class' => 'seedprod-menu-list', ); } ob_start(); wp_nav_menu( $args ); $content = ob_get_contents(); ob_end_clean(); return $content; } /** * Remove last divider. * * @param string $items Items string. * @return string $items */ function seedprod_lite_remove_last_divider( $items ) { $substring = ""; if ( substr( $items, -strlen( $substring ) ) === $substring ) { $items = substr( $items, 0, strlen( $items ) - strlen( $substring ) ); } return $items; } /** * Shortcode to fetch selected WordPress widget inside Seedprod builder */ add_shortcode( 'seedprodwpwidget', 'seedprod_lite_wordpress_widget' ); /** * WordPress Widget. * * @param array $atts Shortcode attributes. * @return string $content */ function seedprod_lite_wordpress_widget( $atts ) { // Get the widget name. $widget_name = $atts[0]; // Remove widget name from array. unset( $atts[0] ); // convert string bool. foreach ( $atts as $k => $v ) { if ( 'true' === $v ) { $atts[ $k ] = true; } if ( 'false' === $v ) { $atts[ $k ] = false; } // $atts[$k] = ($v === 'true')? true: false; } global $wp_widget_factory; $content = ''; // Check if the widget class exists. if ( ! isset( $wp_widget_factory->widgets[ $widget_name ] ) ) { // Check update widget class name. if ( isset( $atts['class'] ) ) { // Replace - with \. $widget_name = str_replace( '-', '\\', $atts['class'] ); // Check if the widget class exists. if ( ! isset( $wp_widget_factory->widgets[ $widget_name ] ) ) { return $content; } } } $inst = $wp_widget_factory->widgets[ $widget_name ]; $instance = $atts; ob_start(); the_widget( $widget_name, $instance ); $content = ob_get_contents(); ob_end_clean(); return $content; }