MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/wr-megamenu/includes/plugin/shortcode.php
<?php
/**
 * @version    $Id$
 * @package    WR MegaMenu
 * @author     WooRockets Team <support@woorockets.com>
 * @copyright  Copyright (C) 2014 WooRockets.com All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.woorockets.com
 * Technical Support:  Feedback - http://www.woorockets.com
 */

add_action( 'wr_mm_addon', 'wr_mm_sc_init' );

function wr_mm_sc_init() {

	/**
	 * Main class to init Shortcodes
	 * for WR MegaMenu
	 *
	 * @package  WR MegaMenu Shortcodes
	 * @since	1.0.0
	 */
	class WR_Megamenu_Builtin_Shortcode extends WR_Megamenu_Addon {
		public function __construct() {
			// Addon information
			$this->set_provider(
				array(
					'name'			 => __( 'Standard Elements', WR_MEGAMENU_TEXTDOMAIN ),
					'file'			 => __FILE__,
					'shortcode_dir'	=> WR_MEGAMENU_ROOT_PATH . 'shortcodes',
					'js_shortcode_dir' => 'assets/woorockets/js/shortcodes',
				)
			);

			//$this->custom_assets();
			// call parent construct
			parent::__construct();

			add_filter( 'plugin_action_links', array( &$this, 'plugin_action_links' ), 10, 2 );
		}

		/**
		 * Regiter & enqueue custom assets
		 */
		public function custom_assets() {
			// register custom assets
			$this->set_assets_register(
				array(
					'wr-frontend-free-css' => array(
						'src' => plugins_url( 'assets/css/main.css', dirname( __FILE__ ) ),
						'ver' => '1.0.0',
					),
					'wr-frontend-free-js'  => array(
						'src' => plugins_url( 'assets/js/main.js', dirname( __FILE__ ) ),
						'ver' => '1.0.0',
					)
				)
			);
			// enqueue assets for WP Admin pages
			$this->set_assets_enqueue_admin( array( 'wr-frontend-free-css' ) );
			// enqueue assets for WR Modal setting iframe
			$this->set_assets_enqueue_modal( array( 'wr-frontend-free-js' ) );
			// enqueue assets for WP Frontend
			$this->set_assets_enqueue_frontend( array( 'wr-frontend-free-css', 'wr-frontend-free-js' ) );
		}

		/**
		 * Remove deactivate link
		 *
		 * @staticvar type $this_plugin
		 *
		 * @param type $links
		 * @param type $file
		 *
		 * @return type
		 */
		public function plugin_action_links( $links, $file ) {
			static $this_plugin;

			if ( ! $this_plugin ) {
				$this_plugin = plugin_basename( __FILE__ );
			}
			if ( $file == $this_plugin ) {
				unset ( $links['deactivate'] );
			}

			return $links;
		}

	}

	$this_ = new WR_Megamenu_Builtin_Shortcode();
}