Dennis Test - Short & Sweets

Clarksville, TN
United States

shortandsweets.fileswift.com
Hero
About
Cards
Parallax Background Image
Slides Carousel
Story Blocks
Contact
Short & Sweets Cake
A from-scratch dessert bakery making custom cakes and cupcakes in Clarksville, TN.
Delighting Your Sweet Tooth Since 2018
At Short & Sweets, our mission is to deliver the finest custom cakes and cupcakes around. We offer a variety of options, use only the finest ingredients, and infuse a dash of creativity in every order.
Cupcakes
Halloween Spider Cake
Snicker and Peanut Butter Cake
Floral Cake
Reeses & Peanut Butter Cake
Short & Sweets
{# /** * @file * Twig content for the html field in a site node. * This exact string content will be stored in the field_ff_html * field of the site node and will then be rendered as a node * for preview/view/ and publish purposes. * * This template is used when viewing a registered node's page, * e.g., example.com/node/123. 123 being the node's ID. * * Available variables: * - content: A list of content items. Use 'content' to print all content, or * print a subset such as 'content.field_example'. Fields attached to a node * such as 'node_picture' are available as 'content.node_picture'. * - attributes: HTML attributes for the container element. * - node: A Drupal User entity. * * @see template_preprocess_node() */ #} {# TEMPLATING NOTES: Text type field: {{ node.field_whatever.0.value}} Link field: {{ content.field_whatever.0 }} Link field in a paragraph field {{ paragraph_entity.field_whatever.0 | view }} Image: src="{{ base_url ~ file_url(node.field_whatever.0.entity.fileuri) }}" alt="{{ node.field_whatever.0.alt }}" Paragraphs: {% for item in node.field_sub_whatever %} {% set thing = item.entity %} NESTED Paragraphs (e.g. cards) {% set Thingies = node.field_whatever_paragraph.0.entity %} {% for item in items.field_sub_whatever %} {% set subThingy = item.entity %} Do stuff with subThingy.field_stuff_1.some#.value (maybe with |raw filter depending) {% endfor %} #} {# Get and array of section field values #} {% set sections = [] %} {% for key,item in node.field_ff_sections.getValue %} {% set sections = sections|merge([item.value]) %} {% endfor %} {% if not node.field_ff_structured_data_json is empty %} {% endif %} {% if not node.field_ff_ga_id is empty %} {% endif %} {{ content.metatags }} {% if not node.field_ff_site_name.0 is empty %} {{ node.field_ff_site_name.0.value }} {% else %} {{ label }} {% endif %} {% if not node.field_ff_verification_string is empty %} {% endif %} {% if not node.field_ff_social_icon.0 is empty %} {% endif %}
{# HERO SECTION #} {% if 1 in sections %}
{% if not node.field_ff_hero_image.0 is empty %}
{% endif %}
{% if not node.field_ff_hero_logo.0 is empty %}
{{ node.field_ff_hero_logo.0.alt }}
{% endif %}
{% if not node.field_ff_hero_heading.0.value is empty %}

{{ content.field_ff_hero_heading }}

{% endif %} {% if not node.field_ff_hero_subheading.0.value is empty %}

{{ content.field_ff_hero_subheading }}

{% endif %} {% if not node.field_ff_hero_button.0.value is empty %}

{{ content.field_ff_hero_button.0 }}

{% endif %}
{% endif %} {# ALERT MESSAGE #} {% if 2 in sections %}
{% endif %} {# MODAL ALERT #} {% if 3 in sections %} {% endif %} {# ABOUT SECTION #} {% if 4 in sections %}
{% if (not node.field_ff_main_title.0.value is empty) or (not node.field_ff_main_description.0.value is empty) %}
{% if not node.field_ff_main_title.0.value is empty %}

{{ content.field_ff_main_title}}

{% endif %} {% if not node.field_ff_main_description.0.value is empty %}
{{ content.field_ff_main_description }}
{% endif %} {% if not node.field_ff_main_button is empty %}
{{ content.field_ff_main_button.0 }}
{% endif %}
{% endif %}
{% endif %} {# CARDS #} {% if 5 in sections %} {% set cards = node.field_ff_main_cards.0.entity %} {% endif %} {# PARALAX BG IMAGE #} {% if 6 in sections %}
{% endif %} {# TWITTER EMBED #} {% if 7 in sections %}

Twitter

{{ node.field_ff_twitter_embed.0.value|raw }}
{% endif %} {# FACEBOOK EMBED #} {% if 8 in sections %}

Facebook

{% endif %} {# TOUR CALENDAR (BANDS IN TOWN EVENTS) #} {% if 9 in sections %}

Events

{% endif %} {# IMAGE GALLERY #} {% if 10 in sections %} {% endif %} {# STORY BLOCKS #} {% if 12 in sections %} {% for item in node.field_ff_story_blocks %} {% set sb = item.entity %} {% set view_mode = sb.field_view_mode_selector.0.value|replace({'_':'-'}) %}
{% if (('full-bg-image' in view_mode) or ('center-text' in view_mode)) and (not sb.field_story_block_images is empty) %}
{% endif %}
{% if 'center-text' in view_mode %} {% if not sb.field_story_block_images is empty %}
{{ sb.field_story_block_images.0.alt }}
{% endif %} {% if not sb.field_title.0.value is empty %} {% if 'h1-title' in view_mode %}

{{ sb.field_title.0.value }}

{% else %}

{{ sb.field_title.0.value }}

{% endif %} {% endif %} {% if not sb.field_story_block_text.0.value is empty %}
{{ sb.field_story_block_text.0.value|raw }}
{% endif %} {% if not sb.field_story_block_link is empty %}
{{ sb.field_story_block_link.0 | view }}
{% endif %} {% else %}
{% if not sb.field_story_block_images.0 is empty %}
{{ sb.field_story_block_images.0.alt }}
{% endif %} {% if 'left-text' in view_mode %} {# is a left text sb#} {% if not sb.field_title.0.value is empty %}

{{ sb.field_title.0.value }}

{% endif %} {% if not sb.field_story_block_text.0.value is empty %}
{{ sb.field_story_block_text.0.value|raw }}
{% endif %} {% if not sb.field_story_block_link is empty %}
{{ sb.field_story_block_link.0 | view }}
{% endif %} {% elseif 'left-bg-image' in view_mode %} {# is a left bg img sb #}
{% elseif ('left-image' in view_mode) and (not sb.field_story_block_images is empty) %} {# is a left img tag sb #}
{{ sb.field_story_block_images.0.alt }}
{% endif %}
{% if 'right-text' in view_mode %} {# is a right text sb #} {% if not sb.field_title.0.value is empty %}

{{ sb.field_title.0.value }}

{% endif %} {% if not sb.field_story_block_text.0.value is empty %}
{{ sb.field_story_block_text.0.value|raw }}
{% endif %} {% if not sb.field_story_block_link is empty %}
{{ sb.field_story_block_link.0 | view }}
{% endif %} {% elseif 'right-bg-image' in view_mode %} {# is a right bg img sb #}
{% elseif ('right-image' in view_mode) and (not sb.field_story_block_images is empty) %} {# is a right img tag sb #}
{{ sb.field_story_block_images.0.alt }}
{% endif %}
{% endif %}
{% endfor %} {% endif %} {# INSTAGRAM EMBED #} {% if 13 in sections %}

Instagram Feed

{{ node.field_ff_instagram_embed.0.value|raw }}
{% endif %} {# SLIDES WITH TEXT #} {% if 11 in sections %} {% set cards = node.field_ff_testimonials.0.entity %}
{% if not cards.field_cards_title is empty %}
{% if not cards.field_cards_title is empty %}

{{ cards.field_cards_title.0.value|raw }}

{% endif %} {% if not cards.field_cards_body is empty %}
{{ cards.field_cards_body.0.value|raw }}
{% endif %}
{% endif %}
{% for item in cards.field_cards_card_grid %} {% set card = item.entity %}
{% if (not card.field_sub_card_title is empty) or (not card.field_sub_card_body is empty) or (not card.field_sub_card_link is empty) %}
{% if not card.field_sub_card_title is empty %}

{{ card.field_sub_card_title.0.value|raw }}

{% endif %} {% if not card.field_sub_card_body is empty %}
{{ card.field_sub_card_body.0.value|raw }}
{% endif %} {% if not card.field_sub_card_link is empty %}
{{ card.field_sub_card_link.0 | view }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %} {# WUFOO CONTACT FORM #} {% if 14 in sections %}

Contact Us

{{ content.field_ff_site_name }}
{{ content.field_ff_address }}
{{ content.field_ff_phone_number }}
{{ content.field_ff_fax_number }}
{% if not node.field_ff_email_address.0.value is empty %} {% endif %}
Fill out my online form.