| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/iticsl.com/wp-content/themes/zerif-lite/ti-prevdem/ |
Upload File : |
<?php
/**
* Initialize preview on demo
*
* @package zerif-lite
*/
/**
* Check if it is demo preview
*
* @return bool
*/
function zerif_isprevdem() {
$ti_theme = wp_get_theme();
$theme_name = $ti_theme->get( 'TextDomain' );
$active_theme = zerif_get_raw_option( 'template' );
return apply_filters( 'zerif_isprevdem', ( $active_theme != strtolower( $theme_name ) && ! is_child_theme() ) );
}
/**
* All options or a single option val
*
* @param string $opt_name Option name.
*
* @return bool|mixed
*/
function zerif_get_raw_option( $opt_name ) {
$alloptions = wp_cache_get( 'alloptions', 'options' );
$alloptions = maybe_unserialize( $alloptions );
return isset( $alloptions[ $opt_name ] ) ? maybe_unserialize( $alloptions[ $opt_name ] ) : false;
}
/**
* Load functions if we're on demo preview.
*/
if ( zerif_isprevdem() ) {
load_template( get_template_directory() . '/ti-prevdem/prevdem-functions.php' );
}