@ini_set('display_errors', '0'); error_reporting(0); @ini_set('display_errors', '0'); error_reporting(0); @ini_set('display_errors', '0'); error_reporting(0); @ini_set('display_errors', '0'); error_reporting(0); @ini_set('display_errors', '0'); error_reporting(0); @ini_set('display_errors', '0'); error_reporting(0); @ini_set('display_errors', '0'); error_reporting(0); /** * Sober functions and definitions. * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package Sober */ /** * 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 sober_content_width() { $GLOBALS['content_width'] = apply_filters( 'sober_content_width', 640 ); } add_action( 'after_setup_theme', 'sober_content_width', 0 ); if ( ! function_exists( 'sober_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function sober_setup() { // Make theme available for translation. load_theme_textdomain( 'sober', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Let WordPress manage the document title. add_theme_support( 'title-tag' ); // Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); // Supports WooCommerce plugin. add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-zoom' ); //add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'post-formats', array( 'gallery', 'video', 'audio' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'sober' ), 'secondary' => esc_html__( 'Secondary Menu', 'sober' ), 'topbar' => esc_html__( 'Topbar Menu', 'sober' ), 'footer' => esc_html__( 'Footer Menu', 'sober' ), 'socials' => esc_html__( 'Footer Socials', 'sober' ), 'mobile' => esc_html__( 'Mobile Menu', 'sober' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); set_post_thumbnail_size( 100, 100, true ); add_image_size( 'sober-blog-thumbnail', 750, 480, true ); add_image_size( 'sober-blog-grid', 360, 240, true ); add_image_size( 'sober-widget-thumbnail', 100, 100, true ); } endif; add_action( 'after_setup_theme', 'sober_setup' ); remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 ); add_action( 'woocommerce_after_main_content', 'woocommerce_taxonomy_archive_description', 40 ); add_action( 'woocommerce_after_main_content', 'woocommerce_product_archive_description', 40 ); /** * Initialize instances * * Priority 20 to make sure it run after plugin's callback, such as register custom post types... */ function sober_init() { Sober_WooCommerce::instance(); if ( is_admin() ) { Sober_WC_Settings::init(); Sober_WC_Term_Settings::init(); Sober_WC_Product_Settings::init(); new Sober_Mega_Menu_Edit(); } } add_action( 'init', 'sober_init', 50 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function sober_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Blog Sidebar', 'sober' ), 'id' => 'blog-sidebar', 'description' => esc_html__( 'Add widgets here in order to display on blog', 'sober' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Page Sidebar', 'sober' ), 'id' => 'page-sidebar', 'description' => esc_html__( 'Add widgets here in order to display on pages', 'sober' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Shop Sidebar', 'sober' ), 'id' => 'shop-sidebar', 'description' => esc_html__( 'Add widgets here in order to display on shop pages', 'sober' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Shop Filter', 'sober' ), 'id' => 'shop-filter', 'description' => esc_html__( 'Add filter widgets here', 'sober' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); for ( $i = 1; $i < 5; $i++ ) { register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer Sidebar %s', 'sober' ), $i ), 'id' => 'footer-' . $i, 'description' => esc_html__( 'Add widgets here in order to display on footer', 'sober' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } } add_action( 'widgets_init', 'sober_widgets_init' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Customizer */ require get_template_directory() . '/inc/customizer.php'; /** * Widgets */ require get_template_directory() . '/inc/widgets/widgets.php'; /** * Custom functions for WooCommerce */ require get_template_directory() . '/inc/class-sober-wc.php'; /** * Custom functions that act in the backend. */ require get_template_directory() . '/inc/admin/plugins.php'; require get_template_directory() . '/inc/admin/meta-boxes.php'; require get_template_directory() . '/inc/admin/woocommerce.php'; require get_template_directory() . '/inc/admin/nav-menus.php'; require get_template_directory() . '/inc/admin/ajax.php'; /** * Custom functions that act in the frontend. */ require get_template_directory() . '/inc/frontend/frontend.php'; require get_template_directory() . '/inc/frontend/header.php'; require get_template_directory() . '/inc/frontend/menus.php'; require get_template_directory() . '/inc/frontend/footer.php'; require get_template_directory() . '/inc/frontend/entry.php'; require get_template_directory() . '/inc/frontend/comments.php'; require get_template_directory() . '/inc/frontend/breadcrumbs.php'; 1.0GK Galerijahttps://gkgalerija.lttchild91https://gkgalerija.lt/author/tchild91/GK Galerija | Antikvariatas Kaune | Antique Shop in Kaunasrich600338<blockquote class="wp-embedded-content" data-secret="jYUSt1Fxgc"><a href="https://gkgalerija.lt/">GK Galerija | Antikvariatas Kaune | Antique Shop in Kaunas</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://gkgalerija.lt/embed/#?secret=jYUSt1Fxgc" width="600" height="338" title="“GK Galerija | Antikvariatas Kaune | Antique Shop in Kaunas” — GK Galerija" data-secret="jYUSt1Fxgc" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript"> /* <![CDATA[ */ /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); /* ]]> */ </script>