{"id":3132,"date":"2016-09-10T19:52:15","date_gmt":"2016-09-10T19:52:15","guid":{"rendered":"http:\/\/musilda.cz\/?p=3132"},"modified":"2016-09-10T19:52:15","modified_gmt":"2016-09-10T19:52:15","slug":"nova-galerie-produktu-ve-woocommerce-2-7","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/nova-galerie-produktu-ve-woocommerce-2-7\/","title":{"rendered":"Nov\u00e1 galerie produktu ve WooCommerce 2.7"},"content":{"rendered":"<p>WooCommerce se pom\u011brn\u011b rychle vyv\u00edj\u00ed, ale jeden prvek, jakoby byl st\u00e1le opom\u00edjen. Galerie obr\u00e1zku na detailu produktu, se nezm\u011bnila snad od za\u010d\u00e1tku.<\/p>\n<p>A proto\u017ee to v\u00fdvoj\u00e1\u0159i c\u00edt\u00ed jako probl\u00e9m, zve\u0159ejnili anketu, jak galerii zm\u011bnit. Volit se dalo, zda m\u00e1 b\u00fdt k dispozici lightbox, zoom, nebo oba.<\/p>\n<p><strong>V\u00fdsledky byly jednozna\u010dn\u00e9:<\/strong><\/p>\n<ul>\n<li>lightbox &#8211; 18%<\/li>\n<li>zoom &#8211; 51%<\/li>\n<li>oba &#8211; 31%<\/li>\n<\/ul>\n<p><strong>Lightbox m\u011bl vypadat asi takto:<\/strong><\/p>\n<p><a href=\"http:\/\/musilda.cz\/wp-content\/uploads\/2016\/09\/lightbox.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3133\" src=\"http:\/\/musilda.cz\/wp-content\/uploads\/2016\/09\/lightbox.gif\" alt=\"lightbox\" width=\"612\" height=\"312\" \/><\/a><\/p>\n<p><strong>Na mobilu pak takto:<\/strong><\/p>\n<p><a href=\"http:\/\/musilda.cz\/wp-content\/uploads\/2016\/09\/photoswipe-handheld.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3134\" src=\"http:\/\/musilda.cz\/wp-content\/uploads\/2016\/09\/photoswipe-handheld.gif\" alt=\"photoswipe-handheld\" width=\"373\" height=\"664\" \/><\/a><\/p>\n<p>Druh\u00e1 mo\u017enost &#8211; Zoom:<\/p>\n<p><a href=\"http:\/\/musilda.cz\/wp-content\/uploads\/2016\/09\/carousel-desktop-zoom.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3135\" src=\"http:\/\/musilda.cz\/wp-content\/uploads\/2016\/09\/carousel-desktop-zoom.gif\" alt=\"carousel-desktop-zoom\" width=\"337\" height=\"443\" \/><\/a><\/p>\n<p><strong>A \u010deho se tedy do\u010dk\u00e1me ve WooCommerce 2.7?\u00a0<\/strong><\/p>\n<p>Nyn\u00ed by se dal pou\u017e\u00edt obrat &#8211; chytr\u00e1 hor\u00e1kyn\u011b. V 2.7 bude toti\u017e jak <strong>zoom<\/strong>, tak <strong>lightbox<\/strong>.<\/p>\n<p>Pro lightbox bude pou\u017eit <a href=\"http:\/\/photoswipe.com\/\" target=\"_blank\" rel=\"noopener\">photoswipe<\/a>, pro carousel\/posouv\u00e1n\u00ed to bude <a href=\"http:\/\/flexslider.woothemes.com\/\" target=\"_blank\" rel=\"noopener\">flexislider<\/a>\u00a0a pro zoom script od <a href=\"http:\/\/www.jacklmoore.com\/zoom\/\" target=\"_blank\" rel=\"noopener\">Jacka Moorea<\/a>.<\/p>\n<p>Samoz\u0159ejm\u011b, \u017ee ruku v ruce s t\u00edm, bude nutno zm\u011bnit <strong>soubory \u0161ablony<\/strong>.<\/p>\n<p><strong>Zm\u011bna se bude t\u00fdkat:<\/strong><\/p>\n<ul>\n<li>templates\/single-product\/product-image.php<\/li>\n<li>templates\/single-product\/product-thumbnails.php<\/li>\n<\/ul>\n<p>Pokud si chcete s galeri\u00ed hr\u00e1t ji\u017e nyn\u00ed, sledujte v\u011btev v\u00fdvoje na <a href=\"https:\/\/github.com\/woothemes\/woocommerce\/tree\/add\/product-galleries\" target=\"_blank\" rel=\"noopener\">github.com<\/a>. Zat\u00edm nefunguj\u00ed spr\u00e1vn\u011b obr\u00e1zky variant.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce se pom\u011brn\u011b rychle vyv\u00edj\u00ed, ale jeden prvek, jakoby byl st\u00e1le opom\u00edjen. Galerie obr\u00e1zku na detailu produktu, se nezm\u011bnila snad od za\u010d\u00e1tku. A proto\u017ee to v\u00fdvoj\u00e1\u0159i c\u00edt\u00ed jako probl\u00e9m, zve\u0159ejnili anketu, jak galerii zm\u011bnit. Volit se dalo, zda m\u00e1 b\u00fdt k dispozici lightbox, zoom, nebo oba. V\u00fdsledky byly jednozna\u010dn\u00e9: lightbox &#8211; 18% zoom &#8211; 51%<\/p>\n","protected":false},"author":1,"featured_media":2613,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[13],"tags":[],"class_list":["post-3132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nezarazene"],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb.jpg",590,300,false],"thumbnail":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb-150x150.jpg",150,150,true],"medium":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb-300x153.jpg",300,153,true],"medium_large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb.jpg",590,300,false],"large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb.jpg",590,300,false],"1536x1536":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb.jpg",590,300,false],"2048x2048":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb.jpg",590,300,false],"archive-list":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2015\/12\/woocommerce-thumb-400x265.jpg",400,265,true]},"uagb_author_info":{"display_name":"Affinite","author_link":"https:\/\/affinite.io\/cs\/author\/affinite\/"},"uagb_comment_info":0,"uagb_excerpt":"WooCommerce se pom\u011brn\u011b rychle vyv\u00edj\u00ed, ale jeden prvek, jakoby byl st\u00e1le opom\u00edjen. Galerie obr\u00e1zku na detailu produktu, se nezm\u011bnila snad od za\u010d\u00e1tku. A proto\u017ee to v\u00fdvoj\u00e1\u0159i c\u00edt\u00ed jako probl\u00e9m, zve\u0159ejnili anketu, jak galerii zm\u011bnit. Volit se dalo, zda m\u00e1 b\u00fdt k dispozici lightbox, zoom, nebo oba. V\u00fdsledky byly jednozna\u010dn\u00e9: lightbox &#8211; 18% zoom &#8211; 51%","_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/3132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=3132"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/3132\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/2613"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=3132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=3132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=3132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}