Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/gg.corals.io/wp-content/themes/bugster/plugins/quickcal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/gg.corals.io/wp-content/themes/bugster/plugins/quickcal/quickcal.php
<?php
/* QuickCal support functions
------------------------------------------------------------------------------- */

// Theme init priorities:
// 9 - register other filters (for installer, etc.)
if ( ! function_exists( 'bugster_quickcal_theme_setup9' ) ) {
	add_action( 'after_setup_theme', 'bugster_quickcal_theme_setup9', 9 );
	function bugster_quickcal_theme_setup9() {
		if ( bugster_exists_quickcal() ) {
			add_action( 'wp_enqueue_scripts', 'bugster_quickcal_frontend_scripts', 1100 );
			add_filter( 'bugster_filter_merge_styles', 'bugster_quickcal_merge_styles' );
		}
		if ( is_admin() ) {
			add_filter( 'bugster_filter_tgmpa_required_plugins', 'bugster_quickcal_tgmpa_required_plugins' );
			add_filter( 'bugster_filter_theme_plugins', 'bugster_quickcal_theme_plugins' );
		}
	}
}


// Filter to add in the required plugins list
if ( ! function_exists( 'bugster_quickcal_tgmpa_required_plugins' ) ) {
	function bugster_quickcal_tgmpa_required_plugins( $list = array() ) {
		if ( bugster_storage_isset( 'required_plugins', 'quickcal' ) && bugster_storage_get_array( 'required_plugins', 'quickcal', 'install' ) !== false && bugster_is_theme_activated() ) {
			$path = bugster_get_plugin_source_path( 'plugins/quickcal/quickcal.zip' );
			if ( ! empty( $path ) || bugster_get_theme_setting( 'tgmpa_upload' ) ) {
				$list[] = array(
					'name'     => bugster_storage_get_array( 'required_plugins', 'quickcal', 'title' ),
					'slug'     => 'quickcal',
					'source'   => ! empty( $path ) ? $path : 'upload://quickcal.zip',
					'version'  => '1.0.12',
					'required' => false,
				);
			}
		}
		return $list;
	}
}

// Filter theme-supported plugins list
if ( ! function_exists( 'bugster_quickcal_theme_plugins' ) ) {
	
	function bugster_quickcal_theme_plugins( $list = array() ) {
		if ( ! empty( $list['quickcal']['group'] ) ) {
			foreach ( $list as $k => $v ) {
				if ( substr( $k, 0, 6 ) == 'quickcal' ) {
					if ( empty( $v['group'] ) ) {
						$list[ $k ]['group'] = $list['quickcal']['group'];
					}
					if ( ! empty( $list['quickcal']['logo'] ) ) {
						$list[ $k ]['logo'] = strpos( $list['quickcal']['logo'], '//' ) !== false
												? $list['quickcal']['logo']
												: bugster_get_file_url( "plugins/quickcal/{$list['quickcal']['logo']}" );
					}
				}
			}
		}
		return $list;
	}
}


// Check if plugin installed and activated
if ( ! function_exists( 'bugster_exists_quickcal' ) ) {
	function bugster_exists_quickcal() {
		return class_exists( 'quickcal_plugin' );
	}
}

// Enqueue styles for frontend
if ( ! function_exists( 'bugster_quickcal_frontend_scripts' ) ) {
	
	function bugster_quickcal_frontend_scripts() {
		if ( bugster_is_on( bugster_get_theme_option( 'debug_mode' ) ) ) {
			$bugster_url = bugster_get_file_url( 'plugins/quickcal/quickcal.css' );
			if ( '' != $bugster_url ) {
				wp_enqueue_style( 'bugster-quickcal', $bugster_url, array(), null );
			}
		}
	}
}

// Merge custom styles
if ( ! function_exists( 'bugster_quickcal_merge_styles' ) ) {
	function bugster_quickcal_merge_styles( $list ) {
		$list[] = 'plugins/quickcal/quickcal.css';
		return $list;
	}
}

// Add plugin-specific colors and fonts to the custom CSS
if ( bugster_exists_quickcal() ) {
	require_once BUGSTER_THEME_DIR . 'plugins/quickcal/quickcal-styles.php';
}

Spamworldpro Mini