PluginProbe
Side Menu Lite – Sticky Floating Side Menu / 2.2.3
Side Menu Lite – Sticky Floating Side Menu v2.2.3
trunk 1.0 2.0 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.0 3.0.1 3.1 4.0 4.0.1 4.0.2 4.1 4.1.1 4.1.2 4.2 4.2.1 5.0 5.1 5.1.1 5.2 All 39 releases
side-menu-lite / side-menu-lite.php

side-menu-lite.php in Side Menu Lite – Sticky Floating Side Menu 2.2.3, at side-menu-lite.php

111 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Side Menu Lite
4 * Plugin URI: https://wordpress.org/plugins/side-menu-lite/
5 * Description: Provide any extra content and functionality with the attention-grabbing side menu!
6 * Version: 2.2.3
7 * Author: Wow-Company
8 * Author URI: https://wow-estore.com/
9 * License: GPL-2.0+
10 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11 * Text Domain: side-menu
12 */
13
14 namespace side_menu;
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20
21 if ( ! class_exists( 'Wow_Plugin' ) ) {
22
23 final class Wow_Plugin {
24
25 private static $instance;
26
27 const PREF = 'side_menu_pro';
28
29 public static function instance() {
30
31 if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Wow_Plugin ) ) {
32
33 $info = array(
34 'plugin' => array(
35 'name' => esc_attr__( 'Side Menu Lite', 'side-menu' ), // Plugin name
36 'menu' => esc_attr__( 'Side Menu Lite', 'side-menu' ), // Plugin name in menu
37 'author' => 'Wow-Company', // Author
38 'prefix' => self::PREF, // Prefix for database
39 'text' => 'side-menu', // Text domain for translate files
40 'version' => '2.2.3', // Current version of the plugin
41 'file' => __FILE__, // Main file of the plugin
42 'slug' => dirname( plugin_basename( __FILE__ ) ), // Name of the plugin folder
43 'url' => plugin_dir_url( __FILE__ ), // filesystem directory path for the plugin
44 'dir' => plugin_dir_path( __FILE__ ), // URL directory path for the plugin
45 'shortcode' => 'Side-Menu',
46 ),
47 'url' => array(
48 'author' => 'https://wow-estore.com/',
49 'home' => 'https://wordpress.org/plugins/side-menu-lite/',
50 'support' => 'https://wordpress.org/support/plugin/side-menu-lite/',
51 'pro' => 'https://wow-estore.com/item/floating-button-pro/',
52 'facebook' => 'https://www.facebook.com/wowaffect/',
53 ),
54 'rating' => array(
55 'website' => 'WordPress.org', // Name site for rating plugin
56 'url' => 'https://wordpress.org/support/plugin/side-menu-lite/reviews/#new-post',
57 'wp_url' => 'https://wordpress.org/support/plugin/side-menu-lite/reviews/#new-post',
58 'wp_home' => 'https://wordpress.org/plugins/side-menu-lite/',
59 'wp_title' => 'Side Menu Lite – add sticky fixed buttons',
60 ),
61 );
62
63 self::$instance = new Wow_Plugin;
64
65 register_activation_hook( __FILE__, array( self::$instance, 'plugin_activate' ) );
66 add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ) );
67
68 self::$instance->includes();
69 self::$instance->admin = new Wow_Plugin_Admin( $info );
70 self::$instance->public = new Wow_Plugin_Public( $info );
71 }
72
73 return self::$instance;
74 }
75
76 public function __clone() {
77 // Cloning instances of the class is forbidden.
78 _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'side-menu' ), '1.0' );
79 }
80
81 public function __wakeup() {
82 // Unserializing instances of the class is forbidden.
83 _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'side-menu' ), '1.0' );
84 }
85
86
87 private function includes() {
88 if ( ! class_exists( 'Wow_Company' ) ) {
89 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wow-company.php';
90 }
91 require_once plugin_dir_path( __FILE__ ) . 'admin/class-admin.php';
92 require_once plugin_dir_path( __FILE__ ) . 'public/class-public.php';
93 }
94
95 public function plugin_activate() {
96 require_once plugin_dir_path( __FILE__ ) . 'includes/plugin-activation.php';
97 }
98
99
100 public function load_textdomain() {
101 load_plugin_textdomain( 'side-menu', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
102 }
103
104 }
105 }
106 function wow_plugin_run() {
107 return Wow_Plugin::instance();
108 }
109
110 // Get Running.
111 wow_plugin_run();