Uname:
Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software:
Apache
PHP version:
8.0.30 [ PHP INFO ] PHP os:
Linux
Server Ip:
145.239.37.162
Your Ip:
216.73.216.190
User:
dreampi (1009562) | Group:
users (100)
Safe Mode:
OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl
<?php
/**
* Skin Demo importer
*
* @package SPIN
* @since SPIN 1.76.0
*/
// Theme storage
//-------------------------------------------------------------------------
spin_storage_set( 'theme_demo_url', '//spin.axiomthemes.com' );
// Demofiles for RTL
function trl_theme_data($val, $param) {
if($param== 'theme_demofiles_archive_name')
$val = 'demo/default-rtl.zip';
return $val;
}
//------------------------------------------------------------------------
// One-click import support
//------------------------------------------------------------------------
// Set theme specific importer options
if ( ! function_exists( 'spin_skin_importer_set_options' ) ) {
add_filter( 'trx_addons_filter_importer_options', 'spin_skin_importer_set_options', 9 );
function spin_skin_importer_set_options( $options = array() ) {
if ( is_array( $options ) ) {
$demo_type = function_exists( 'spin_skins_get_current_skin_name' ) ? spin_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']);
}
$options['files'][ $demo_type ]['title'] = esc_html__( 'Spin Demo', 'spin' );
$options['files'][ $demo_type ]['domain_dev'] = ''; // Developers domain
$options['files'][ $demo_type ]['domain_demo'] = spin_storage_get( 'theme_demo_url' ); // Demo-site domain
if ( substr( $options['files'][ $demo_type ]['domain_demo'], 0, 2 ) === '//' ) {
$options['files'][ $demo_type ]['domain_demo'] = spin_get_protocol() . ':' . $options['files'][ $demo_type ]['domain_demo'];
}
}
return $options;
}
}
//------------------------------------------------------------------------
// OCDI support
//------------------------------------------------------------------------
// Set theme specific OCDI options
if ( ! function_exists( 'spin_skin_ocdi_set_options' ) ) {
add_filter( 'trx_addons_filter_ocdi_options', 'spin_skin_ocdi_set_options', 9 );
function spin_skin_ocdi_set_options( $options = array() ) {
if ( is_array( $options ) ) {
// Demo-site domain
$options['files']['ocdi']['title'] = esc_html__( 'Spin OCDI Demo', 'spin' );
$options['files']['ocdi']['domain_demo'] = spin_storage_get( 'theme_demo_url' );
if ( substr( $options['files']['ocdi']['domain_demo'], 0, 2 ) === '//' ) {
$options['files']['ocdi']['domain_demo'] = spin_get_protocol() . ':' . $options['files']['ocdi']['domain_demo'];
}
// If theme need more demo - just copy 'default' and change required parameters
}
return $options;
}
}