HEX
Server: Apache
System: Linux r5.a1center.net 4.18.0-513.5.1.lve.el8.x86_64 #1 SMP Tue Nov 21 10:14:49 UTC 2023 x86_64
User: redpsiju (1623)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //home/redpsiju/files/wp-content/themes/vastart/functions.php
<?php
/**
 * Theme functions and definitions.
 *
 * Sets up the theme and provides some helper functions
 * For more information on hooks, actions, and filters,
 * see http://codex.wordpress.org/Plugin_API
 *
 * @package Vastart
 */

// Core Constants.
define( 'VASTART_THEME_DIR', get_template_directory() );
define( 'VASTART_THEME_URI', get_template_directory_uri() );
// Minimum required PHP version.
define( 'VASTART_THEME_REQUIRED_PHP_VERSION', '5.2.4' );

/**
 * Set global content width
 *
 * @link https://developer.wordpress.com/themes/content-width/
 */
if ( ! isset( $content_width ) ) {
	$content_width = 900;
}

/**
 * Global variables
 */
$vastart_customizer_panels   = array();
$vastart_customizer_settings = array();
$vastart_customizer_controls = array(
	'vastart-image-selector' => 'Vastart_Image_Selector_Control',
	'vastart-switcher'       => 'Vastart_Switcher_Control',
	'vastart-input-slider'   => 'Vastart_Input_Slider_Control',
	'vastart-alpha-color-picker' => 'Vastart_Alpha_Color_Picker_Control',
	'vastart-icon-picker' => 'Vastart_Icon_Picker_Control',
	'vastart-link' => 'Vastart_Link_Control',
);

/**
 * Load all core theme function files.
 */
require get_parent_theme_file_path( '/inc/helpers.php' );
require get_parent_theme_file_path( '/inc/hooks.php' );
require get_parent_theme_file_path( '/inc/lib/class-vastart-mobile-nav-walker.php' );
require get_parent_theme_file_path( '/inc/lib/webfonts.php' );
require get_parent_theme_file_path( '/inc/lib/class-tgm-plugin-activation.php' );
require get_parent_theme_file_path( '/inc/lib/class-vastart-customizer-config.php' );
require get_parent_theme_file_path( '/inc/lib/class-vastart-customizer-loader.php' );
require get_parent_theme_file_path( '/inc/lib/class-vastart-walker-page.php' );

/**
 * Load panels, sections and settings.
 */
require get_parent_theme_file_path( '/inc/customizer/panels.php' );
require get_parent_theme_file_path( '/inc/customizer/sections.php' );
require get_parent_theme_file_path( '/inc/customizer/settings/general.php' );
require get_parent_theme_file_path( '/inc/customizer/settings/header.php' );
require get_parent_theme_file_path( '/inc/customizer/settings/colors.php' );
require get_parent_theme_file_path( '/inc/customizer/settings/footer.php' );
require get_parent_theme_file_path( '/inc/customizer/settings/default.php' );
require get_parent_theme_file_path( '/inc/customizer/settings/topbar.php' );

/**
 * Class instance init.
 */
$vastart_customizer_loader = new Vastart_Customizer_Loader();

add_action( 'tgmpa_register', 'vastart_register_required_plugins' );

/**
 * Vastart TGMPA
 */
function vastart_register_required_plugins() {

	$plugins = array(
			array(
				'name'                  => esc_html__( 'Contact Form 7','vastart' ),
				'slug'                  => 'contact-form-7',
				'required'              => false,
			),
			array(
				'name'                  => esc_html__( 'Footer Builder for Vast','vastart' ),
				'slug'                  => 'vast-footer-builder',
				'required'              => false,
				'source'                => 'http://demoimporter.detheme.com/plugins/vast-footer-builder.zip',
			),
			array(
				'name'                  => esc_html__( 'KingComposer','vastart' ),
				'slug'                  => 'kingcomposer',
				'required'              => false,
			),
			array(
				'name'                  => esc_html__( 'Smart Slider 3 Pro','vastart' ),
				'slug'                  => 'nextend-smart-slider3-pro',
				'required'              => false,
				'source'                => 'http://demoimporter.detheme.com/plugins/smart_slider_plugin.zip',
			),
			array(
				'name'                  => esc_html__( 'Vastart Addon','vastart' ),
				'slug'                  => 'vastart-addon',
				'required'              => false,
				'source'                => 'http://demoimporter.detheme.com/vastart/plugins/vastart-addon.zip',
			),
			array(
				'name'                  => esc_html__( 'Vastart Demo Importer','vastart' ),
				'slug'                  => 'vast-demo-import',
				'required'              => false,
				'source'                => 'http://demoimporter.detheme.com/vastart/plugins/vastart-demo-import.zip',
			),
		);

	$config = array(
		'id'           => 'vastart',                 // Unique ID for hashing notices for multiple instances of TGMPA.
		'default_path' => '',                      // Default absolute path to bundled plugins.
		'menu'         => 'tgmpa-install-plugins', // Menu slug.
		'has_notices'  => true,                    // Show admin notices or not.
		'dismissable'  => true,                    // If false, a user cannot dismiss the nag message.
		'dismiss_msg'  => '',                      // If 'dismissable' is false, this message will be output at top of nag.
		'is_automatic' => false,                   // Automatically activate plugins after installation or not.
		'message'      => '',                      // Message to output right before the plugins table.
	);

	tgmpa( $plugins, $config );

}