Sid Gifari File Manager
🏠 Root
/
home
/
genremedia08
/
thepassage.overlookedtracks.com
/
wp-content9
/
themes
/
anesta
/
skins
/
default
/
Editing: skin-demo-importer.php
<?php /** * Skin Demo importer * * @package ANESTA * @since ANESTA 1.76.0 */ // Theme storage //------------------------------------------------------------------------- anesta_storage_set( 'theme_demo_url', '//anesta.ancorathemes.com' ); //------------------------------------------------------------------------ // One-click import support //------------------------------------------------------------------------ // Set theme specific importer options if ( ! function_exists( 'anesta_skin_importer_set_options' ) ) { add_filter( 'trx_addons_filter_importer_options', 'anesta_skin_importer_set_options', 9 ); function anesta_skin_importer_set_options( $options = array() ) { if ( is_array( $options ) ) { $demo_type = function_exists( 'anesta_skins_get_current_skin_name' ) ? anesta_skins_get_current_skin_name() : 'default'; if ( 'default' != $demo_type ) { $options['demo_type'] = $demo_type; $options['files'][ $demo_type ] = $options['files']['default']; // Copy all settings from 'default' to the new demo type unset($options['files']['default']); } // Override some settings in the new demo type $options['files'][ $demo_type ]['title'] = esc_html__( 'Anesta Demo', 'anesta' ); $options['files'][ $demo_type ]['domain_dev'] = anesta_add_protocol( '//anesta.dv.ancorathemes.com' ); // Developers domain $options['files'][ $demo_type ]['domain_demo'] = anesta_add_protocol( anesta_storage_get( 'theme_demo_url' ) ); // Demo-site domain } return $options; } } //------------------------------------------------------------------------ // OCDI support //------------------------------------------------------------------------ // Set theme specific OCDI options if ( ! function_exists( 'anesta_skin_ocdi_set_options' ) ) { add_filter( 'trx_addons_filter_ocdi_options', 'anesta_skin_ocdi_set_options', 9 ); function anesta_skin_ocdi_set_options( $options = array() ) { if ( is_array( $options ) ) { // Demo-site domain $options['files']['ocdi']['title'] = esc_html__( 'Anesta OCDI Demo', 'anesta' ); $options['files']['ocdi']['domain_demo'] = anesta_add_protocol( anesta_storage_get( 'theme_demo_url' ) ); // If theme need more demo - just copy 'default' and change required parameters } return $options; } }
Save
Cancel