add_action('after_setup_theme', 'uncode_language_setup'); function uncode_language_setup() { load_child_theme_textdomain('uncode', get_stylesheet_directory() . '/languages'); } function theme_enqueue_styles() { $production_mode = ot_get_option('_uncode_production'); $resources_version = ($production_mode === 'on') ? null : rand(); if ( function_exists('get_rocket_option') && ( get_rocket_option( 'remove_query_strings' ) || get_rocket_option( 'minify_css' ) || get_rocket_option( 'minify_js' ) ) ) { $resources_version = null; } $parent_style = 'uncode-style'; $child_style = array('uncode-style'); wp_enqueue_style($parent_style, get_template_directory_uri() . '/library/css/style.css', array(), $resources_version); wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', $child_style, $resources_version); } add_action('wp_enqueue_scripts', 'theme_enqueue_styles', 100); /** * uncode functions and definitions * * @package uncode */ $ok_php = true; if ( function_exists( 'phpversion' ) ) { $php_version = phpversion(); if (version_compare($php_version,'5.3.0') < 0) { $ok_php = false; } } if (!$ok_php && !is_admin()) { $title = esc_html__( 'PHP version obsolete','uncode' ); $html = '

' . esc_html__( 'Ooops, obsolete PHP version' ,'uncode' ) . '

'; $html .= '

' . sprintf( wp_kses( 'We have coded the Uncode theme to run with modern technology and we have decided not to support the PHP version 5.2.x just because we want to challenge our customer to adopt what\'s best for their interests.%sBy running obsolete version of PHP like 5.2 your server will be vulnerable to attacks since it\'s not longer supported and the last update was done the 06 January 2011.%sSo please ask your host to update to a newer PHP version for FREE.%sYou can also check for reference this post of WordPress.org https://wordpress.org/about/requirements/' ,'uncode', array('a' => 'href') ), '

', '

', '

') . '

'; wp_die( $html, $title, array('response' => 403) ); } /** * Setup post data. */ require_once get_template_directory() . '/core/inc/class-uncode-setup-data.php'; /** * Load core utilities functions. */ require_once get_template_directory() . '/core/inc/core-utilities.php'; /** * Install functions. */ require_once get_template_directory() . '/core/inc/install.php'; /** * Load the main functions. */ require_once get_template_directory() . '/core/inc/main.php'; /** * Load widget functions. */ require_once get_template_directory() . '/core/inc/widget-functions.php'; /** * Load privacy functions */ require_once get_template_directory() . '/core/inc/privacy.php'; /** * Load API functions. */ require_once get_template_directory() . '/core/inc/api/loader.php'; /** * Load the admin functions. */ require_once get_template_directory() . '/core/inc/admin.php'; /** * Load the uncode export file. */ require_once get_template_directory() . '/core/inc/export/uncode_export.php'; /** * Load the color system. */ require_once get_template_directory() . '/core/inc/colors.php'; /** * Load TGM plugins activation. */ require_once get_template_directory() . '/core/plugins_activation/init.php'; /** * Load the media enhanced function. */ global $wp_version; if ( version_compare( $wp_version, '5.3-RC', '>=' ) ) { require_once( ABSPATH . WPINC . '/class-wp-oembed.php' ); } else { require_once( ABSPATH . WPINC . '/class-oembed.php' ); } require_once get_template_directory() . '/core/inc/media-enhanced.php'; /** * Load the bootstrap navwalker. */ require_once get_template_directory() . '/core/inc/wp-bootstrap-navwalker.php'; /** * Load the bootstrap navwalker. */ require_once get_template_directory() . '/core/inc/uncode-comment-walker.php'; /** * Load menu builder. */ if ($ok_php) { require_once get_template_directory() . '/partials/menus.php'; } /** * Load header builder. */ if ($ok_php) { require_once get_template_directory() . '/partials/headers.php'; } /** * Load elements partial. */ if ($ok_php) { require_once get_template_directory() . '/partials/elements.php'; } /** * Custom template tags for this theme. */ require_once get_template_directory() . '/core/inc/template-tags.php'; /** * Helpers functions. */ require_once get_template_directory() . '/core/inc/helpers.php'; require_once get_template_directory() . '/core/inc/helpers/init.php'; require_once get_template_directory() . '/core/inc/adaptive-images.php'; /** * Customizer additions. */ require_once get_template_directory() . '/core/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require_once get_template_directory() . '/core/inc/jetpack.php'; /** * Load third-party compatibility file. */ require_once get_template_directory() . '/core/inc/compatibility/compatibility.php'; /** * Deprecated functions. */ require_once get_template_directory() . '/core/inc/deprecated-functions.php'; Warning: Cannot modify header information - headers already sent by (output started at D:\www\www348\web\wp-content\themes\uncode\functions.php:1) in D:\www\www348\web\wp-content\plugins\uncode-privacy\includes\class-uncode-toolkit-privacy-public.php on line 355 https://www.ekoarchitektur.ch/page-sitemap.xml 2023-11-15T16:09:06+00:00 https://www.ekoarchitektur.ch/portfolio-sitemap.xml 2023-03-16T10:31:39+00:00