'3887', 'slug' => 'animated-fullscreen-menu', 'type' => 'plugin', 'public_key' => 'pk_95d707fced75c19ff9b793853ac8a', 'is_premium' => false, 'has_addons' => false, 'has_paid_plans' => false, 'menu' => array( 'slug' => 'animatedfsm_settings', 'account' => false, 'contact' => false, 'support' => false, ), ) ); } return $animatedfsm; } // Init Freemius. animatedfsm(); // Signal that SDK was initiated. do_action( 'animatedfsm_loaded' ); } function animatedfsmenu_load_textdomain() { load_plugin_textdomain( 'animatedfsm', false, basename( dirname( __FILE__ ) ) . '/languages' ); } add_action( 'plugins_loaded', 'animatedfsmenu_load_textdomain' ); class AnimatedfsMenu { //register plugin function register() { require_once dirname( __FILE__ ) . '/cmb.php'; function afsmenu_registermenu() { register_nav_menu('animated-fullscreen-menu', __( 'Animated FullScreen Menu', 'animatedfsm' ) ); } add_action( 'init', 'afsmenu_registermenu' ); } /* * activate plugin */ function activate() { } } if ( class_exists( 'AnimatedfsMenu' ) ) { $animated_fs_menu = new AnimatedfsMenu(); $animated_fs_menu->register(); } register_activation_hook( __FILE__, array( $animated_fs_menu, 'activate' ) ); if ( isset( get_option( 'animatedfsm_settings' )['animatedfsm_on'] ) && 'on' === get_option( 'animatedfsm_settings' )['animatedfsm_on'] ) { require_once dirname( __FILE__ ) . '/frontend-animatedfsmenu.php'; }