{"id":9098,"date":"2018-08-14T14:15:28","date_gmt":"2018-08-14T14:15:28","guid":{"rendered":"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/shortcodes\/gallery\/"},"modified":"2018-11-19T10:36:09","modified_gmt":"2018-11-19T10:36:09","slug":"gallery","status":"publish","type":"docs","link":"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/shortcodes\/gallery\/","title":{"rendered":"Gallery"},"content":{"rendered":"<h2>Available as Elementor widget!<\/h2>\n<p>Since <strong>version 2.1.0<\/strong> it is available as <a href=\"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/elementor-widgets\/\">Elementor widget<\/a>.<\/p>\n<h2>What is it for<\/h2>\n<p>Gallery shortcode can be used to display photos &amp; videos in our bricks gallery that is mostly known from usage in our albums. With this shortcode, you can display it on any page or post that you like.<\/p>\n<p>It requires plugin <strong>Apollo13 Framework Extensions<\/strong> in version <strong>1.3.0 at least<\/strong> and <strong>Theme<\/strong> in version <strong>1.10.0 at least<\/strong>.<\/p>\n<h2>What is needed for it<\/h2>\n<p>To use it you need to create album or work and <a href=\"http:\/\/rifetheme.com\/help\/docs\/content-management\/albums-works-post-types\/album-media\/\">add media to it<\/a>. When you have such album\/work prepared then you can use the shortcode to display it where you want.<\/p>\n<p>All typical settings of bricks album can be set in shortcode.<\/p>\n<h2>Shortcode and its parameters<\/h2>\n<p>First, let&#8217;s see some examples:<\/p>\n<pre><code>&#091;a13fe-gallery id=\"123\" ]\r\n&#091;a13fe-gallery id=\"8792\" texts=\"0\" socials=\"1\" ratio=\"1\/1\" columns=\"4\"]\r\n&#091;a13fe-gallery id=\"5985\" texts=\"1\" gradient=\"1\"]\r\n&#091;a13fe-gallery id=\"6121\" cover_hover=\"1\" texts_hover=\"1\" columns=\"2\" margin=\"20px\"]<\/code><\/pre>\n<p>So shortcode is named <code>a13fe-gallery<\/code> and it has following parameters that you can use:<\/p>\n<ul>\n<li><strong>id<\/strong> &#8211; (required) album\/work ID that you want to use media from\n<p><figure id=\"attachment_8919\" class=\"thumbnail wp-caption alignnone\" style=\"width: 853px\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8919\" src=\"https:\/\/rifetheme.com\/wp-content\/uploads\/2018\/01\/albumId.jpg\" alt=\"Where to find ID of post\" width=\"843\" height=\"396\" \/><figcaption class=\"caption wp-caption-text\">Where to find the ID of the post<\/figcaption><\/figure><\/li>\n<li><strong>columns<\/strong> &#8211; (default <em>3<\/em>) how many columns should gallery take(maybe be smaller depending on the device screen). <em>Value from 1 to 6<\/em>.<\/li>\n<li><strong>margin<\/strong> &#8211; (default <em>to 5px<\/em>) margin between items in pixels.<\/li>\n<li><strong>ratio<\/strong> &#8211; (default <em>0<\/em>) &#8211; what proportion of width to height should item be displayed. Possible values:<strong><br \/>\n<\/strong><\/p>\n<ul>\n<li>0 &#8211; Original image size<\/li>\n<li>1\/1<\/li>\n<li>2\/3<\/li>\n<li>3\/2<\/li>\n<li>3\/4<\/li>\n<li>4\/3<\/li>\n<li>9\/16<\/li>\n<li>16\/9<\/li>\n<li>any other numbers combination<\/li>\n<\/ul>\n<\/li>\n<li><strong>filter<\/strong> &#8211; (default <em>to 0<\/em>) if tags for items are provided should filter be displayed. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>lightbox<\/strong> &#8211; (default <em>to 1<\/em>) should items open to lightbox. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>hover_effect<\/strong> &#8211; (default <em>to drop<\/em>) what type of the hover effect should gallery use. Possible values<em>:<\/em>\n<ul>\n<li>cross<\/li>\n<li>drop<\/li>\n<li>shift<\/li>\n<li>pop<\/li>\n<li>border<\/li>\n<li>none<\/li>\n<\/ul>\n<\/li>\n<li><strong>cover<\/strong> &#8211; (default <em>to 0<\/em>) should cover be displayed over an item. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>cover_hover<\/strong> &#8211; (default <em>to 0<\/em>) should cover be displayed over an item on mouse hover. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>cover_color<\/strong> &#8211; (default <em>to <\/em>rgba<em>(0,0,0,0.7)<\/em>) cover color when it is displayed. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>texts<\/strong> &#8211; (default <em>to 0<\/em>) should title &amp; description be displayed over an item. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>texts_hover<\/strong> &#8211; (default <em>to 0<\/em>) should title &amp; description be displayed over an item on hover. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>texts_position<\/strong> &#8211; (default <em>to bottom_center<\/em>) texts position over image. Possible values:\n<ul>\n<li>top_left<\/li>\n<li>top_center<\/li>\n<li>top_right<\/li>\n<li>mid_left<\/li>\n<li>mid_center<\/li>\n<li>mid_right<\/li>\n<li>bottom_left<\/li>\n<li>bottom_center<\/li>\n<li>bottom_right<\/li>\n<\/ul>\n<\/li>\n<li><strong>gradient<\/strong> &#8211; (default <em>to 0<\/em>) should gradient be displayed over an item. It is useful to make texts more readable. Gradient position is dependant on <em>texts_position<\/em>. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>gradient_hover<\/strong> &#8211; (default <em>to 0<\/em>) should cover be displayed over an item on mouse hover. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>socials<\/strong> &#8211; (default <em>0<\/em>) should sharing icons be displayed. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"parent":8470,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_tag":[],"class_list":["post-9098","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/9098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/comments?post=9098"}],"version-history":[{"count":3,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/9098\/revisions"}],"predecessor-version":[{"id":9140,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/9098\/revisions\/9140"}],"up":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8470"}],"next":[{"title":"Socials","link":"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/shortcodes\/socials\/","href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/9088"}],"prev":[{"title":"Writing effect","link":"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/shortcodes\/writing-effect\/","href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8905"}],"wp:attachment":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/media?parent=9098"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/doc_tag?post=9098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}