{% if section.settings.show_sidebar %}
{% for block in section.blocks %} {% case block.type %} {% when 'sidebar_search' %} {% include "sidebar_search" %} {% when 'custom_sidebar' %} {% include "sidebar_custom" %} {% when 'sidebar_optin' %} {% include "sidebar_optin" %} {% when 'recent_posts' %} {% include "sidebar_recent_posts" %} {% when 'categories' %} {% include "sidebar_categories" %} {% when 'sidebar_img' %} {% include "sidebar_img" %} {% when 'sidebar_social' %} {% include "sidebar_social" %} {% when 'Author' %} {% include "instructor" %} {% endcase %} {% endfor %}
{% else %} {% endif %} {% schema %} { "name": "Blog Sidebar", "blocks": [ { "type": "Author", "name": "Author", "elements": [ { "type": "header", "content": "Author" }, { "type": "text", "id": "heading", "label": "Heading", "default": "Author" }, { "type": "checkbox", "id": "show_img", "label": "Show Headshot", "default": "true" }, { "type": "image_picker", "id": "image", "label": "Headshot", "fit": "crop", "width": 300, "height": 300, "info": "Suggested dimensions 300px x 300px" }, { "type": "text", "id": "name", "label": "Name", "default": "John Doe" }, { "type": "text", "id": "title", "label": "Title", "default": "Author" }, { "type": "textarea", "id": "bio", "label": "Bio", "default": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed sapien quam. Sed dapibus est id enim facilisis, at posuere turpis adipiscing. Quisque sit amet dui dui." }, { "type": "header", "content": "Block Appearance", "style": "subheading" }, { "type": "color", "label": "Accent Color Override", "id": "accent_color", "allow_blank": true } ] }, { "type": "categories", "name": "Categories", "elements": [ { "type": "header", "content": "Categories" }, { "type": "text", "id": "heading", "label": "Heading", "default": "Categories" }, { "type": "text", "id": "all_tags", "label": "All Categories Language", "default": "All Categories" } ] }, { "type": "sidebar_img", "name": "Image", "elements": [ { "type": "header", "content": "Image" }, { "type": "image_picker", "id": "image", "label": "Image", "info": "Suggested dimensions: 600 × 400" }, { "type": "action", "id": "img_action", "label": "Image Action", "default": "" }, { "type": "checkbox", "id": "link_target", "label": "Open In New Window", "default": "false" } ] }, { "type": "recent_posts", "name": "Recent Posts", "elements": [ { "type": "header", "content": "Recent Posts" }, { "type": "text", "id": "heading", "label": "Heading", "default": "Recent Posts" }, { "type": "checkbox", "id": "show_date", "label": "Show Date", "default": "true" }, { "type": "checkbox", "id": "show_tags", "label": "Show Tags", "default": "true" } ] }, { "type": "custom_sidebar", "name": "Custom Block", "elements": [ { "type": "header", "content": "Custom Block" }, { "type": "text", "id": "heading", "label": "Heading", "default": "Custom Content Goes Here" }, { "type": "checkbox", "id": "show_img", "label": "Show Image", "default": "true" }, { "type": "image_picker", "id": "image", "label": "Image", "info": "Suggested dimensions 600px x 300px" }, { "type": "rich_text", "id": "content", "label": "Content", "default": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed sapien quam. Sed dapibus est id enim facilisis, at posuere turpis adipiscing. Quisque sit amet dui dui." }, { "type": "checkbox", "id": "show_cta", "label": "Show CTA", "default": "true" }, { "type": "text", "id": "btn_text", "label": "CTA Text", "default": "Call To Action" }, { "type": "action", "id": "btn_action", "label": "CTA Action", "two_step": true, "default": "http://www.kajabi.com" }, { "type": "checkbox", "id": "btn_target", "label": "Open In New Window", "default": "false" }, { "type": "radio", "id": "btn_style", "label": "CTA Style", "default": "solid", "options": [ { "label": "Solid", "value": "solid" }, { "label": "Outline", "value": "outline" } ] }, { "type": "radio", "id": "btn_size", "label": "CTA Size", "default": "med", "options": [ { "label": "Small", "value": "small" }, { "label": "Medium", "value": "med" }, { "label": "Large", "value": "large" } ] }, { "type": "radio", "id": "btn_width", "label": "Button Width", "default": "block", "options": [ { "label": "Auto", "value": "auto" }, { "label": "Full Width", "value": "block" } ] }, { "type": "color", "id": "btn_background_color", "label": "Button Color", "allow_blank": true }, { "type": "color", "id": "btn_text_color", "label": "Button Text Color", "allow_blank": true, "info": "For solid buttons only" }, { "type": "header", "content": "Block Appearance", "style": "subheading" }, { "type": "color", "label": "Background Color Override", "id": "background_color", "allow_blank": true }, { "type": "color", "label": "Text Color Override", "id": "text_color", "allow_blank": true } ] }, { "type": "sidebar_search", "name": "Sidebar Search", "elements": [ { "type": "header", "content": "Sidebar Search" }, { "type": "text", "default": "Search...", "label": "Search Text", "id": "search_text" }, { "type": "header", "content": "Section Appearance", "style": "subheading" }, { "type": "color", "label": "Background Color Override", "id": "background_color", "default": "#ffffff", "allow_blank": true }, { "type": "color", "label": "Text Color Override", "id": "text_color", "default": "#000000", "allow_blank": true } ] }, { "type": "sidebar_optin", "name": "Sidebar Optin", "elements": [ { "type": "header", "content": "Sidebar Optin" }, { "type": "rich_text", "id": "content", "label": "Content", "default": "
Stay connected with news and updates!
" }, { "type": "text", "id": "btn_text", "label": "Button Text", "default": "Subscribe" }, { "type": "action", "id": "btn_action", "label": "Button Action", "two_step": true, "default": "#two-step" }, { "type": "checkbox", "id": "btn_target", "label": "Open In New Window", "default": "false" }, { "type": "radio", "id": "btn_style", "label": "Button Style", "default": "solid", "options": [ { "label": "Solid", "value": "solid" }, { "label": "Outline", "value": "outline" } ] }, { "type": "radio", "id": "btn_size", "label": "Button Size", "default": "med", "options": [ { "label": "Small", "value": "small" }, { "label": "Medium", "value": "med" }, { "label": "Large", "value": "large" } ] }, { "type": "radio", "id": "btn_width", "label": "Button Width", "default": "block", "options": [ { "label": "Auto", "value": "auto" }, { "label": "Full Width", "value": "block" } ] }, { "type": "color", "id": "btn_background_color", "label": "Button Color", "allow_blank": true }, { "type": "color", "id": "btn_text_color", "label": "Button Text Color", "allow_blank": true, "info": "For solid buttons only" }, { "type": "header", "content": "Block Appearance", "style": "subheading" }, { "type": "color", "label": "Background Color Override", "id": "background_color", "allow_blank": true, "default": "#e1e1e1" }, { "type": "color", "label": "Text Color Override", "id": "text_color", "allow_blank": true } ] }, { "type": "sidebar_social", "name": "Social Links", "elements": [ { "type": "header", "content": "Social Links", "info": "Links to your social networking pages. Each link MUST begin with \"http://\" or \"https://\". Leaving a field blank will hide that icon." }, { "type": "divider" }, { "type": "color", "label": "Link Color Override", "id": "link_color", "allow_blank": true }, { "type": "text", "label": "Facebook", "id": "social_facebook_url", "default": "https://www.facebook.com/kajabi" }, { "type": "text", "label": "Twitter", "id": "social_twitter_url", "default": "https://twitter.com/kajabi" }, { "type": "text", "label": "Instagram", "id": "social_instagram_url", "default": "https://www.instagram.com/kajabi/" }, { "type": "text", "label": "LinkedIn", "id": "social_linkedin_url" }, { "type": "text", "label": "Google Plus", "id": "social_googleplus_url" }, { "type": "text", "label": "Pinterest", "id": "social_pinterest_url" }, { "type": "text", "label": "YouTube", "id": "social_youtube_url" }, { "type": "text", "label": "Vimeo", "id": "social_vimeo_url" }, { "type": "text", "label": "Skype", "id": "social_skype_url" }, { "type": "text", "label": "iTunes", "id": "social_itunes_url" }, { "type": "text", "label": "Dribbble", "id": "social_dribbble_url" }, { "type": "text", "label": "Flickr", "id": "social_flickr_url" }, { "type": "text", "label": "Github", "id": "social_github_url" }, { "type": "text", "label": "Vine", "id": "social_vine_url" } ] } ], "elements": [ { "type": "checkbox", "id": "show_sidebar", "label": "Show Sidebar", "default": "true" } ] } {% endschema %}