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/skins/writer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/hessa.corals.io/wp-content/themes/kicker/skins/writer/skin-demo-importer.php
<?php
/**
 * Skin Demo importer
 *
 * @package KICKER
 * @since KICKER 1.76.0
 */


// Theme storage
//-------------------------------------------------------------------------

kicker_storage_set( 'theme_demo_url', '//writer.kicker.axiomthemes.com' );


//------------------------------------------------------------------------
// One-click import support
//------------------------------------------------------------------------

// Set theme specific importer options
if ( ! function_exists( 'kicker_skin_importer_set_options' ) ) {
	add_filter( 'trx_addons_filter_importer_options', 'kicker_skin_importer_set_options', 9 );
	function kicker_skin_importer_set_options( $options = array() ) {
		if ( is_array( $options ) ) {
			$demo_type = function_exists( 'kicker_skins_get_current_skin_name' ) ? kicker_skins_get_current_skin_name() : 'default';
			if ( 'default' != $demo_type ) {
				$options['demo_type'] = $demo_type;
				$options['files'][ $demo_type ] = $options['files']['default'];
				unset($options['files']['default']);
			}
			// Override some settings in the new demo type
			$theme_slug = get_template();
			$theme_name = wp_get_theme( $theme_slug )->get( 'Name' );
			$options['files'][ $demo_type ]['title']       = sprintf( esc_html__( '%s Demo', 'kicker' ), $theme_name );
			$options['files'][ $demo_type ]['domain_dev']  = esc_url( kicker_get_protocol() . '://writer.kicker.axiomthemes.com' );    // Developers domain 
			$options['files'][ $demo_type ]['domain_demo'] = kicker_storage_get( 'theme_demo_url' );                            // Demo-site domain
			if ( substr( $options['files'][ $demo_type ]['domain_demo'], 0, 2 ) === '//' ) {
				$options['files'][ $demo_type ]['domain_demo'] = kicker_get_protocol() . ':' . $options['files'][ $demo_type ]['domain_demo'];
			}
		}
		return $options;
	}
}


//------------------------------------------------------------------------
// OCDI support
//------------------------------------------------------------------------

// Set theme specific OCDI options
if ( ! function_exists( 'kicker_skin_ocdi_set_options' ) ) {
	add_filter( 'trx_addons_filter_ocdi_options', 'kicker_skin_ocdi_set_options', 9 );
	function kicker_skin_ocdi_set_options( $options = array() ) {
		if ( is_array( $options ) ) {
			// Demo-site domain
			$theme_slug = get_template();
			$theme_name = wp_get_theme( $theme_slug )->get( 'Name' );
			$options['files']['ocdi']['title']       = sprintf( esc_html__( '%s OCDI Demo', 'kicker' ), $theme_name );
			$options['files']['ocdi']['domain_demo'] = kicker_storage_get( 'theme_demo_url' );
			if ( substr( $options['files']['ocdi']['domain_demo'], 0, 2 ) === '//' ) {
				$options['files']['ocdi']['domain_demo'] = kicker_get_protocol() . ':' . $options['files']['ocdi']['domain_demo'];
			}
			// If theme need more demo - just copy 'default' and change required parameters
		}
		return $options;
	}
}

Spamworldpro Mini