-
-
Save robincornett/f23f1fa406c62a48f168 to your computer and use it in GitHub Desktop.
SuperSide Me filter examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// you can add this to your theme's functions.php file, but do not include the | |
// opening tag! | |
add_action( 'wp_enqueue_scripts', 'prefix_load_scripts' ); | |
function prefix_load_scripts() { | |
if ( function_exists( 'supersideme_has_content' ) && supersideme_has_content() ) { | |
return; | |
} | |
wp_enqueue_script( 'leaven-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0', true ); | |
$output = array( | |
'mainMenu' => 'Menu', | |
'subMenu' => 'Menu', | |
); | |
wp_localize_script( 'leaven-responsive-menu', 'LeavenL10n', $output ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment