ot supported by Lato, translate this to 'off'. Do not translate into your own language. */ if ('off' !== _x('on', 'Montserrat font: on or off', 'magazine-7')) { $fonts[] = 'Montserrat:400,700'; } if ($fonts) { $fonts_url = add_query_arg(array( 'family' => urldecode(implode('|', $fonts)), 'subset' => urldecode($subsets), ), 'https://fonts.googleapis.com/css'); } return $fonts_url; } endif; /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function magazine_7_content_width() { $GLOBALS['content_width'] = apply_filters('magazine_7_content_width', 640); } add_action('after_setup_theme', 'magazine_7_content_width', 0); /** * Enqueue scripts and styles. */ function magazine_7_scripts() { $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG?'':'.min'; wp_enqueue_style('font-awesome-v5', get_template_directory_uri().'/assets/font-awesome-v5/css/fontawesome-all'.$min.'.css'); wp_enqueue_style('bootstrap', get_template_directory_uri().'/assets/bootstrap/css/bootstrap'.$min.'.css'); wp_enqueue_style('slick', get_template_directory_uri().'/assets/slick/css/slick'.$min.'.css'); wp_enqueue_style('sidr', get_template_directory_uri().'/assets/sidr/css/jquery.sidr.dark.css'); wp_enqueue_style('magnific-popup', get_template_directory_uri().'/assets/magnific-popup/magnific-popup.css'); $fonts_url = magazine_7_fonts_url(); if (!empty($fonts_url)) { wp_enqueue_style('magazine-7-google-fonts', $fonts_url, array(), null); } if ( class_exists( 'WooCommerce' ) ) { wp_enqueue_style('magazine-7-woocommerce-style', get_template_directory_uri() . '/assets/woocommerce.css'); } wp_enqueue_style('magazine-7-style', get_stylesheet_uri()); wp_enqueue_script('magazine-7-navigation', get_template_directory_uri().'/js/navigation.js', array(), '20151215', true); wp_enqueue_script('magazine-7-skip-link-focus-fix', get_template_directory_uri().'/js/skip-link-focus-fix.js', array(), '20151215', true); wp_enqueue_script('slick', get_template_directory_uri().'/assets/slick/js/slick'.$min.'.js', array('jquery'), '', true); wp_enqueue_script('bootstrap', get_template_directory_uri().'/assets/bootstrap/js/bootstrap'.$min.'.js', array('jquery'), '', true); wp_enqueue_script('sidr', get_template_directory_uri().'/assets/sidr/js/jquery.sidr'.$min.'.js', array('jquery'), '', true); wp_enqueue_script('magnific-popup', get_template_directory_uri().'/assets/magnific-popup/jquery.magnific-popup'.$min.'.js', array('jquery'), '', true); wp_enqueue_script('matchheight', get_template_directory_uri().'/assets/jquery-match-height/jquery.matchHeight'.$min.'.js', array('jquery'), '', true); wp_enqueue_script('sticky-sidebar', get_template_directory_uri() . '/assets/theiaStickySidebar/theia-sticky-sidebar.min.js', array('jquery'), '', true); wp_enqueue_script('magazine-7-script', get_template_directory_uri().'/assets/script.js', array('jquery'), '', 1); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'magazine_7_scripts'); /** * Enqueue admin scripts and styles. * * @since Magazine 7 1.0.0 */ function magazine_7__admin_scripts($hook){ if ('widgets.php' === $hook) { wp_enqueue_media(); wp_enqueue_script('magazine-7-widgets', get_template_directory_uri() . '/assets/widgets.js', array('jquery'), '1.0.0', true); } } add_action('admin_enqueue_scripts', 'magazine_7__admin_scripts'); /** * Custom template tags for this theme. */ require get_template_directory().'/inc/template-tags.php'; /** * Custom template tags for this theme. */ require get_template_directory().'/inc/template-images.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory().'/inc/template-functions.php'; /** * Customizer additions. */ require get_template_directory().'/inc/customizer/customizer.php'; /** * Implement the Custom Header feature. */ require get_template_directory().'/inc/custom-header.php'; /** * Customizer additions. */ require get_template_directory().'/inc/init.php'; /** * Customizer additions. */ require get_template_directory().'/inc/ocdi.php'; /** * Load Jetpack compatibility file. */ if (defined('JETPACK__VERSION')) { require get_template_directory().'/inc/jetpack.php'; } /** * Load WooCommerce compatibility file. */ if ( class_exists( 'WooCommerce' ) ) { require get_template_directory() . '/inc/woocommerce.php'; } WordPress › Errore

Si è verificato un errore critico sul tuo sito web.

Scopri di più riguardo al debug in WordPress.