/** * TheShop functions and definitions * * @package TheShop */ if ( ! function_exists( 'theshop_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 theshop_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on TheShop, use a find and replace * to change 'theshop' to the name of your theme in all the template files */ load_theme_textdomain( 'theshop', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Content width global $content_width; if ( ! isset( $content_width ) ) { $content_width = 1170; } /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size('theshop-small', 400, 230, true); add_image_size('theshop-large', 800); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'theshop' ), 'secondary' => esc_html__( 'Side menu', 'theshop' ), ) ); /* * 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', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'theshop_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // theshop_setup add_action( 'after_setup_theme', 'theshop_setup' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function theshop_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'theshop' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); //Footer widget areas $widget_areas = get_theme_mod('footer_widget_areas', '3'); for ($i=1; $i<=$widget_areas; $i++) { register_sidebar( array( 'name' => __( 'Footer ', 'theshop' ) . $i, 'id' => 'footer-' . $i, 'description' => '', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } } add_action( 'widgets_init', 'theshop_widgets_init' ); /** * Enqueue scripts and styles. */ function theshop_scripts() { wp_enqueue_style( 'theshop-style', get_stylesheet_uri() ); if ( get_theme_mod('body_font_name') !='' ) { wp_enqueue_style( 'theshop-body-fonts', '//fonts.googleapis.com/css?family=' . esc_attr(get_theme_mod('body_font_name')) ); } else { wp_enqueue_style( 'theshop-body-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic'); } if ( get_theme_mod('headings_font_name') !='' ) { wp_enqueue_style( 'theshop-headings-fonts', '//fonts.googleapis.com/css?family=' . esc_attr(get_theme_mod('headings_font_name')) ); } else { wp_enqueue_style( 'theshop-headings-fonts', '//fonts.googleapis.com/css?family=Oswald:300,400,700'); } wp_enqueue_style( 'theshop-fontawesome', get_template_directory_uri() . '/fonts/font-awesome.min.css' ); wp_enqueue_script( 'theshop-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'theshop-unslider', get_template_directory_uri() . '/js/main.min.js', array('jquery'), '', true ); wp_enqueue_script( 'theshop-scripts', get_template_directory_uri() . '/js/scripts.min.js', array('jquery'), '', true ); } add_action( 'wp_enqueue_scripts', 'theshop_scripts' ); /** * Enqueue Bootstrap */ function theshop_enqueue_bootstrap() { wp_enqueue_style( 'theshop-bootstrap', get_template_directory_uri() . '/css/bootstrap/bootstrap.min.css', array(), true ); } add_action( 'wp_enqueue_scripts', 'theshop_enqueue_bootstrap', 9 ); /** * Load html5shiv */ function theshop_html5shiv() { echo '<!--[if lt IE 9]>' . "\n"; echo '<script src="' . esc_url( get_template_directory_uri() . '/js/html5shiv.js' ) . '"></script>' . "\n"; echo '<![endif]-->' . "\n"; } add_action( 'wp_head', 'theshop_html5shiv' ); /** * Full width single posts */ function theshop_fullwidth_singles($classes) { if ( get_theme_mod('fullwidth_single', 0) ) { $classes[] = 'fullwidth-single'; } return $classes; } add_filter('body_class', 'theshop_fullwidth_singles'); /** * Change the excerpt length */ function theshop_excerpt_length( $length ) { $excerpt = get_theme_mod('exc_lenght', '35'); return $excerpt; } add_filter( 'excerpt_length', 'theshop_excerpt_length', 999 ); /** * Secondary nav fallback */ function theshop_menu_fallback() { echo '<ul class="menu">'; echo '<li><i class="fa fa-child"></i><a href="#">' . __( 'Kids clothing', 'theshop' ) . '</a></li>'; echo '<li><i class="fa fa-bicycle"></i><a href="#">' . __( 'Sports', 'theshop' ) . '</a></li>'; echo '<li><i class="fa fa-book"></i><a href="#">' . __( 'Books', 'theshop' ) . '</a></li>'; echo '<li><i class="fa fa-diamond"></i><a href="#">' . __( 'Jewelry', 'theshop' ) . '</a></li>'; echo '<li><i class="fa fa-briefcase"><a href="#"></i>' . __( 'Accessories', 'theshop' ) . '</a></li>'; echo '</ul>'; } /** * Add clearfix to post classes */ function theshop_clearfix_posts( $classes ) { $classes[] = 'clearfix'; return $classes; } add_filter( 'post_class', 'theshop_clearfix_posts' ); /** * Footer credits */ function theshop_footer_credits() { echo '<a href="' . esc_url( __( 'http://www.sova.biz/', 'theshop' ) ) . '">'; printf( __( 'Správa webu - SOVA', 'theshop' ), 'WordPress' ); echo '</a>'; } add_action( 'theshop_footer', 'theshop_footer_credits' ); /** * Remove categories/tags prefix */ function theshop_archive_prefix($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } return $title; } add_filter( 'get_the_archive_title', 'theshop_archive_prefix' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Styles */ require get_template_directory() . '/inc/styles.php'; /** * Homepage sections */ require get_template_directory() . '/inc/sections.php'; /** * Header functions */ require get_template_directory() . '/inc/header-functions.php'; /** * Woocommerce */ require get_template_directory() . '/woocommerce/woocommerce.php'; // Add Hyperlinks to Attributes in Additional Information Tab on Product Page add_filter ('woocommerce_attribute', 'rb_link_attributes', 10, 3); function rb_link_attributes($attributes_string, $attribute, $terms) { global $post; $taxonomy = get_taxonomy( $attribute['name'] ); if ( $taxonomy && ! is_wp_error( $taxonomy ) ) { $attribute_string = ''; $terms = wp_get_post_terms( $post->ID, $taxonomy->name ); if ( !empty( $terms ) ) { foreach ( $terms as $term ) { if (strlen($attribute_string) > 0) { $attribute_string .= ', '; } $archive_link = get_term_link( $term->slug, $attribute['name'] ); $attribute_string .= '<a href="' . $archive_link . '">'. $term->name . '</a>'; } } } return '<p>'.$attribute_string.'</p>'; }<!DOCTYPE html> <html lang="sk-SK" prefix="og: http://ogp.me/ns#"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="http://www.estrela.sk/xmlrpc.php"> <meta name="google-site-verification" content="FTAOuiMMgdsv0Us4UmogTqEeeOJw036uauJnid-cYwo" /> <!-- This site is optimized with the Yoast SEO plugin v5.1 - https://yoast.com/wordpress/plugins/seo/ --> <link rel="canonical" href="http://www.estrela.sk/" /> <link rel="next" href="http://www.estrela.sk/page/2/" /> <meta property="og:locale" content="sk_SK" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Obchod - výpredaj oblečenia outlet" /> <meta property="og:url" content="http://www.estrela.sk/" /> <meta property="og:site_name" content="výpredaj oblečenia outlet" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:title" content="Obchod - výpredaj oblečenia outlet" /> <script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"WebSite","@id":"#website","url":"http:\/\/www.estrela.sk\/","name":"v\u00fdpredaj oble\u010denia outlet","potentialAction":{"@type":"SearchAction","target":"http:\/\/www.estrela.sk\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script> <!-- / Yoast SEO plugin. --> <link rel='dns-prefetch' href='//www.estrela.sk' /> <link rel='dns-prefetch' href='//s.w.org' /> <link rel="alternate" type="application/rss+xml" title="výpredaj oblečenia outlet » Produkty RSS kanál" href="http://www.estrela.sk/obchod/feed/" /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.3\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/www.estrela.sk\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.8.6"}}; !function(a,b,c){function d(a){var b,c,d,e,f=String.fromCharCode;if(!k||!k.fillText)return!1;switch(k.clearRect(0,0,j.width,j.height),k.textBaseline="top",k.font="600 32px Arial",a){case"flag":return k.fillText(f(55356,56826,55356,56819),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,56826,8203,55356,56819),0,0),c=j.toDataURL(),b!==c&&(k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447),0,0),c=j.toDataURL(),b!==c);case"emoji4":return k.fillText(f(55358,56794,8205,9794,65039),0,0),d=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55358,56794,8203,9794,65039),0,0),e=j.toDataURL(),d!==e}return!1}function e(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g,h,i,j=b.createElement("canvas"),k=j.getContext&&j.getContext("2d");for(i=Array("flag","emoji4"),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='woocommerce-layout-css' href='//www.estrela.sk/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=3.1.1' type='text/css' media='all' /> <link rel='stylesheet' id='woocommerce-smallscreen-css' href='//www.estrela.sk/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=3.1.1' type='text/css' media='only screen and (max-width: 768px)' /> <link rel='stylesheet' id='woocommerce-general-css' href='//www.estrela.sk/wp-content/plugins/woocommerce/assets/css/woocommerce.css?ver=3.1.1' type='text/css' media='all' /> <!-- This site uses the Google Analytics by MonsterInsights plugin v6.2.0 - Using Analytics tracking - https://www.monsterinsights.com/ --> <script type="text/javascript" data-cfasync="false"> /* Function to detect opted out users */ function __gaTrackerIsOptedOut() { return document.cookie.indexOf(disableStr + '=true') > -1; } /* Disable tracking if the opt-out cookie exists. */ var disableStr = 'ga-disable-UA-64755694-13'; if ( __gaTrackerIsOptedOut() ) { window[disableStr] = true; } /* Opt-out function */ function __gaTrackerOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; } (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','__gaTracker'); __gaTracker('create', 'UA-64755694-13', 'auto'); __gaTracker('set', 'forceSSL', true); __gaTracker('send','pageview'); </script> <!-- / Google Analytics by MonsterInsights --> <script type='text/javascript' src='http://www.estrela.sk/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> <script type='text/javascript' src='http://www.estrela.sk/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script> <link rel='https://api.w.org/' href='http://www.estrela.sk/wp-json/' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.estrela.sk/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.estrela.sk/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 4.8.6" /> <meta name="generator" content="WooCommerce 3.1.1" /> <noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript> </head> <body class="home archive post-type-archive post-type-archive-product woocommerce woocommerce-page"> <div class="preloader"> <div class="preloader-inner"> Loading… </div> </div> <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content">Skip to content</a> <header id="masthead" class="site-header clearfix" role="banner"> <div class="container"> <div class="site-branding col-md-4"> <br /> <b>Fatal error</b>: Uncaught Error: Call to undefined function theshop_branding() in /web/htdocs3/estrelask/home/www/wp-content/themes/theshop/header.php:33 Stack trace: #0 /web/htdocs3/estrelask/home/www/wp-includes/template.php(688): require_once() #1 /web/htdocs3/estrelask/home/www/wp-includes/template.php(647): load_template('/web/htdocs3/es...', true) #2 /web/htdocs3/estrelask/home/www/wp-includes/general-template.php(45): locate_template(Array, true) #3 /web/htdocs3/estrelask/home/www/wp-content/plugins/woocommerce/templates/archive-product.php(23): get_header('shop') #4 /web/htdocs3/estrelask/home/www/wp-includes/template-loader.php(74): include('/web/htdocs3/es...') #5 /web/htdocs3/estrelask/home/www/wp-blog-header.php(19): require_once('/web/htdocs3/es...') #6 /web/htdocs3/estrelask/home/www/index.php(22): require('/web/htdocs3/es...') #7 {main} thrown in <b>/web/htdocs3/estrelask/home/www/wp-content/themes/theshop/header.php</b> on line <b>33</b><br />