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/hessa.corals.io/wp-content/themes/kicker/theme-specific/theme-about/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/hessa.corals.io/wp-content/themes/kicker/theme-specific/theme-about/theme-about.php
<?php
/**
 * Information about this theme
 *
 * @package KICKER
 * @since KICKER 1.0.30
 */


if ( ! function_exists( 'kicker_about_after_switch_theme' ) ) {
	add_action( 'after_switch_theme', 'kicker_about_after_switch_theme', 1000 );
	/**
	 * Update option 'kicker_about_page' after switch a theme to redirect to the page 'About Theme' on next page load.
	 *
	 * Hooks: add_action( 'after_switch_theme', 'kicker_about_after_switch_theme', 1000 );
	 */
	function kicker_about_after_switch_theme() {
		update_option( 'kicker_about_page', 1 );
	}
}

if ( ! function_exists( 'kicker_about_after_setup_theme' ) ) {
	add_action( 'init', 'kicker_about_after_setup_theme', 1000 );
	/**
	 * Redirect to the page 'About Theme' after switch a theme.
	 *
	 * Hooks: add_action( 'init', 'kicker_about_after_setup_theme', 1000 );
	 */
	function kicker_about_after_setup_theme() {
		if ( ! defined( 'WP_CLI' ) && get_option( 'kicker_about_page' ) == 1 ) {
			update_option( 'kicker_about_page', 0 );
			wp_safe_redirect( admin_url() . 'themes.php?page=kicker_about' );
			exit();
		} else {
			if ( kicker_get_value_gp( 'page' ) == 'kicker_about' && kicker_exists_trx_addons() ) {
				wp_safe_redirect( admin_url() . 'admin.php?page=trx_addons_theme_panel' );
				exit();
			}
		}
	}
}

if ( ! function_exists( 'kicker_about_add_menu_items' ) ) {
	add_action( 'admin_menu', 'kicker_about_add_menu_items' );
	/**
	 * Add the item 'About Theme' to the admin menu 'Appearance'.
	 *
	 * Hooks: add_action( 'admin_menu', 'kicker_about_add_menu_items' );
	 */
	function kicker_about_add_menu_items() {
		if ( ! kicker_exists_trx_addons() ) {
			$theme_slug  = get_template();
			$theme_name  = wp_get_theme( $theme_slug )->get( 'Name' ) . ( KICKER_THEME_FREE ? ' ' . esc_html__( 'Free', 'kicker' ) : '' );
			add_theme_page(
				// Translators: Add theme name to the page title
				sprintf( esc_html__( 'About %s', 'kicker' ), $theme_name ),    //page_title
				// Translators: Add theme name to the menu title
				sprintf( esc_html__( 'About %s', 'kicker' ), $theme_name ),    //menu_title
				'manage_options',                                               //capability
				'kicker_about',                                                //menu_slug
				'kicker_about_page_builder'                                    //callback
			);
		}
	}
}

if ( ! function_exists( 'kicker_about_enqueue_scripts' ) ) {
	add_action( 'admin_enqueue_scripts', 'kicker_about_enqueue_scripts' );
	/**
	 * Load a page-specific scripts and styles for the page 'About'
	 *
	 * Hooks: add_action( 'admin_enqueue_scripts', 'kicker_about_enqueue_scripts' );
	 */
	function kicker_about_enqueue_scripts() {
		$screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
		if ( ! empty( $screen->id ) && false !== strpos( $screen->id, '_page_kicker_about' ) ) {
			// Scripts
			if ( ! kicker_exists_trx_addons() && function_exists( 'kicker_plugins_installer_enqueue_scripts' ) ) {
				kicker_plugins_installer_enqueue_scripts();
			}
			// Styles
			$fdir = kicker_get_file_url( 'theme-specific/theme-about/theme-about.css' );
			if ( '' != $fdir ) {
				wp_enqueue_style( 'kicker-about', $fdir, array(), null );
			}
		}
	}
}

if ( ! function_exists( 'kicker_about_page_builder' ) ) {
	/**
	 * Build the page 'About Theme'
	 */
	function kicker_about_page_builder() {
		$theme_slug = get_template();
		$theme      = wp_get_theme( $theme_slug );
		?>
		<div class="kicker_about">

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

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

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

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

			<h1 class="kicker_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', 'kicker' ),
						$theme->get( 'Name' ),
						KICKER_THEME_FREE ? __( 'Free', 'kicker' ) : '',
						$theme->get( 'Version' )
					)
				);
			?>
			</h1>

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

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

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

			<div class="kicker_about_buttons">
				<?php kicker_plugins_installer_get_button_html( 'trx_addons' ); ?>
			</div>

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

			<div class="kicker_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.", 'kicker' ) );
					?>
				</p>
			</div>

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

		</div>
		<?php
	}
}

if ( ! function_exists( 'kicker_about_page_disable_tgmpa_notice' ) ) {
	add_filter( 'tgmpa_show_admin_notice_capability', 'kicker_about_page_disable_tgmpa_notice' );
	/**
	 * Hide a TGMPA notice on the page 'About Theme'
	 *
	 * @param $cap  Capability of the current page.
	 *
	 * @return string  A filtered capability.
	 */
	function kicker_about_page_disable_tgmpa_notice($cap) {
		if ( kicker_get_value_gp( 'page' ) == 'kicker_about' ) {
			$cap = 'unfiltered_upload';
		}
		return $cap;
	}
}

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

Spamworldpro Mini