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/theme-specific/theme-about/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/gg.corals.io/wp-content/themes/bugster/theme-specific/theme-about/theme-about.php
<?php
/**
 * Information about this theme
 *
 * @package WordPress
 * @subpackage BUGSTER
 * @since BUGSTER 1.0.30
 */


// Redirect to the 'About Theme' page after switch theme
if ( ! function_exists( 'bugster_about_after_switch_theme' ) ) {
	add_action( 'after_switch_theme', 'bugster_about_after_switch_theme', 1000 );
	function bugster_about_after_switch_theme() {
		update_option( 'bugster_about_page', 1 );
	}
}
if ( ! function_exists( 'bugster_about_after_setup_theme' ) ) {
	add_action( 'init', 'bugster_about_after_setup_theme', 1000 );
	function bugster_about_after_setup_theme() {
		if ( ! defined( 'WP_CLI' ) && get_option( 'bugster_about_page' ) == 1 ) {
			update_option( 'bugster_about_page', 0 );
			wp_safe_redirect( admin_url() . 'themes.php?page=bugster_about' );
			exit();
		} else {
			if ( bugster_get_value_gp( 'page' ) == 'bugster_about' && bugster_exists_trx_addons() ) {
				wp_safe_redirect( admin_url() . 'admin.php?page=trx_addons_theme_panel' );
				exit();
			}
		}
	}
}


// Add 'About Theme' item in the Appearance menu
if ( ! function_exists( 'bugster_about_add_menu_items' ) ) {
	add_action( 'admin_menu', 'bugster_about_add_menu_items' );
	function bugster_about_add_menu_items() {
		if ( ! bugster_exists_trx_addons() ) {
			$theme      = wp_get_theme();
			$theme_name = $theme->name . ( BUGSTER_THEME_FREE ? ' ' . esc_html__( 'Free', 'bugster' ) : '' );
			add_theme_page(
				// Translators: Add theme name to the page title
				sprintf( esc_html__( 'About %s', 'bugster' ), $theme_name ),    //page_title
				// Translators: Add theme name to the menu title
				sprintf( esc_html__( 'About %s', 'bugster' ), $theme_name ),    //menu_title
				'manage_options',                                               //capability
				'bugster_about',                                                //menu_slug
				'bugster_about_page_builder'	                                 //callback
			);
		}
	}
}


// Load page-specific scripts and styles
if ( ! function_exists( 'bugster_about_enqueue_scripts' ) ) {
	add_action( 'admin_enqueue_scripts', 'bugster_about_enqueue_scripts' );
	function bugster_about_enqueue_scripts() {
		$screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
		if ( ! empty( $screen->id ) && false !== strpos( $screen->id, '_page_bugster_about' ) ) {
			// Scripts
			if ( ! bugster_exists_trx_addons() && function_exists( 'bugster_plugins_installer_enqueue_scripts' ) ) {
				bugster_plugins_installer_enqueue_scripts();
			}
			// Styles
			$fdir = bugster_get_file_url( 'theme-specific/theme-about/theme-about.css' );
			if ( '' != $fdir ) {
				wp_enqueue_style( 'bugster-about', $fdir, array(), null );
			}
		}
	}
}


// Build 'About Theme' page
if ( ! function_exists( 'bugster_about_page_builder' ) ) {
	function bugster_about_page_builder() {
		$theme = wp_get_theme();
		?>
		<div class="bugster_about">

			<?php do_action( 'bugster_action_theme_about_start', $theme ); ?>

			<?php do_action( 'bugster_action_theme_about_before_logo', $theme ); ?>

			<div class="bugster_about_logo">
				<?php
				$logo = bugster_get_file_url( 'theme-specific/theme-about/icon.png' );
				if ( empty( $logo ) ) {
					$logo = bugster_get_file_url( 'screenshot.jpg' );
				}
				if ( ! empty( $logo ) ) {
					?>
					<img src="<?php echo esc_url( $logo ); ?>">
					<?php
				}
				?>
			</div>

			<?php do_action( 'bugster_action_theme_about_before_title', $theme ); ?>

			<h1 class="bugster_about_title">
			<?php
				echo esc_html(
					sprintf(
						// Translators: Add theme name and version to the 'Welcome' message
						__( 'Welcome to %1$s %2$s v.%3$s', 'bugster' ),
						$theme->name,
						BUGSTER_THEME_FREE ? __( 'Free', 'bugster' ) : '',
						$theme->version
					)
				);
			?>
			</h1>

			<?php do_action( 'bugster_action_theme_about_before_description', $theme ); ?>

			<div class="bugster_about_description">
				<p>
					<?php
					echo wp_kses_data( __( 'In order to continue, please install and activate the <b>ThemeREX Addons plugin</b>', 'bugster' ) );
					?>
					<sup>*</sup>
				</p>
			</div>

			<?php do_action( 'bugster_action_theme_about_before_buttons', $theme ); ?>

			<div class="bugster_about_buttons">
				<?php bugster_plugins_installer_get_button_html( 'trx_addons' ); ?>
			</div>

			<?php do_action( 'bugster_action_theme_about_before_buttons', $theme ); ?>

			<div class="bugster_about_notes">
				<p>
					<sup>*</sup>
					<?php
					echo wp_kses_data( __( "<i>ThemeREX Addons plugin</i> will allow you to install recommended plugins, demo content, and improve the theme's functionality overall with multiple theme options", 'bugster' ) );
					?>
				</p>
			</div>

			<?php do_action( 'bugster_action_theme_about_end', $theme ); ?>

		</div>
		<?php
	}
}


// Hide TGMPA notice on the page 'About Theme'
if ( ! function_exists( 'bugster_about_page_disable_tgmpa_notice' ) ) {
	add_filter( 'tgmpa_show_admin_notice_capability', 'bugster_about_page_disable_tgmpa_notice' );
	function bugster_about_page_disable_tgmpa_notice($cap) {
		if ( bugster_get_value_gp( 'page' ) == 'bugster_about' ) {
			$cap = 'unfiltered_upload';
		}
		return $cap;
	}
}

require_once BUGSTER_THEME_DIR . 'includes/plugins-installer/plugins-installer.php';

Spamworldpro Mini