Image_Layout_Polaroid

Canon EOS 2000D DSLR Camera Body - Black
Buy on Amazon £369.00
As of: 2021/06/28 4:05 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.

More examples can be found on the demo page:

Single Image Demo Page

 

On this page, ASA’s managed template “Image_Layout_Polaroid” is used. It is a special template for the single image function of ASA2. It is customizable in general and per shortcode.

Main features

  • template for the single image function
  • Responsive design
  • Adjustable via options without programming skills

Example

This example shows image number 3 of product with ASIN B07B199LGK and uses some shortcode options to change the layout on the fly:

[asa2_img img="3" size="LargeImage" show_title="yes" show_button="no" tpl="Image_Layout_Polaroid" country_code="UK"]B07B12XRBL[/asa2_img]
Canon EOS 2000D DSLR Camera Body - Black
Buy on Amazon £369.00
As of: 2021/06/28 4:05 pm - Details
Canon EOS 2000D DSLR Camera Body - Black
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.

Customization

On ASA 2’s admin page “Templates” you can customize the general options of template “Image_Layout_Polaroid“. These settings will effect every usage of this template.

Shortcode options

Besides the general settings, it is possible to overwrite template options per shortcode.

Example “size”

With option “size” you can select the image resolution. Usually those sizes are:

  • SwatchImage
  • SmallImage
  • ThumbnailImage
  • TinyImage
  • MediumImage (Default)
  • LargeImage
  • HiResImage
[asa2_img img="6" size="MediumImage" show_title="no" show_button="no" tpl="Image_Layout_Polaroid" country_code="UK"]B07B12XRBL[/asa2_img]
Canon EOS 2000D DSLR Camera Body - Black
Buy on Amazon £369.00
As of: 2021/06/28 4:05 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.

Example “width” and “height”

With options “width” and “height” you can adjust to image dimensions to your need:

[asa2_img img="2" size="LargeImage" show_title="no" show_button="yes" tpl="Image_Layout_Polaroid" country_code="UK"]B07B12XRBL[/asa2_img]
Canon EOS 2000D DSLR Camera Body - Black
Buy on Amazon £369.00
As of: 2021/06/28 4:05 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.

All available options:

Following you find a list of all available shortcode options for template “Flat_box_vertical”:

Layout
OptionTypeValuesDescription
is_image_hover bool "yes" / "no" Use image hover effect. Price and ratings are displayed over the image during mouse over, on AMP pages below the image.
min_width int 0 between 9999 Min width. Minimum width of the outer dimensions of the template in pixels.
background_color string CSS compatible color value, like hex values (#ff0000) or color names (red) Background color
border_color string CSS compatible color value, like hex values (#ff0000) or color names (red) Border color
border_width int 0 between 99 Border width. In pixels. 0 for no border.
border_radius int 0 between 99 Border radius. In pixels. > 0 for rounded corners.
random_rotate bool "yes" / "no" Random rotation effect
hover_effect bool "yes" / "no" Scale effect on hover
Image
OptionTypeValuesDescription
img_link_to string
  • "shop" (Shop page)
  • "buy" (Buy page)
  • "nothing" (Nothing)
Image links to
Title
OptionTypeValuesDescription
title_link_to string
  • "shop" (Shop page)
  • "buy" (Buy page)
  • "nothing" (Nothing)
Title links to
show_title bool "yes" / "no" Show title
title_color string CSS compatible color value, like hex values (#ff0000) or color names (red) Title color. No default. The title will be displayed in the default text color of your page, if none is set here.
title_font_css string custom text Title font style. Utilizes the CSS font property. Example: "15px arial, sans-serif;"
title_length int 0 between 999 Title max length. Limits the title to a maximum length of characters. 0 for unlimited.
Price
OptionTypeValuesDescription
price_color string CSS compatible color value, like hex values (#ff0000) or color names (red) Price color. The color in which the price text is displayed.
price_font_css string custom text Price font style. Utilizes the CSS font property. Example: "15px arial, sans-serif;"
show_price_disclaimer bool "yes" / "no" Show price disclaimer. "Details" link next to date of last update.
last_update_format string custom text Last item update date format. Used in price disclaimer. Supports PHP date function format. Example: D, d M Y H:i:s
Button
OptionTypeValuesDescription
show_button bool "yes" / "no" Show button
button_target string
  • "shop" (Shop page)
  • "buy" (Buy page)
Button target. Decides whether the button should link to the product page or the buy page.
button_max_width string custom text Button max width. CSS value like "50%" or "250px".
Misc
OptionTypeValuesDescription
disclaimer string
  • "none" (None)
  • "asterisk_and_text" (Asterisk in title link and button. Disclaimer text in each template.)
  • "asterisk_only" (Asterisk in title link and button. No disclaimer text.)
Disclaimer. Shows a disclaimer text.
custom_css string
  • "none" (None)
  • "asterisk_and_text" (Asterisk in title link and button. Disclaimer text in each template.)
  • "asterisk_only" (Asterisk in title link and button. No disclaimer text.)
Custom CSS. Custom CSS that is applied to all occurrences of this template on a page and is only included once in the source code.