HEX
Server: Apache
System: Linux 3b2f6704f3ac 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64
User: (2182)
PHP: 7.4.33
Disabled: proc_open, passthru, escapeshellcmd, exec, shell_exec, system, ini_alter, dl, popen, php_check_syntax, show_source, highlight_file, symlink, link, openlog, apache_child_terminate
Upload Files
File: /home/defaultwebsite/public/wp-content/plugins/webgatha-core/webgatha-core.php
<?php
/**
 * Plugin Name:       WebGatha Core
 * Plugin URI:        http://www.potenzaglobalsolutions.com/
 * Description:       This is core plugin for webgatha themes by Potenza Global Solutions.
 * Version:           2.4.0
 * Author:            Potenza Global Solutions
 * Author URI:        http://www.potenzaglobalsolutions.com/
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       webgatha-core
 * Domain Path:       /languages
 *
 * @package WebGatha Core
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( ! apply_filters( 'webgathacore_allow_without_theme', 'webgatha' === get_template() ) ) {
	return;
}

// Global variable
global $webgatha_globals, $webgathacore_globals, $webgadtha_vc_shortcode_inline_style, $webgadtha_vc_shortcodes;

if ( ! is_array( $webgadtha_vc_shortcode_inline_style ) ) {
	$webgadtha_vc_shortcode_inline_style = array();
}

$webgathacore_globals = array(
	'current_theme'  => get_template(),
	'theme_data'     => wp_get_theme( get_template() ),
	'options_title'  => esc_html__( 'WebGatha Theme Options', 'webgatha-core' ),
	'options_slug'   => 'webgatha-options',
	'options_name'   => 'webgatha_options',
	'theme_slug'     => 'webgatha',
	'active_plugins' => (array) get_option( 'active_plugins', array() ),
);

if ( empty( $webgatha_globals ) ) {
	$webgatha_globals = array(
		'theme_option' => 'webgatha_options',
		'options_name' => 'webgatha_options',
	);
}

// Define WEBGATHACORE_VERSION.
define( 'WEBGATHACORE_VERSION', '2.4.0' );

// Define WEBGATHACORE_PATH and WEBGATHACORE_URL.
define( 'WEBGATHACORE_PATH', plugin_dir_path( __FILE__ ) );
define( 'WEBGATHACORE_URL', plugin_dir_url( __FILE__ ) );

/**
 * Load plugin textdomain.
 *
 * @since 1.0.0
 */
function webgathacore_load_textdomain() {
	load_plugin_textdomain( 'webgatha-core', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'webgathacore_load_textdomain' );


/**
 * The code that runs after plugin update.
 */
function webgathacore_upgrader_process_complete() {
	update_option( 'webgathacore_version', WEBGATHACORE_VERSION );
}
add_action( 'upgrader_process_complete', 'webgathacore_upgrader_process_complete' );


/**
 * The core plugin class that is used to define internationalization,
 * admin-specific hooks, and public-facing site hooks.
 */
require plugin_dir_path( __FILE__ ) . 'includes/init.php';

add_filter( 'webgadtha_menu_locations', 'webgadthacore_menu_locations', 1 );

if ( ! function_exists( 'webgadthacore_menu_locations' ) ) {
	/**
	 * Add menu location.
	 *
	 * @param array $menu_locations menu locations.
	 * @return array
	 */
	function webgadthacore_menu_locations( $menu_locations ) {

		$menu_locations['top-menu']    = esc_html__( 'Topbar Menu', 'webgatha-core' );
		$menu_locations['custom-menu'] = esc_html__( 'Custom Menu', 'webgatha-core' );

		return $menu_locations;
	}
}