From 04fb3bdd3b97114f81a89321ad734cff7eafe8a1 Mon Sep 17 00:00:00 2001 From: Hugo Peek Date: Thu, 26 Jan 2017 15:23:49 +0800 Subject: [PATCH] Update pattern library to 0.10.5 --- _data/categories/212.m-buttons.yaml | 3 + _data/cb_fields/1.Heading.yaml | 2 +- _data/cb_fields/13.Code-(Display).yaml | 2 +- _data/cb_fields/14.HTML-Code.yaml | 4 +- .../cb_fields/20.Overview-(Specific-IDs).yaml | 2 +- _data/cb_fields/26.Input-(Textfield).yaml | 4 +- _data/cb_fields/27.Input-(Textarea).yaml | 4 +- _data/cb_fields/28.Select-Options.yaml | 4 +- .../30.Select-Options-(with-Collapse).yaml | 4 +- _data/cb_fields/31.Select-Dropdown.yaml | 4 +- ...2.Select-Dropdown-(with-Auto-Options).yaml | 4 +- _data/cb_fields/33.Input-(File).yaml | 4 +- _data/cb_fields/34.Input-(Hidden).yaml | 2 +- .../35.Accept-Terms-and-Conditions.yaml | 2 +- _data/cb_fields/41.Input-(Email).yaml | 4 +- ....yaml => 43.Heading-(with-Font-icon).yaml} | 2 +- _data/cb_fields/79.Message.yaml | 2 +- _data/cb_fields/86.Code-(Execute).yaml | 2 +- .../87.Nested-Layout-(Backyard).yaml | 13 ++ _data/cb_fields/9.Button.yaml | 4 +- _data/cb_layouts/14.Fieldset.yaml | 2 +- _data/cb_layouts/15.Call-To-Action.yaml | 2 +- _data/cb_layouts/17.Pattern.yaml | 4 +- _data/cb_layouts/18.Backyard.yaml | 12 ++ _data/cb_layouts/5.3-Columns.yaml | 2 +- _data/cb_layouts/6.2-Columns.yaml | 2 +- _data/cb_templates/101.PL-Electron.yaml | 2 +- _data/cb_templates/102.PL-Atom.yaml | 2 +- _data/cb_templates/103.PL-Molecule.yaml | 2 +- _data/cb_templates/104.PL-Organism.yaml | 2 +- _data/cb_templates/105.PL-Template.yaml | 2 +- _data/cb_templates/106.PL-Formula.yaml | 2 +- _data/cb_templates/107.PL-Computation.yaml | 7 + _data/cb_templates/107.PL-Computations.yaml | 7 - _data/cb_templates/108.PL-Boson-(Field).yaml | 7 + _data/cb_templates/109.PL-Boson-(Layout).yaml | 7 + _data/chunks/buttonHrefIcon.yaml | 2 +- _data/chunks/buttonOuter.yaml | 37 +++++ _data/chunks/buttonSocialConnectFacebook.yaml | 2 +- _data/chunks/buttonSocialShareFacebook.yaml | 2 +- _data/chunks/cbFormLabelPosition.yaml | 11 ++ _data/chunks/cbLayoutBackyard.yaml | 52 +++++++ _data/chunks/cbLayoutPattern.yaml | 26 ++-- _data/chunks/cbLayoutPatternPreview.yaml | 24 ++-- _data/chunks/cbLayoutStatusPattern.yaml | 16 +++ _data/chunks/cbLayoutThreeColumns.yaml | 2 +- _data/chunks/cbLayoutTwoColumns.yaml | 2 +- _data/chunks/cbSettingButtonOptions.yaml | 11 ++ _data/chunks/cbSettingButtonType.yaml | 4 +- _data/chunks/cbSettingIconOptions.yaml | 10 ++ _data/chunks/codeSnippet.yaml | 2 +- _data/chunks/displayRawTemplate.yaml | 7 +- _data/chunks/includedContentBlocksRow.yaml | 2 +- _data/chunks/includedPatternsOuter.yaml | 2 +- _data/chunks/navItemIcon.yaml | 12 ++ _data/chunks/overviewRowIconCompact.yaml | 2 +- _data/chunks/overviewRowIconLeft.yaml | 2 +- _data/chunks/overviewRowIconTop.yaml | 2 +- _data/chunks/overviewRowIconTopCard.yaml | 2 +- _data/chunks/overviewRowIconTopLinkCard.yaml | 2 +- _data/chunks/projectHubOuter.yaml | 1 + _data/chunks/referringPatternsOuter.yaml | 18 +++ _data/chunks/sliderOuter.yaml | 2 +- _data/chunks/toolbarPattern.yaml | 56 ++++++-- _data/chunks/toolbarPatternElectron.yaml | 27 ++++ .../collections_templates/1.Publication.yaml | 1 - _data/collections_templates/2.Forms.yaml | 1 - .../3.Call-To-Actions.yaml | 1 - .../collections_templates/4.Testimonials.yaml | 1 - _data/collections_templates/5.Team.yaml | 1 - _data/collections_templates/6.Footers.yaml | 1 - .../7.Pattern-Library.yaml | 1 - _data/collections_templates/8.Portfolio.yaml | 1 - _data/collections_templates/9.Clients.yaml | 1 - _data/context_settings/hub.site-start.yaml | 4 - _data/context_settings/web.site-start.yaml | 4 - .../22.OnBeforeSaveWebPageCache.yaml | 2 + _data/snippets/assignedTVs.php | 46 ++++--- _data/snippets/cbRenderCodeField.php | 46 +++++++ _data/snippets/filterLine.php | 24 ++++ _data/snippets/firstChildID.php | 43 ++++++ _data/snippets/getElementDescription.php | 8 +- _data/snippets/includedBosons.php | 127 ++++++++++++++++++ _data/snippets/includedChunks.php | 61 +++++---- _data/snippets/includedPatternsLink.php | 4 +- _data/snippets/includedSnippets.php | 2 + _data/snippets/jsonToHTML.php | 61 ++++----- _data/snippets/referringBosons.php | 13 +- _data/snippets/setPatternPlaceholders.php | 18 +-- _data/snippets/tabsGenerateNav.php | 20 ++- _data/snippets/tvToJSON.php | 64 +++++++++ ...contentblocks.defaults-allowed-inputs.yaml | 4 + .../contentblocks.file.upload-path.yaml | 4 + .../contentblocks.show-resource-option.yaml | 5 + _data/template_variables/fb-form-layout.yaml | 4 +- .../project-hub-timeline.yaml | 4 +- .../template_variables/status-indicator.yaml | 4 +- ...{ProjectHub.yaml => ProjectDashboard.yaml} | 4 +- 98 files changed, 837 insertions(+), 224 deletions(-) create mode 100644 _data/categories/212.m-buttons.yaml rename _data/cb_fields/{43.Heading-(with-Font-Icon).yaml => 43.Heading-(with-Font-icon).yaml} (97%) create mode 100644 _data/cb_fields/87.Nested-Layout-(Backyard).yaml create mode 100644 _data/cb_layouts/18.Backyard.yaml create mode 100644 _data/cb_templates/107.PL-Computation.yaml delete mode 100644 _data/cb_templates/107.PL-Computations.yaml create mode 100644 _data/cb_templates/108.PL-Boson-(Field).yaml create mode 100644 _data/cb_templates/109.PL-Boson-(Layout).yaml create mode 100644 _data/chunks/buttonOuter.yaml create mode 100644 _data/chunks/cbFormLabelPosition.yaml create mode 100644 _data/chunks/cbLayoutBackyard.yaml create mode 100644 _data/chunks/cbLayoutStatusPattern.yaml create mode 100644 _data/chunks/cbSettingButtonOptions.yaml create mode 100644 _data/chunks/cbSettingIconOptions.yaml create mode 100644 _data/chunks/navItemIcon.yaml create mode 100644 _data/chunks/toolbarPatternElectron.yaml delete mode 100644 _data/context_settings/hub.site-start.yaml delete mode 100644 _data/context_settings/web.site-start.yaml create mode 100644 _data/plugin_events/22.OnBeforeSaveWebPageCache.yaml create mode 100644 _data/snippets/cbRenderCodeField.php create mode 100644 _data/snippets/filterLine.php create mode 100644 _data/snippets/firstChildID.php create mode 100644 _data/snippets/includedBosons.php create mode 100644 _data/snippets/tvToJSON.php create mode 100644 _data/system_settings/contentblocks.defaults-allowed-inputs.yaml create mode 100644 _data/system_settings/contentblocks.file.upload-path.yaml create mode 100644 _data/system_settings/contentblocks.show-resource-option.yaml rename _data/templates/{ProjectHub.yaml => ProjectDashboard.yaml} (89%) diff --git a/_data/categories/212.m-buttons.yaml b/_data/categories/212.m-buttons.yaml new file mode 100644 index 00000000..1e52a133 --- /dev/null +++ b/_data/categories/212.m-buttons.yaml @@ -0,0 +1,3 @@ +id: 212 +parent: 19 +category: m_buttons diff --git a/_data/cb_fields/1.Heading.yaml b/_data/cb_fields/1.Heading.yaml index 12925201..af1d3794 100644 --- a/_data/cb_fields/1.Heading.yaml +++ b/_data/cb_fields/1.Heading.yaml @@ -2,7 +2,7 @@ id: 1 parent_properties: '' input: heading name: Heading -description: '' +description: 'Insert a regular heading, with the ability to control the hierarchy level (h1,h2,h3..) and text alignment. You can also add an anchor to the HTML, for more precise linking from other pages.' category: 1 icon: heading icon_type: '' diff --git a/_data/cb_fields/13.Code-(Display).yaml b/_data/cb_fields/13.Code-(Display).yaml index f052c038..165630e7 100644 --- a/_data/cb_fields/13.Code-(Display).yaml +++ b/_data/cb_fields/13.Code-(Display).yaml @@ -7,7 +7,7 @@ sortorder: 27 category: 6 icon: code icon_type: '' -template: '
[[+value:esc]][[+label:notempty=`
[[+label]]
`]]
' +template: '
[[+value:esc]][[+label:notempty=`
[[+label]]
`]]
' properties: '{"available_languages":"html=HTML,javascript=JavaScript,css=CSS,php=PHP","default_language":"html","entities":"1"}' availability: '[{"field":"usergroup","value":"Administrator"}]' layouts: '' diff --git a/_data/cb_fields/14.HTML-Code.yaml b/_data/cb_fields/14.HTML-Code.yaml index 9b0fff2d..1cbd9abc 100644 --- a/_data/cb_fields/14.HTML-Code.yaml +++ b/_data/cb_fields/14.HTML-Code.yaml @@ -7,8 +7,8 @@ sortorder: 29 category: 6 icon: code icon_type: '' -template: '[[+value]]' +template: "[[!cbRenderCodeField?\n &valueRendered=`[[+value:stripString=`:tag`]]`\n &valueRaw=`[[+value]]`\n &renderTag=`[[+render_tag]]`\n]]" properties: '{"available_languages":"html=HTML","default_language":"html","entities":"0"}' availability: '[{"field":"usergroup","value":"Administrator"}]' layouts: '' -settings: '[]' +settings: '[{"reference":"render_tag","title":"Rendering of :tag","fieldtype":"radio","default_value":"ignore","fieldoptions":"Render :tag modifier(s) anyway and set code_field_raw placeholder=render\nRespect :tag modifier(s) and set code_field_rendered placeholder=respect\nProcess everything as usual, without setting any placeholders=ignore","field_is_exposed":"modal"}]' diff --git a/_data/cb_fields/20.Overview-(Specific-IDs).yaml b/_data/cb_fields/20.Overview-(Specific-IDs).yaml index ba82cce9..e39ef643 100644 --- a/_data/cb_fields/20.Overview-(Specific-IDs).yaml +++ b/_data/cb_fields/20.Overview-(Specific-IDs).yaml @@ -1,7 +1,7 @@ id: 20 parent_properties: '' input: chunk -name: 'Overview (Specific ID''s)' +name: 'Overview (Specific IDs)' description: '' sortorder: 32 category: 5 diff --git a/_data/cb_fields/26.Input-(Textfield).yaml b/_data/cb_fields/26.Input-(Textfield).yaml index 092de829..c23be41b 100644 --- a/_data/cb_fields/26.Input-(Textfield).yaml +++ b/_data/cb_fields/26.Input-(Textfield).yaml @@ -8,6 +8,6 @@ category: 7 icon: paragraph template: '[[+tag]]' properties: '{"chunk":"35","custom_preview":"

You can select a different input type or add an optional placeholder in the Settings menu.<\/em><\/p>"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"field_type","title":"Input type","fieldtype":"select","default_value":"text","fieldoptions":"Text=text\nE-mail=email\nPhone=tel\nNumber=number\nDate=date\nURL=url\nPassword=password","field_is_exposed":"modal"},{"reference":"field_placeholder","title":"Placeholder","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"field_type","title":"Input type","fieldtype":"select","default_value":"text","fieldoptions":"Text=text\nE-mail=email\nPhone=tel\nNumber=number\nDate=date\nURL=url\nPassword=password","field_is_exposed":"modal"},{"reference":"field_placeholder","title":"Placeholder","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/27.Input-(Textarea).yaml b/_data/cb_fields/27.Input-(Textarea).yaml index d59fd973..2b18dd35 100644 --- a/_data/cb_fields/27.Input-(Textarea).yaml +++ b/_data/cb_fields/27.Input-(Textarea).yaml @@ -8,6 +8,6 @@ category: 7 icon: paragraph template: '[[+tag]]' properties: '{"chunk":"36","custom_preview":"

You can add an optional placeholder in the Settings menu.<\/em><\/p>"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"field_rows","title":"Rows","fieldtype":"textfield","default_value":"7","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_placeholder","title":"Placeholder","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"field_rows","title":"Rows","fieldtype":"textfield","default_value":"7","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_placeholder","title":"Placeholder","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/28.Select-Options.yaml b/_data/cb_fields/28.Select-Options.yaml index 158b4e42..848a1eb5 100644 --- a/_data/cb_fields/28.Select-Options.yaml +++ b/_data/cb_fields/28.Select-Options.yaml @@ -8,6 +8,6 @@ category: 7 icon: checkbox template: "[[$fbSelectOptionRow?\n &field_type=`[[+field_type]]`\n &field_name=`[[+field_name]]`\n &option_layout=`[[+option_layout]]`\n &field_option=`[[+field_option]]`\n &field_helptext=`[[+field_helptext]]`\n &idx=`[[+idx]]`\n &unique_idx=`[[+unique_idx]]`\n]]" properties: '{"wrapper_template":"[[$fbSelectOption?\n &field_layout=`[[+field_layout]]`\n &field_type=`[[+field_type]]`\n &field_name=`[[+field_name]]`\n &option_layout=`[[+option_layout]]`\n &option_other=`[[+option_other]]`\n &option_other_value=`[[+option_other_value]]`\n &field_helptext=`[[+field_helptext]]`\n &field_required=`[[+field_required]]`\n &rows=`[[+rows]]`\n &unique_idx=`[[+unique_idx]]`\n]]","row_separator":"","max_items":"0","min_items":"0","add_first_item":"true"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"option_layout","title":"Options layout","fieldtype":"select","default_value":"","fieldoptions":"Vertical=default\nInline=inline","field_is_exposed":"modal"},{"reference":"option_other","title":"Add \"Other\" option","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"},{"reference":"option_other_value","title":"\"Other\" option text","fieldtype":"textfield","default_value":"Something else","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_type","title":"Selection type","fieldtype":"select","default_value":"radio","fieldoptions":"Single select (radio)=radio\nMultiple select (checkbox)=checkbox","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"option_layout","title":"Options layout","fieldtype":"select","default_value":"","fieldoptions":"Vertical=\nInline=inline","field_is_exposed":"modal"},{"reference":"option_other","title":"Add \"Other\" option","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"},{"reference":"option_other_value","title":"\"Other\" option text","fieldtype":"textfield","default_value":"Something else","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_type","title":"Selection type","fieldtype":"select","default_value":"radio","fieldoptions":"Single select (radio)=radio\nMultiple select (checkbox)=checkbox","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/30.Select-Options-(with-Collapse).yaml b/_data/cb_fields/30.Select-Options-(with-Collapse).yaml index 1f9c4129..0e643788 100644 --- a/_data/cb_fields/30.Select-Options-(with-Collapse).yaml +++ b/_data/cb_fields/30.Select-Options-(with-Collapse).yaml @@ -8,6 +8,6 @@ category: 7 icon: checkbox template: "[[$fbSelectOptionRow?\n &field_type=`[[+field_type]]`\n &field_name=`[[+field_name]]`\n &option_layout=`[[+option_layout]]`\n &collapse_target=`[[+collapse_target]]`\n &field_option=`[[+field_option]]`\n &field_helptext=`[[+field_helptext]]`\n &idx=`[[+idx]]`\n &unique_idx=`[[+unique_idx]]`\n]]" properties: '{"wrapper_template":"[[$fbSelectOption?\n &field_layout=`[[+field_layout]]`\n &field_type=`[[+field_type]]`\n &field_name=`[[+field_name]]`\n &option_layout=`[[+option_layout]]`\n &field_helptext=`[[+field_helptext]]`\n &field_required=`[[+field_required]]`\n &rows=`[[+rows]]`\n &unique_idx=`[[+unique_idx]]`\n]]","row_separator":"","max_items":"0","min_items":"0","add_first_item":"true"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"option_layout","title":"Options layout","fieldtype":"select","default_value":"","fieldoptions":"Vertical=default\nInline=inline","field_is_exposed":"modal"},{"reference":"field_type","title":"Selection type","fieldtype":"select","default_value":"radio","fieldoptions":"Single select (radio)=radio\nMultiple select (checkbox)=checkbox","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"option_layout","title":"Options layout","fieldtype":"select","default_value":"","fieldoptions":"Vertical=default\nInline=inline","field_is_exposed":"modal"},{"reference":"field_type","title":"Selection type","fieldtype":"select","default_value":"radio","fieldoptions":"Single select (radio)=radio\nMultiple select (checkbox)=checkbox","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/31.Select-Dropdown.yaml b/_data/cb_fields/31.Select-Dropdown.yaml index a3b7bdd0..80ee44e8 100644 --- a/_data/cb_fields/31.Select-Dropdown.yaml +++ b/_data/cb_fields/31.Select-Dropdown.yaml @@ -8,6 +8,6 @@ category: 7 icon: checkbox template: "[[$fbSelectDropdownRow?\n &field_name=`[[+field_name]]`\n &field_option=`[[+field_option]]`\n &unique_idx=`[[+unique_idx]]`\n]]" properties: '{"wrapper_template":"[[$fbSelectDropdown?\n &field_layout=`[[+field_layout]]`\n &field_name=`[[+field_name]]`\n &field_default=`[[+field_default]]`\n &field_helptext=`[[+field_helptext]]`\n &field_required=`[[+field_required]]`\n &rows=`[[+rows]]`\n &unique_idx=`[[+unique_idx]]`\n]]","row_separator":"","max_items":"0","min_items":"0","add_first_item":"true"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"field_default","title":"Default option","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"field_default","title":"Default option","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/32.Select-Dropdown-(with-Auto-Options).yaml b/_data/cb_fields/32.Select-Dropdown-(with-Auto-Options).yaml index 423968e5..efe7bb1c 100644 --- a/_data/cb_fields/32.Select-Dropdown-(with-Auto-Options).yaml +++ b/_data/cb_fields/32.Select-Dropdown-(with-Auto-Options).yaml @@ -8,6 +8,6 @@ category: 7 icon: snippet_A template: "[[$fbSelectDropdown?\n &field_layout=`[[+field_layout]]`\n &field_name=`[[+field_name]]`\n &field_option=`[[+field_option]]`\n &field_default=`[[+field_default]]`\n &field_helptext=`[[+field_helptext]]`\n &field_required=`[[+field_required]]`\n &rows=`[[+value]]`\n &unique_idx=`[[+unique_idx]]`\n]]" properties: '{"available_languages":"html=HTML","default_language":"html","entities":"0"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"field_default","title":"Default option","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"field_default","title":"Default option","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/33.Input-(File).yaml b/_data/cb_fields/33.Input-(File).yaml index efb96043..916322b6 100644 --- a/_data/cb_fields/33.Input-(File).yaml +++ b/_data/cb_fields/33.Input-(File).yaml @@ -8,6 +8,6 @@ category: 7 icon: attachment template: '[[+tag]]' properties: '{"chunk":"42","custom_preview":"

Visitors can upload a single file through this field.<\/em><\/p>"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_required","title":"Required","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/34.Input-(Hidden).yaml b/_data/cb_fields/34.Input-(Hidden).yaml index 5b981477..661bb4cc 100644 --- a/_data/cb_fields/34.Input-(Hidden).yaml +++ b/_data/cb_fields/34.Input-(Hidden).yaml @@ -8,6 +8,6 @@ category: 7 icon: snippet_B template: '[[+tag]]' properties: '{"chunk":"43","custom_preview":"

<\/p>"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' settings: '[{"reference":"field_name","title":"Name","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_value","title":"Value","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"}]' diff --git a/_data/cb_fields/35.Accept-Terms-and-Conditions.yaml b/_data/cb_fields/35.Accept-Terms-and-Conditions.yaml index 4bd3a06f..a643fdb5 100644 --- a/_data/cb_fields/35.Accept-Terms-and-Conditions.yaml +++ b/_data/cb_fields/35.Accept-Terms-and-Conditions.yaml @@ -8,7 +8,7 @@ category: 7 icon: checkbox template: '[[+tag]]' properties: '{"chunk":"44","custom_preview":"

You can link to your terms by entering the corresponding resource ID and using the [[+link]] placeholder in the field text.<\/em><\/p>"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' times_per_page: 1 settings: '[{"reference":"field_text","title":"Field text","fieldtype":"textfield","default_value":"I accept the [[+link]].","fieldoptions":"","field_is_exposed":"asField"},{"reference":"link_id","title":"Link resource ID","fieldtype":"textfield","default_value":"[[++terms_and_conditions_id]]","fieldoptions":"","field_is_exposed":"modal"},{"reference":"link_text","title":"Link text","fieldtype":"textfield","default_value":"Terms and Conditions","fieldoptions":"","field_is_exposed":"modal"}]' diff --git a/_data/cb_fields/41.Input-(Email).yaml b/_data/cb_fields/41.Input-(Email).yaml index 5d4df566..3a785ece 100644 --- a/_data/cb_fields/41.Input-(Email).yaml +++ b/_data/cb_fields/41.Input-(Email).yaml @@ -8,6 +8,6 @@ category: 7 icon: paragraph template: '[[+tag]]' properties: '{"chunk":"37","custom_preview":"

You can add an optional placeholder in the Settings menu.<\/em><\/p>"}' -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' layouts: '' -settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"Inherit (from Form Layout)=[[*fb_form_layout]]\nAbove options=form-default\nLeft of options=form-horizontal","field_is_exposed":"modal"},{"reference":"field_placeholder","title":"Placeholder","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"}]' +settings: '[{"reference":"field_name","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"field_layout","title":"Label position","fieldtype":"select","default_value":"[[*fb_form_layout]]","fieldoptions":"[[$cbFormLabelPosition]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"field_placeholder","title":"Placeholder","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"field_helptext","title":"Help text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"}]' diff --git a/_data/cb_fields/43.Heading-(with-Font-Icon).yaml b/_data/cb_fields/43.Heading-(with-Font-icon).yaml similarity index 97% rename from _data/cb_fields/43.Heading-(with-Font-Icon).yaml rename to _data/cb_fields/43.Heading-(with-Font-icon).yaml index 126502c8..bfb366ad 100644 --- a/_data/cb_fields/43.Heading-(with-Font-Icon).yaml +++ b/_data/cb_fields/43.Heading-(with-Font-icon).yaml @@ -1,7 +1,7 @@ id: 43 parent_properties: '' input: heading -name: 'Heading (with Font Icon)' +name: 'Heading (with Font icon)' description: '' sortorder: 2 category: 1 diff --git a/_data/cb_fields/79.Message.yaml b/_data/cb_fields/79.Message.yaml index 0a03ca23..59e78473 100644 --- a/_data/cb_fields/79.Message.yaml +++ b/_data/cb_fields/79.Message.yaml @@ -11,4 +11,4 @@ template: "[[$richTextMessage?\n &heading=`[[+heading]]`\n &content=`[[+va properties: '[]' availability: '[]' layouts: '' -settings: '[{"reference":"heading","title":"Heading","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"message_type","title":"Message type","fieldtype":"select","default_value":"","fieldoptions":"[[$cbFieldMessageType]]","field_is_exposed":"asField","process_tags":"1"},{"reference":"size","title":"Size","fieldtype":"select","default_value":"","fieldoptions":"[[$cbFieldMessageSize]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"close","title":"Close button","fieldtype":"radio","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"}]' +settings: '[{"reference":"heading","title":"Heading","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"message_type","title":"Message type","fieldtype":"select","default_value":"","fieldoptions":"[[$cbFieldMessageType]]","field_is_exposed":"asField","process_tags":"1"},{"reference":"size","title":"Size","fieldtype":"select","default_value":"","fieldoptions":"[[$cbFieldMessageSize]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"close","title":"Close button","fieldtype":"radio","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"},{"reference":"internal","title":"Internal","fieldtype":"radio","default_value":"0","fieldoptions":"No, this is genuine website content=0\nYes, flag this message as internal note=1","field_is_exposed":"modal"}]' diff --git a/_data/cb_fields/86.Code-(Execute).yaml b/_data/cb_fields/86.Code-(Execute).yaml index b803b46c..5018eb51 100644 --- a/_data/cb_fields/86.Code-(Execute).yaml +++ b/_data/cb_fields/86.Code-(Execute).yaml @@ -8,7 +8,7 @@ category: 6 icon: code icon_type: '' template: "[[$codeSnippet?\n &value=`[[+value]]`\n &lang=`[[+lang]]`\n &label=`[[+label]]`\n]]" -properties: '{"available_languages":"html=HTML,javascript=JavaScript,css=CSS,php=PHP","default_language":"html","entities":"0"}' +properties: '{"available_languages":"html=HTML,javascript=JavaScript,css=CSS,less=LESS,php=PHP","default_language":"html","entities":"0"}' availability: '[]' layouts: '' settings: '[{"reference":"label","title":"Label","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"modal"}]' diff --git a/_data/cb_fields/87.Nested-Layout-(Backyard).yaml b/_data/cb_fields/87.Nested-Layout-(Backyard).yaml new file mode 100644 index 00000000..4f56a1f8 --- /dev/null +++ b/_data/cb_fields/87.Nested-Layout-(Backyard).yaml @@ -0,0 +1,13 @@ +id: 87 +parent_properties: '' +input: layout +name: 'Nested Layout (Backyard)' +description: 'Only available in Backyard layout. Allows you to add all available layouts as nested layout.' +sortorder: 22 +category: 4 +icon: template_02 +template: '[[+value]]' +properties: '{"available_layouts":"","available_templates":"-1"}' +availability: '[{"field":"context","value":"hub"}]' +layouts: '' +settings: '[]' diff --git a/_data/cb_fields/9.Button.yaml b/_data/cb_fields/9.Button.yaml index f996623d..36b7cf95 100644 --- a/_data/cb_fields/9.Button.yaml +++ b/_data/cb_fields/9.Button.yaml @@ -6,8 +6,8 @@ description: '' sortorder: 6 category: 3 icon: link -template: "[[+button_block:is=`1`:then=`fluid`:toPlaceholder=`block`]]\n[[+new_window:is=`1`then=`target=\"_blank\"`:toPlaceholder=`attributes`]]\n[[$buttonHrefBasic?\n &link=`[[+link]]`\n &button_text=`[[+button_text]]`\n &classes=`[[+button_size]] [[+button_type]] [[+block]]`\n &attributes=`[[+attributes]]`\n &icon_class=`[[+icon_class]]`\n &icon_position=`[[+icon_position]]`\n]]" +template: "[[$buttonOuter?\n &link=`[[+link]]`\n &button_text=`[[+button_text]]`\n &button_type=`[[+button_type]]`\n &button_options=`[[+button_options]]`\n &button_size=`[[+button_size]]`\n &new_window=`[[+new_window]]`\n &icon_class=`[[+icon_class]]`\n &icon_options=`[[+icon_options]]`\n]]" properties: '{"link_detection_pattern_override":"","limit_to_current_context":"1"}' availability: '[]' layouts: '' -settings: '[{"reference":"button_text","title":"Button text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"button_type","title":"Button type","fieldtype":"select","default_value":"primary","fieldoptions":"[[$cbSettingButtonType]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"button_size","title":"Button size","fieldtype":"select","default_value":"large","fieldoptions":"[[$cbSettingButtonSize]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"button_block","title":"Button 100% wide","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"},{"reference":"new_window","title":"Open in new window","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"},{"reference":"icon_class","title":"Icon class","fieldtype":"select","default_value":"","fieldoptions":"\n[[$cbSettingIconClass]]","field_is_exposed":"modal","process_tags":"1"}]' +settings: '[{"reference":"button_text","title":"Button text","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asField"},{"reference":"button_type","title":"Button type","fieldtype":"radio","default_value":"primary","fieldoptions":"[[$cbSettingButtonType]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"button_options","title":"Button options","fieldtype":"checkbox","default_value":"","fieldoptions":"[[$cbSettingButtonOptions]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"button_size","title":"Button size","fieldtype":"select","default_value":"large","fieldoptions":"[[$cbSettingButtonSize]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"new_window","title":"Open in new window","fieldtype":"select","default_value":"0","fieldoptions":"Yes=1\nNo=0","field_is_exposed":"modal"},{"reference":"icon_class","title":"Icon class","fieldtype":"select","default_value":"","fieldoptions":"\n[[$cbSettingIconClass]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"icon_options","title":"Icon options","fieldtype":"checkbox","default_value":"","fieldoptions":"[[$cbSettingIconOptions]]","field_is_exposed":"modal","process_tags":"1"}]' diff --git a/_data/cb_layouts/14.Fieldset.yaml b/_data/cb_layouts/14.Fieldset.yaml index 282cfd3b..7f34969c 100644 --- a/_data/cb_layouts/14.Fieldset.yaml +++ b/_data/cb_layouts/14.Fieldset.yaml @@ -6,7 +6,7 @@ category: 10 icon: form columns: '[{"reference":"main","width":"100"}]' template: "

\n [[+legend:notempty=`

[[+legend]]

`]]\n [[+main]]\n
" -availability: '[{"field":"template","value":"10"}]' +availability: '[{"field":"template","value":"10"},{"field":"context","value":"hub"}]' times_per_page: 0 layout_only_nested: '0' settings: '[{"reference":"legend","title":"Heading","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asSetting"}]' diff --git a/_data/cb_layouts/15.Call-To-Action.yaml b/_data/cb_layouts/15.Call-To-Action.yaml index 70d54aeb..e4ddccb1 100644 --- a/_data/cb_layouts/15.Call-To-Action.yaml +++ b/_data/cb_layouts/15.Call-To-Action.yaml @@ -6,7 +6,7 @@ category: 10 icon: snippet_C columns: '[{"reference":"main","width":"100"}]' template: '[[+main]]' -availability: '[{"field":"template","value":"9"}]' +availability: '[{"field":"template","value":"9"},{"field":"context","value":"hub"}]' times_per_page: 1 layout_only_nested: '0' settings: '[]' diff --git a/_data/cb_layouts/17.Pattern.yaml b/_data/cb_layouts/17.Pattern.yaml index 27e1982e..b57c089c 100644 --- a/_data/cb_layouts/17.Pattern.yaml +++ b/_data/cb_layouts/17.Pattern.yaml @@ -5,8 +5,8 @@ sortorder: 16 category: 10 icon: chunk_C columns: '[{"reference":"preview","width":50},{"reference":"code","width":50},{"reference":"info","width":"100"}]' -template: "
\n
\n [[[[If?\n &subject=`[[+pattern_template]]`\n &operator=`EQ`\n &operand=`patternLayoutBosonField`\n &then=`setPatternPlaceholders? &cbField=`[[+pattern_name]]` &prefix=`cf_[[+idx]]_[[+unique_idx]]``\n ]]]]\n [[[[If?\n &subject=`[[+pattern_template]]`\n &operator=`EQ`\n &operand=`patternLayoutBosonLayout`\n &then=`setPatternPlaceholders? &cbLayout=`[[+pattern_name]]` &prefix=`cl_[[+idx]]_[[+unique_idx]]``\n ]]]]\n\n [[!$cbLayoutPatternPreview:toPlaceholder=`preview_[[+idx]]_[[+unique_idx]]`?\n &preview=`[[+preview]]`\n &code=`[[+code]]`\n &sidebar_width=`[[+sidebar_width]]`\n &pattern_name=`[[+pattern_name]]`\n &pattern_template=`[[+pattern_template]]`\n &idx=`[[+idx]]`\n &unique_idx=`[[+unique_idx]]`\n ]]\n \n [[$toolbarPattern?\n &pattern_name=`[[+pattern_name]]`\n &pattern_template=`[[+pattern_template]]`\n &idx=`[[+idx]]`\n &unique_idx=`[[+unique_idx]]`\n ]]\n\n [[[[modifiedIf?\n &subject=`[[+pattern_template]]`\n &operator=`contains`\n &operand=`Electron`\n &then=`$dividerBasic? ÷r_hidden=`1``\n &else=`$dividerBasic`\n ]]]]\n\n [[[[modifiedIf?\n &subject=`[[+pattern_template]]`\n &operator=`containsnot`\n &operand=`Electron`\n &then=`+preview_[[+idx]]_[[+unique_idx]]`\n ]]]]\n\n [[+info]]\n
\n
" +template: "
\n
\n [[[[If?\n &subject=`[[+pattern_template]]`\n &operator=`EQ`\n &operand=`patternLayoutBosonField`\n &then=`setPatternPlaceholders? &cbField=`[[+pattern_name]]` &prefix=`cf_[[+idx]]_[[+unique_idx]]``\n ]]]]\n [[[[If?\n &subject=`[[+pattern_template]]`\n &operator=`EQ`\n &operand=`patternLayoutBosonLayout`\n &then=`setPatternPlaceholders? &cbLayout=`[[+pattern_name]]` &prefix=`cl_[[+idx]]_[[+unique_idx]]``\n ]]]]\n\n [[!$cbLayoutPatternPreview:toPlaceholder=`preview_[[+idx]]_[[+unique_idx]]`?\n &preview=`[[+preview]]`\n &code=`[[+code]]`\n &sidebar_width=`[[+sidebar_width]]`\n &pattern_name=`[[+pattern_name]]`\n &pattern_template=`[[+pattern_template]]`\n &raw_tags=`[[+raw_tags]]`\n &rendered_tags=`[[+rendered_tags]]`\n &idx=`[[+idx]]`\n &unique_idx=`[[+unique_idx]]`\n ]]\n \n [[[[modifiedIf?\n &subject=`[[+pattern_template]]`\n &operator=`contains`\n &operand=`Electron`\n &then=`\n $toolbarPatternElectron?\n &pattern_name=`[[+pattern_name]]`\n &pattern_status=`[[+pattern_status]]`\n `\n &else=`\n $toolbarPattern?\n &pattern_name=`[[+pattern_name]]`\n &pattern_template=`[[+pattern_template]]`\n &pattern_status=`[[+pattern_status]]`\n &idx=`[[+idx]]`\n &unique_idx=`[[+unique_idx]]`\n `\n ]]]]\n\n [[[[modifiedIf?\n &subject=`[[+pattern_template]]`\n &operator=`containsnot`\n &operand=`Electron`\n &then=`+preview_[[+idx]]_[[+unique_idx]]`\n ]]]]\n\n [[+info]]\n
\n
" availability: '[]' times_per_page: 0 layout_only_nested: '0' -settings: '[{"reference":"background","title":"Background","fieldtype":"select","default_value":"white","fieldoptions":"[[$cbLayoutBackgrounds]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"container_type","title":"Width","fieldtype":"select","default_value":"","fieldoptions":"[[$cbSettingContainerType]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"sidebar_width","title":"Preview width","fieldtype":"select","default_value":"five","fieldoptions":"[[$cbSettingColumns]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"alignment","title":"Content alignment","fieldtype":"select","default_value":"","fieldoptions":"[[$cbLayoutAlignment]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"pattern_name","title":"Pattern name","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asSetting"},{"reference":"pattern_template","title":"Pattern template","fieldtype":"select","default_value":"patternLayoutAtom","fieldoptions":"[[$cbLayoutTemplatesPattern]]","field_is_exposed":"asSetting","process_tags":"1"}]' +settings: '[{"reference":"background","title":"Background","fieldtype":"select","default_value":"white","fieldoptions":"[[$cbLayoutBackgrounds]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"container_type","title":"Width","fieldtype":"select","default_value":"","fieldoptions":"[[$cbSettingContainerType]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"sidebar_width","title":"Preview width","fieldtype":"select","default_value":"five","fieldoptions":"[[$cbSettingColumns]]\nFull width=sixteen","field_is_exposed":"modal","process_tags":"1"},{"reference":"alignment","title":"Content alignment","fieldtype":"select","default_value":"","fieldoptions":"[[$cbLayoutAlignment]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"pattern_name","title":"Pattern name","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asSetting"},{"reference":"pattern_template","title":"Pattern template","fieldtype":"select","default_value":"patternLayoutAtom","fieldoptions":"[[$cbLayoutTemplatesPattern]]","field_is_exposed":"asSetting","process_tags":"1"},{"reference":"pattern_status","title":"Pattern status","fieldtype":"select","default_value":"green","fieldoptions":"[[$cbLayoutStatusPattern]]","field_is_exposed":"asSetting","process_tags":"1"}]' diff --git a/_data/cb_layouts/18.Backyard.yaml b/_data/cb_layouts/18.Backyard.yaml new file mode 100644 index 00000000..a8ff0847 --- /dev/null +++ b/_data/cb_layouts/18.Backyard.yaml @@ -0,0 +1,12 @@ +id: 18 +name: Backyard +description: 'A customized section for showcasing Romanesco patterns in the front-end library.' +sortorder: 16 +category: 10 +icon: chunk_C +columns: '[{"reference":"main","width":"100"},{"reference":"info","width":70},{"reference":"meta","width":"30"}]' +template: "[[+main]]\n\n
\n
\n
\n \n
\n
\n
\n
\n

[[+layout_title]]

\n [[+info]]\n
\n \n
\n
\n
\n
" +availability: '[]' +times_per_page: 0 +layout_only_nested: '0' +settings: '[{"reference":"sidebar_width","title":"Metadata width","fieldtype":"select","default_value":"four","fieldoptions":"[[$cbSettingColumns]]","field_is_exposed":"modal","process_tags":"1"},{"reference":"layout_title","title":"Layout title","fieldtype":"textfield","default_value":"","fieldoptions":"","field_is_exposed":"asSetting"}]' diff --git a/_data/cb_layouts/5.3-Columns.yaml b/_data/cb_layouts/5.3-Columns.yaml index e76cd8cb..bd83df19 100644 --- a/_data/cb_layouts/5.3-Columns.yaml +++ b/_data/cb_layouts/5.3-Columns.yaml @@ -6,7 +6,7 @@ category: 8 icon: layout_1-1-1 icon_type: '' columns: '[{"reference":"col_1","width":33.33},{"reference":"col_2","width":"33.33"},{"reference":"col_3","width":33.33}]' -template: "
\n
\n
\n
\n
[[+col_1]]
\n
[[+col_2]]
\n
[[+col_3]]
\n
\n
\n
\n
" +template: "
\n
\n
\n
\n
[[+col_1]]
\n
[[+col_2]]
\n
[[+col_3]]
\n
\n
\n
\n
" availability: '[]' times_per_page: 0 layout_only_nested: '0' diff --git a/_data/cb_layouts/6.2-Columns.yaml b/_data/cb_layouts/6.2-Columns.yaml index fede39dd..df494c22 100644 --- a/_data/cb_layouts/6.2-Columns.yaml +++ b/_data/cb_layouts/6.2-Columns.yaml @@ -6,7 +6,7 @@ category: 8 icon: layout_1-1 icon_type: '' columns: '[{"reference":"col_1","width":"50"},{"reference":"col_2","width":"50"}]' -template: "
\n
\n
\n
\n
[[+col_1]]
\n
[[+col_2]]
\n
\n
\n
\n
" +template: "
\n
\n
\n
\n
[[+col_1]]
\n
[[+col_2]]
\n
\n
\n
\n
" availability: '[]' times_per_page: 0 layout_only_nested: '0' diff --git a/_data/cb_templates/101.PL-Electron.yaml b/_data/cb_templates/101.PL-Electron.yaml index 76882ee5..f0f6a606 100644 --- a/_data/cb_templates/101.PL-Electron.yaml +++ b/_data/cb_templates/101.PL-Electron.yaml @@ -3,5 +3,5 @@ name: 'PL - Electron' description: '' sortorder: 3 icon: tabs -content: '[{"layout":17,"content":{"preview":[],"code":[],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-30"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":[]}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-31"}},{"heading":{"value":"[[%romanesco.patterns.specifications_title]]","fieldId":"contentblocks-field-33"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","lang":"json","field":83,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-34"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-36"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.assigned_templates]]","level":"h5","field":1,"settings":[]},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"assignedTemplates","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":[]},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-37"}}],"field":76,"settings":{"layout_type":"accordion","accordion_type":"fluid styled","padding":"padded","tab_type":"regular"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutElectronTV"},"parent":0,"title":""}]' +content: '[{"layout":17,"content":{"preview":[],"code":[],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-35"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]\n

","field":6,"settings":[]}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-36"}},{"heading":{"value":"[[%romanesco.patterns.specifications_title]]","fieldId":"contentblocks-field-38"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","lang":"json","field":83,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-39"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-41"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.assigned_templates]]","level":"h5","field":1,"settings":[]},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"assignedTemplates","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":[]},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-42"}}],"field":76,"settings":{"layout_type":"accordion","accordion_type":"fluid styled","padding":"padded","tab_type":"regular"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutElectronTV"},"parent":0,"title":""}]' availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/102.PL-Atom.yaml b/_data/cb_templates/102.PL-Atom.yaml index 2efdec96..46088988 100644 --- a/_data/cb_templates/102.PL-Atom.yaml +++ b/_data/cb_templates/102.PL-Atom.yaml @@ -3,5 +3,5 @@ name: 'PL - Atom' description: '' sortorder: 4 icon: tabs -content: '[{"layout":17,"content":{"preview":[{"value":"{{PLACE EXAMPLE HERE}}","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_htmlsnippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-45"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-46"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-48"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-49"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-51"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-52"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutAtom"},"parent":0,"title":""}]' +content: '[{"layout":17,"content":{"preview":[{"value":"[[$chunkName:tag?\n &property=`value`\n]]","lang":"html","field":14,"settings":{"render_tag":"render"}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_htmlsnippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-4"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]\n

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-5"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-7"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-8"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-10"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-11"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutAtom"},"parent":0,"title":""}]' availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/103.PL-Molecule.yaml b/_data/cb_templates/103.PL-Molecule.yaml index 8f177775..4dbc0df6 100644 --- a/_data/cb_templates/103.PL-Molecule.yaml +++ b/_data/cb_templates/103.PL-Molecule.yaml @@ -3,5 +3,5 @@ name: 'PL - Molecule' description: '' sortorder: 5 icon: tabs -content: '[{"layout":17,"content":{"preview":[{"value":"{{PLACE EXAMPLE HERE}}","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_htmlsnippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-4"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-5"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-7"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-8"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-10"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-11"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutMolecule"},"parent":0,"title":""}]' +content: '[{"layout":17,"content":{"preview":[{"value":"[[$chunkName:tag?\n &property=`value`\n]]","lang":"html","field":14,"settings":{"render_tag":"render"}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_htmlsnippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-20"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]\n

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-21"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-23"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-24"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-26"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-27"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutMolecule"},"parent":0,"title":""}]' availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/104.PL-Organism.yaml b/_data/cb_templates/104.PL-Organism.yaml index 8a810761..fd3981f7 100644 --- a/_data/cb_templates/104.PL-Organism.yaml +++ b/_data/cb_templates/104.PL-Organism.yaml @@ -3,5 +3,5 @@ name: 'PL - Organism' description: '' sortorder: 6 icon: tabs -content: '[{"layout":17,"content":{"preview":[{"value":"{{PLACE EXAMPLE HERE}}","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_htmlsnippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-4"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-5"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-7"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-8"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-10"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-11"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutOrganism"},"parent":0,"title":""}]' +content: '[{"layout":17,"content":{"preview":[{"value":"[[$chunkName:tag?\n &property=`value`\n]]","lang":"html","field":14,"settings":{"render_tag":"render"}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_htmlsnippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-36"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]\n

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-37"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-39"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-40"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-42"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-43"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutOrganism"},"parent":0,"title":""}]' availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/105.PL-Template.yaml b/_data/cb_templates/105.PL-Template.yaml index eb8c46f5..79b8af77 100644 --- a/_data/cb_templates/105.PL-Template.yaml +++ b/_data/cb_templates/105.PL-Template.yaml @@ -3,5 +3,5 @@ name: 'PL - Template' description: '' sortorder: 7 icon: tabs -content: '[{"layout":17,"content":{"preview":[{"value":"
\n
\n
\n

Header

\n
\n
\n

Toolbar

\n
\n
\n

Content

\n
\n
\n

Footer

\n
\n
\n
","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_templates`\n &tpl=`displayRawTemplate`\n &where=`{\"templatename\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-19"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-20"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-22"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-23"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-25"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.assigned_tvs]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"assignedTVs"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-26"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutTemplate"},"parent":0,"title":""}]' +content: '[{"layout":17,"content":{"preview":[{"value":"
\n
\n
\n

Header

\n
\n
\n

Toolbar

\n
\n
\n

Content

\n
\n
\n

Footer

\n
\n
\n
","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_templates`\n &tpl=`displayRawTemplate`\n &where=`{\"templatename\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-52"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-53"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-55"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-56"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-58"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.assigned_tvs]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"assignedTVs"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-59"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutTemplate"},"parent":0,"title":""}]' availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/106.PL-Formula.yaml b/_data/cb_templates/106.PL-Formula.yaml index 1548b582..504f09c1 100644 --- a/_data/cb_templates/106.PL-Formula.yaml +++ b/_data/cb_templates/106.PL-Formula.yaml @@ -3,5 +3,5 @@ name: 'PL - Formula' description: '' sortorder: 8 icon: tabs -content: '[{"layout":17,"content":{"preview":[{"value":"{{NO EXAMPLE NEEDED}}","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_snippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"php","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-36"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-37"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-39"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}},{"value":"[[%romanesco.patterns.example_snippet_title]]
","level":"h5","field":1,"settings":{}},{"value":"{{EXAMPLE SNIPPET CALL HERE}}","lang":"html","field":13,"settings":{"label":"[[%romanesco.patterns.example_snippet_label]]"}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-40"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-44"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-45"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutFormula"},"parent":0,"title":""}]' +content: '[{"layout":17,"content":{"preview":[{"value":"{{EXAMPLE SNIPPET CALL}}","lang":"html","field":13,"settings":{"label":"[[%romanesco.patterns.example_label]]"}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_snippets`\n &tpl=`displayRawElement`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"php","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-67"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]\n

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-68"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-70"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-71"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-73"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_list":"includedChunks,includedSnippets,includedTVs","pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{"pattern_list":"referringChunks,referringSnippets,referringTemplates","pattern_name":"[[+pattern_name]]"}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-74"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"six","alignment":"","pattern_name":"","pattern_template":"patternLayoutFormula","pattern_status":"green"},"parent":0,"title":""}]' availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/107.PL-Computation.yaml b/_data/cb_templates/107.PL-Computation.yaml new file mode 100644 index 00000000..8db2155b --- /dev/null +++ b/_data/cb_templates/107.PL-Computation.yaml @@ -0,0 +1,7 @@ +id: 107 +name: 'PL - Computation' +description: '' +sortorder: 9 +icon: tabs +content: '[{"layout":17,"content":{"preview":[{"value":"{{NO EXAMPLE NEEDED}}","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_plugins`\n &tpl=`displayRawPlugin`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"php","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-82"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[getElementDescription? &name=`[[+pattern_name]]` &type=`[[+pattern_template]]`]]

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-83"}},{"heading":{"value":"[[%romanesco.patterns.caveats_title]]","fieldId":"contentblocks-field-85"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-86"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutComputation"},"parent":0,"title":""}]' +availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/107.PL-Computations.yaml b/_data/cb_templates/107.PL-Computations.yaml deleted file mode 100644 index 1e2d7553..00000000 --- a/_data/cb_templates/107.PL-Computations.yaml +++ /dev/null @@ -1,7 +0,0 @@ -id: 107 -name: 'PL - Computations' -description: '' -sortorder: 9 -icon: tabs -content: '[{"layout":17,"content":{"preview":[{"value":"{{NO EXAMPLE NEEDED}}","lang":"html","field":14,"settings":{}}],"code":[{"value":"[[Rowboat?\n &table=`modx_site_plugins`\n &tpl=`displayRawPlugin`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"php","field":86,"settings":{"label":"[[%romanesco.patterns.code_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-4"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-5"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-7"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-8"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"five","alignment":"","pattern_name":"","pattern_template":"patternLayoutComputation"},"parent":0,"title":""}]' -availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/108.PL-Boson-(Field).yaml b/_data/cb_templates/108.PL-Boson-(Field).yaml new file mode 100644 index 00000000..e46e31ba --- /dev/null +++ b/_data/cb_templates/108.PL-Boson-(Field).yaml @@ -0,0 +1,7 @@ +id: 108 +name: 'PL - Boson (Field)' +description: '' +sortorder: 10 +icon: tabs +content: '[{"layout":17,"content":{"preview":[],"code":[{"value":"[[Rowboat?\n &table=`modx_contentblocks_field`\n &tpl=`displayRawTemplate`\n &where=`{\"name\":\"[[+pattern_name]]\",\"parent\":\"0\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.template_label]]"}},{"value":"[[+[[+cf]].wrapper_template]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.template_wrapper_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-4"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[+[[+cf]].description]]

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-5"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-7"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-8"}},{"heading":{"value":"[[%romanesco.patterns.settings_title]]","fieldId":"contentblocks-field-10"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"[[+[[+cf]].settings_json]]","lang":"json","field":83,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-11"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-13"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_pages]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-14"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"six","alignment":"","pattern_name":"","pattern_template":"patternLayoutBosonField"},"parent":0,"title":""}]' +availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/cb_templates/109.PL-Boson-(Layout).yaml b/_data/cb_templates/109.PL-Boson-(Layout).yaml new file mode 100644 index 00000000..99656e57 --- /dev/null +++ b/_data/cb_templates/109.PL-Boson-(Layout).yaml @@ -0,0 +1,7 @@ +id: 109 +name: 'PL - Boson (Layout)' +description: '' +sortorder: 10 +icon: tabs +content: '[{"layout":17,"content":{"preview":[],"code":[{"value":"[[Rowboat?\n &table=`modx_contentblocks_layout`\n &tpl=`displayRawTemplate`\n &where=`{\"name\":\"[[+pattern_name]]\"}`\n]]","lang":"html","field":86,"settings":{"label":"[[%romanesco.patterns.template_label]]"}}],"info":[{"rows":[{"heading":{"value":"[[%romanesco.patterns.purpose_title]]","fieldId":"contentblocks-field-22"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"

[[+[[+cl]].description]]

","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-23"}},{"heading":{"value":"[[%romanesco.patterns.usage_title]]","fieldId":"contentblocks-field-25"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"","field":6,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-26"}},{"heading":{"value":"[[%romanesco.patterns.settings_title]]","fieldId":"contentblocks-field-28"},"content":{"child_layouts":[{"layout":7,"content":{"main":[{"value":"[[+[[+cl]].settings_json]]","lang":"json","field":83,"settings":{}}]},"settings":[],"parent":78}],"fieldId":"contentblocks-field-29"}},{"heading":{"value":"[[%romanesco.patterns.references_title]]","fieldId":"contentblocks-field-31"},"content":{"child_layouts":[{"layout":12,"content":{"col_1":[{"value":"[[%romanesco.patterns.included_patterns]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":84,"settings":{"pattern_name":"[[+pattern_name]]"}}],"col_2":[{"value":"[[%romanesco.patterns.referring_pages]]","level":"h5","field":1,"settings":{}},{"chunk_properties":{},"field":85,"settings":{}}]},"settings":{"padding":"relaxed","alignment":"","divider":"divided"},"parent":78}],"fieldId":"contentblocks-field-32"}}],"field":76,"settings":{"layout_type":"tabs","accordion_type":"","tab_type":"regular","padding":"padded"}}]},"settings":{"background":"white","container_type":"","sidebar_width":"six","alignment":"","pattern_name":"","pattern_template":"patternLayoutBosonLayout"},"parent":0,"title":""}]' +availability: '[{"field":"context","value":"hub"}]' diff --git a/_data/chunks/buttonHrefIcon.yaml b/_data/chunks/buttonHrefIcon.yaml index 2030839e..29c99931 100644 --- a/_data/chunks/buttonHrefIcon.yaml +++ b/_data/chunks/buttonHrefIcon.yaml @@ -7,6 +7,6 @@ properties: 'a:0:{}' ----- - + [[+button_text]] \ No newline at end of file diff --git a/_data/chunks/buttonOuter.yaml b/_data/chunks/buttonOuter.yaml new file mode 100644 index 00000000..52f852a0 --- /dev/null +++ b/_data/chunks/buttonOuter.yaml @@ -0,0 +1,37 @@ +id: 343 +name: buttonOuter +description: '' +category: m_buttons +properties: 'a:0:{}' + +----- + +[[If:toPlaceholder=`attributes`? + &subject=`[[+new_window]]` + &operator=`EQ` + &operand=`1` + &then=`target="_blank"` +]] + +[[If? + &subject=`[[+icon_class:empty=``]]` + &operator=`isnot` + &operand=`` + &then=` + [[$buttonHrefIcon? + &link=`[[+link]]` + &button_text=`[[+button_text]]` + &classes=`[[+button_size]] [[+button_type]] [[+button_options:replace=`,== `]] [[+icon_options:replace=`,== `]] icon` + &attributes=`[[+attributes]]` + &icon_class=`[[+icon_class]]` + ]] + ` + &else=` + [[$buttonHrefBasic? + &link=`[[+link]]` + &button_text=`[[+button_text]]` + &classes=`[[+button_size]] [[+button_type]] [[+button_options:replace=`,== `]]` + &attributes=`[[+attributes]]` + ]] + ` +]] \ No newline at end of file diff --git a/_data/chunks/buttonSocialConnectFacebook.yaml b/_data/chunks/buttonSocialConnectFacebook.yaml index 9788dbf4..9461518a 100644 --- a/_data/chunks/buttonSocialConnectFacebook.yaml +++ b/_data/chunks/buttonSocialConnectFacebook.yaml @@ -11,5 +11,5 @@ properties: 'a:0:{}' target="_blank" href="[[+account:empty=`[[++social_facebook]]`]]" property="sameAs"> - + \ No newline at end of file diff --git a/_data/chunks/buttonSocialShareFacebook.yaml b/_data/chunks/buttonSocialShareFacebook.yaml index a9675461..885f4e2c 100644 --- a/_data/chunks/buttonSocialShareFacebook.yaml +++ b/_data/chunks/buttonSocialShareFacebook.yaml @@ -10,5 +10,5 @@ properties: 'a:0:{}' title="[[+title:empty=`[[%romanesco.social.share_facebook_title]]`]]" target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=[[!++site_url]][[*uri]]"> - + \ No newline at end of file diff --git a/_data/chunks/cbFormLabelPosition.yaml b/_data/chunks/cbFormLabelPosition.yaml new file mode 100644 index 00000000..d7e5118b --- /dev/null +++ b/_data/chunks/cbFormLabelPosition.yaml @@ -0,0 +1,11 @@ +id: 350 +name: cbFormLabelPosition +description: '' +category: a_cb_formblocks +properties: 'a:0:{}' + +----- + +Inherit (from Form Layout)=[[*fb_form_layout]] +Above input field / options (Vertical)=vertical +Left of input field / options (Horizontal)=horizontal \ No newline at end of file diff --git a/_data/chunks/cbLayoutBackyard.yaml b/_data/chunks/cbLayoutBackyard.yaml new file mode 100644 index 00000000..efa23576 --- /dev/null +++ b/_data/chunks/cbLayoutBackyard.yaml @@ -0,0 +1,52 @@ +id: 344 +name: cbLayoutBackyard +description: '' +category: o_layouts +properties: 'a:0:{}' + +----- + +[[+main]] + +
+
+
+ +
+
+
+
+

[[+layout_title]]

+ [[+info]] +
+ +
+
+
+
\ No newline at end of file diff --git a/_data/chunks/cbLayoutPattern.yaml b/_data/chunks/cbLayoutPattern.yaml index b55ca277..99349a56 100644 --- a/_data/chunks/cbLayoutPattern.yaml +++ b/_data/chunks/cbLayoutPattern.yaml @@ -6,7 +6,7 @@ properties: 'a:0:{}' ----- -
+
[[[[If? &subject=`[[+pattern_template]]` @@ -27,13 +27,8 @@ properties: 'a:0:{}' &sidebar_width=`[[+sidebar_width]]` &pattern_name=`[[+pattern_name]]` &pattern_template=`[[+pattern_template]]` - &idx=`[[+idx]]` - &unique_idx=`[[+unique_idx]]` - ]] - - [[$toolbarPattern? - &pattern_name=`[[+pattern_name]]` - &pattern_template=`[[+pattern_template]]` + &raw_tags=`[[+raw_tags]]` + &rendered_tags=`[[+rendered_tags]]` &idx=`[[+idx]]` &unique_idx=`[[+unique_idx]]` ]] @@ -42,8 +37,19 @@ properties: 'a:0:{}' &subject=`[[+pattern_template]]` &operator=`contains` &operand=`Electron` - &then=`$dividerBasic? ÷r_hidden=`1`` - &else=`$dividerBasic` + &then=` + $toolbarPatternElectron? + &pattern_name=`[[+pattern_name]]` + &pattern_status=`[[+pattern_status]]` + ` + &else=` + $toolbarPattern? + &pattern_name=`[[+pattern_name]]` + &pattern_template=`[[+pattern_template]]` + &pattern_status=`[[+pattern_status]]` + &idx=`[[+idx]]` + &unique_idx=`[[+unique_idx]]` + ` ]]]] [[[[modifiedIf? diff --git a/_data/chunks/cbLayoutPatternPreview.yaml b/_data/chunks/cbLayoutPatternPreview.yaml index 35f42d58..326e002f 100644 --- a/_data/chunks/cbLayoutPatternPreview.yaml +++ b/_data/chunks/cbLayoutPatternPreview.yaml @@ -8,22 +8,16 @@ properties: 'a:0:{}'
-
- [[!getCache:toPlaceholder=`render_example`? - &element=`cbGetFieldContent` - &cacheKey=`pattern_library` - [[++custom_cache:eq=`0`:then=`&cacheExpires=`1``]] +
+ [[+preview]] - &field=`13` - &tpl=`rawValue` - &fieldSettingFilter=`label==MODX` - &limit=`1` - &offset=`[[+idx:subtract=`1`]]` - ]] + [[+code_field_raw:contains=`[[+pattern_name]]`:then=` + + `]] - [[+render_example:replace=`&==&`:replace=`[==[`:replace=`]==]`:replace=``==``:toPlaceholder=`example`]] - - [[+example:ne=``:then=` + [[-+example:ne=``:then=`
[[+example]] @@ -35,7 +29,7 @@ properties: 'a:0:{}' `:else=`[[+preview]]`]]
- diff --git a/_data/chunks/cbLayoutStatusPattern.yaml b/_data/chunks/cbLayoutStatusPattern.yaml new file mode 100644 index 00000000..d11642f4 --- /dev/null +++ b/_data/chunks/cbLayoutStatusPattern.yaml @@ -0,0 +1,16 @@ +id: 346 +name: cbLayoutStatusPattern +description: '' +category: a_cb_layouts +properties: 'a:0:{}' + +----- + +[[%romanesco.patterns.status_green]]=green +[[%romanesco.patterns.status_yellow]]=yellow +[[%romanesco.patterns.status_orange]]=orange +[[%romanesco.patterns.status_red]]=red +[[%romanesco.patterns.status_pink]]=pink +[[%romanesco.patterns.status_purple]]=purple +[[%romanesco.patterns.status_blue]]=blue +[[%romanesco.patterns.status_brown]]=brown \ No newline at end of file diff --git a/_data/chunks/cbLayoutThreeColumns.yaml b/_data/chunks/cbLayoutThreeColumns.yaml index f56fc7e1..6627ce89 100644 --- a/_data/chunks/cbLayoutThreeColumns.yaml +++ b/_data/chunks/cbLayoutThreeColumns.yaml @@ -8,7 +8,7 @@ properties: 'a:0:{}'
-
+
[[+col_1]]
[[+col_2]]
diff --git a/_data/chunks/cbLayoutTwoColumns.yaml b/_data/chunks/cbLayoutTwoColumns.yaml index 1795adea..d30b86ff 100644 --- a/_data/chunks/cbLayoutTwoColumns.yaml +++ b/_data/chunks/cbLayoutTwoColumns.yaml @@ -8,7 +8,7 @@ properties: 'a:0:{}'
-
+
[[+col_1]]
[[+col_2]]
diff --git a/_data/chunks/cbSettingButtonOptions.yaml b/_data/chunks/cbSettingButtonOptions.yaml new file mode 100644 index 00000000..4402cc75 --- /dev/null +++ b/_data/chunks/cbSettingButtonOptions.yaml @@ -0,0 +1,11 @@ +id: 347 +name: cbSettingButtonOptions +description: '' +category: a_cb_settings +properties: 'a:0:{}' + +----- + +Basic=basic +Compact=compact +Full width=fluid \ No newline at end of file diff --git a/_data/chunks/cbSettingButtonType.yaml b/_data/chunks/cbSettingButtonType.yaml index 59c46952..dd5e6d4e 100644 --- a/_data/chunks/cbSettingButtonType.yaml +++ b/_data/chunks/cbSettingButtonType.yaml @@ -8,6 +8,4 @@ properties: 'a:0:{}' Standard=regular Primary=primary -Secondary=secondary -Basic=basic -Icon=icon \ No newline at end of file +Secondary=secondary \ No newline at end of file diff --git a/_data/chunks/cbSettingIconOptions.yaml b/_data/chunks/cbSettingIconOptions.yaml new file mode 100644 index 00000000..29957ee6 --- /dev/null +++ b/_data/chunks/cbSettingIconOptions.yaml @@ -0,0 +1,10 @@ +id: 348 +name: cbSettingIconOptions +description: '' +category: a_cb_settings +properties: 'a:0:{}' + +----- + +Position right=right +Display as label=labeled \ No newline at end of file diff --git a/_data/chunks/codeSnippet.yaml b/_data/chunks/codeSnippet.yaml index 09c82ab4..d156473d 100644 --- a/_data/chunks/codeSnippet.yaml +++ b/_data/chunks/codeSnippet.yaml @@ -6,4 +6,4 @@ properties: 'a:0:{}' ----- -
[[+value]][[+label:notempty=`
[[+label]]
`]]
\ No newline at end of file +
[[+value]][[+label:notempty=`
[[+label]]
`]]
\ No newline at end of file diff --git a/_data/chunks/displayRawTemplate.yaml b/_data/chunks/displayRawTemplate.yaml index 2dfb2a9a..01236e08 100644 --- a/_data/chunks/displayRawTemplate.yaml +++ b/_data/chunks/displayRawTemplate.yaml @@ -6,4 +6,9 @@ properties: 'a:0:{}' ----- -[[+content:empty=`[[+template]]`:htmlent:replace=`[==[`:replace=`]==]`:replace=``==``]] \ No newline at end of file +[[If? + &subject=`[[+content]]` + &operator=`notempty` + &then=`[[+content:htmlent:replace=`[==[`:replace=`]==]`:replace=``==``]]` + &else=`[[+template:htmlent:replace=`[==[`:replace=`]==]`:replace=``==``]]` +]] \ No newline at end of file diff --git a/_data/chunks/includedContentBlocksRow.yaml b/_data/chunks/includedContentBlocksRow.yaml index 21cd480b..dd41286c 100644 --- a/_data/chunks/includedContentBlocksRow.yaml +++ b/_data/chunks/includedContentBlocksRow.yaml @@ -7,6 +7,6 @@ properties: 'a:0:{}' ----- - [[+link:setPatternType]] + [[+link:setPatternType]] [[+name]] \ No newline at end of file diff --git a/_data/chunks/includedPatternsOuter.yaml b/_data/chunks/includedPatternsOuter.yaml index a38166a6..a3d83881 100644 --- a/_data/chunks/includedPatternsOuter.yaml +++ b/_data/chunks/includedPatternsOuter.yaml @@ -66,7 +66,7 @@ properties: 'a:0:{}' Rowboat? &table=`modx_contentblocks_field` &tpl=`displayRawContentBlock` - &where=`{"name":"[[+pattern_name]]"}` + &where=`{"name":"[[+pattern_name]]","parent":"0"}` &toPlaceholder=`raw_element` ` ]]]] diff --git a/_data/chunks/navItemIcon.yaml b/_data/chunks/navItemIcon.yaml new file mode 100644 index 00000000..7024b76c --- /dev/null +++ b/_data/chunks/navItemIcon.yaml @@ -0,0 +1,12 @@ +id: 349 +name: navItemIcon +description: '' +category: a_nav_primary +properties: 'a:0:{}' + +----- + + + + [[+menutitle]] + \ No newline at end of file diff --git a/_data/chunks/overviewRowIconCompact.yaml b/_data/chunks/overviewRowIconCompact.yaml index ef9db116..fd259e79 100644 --- a/_data/chunks/overviewRowIconCompact.yaml +++ b/_data/chunks/overviewRowIconCompact.yaml @@ -12,7 +12,7 @@ properties: 'a:0:{}' &operator=`EQ` &operand=`svg` &then=`[[+pagetitle]]` - &else=`` + &else=`` ]]
diff --git a/_data/chunks/overviewRowIconLeft.yaml b/_data/chunks/overviewRowIconLeft.yaml index 59f9fb44..e6b727cd 100644 --- a/_data/chunks/overviewRowIconLeft.yaml +++ b/_data/chunks/overviewRowIconLeft.yaml @@ -12,7 +12,7 @@ properties: 'a:0:{}' &operator=`EQ` &operand=`svg` &then=`[[+pagetitle]]` - &else=`` + &else=`` ]]
[[+[[+title_field]]:empty=`[[+pagetitle]]`]] diff --git a/_data/chunks/overviewRowIconTop.yaml b/_data/chunks/overviewRowIconTop.yaml index 22890248..c16e5e64 100644 --- a/_data/chunks/overviewRowIconTop.yaml +++ b/_data/chunks/overviewRowIconTop.yaml @@ -12,7 +12,7 @@ properties: 'a:0:{}' &operator=`EQ` &operand=`svg` &then=`[[+pagetitle]]` - &else=`` + &else=`` ]]
[[+[[+title_field]]:empty=`[[+pagetitle]]`]] diff --git a/_data/chunks/overviewRowIconTopCard.yaml b/_data/chunks/overviewRowIconTopCard.yaml index ffb43f96..3a45b373 100644 --- a/_data/chunks/overviewRowIconTopCard.yaml +++ b/_data/chunks/overviewRowIconTopCard.yaml @@ -13,7 +13,7 @@ properties: 'a:0:{}' &operator=`EQ` &operand=`svg` &then=`[[+pagetitle]]` - &else=`` + &else=`` ]]
[[+[[+title_field]]:empty=`[[+pagetitle]]`]] diff --git a/_data/chunks/overviewRowIconTopLinkCard.yaml b/_data/chunks/overviewRowIconTopLinkCard.yaml index 6a01e549..4e6a0c00 100644 --- a/_data/chunks/overviewRowIconTopLinkCard.yaml +++ b/_data/chunks/overviewRowIconTopLinkCard.yaml @@ -13,7 +13,7 @@ properties: 'a:0:{}' &operator=`EQ` &operand=`svg` &then=`[[+pagetitle]]` - &else=`` + &else=`` ]]
[[+[[+title_field]]:empty=`[[+pagetitle]]`]] diff --git a/_data/chunks/projectHubOuter.yaml b/_data/chunks/projectHubOuter.yaml index db0eba64..d187826c 100644 --- a/_data/chunks/projectHubOuter.yaml +++ b/_data/chunks/projectHubOuter.yaml @@ -9,6 +9,7 @@ properties: 'a:0:{}'
[[getImageList? + &docid=`[[++romanesco.dashboard_id:empty=`[[*id]]`]]` &tvname=`project_hub_timeline` &tpl=`projectHubRow` ]] diff --git a/_data/chunks/referringPatternsOuter.yaml b/_data/chunks/referringPatternsOuter.yaml index 76e471da..12c815e7 100644 --- a/_data/chunks/referringPatternsOuter.yaml +++ b/_data/chunks/referringPatternsOuter.yaml @@ -99,6 +99,20 @@ properties: 'a:0:{}' ` ]]]] + [[[[If? + &subject=`[[+pattern_template]]` + &operator=`inarray` + &operand=`patternLayoutAtom,patternLayoutMolecule,patternLayoutOrganism` + &then=` + Rowboat? + &table=`modx_site_content` + &tpl=`includedPagesRow` + &limit=`0` + &where=`{ "properties:LIKE":"%$[[+pattern_name]]%", "id:NOT LIKE":"[[*id]]" }` + &toPlaceholder=`referring_pages` + ` + ]]]] + [[[[If? &subject=`[[+pattern_template]]` &operator=`inarray` @@ -143,6 +157,10 @@ properties: 'a:0:{}' ` ]]]] + [[- // The If statements generating the raw_pages placeholder could be replaced + // by placing the where clause directly in the pdoMenu call. + ]] + [[[[If? &subject=`[[+raw_pages]]` &operator=`notempty` diff --git a/_data/chunks/sliderOuter.yaml b/_data/chunks/sliderOuter.yaml index 4c0060c7..59da6ae8 100644 --- a/_data/chunks/sliderOuter.yaml +++ b/_data/chunks/sliderOuter.yaml @@ -6,7 +6,7 @@ properties: 'a:0:{}' ----- -
+
[[+rows]]
diff --git a/_data/chunks/toolbarPattern.yaml b/_data/chunks/toolbarPattern.yaml index 711417c9..103106ce 100644 --- a/_data/chunks/toolbarPattern.yaml +++ b/_data/chunks/toolbarPattern.yaml @@ -6,16 +6,18 @@ properties: 'a:0:{}' ----- -
+[[$cbLayoutStatusPattern:filterLine=`[[+pattern_status]]`:stripString=`=[[+pattern_status]]`:toPlaceholder=`status_title`]] + +
[[$headingBasicAnchor? &level=`h2` - &value=`[[+pattern_name]]` + &value=`[[+pattern_name]]` &alignment=`middle aligned` ]]
-
+
- [[$buttonHrefIcon? - &classes=`small primary` - &icon_class=`lab` - &button_text=`Backyard` - ]] + [[[[If? + &subject=`[[+pattern_template]]` + &operator=`EQ` + &operand=`patternLayoutBosonField` + &then=` + pdoMenu? + &parents=`[[++romanesco.backyard_container_id]]` + &showHidden=`1` + &showUnpublished=`1` + &includeTVs=`overview_icon_font` + &tplOuter=`navWrapper` + &tpl=`navItemIcon` + &where=`{ "properties:LIKE":"%field__:[[+[[+cf]].id]]___settings%" }` + &toPlaceholder=`backyard_pages` + ` + &else=` + pdoMenu? + &parents=`[[++romanesco.backyard_container_id]]` + &showHidden=`1` + &showUnpublished=`1` + &includeTVs=`overview_icon_font` + &tplOuter=`navWrapper` + &tpl=`navItemIcon` + &where=`{ "content:LIKE":"%[[+pattern_name]]%" }` + &toPlaceholder=`backyard_pages` + ` + ]]]] + +
-
\ No newline at end of file +
+ +[[$dividerBasic]] \ No newline at end of file diff --git a/_data/chunks/toolbarPatternElectron.yaml b/_data/chunks/toolbarPatternElectron.yaml new file mode 100644 index 00000000..ae7fbfba --- /dev/null +++ b/_data/chunks/toolbarPatternElectron.yaml @@ -0,0 +1,27 @@ +id: 345 +name: toolbarPatternElectron +description: '' +category: o_toolbars +properties: 'a:0:{}' + +----- + +[[$cbLayoutStatusPattern:filterLine=`[[+pattern_status]]`:stripString=`=[[+pattern_status]]`:toPlaceholder=`status_title`]] + +
+
+ [[$headingBasicAnchor? + &level=`h2` + &value=`[[+pattern_name]]` + &alignment=`middle aligned` + ]] +
+ +
+ +
+
+ +[[$dividerBasic? ÷r_hidden=`1`]] \ No newline at end of file diff --git a/_data/collections_templates/1.Publication.yaml b/_data/collections_templates/1.Publication.yaml index 91961066..43c0b30a 100644 --- a/_data/collections_templates/1.Publication.yaml +++ b/_data/collections_templates/1.Publication.yaml @@ -16,4 +16,3 @@ child_cacheable: null child_searchable: null child_richtext: null child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/2.Forms.yaml b/_data/collections_templates/2.Forms.yaml index fe612fb2..e87e1c57 100644 --- a/_data/collections_templates/2.Forms.yaml +++ b/_data/collections_templates/2.Forms.yaml @@ -16,4 +16,3 @@ child_cacheable: null child_searchable: 0 child_richtext: 1 child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/3.Call-To-Actions.yaml b/_data/collections_templates/3.Call-To-Actions.yaml index 6fa9eff9..1fe1768a 100644 --- a/_data/collections_templates/3.Call-To-Actions.yaml +++ b/_data/collections_templates/3.Call-To-Actions.yaml @@ -16,4 +16,3 @@ child_cacheable: 0 child_searchable: null child_richtext: 1 child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/4.Testimonials.yaml b/_data/collections_templates/4.Testimonials.yaml index 6efeadec..f4601189 100644 --- a/_data/collections_templates/4.Testimonials.yaml +++ b/_data/collections_templates/4.Testimonials.yaml @@ -14,4 +14,3 @@ child_cacheable: null child_searchable: null child_richtext: null child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/5.Team.yaml b/_data/collections_templates/5.Team.yaml index 8a6a692d..e50d483e 100644 --- a/_data/collections_templates/5.Team.yaml +++ b/_data/collections_templates/5.Team.yaml @@ -14,4 +14,3 @@ child_cacheable: null child_searchable: null child_richtext: null child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/6.Footers.yaml b/_data/collections_templates/6.Footers.yaml index 0340b02a..ea95ec7b 100644 --- a/_data/collections_templates/6.Footers.yaml +++ b/_data/collections_templates/6.Footers.yaml @@ -16,4 +16,3 @@ child_cacheable: 0 child_searchable: null child_richtext: 1 child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/7.Pattern-Library.yaml b/_data/collections_templates/7.Pattern-Library.yaml index 55f2b947..5305176f 100644 --- a/_data/collections_templates/7.Pattern-Library.yaml +++ b/_data/collections_templates/7.Pattern-Library.yaml @@ -14,4 +14,3 @@ child_cacheable: null child_searchable: null child_richtext: null child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/8.Portfolio.yaml b/_data/collections_templates/8.Portfolio.yaml index 786c893f..161e4cc1 100644 --- a/_data/collections_templates/8.Portfolio.yaml +++ b/_data/collections_templates/8.Portfolio.yaml @@ -16,4 +16,3 @@ child_cacheable: null child_searchable: null child_richtext: null child_content_disposition: null -selection_link_condition: '' diff --git a/_data/collections_templates/9.Clients.yaml b/_data/collections_templates/9.Clients.yaml index 34294ebd..22f6d0f5 100644 --- a/_data/collections_templates/9.Clients.yaml +++ b/_data/collections_templates/9.Clients.yaml @@ -14,4 +14,3 @@ child_cacheable: null child_searchable: null child_richtext: null child_content_disposition: null -selection_link_condition: '' diff --git a/_data/context_settings/hub.site-start.yaml b/_data/context_settings/hub.site-start.yaml deleted file mode 100644 index 9aab332b..00000000 --- a/_data/context_settings/hub.site-start.yaml +++ /dev/null @@ -1,4 +0,0 @@ -context_key: hub -key: site_start -value: '11' -area: site diff --git a/_data/context_settings/web.site-start.yaml b/_data/context_settings/web.site-start.yaml deleted file mode 100644 index c3c86dfe..00000000 --- a/_data/context_settings/web.site-start.yaml +++ /dev/null @@ -1,4 +0,0 @@ -context_key: web -key: site_start -value: '1' -area: Site diff --git a/_data/plugin_events/22.OnBeforeSaveWebPageCache.yaml b/_data/plugin_events/22.OnBeforeSaveWebPageCache.yaml new file mode 100644 index 00000000..480e9a55 --- /dev/null +++ b/_data/plugin_events/22.OnBeforeSaveWebPageCache.yaml @@ -0,0 +1,2 @@ +pluginid: 22 +event: OnBeforeSaveWebPageCache diff --git a/_data/snippets/assignedTVs.php b/_data/snippets/assignedTVs.php index 60bb3af2..e1b26bcd 100644 --- a/_data/snippets/assignedTVs.php +++ b/_data/snippets/assignedTVs.php @@ -43,29 +43,31 @@ foreach ($tvList as $value) { $tv = $modx->getObject('modTemplateVar', $value); - $name = $tv->get('name'); - $category = $tv->get('category'); - - // The actual TV categories often contain spaces and hyphens and they - // don't accurately represent the file structure of the library. - // That's why we get the parent category instead. - $query = $modx->newQuery('modCategory', array( - 'id' => $category - )); - $query->select('parent'); - $parent = $modx->getValue($query->prepare()); - - // Up idx value by 1, so a unique placeholder can be created - $idx++; - - // Output to a chunk that contains the link generator - // Filter all TVs under the Status tab, since that's not relevant info - if (strpos($name, 'status_') === false) { - $output[] = $modx->getChunk($tpl, array( - 'name' => $name, - 'category' => $parent, - 'idx' => $idx + if (is_object($tv)) { + $name = $tv->get('name'); + $category = $tv->get('category'); + + // The actual TV categories often contain spaces and hyphens and they + // don't accurately represent the file structure of the library. + // That's why we get the parent category instead. + $query = $modx->newQuery('modCategory', array( + 'id' => $category )); + $query->select('parent'); + $parent = $modx->getValue($query->prepare()); + + // Up idx value by 1, so a unique placeholder can be created + $idx++; + + // Output to a chunk that contains the link generator + // Filter all TVs under the Status tab, since that's not relevant info + if (strpos($name, 'status_') === false) { + $output[] = $modx->getChunk($tpl, array( + 'name' => $name, + 'category' => $parent, + 'idx' => $idx + )); + } } } diff --git a/_data/snippets/cbRenderCodeField.php b/_data/snippets/cbRenderCodeField.php new file mode 100644 index 00000000..78037e92 --- /dev/null +++ b/_data/snippets/cbRenderCodeField.php @@ -0,0 +1,46 @@ +id: 110 +name: cbRenderCodeField +description: 'This snippet can be used in a CB Code field in conjunction with a field setting, to control how the :tag modifier is rendered. Useful for dealing with MODX tags inside a Code field, i.e. when writing documentation.' +category: f_contentblocks +properties: 'a:0:{}' + +----- + +/** + * cbRenderCodeField + * + * Useful when dealing with MODX tags inside a Code field, i.e. for documentation. + * Used in conjunction with a field setting to control how the :tag modifier is rendered. + * + * Available options: + * + * render -> Render :tag modifier(s) anyway and set code_field_raw placeholder + * respect -> Respect :tag modifier(s) and set code_field_rendered placeholder + * ignore -> Process everything as usual, without setting any placeholders + * + */ + +$valueRaw = $modx->getOption('valueRaw', $scriptProperties, ''); +$valueRendered = $modx->getOption('valueRendered', $scriptProperties, ''); +$renderTag = $modx->getOption('renderTag', $scriptProperties, ''); + +$output = ''; + +switch($renderTag) { + case $renderTag == 'render': + $modx->toPlaceholder('code_field_raw', $valueRaw); + $output = $valueRendered; + break; + case $renderTag == 'respect': + $modx->toPlaceholder('code_field_rendered', $valueRendered); + $output = $valueRaw; + break; + case $renderTag == 'ignore': + $output = $valueRaw; + break; + default: + $output = $valueRaw; + break; +} + +return $output; \ No newline at end of file diff --git a/_data/snippets/filterLine.php b/_data/snippets/filterLine.php new file mode 100644 index 00000000..62fe0654 --- /dev/null +++ b/_data/snippets/filterLine.php @@ -0,0 +1,24 @@ +id: 112 +name: filterLine +description: 'Search the input for lines containing a specific string.' +category: f_modifiers +properties: 'a:0:{}' + +----- + +$lines = $modx->getOption('input', $scriptProperties, $input); +$search = $modx->getOption('searchString', $scriptProperties, $options); + +// Create an array of all lines inside the input +$lines = nl2br($lines); +$lines = explode('
', $lines); + +// Check if the line contains the string we're looking for, and print if it does +foreach ($lines as $line) { + if(strpos($line, $search) !== false) { + $output .= $line; + } +} + +// @todo: This will get messy when multiple lines are found +return $output; \ No newline at end of file diff --git a/_data/snippets/firstChildID.php b/_data/snippets/firstChildID.php new file mode 100644 index 00000000..e6477089 --- /dev/null +++ b/_data/snippets/firstChildID.php @@ -0,0 +1,43 @@ +id: 113 +name: firstChildID +description: 'Retrieve the first child of a given ID.' +category: f_basic +properties: 'a:0:{}' + +----- + +/** + * firstChildID + * Finds the first child from the given id + * Returns the first child id or the given id on failure + * + * @author Bert Oost at OostDesign.nl + * + * Examples: + * + * As output filter: + * [[*id:firstChildID]] + * + * As snippet: + * [[firstChildID? &id=`[[*id]]`]] + */ + +$id = (isset($input) && !empty($input)) ? $input : false; +if(empty($id)) { $id = $modx->getOption('id', $scriptProperties, $modx->resource->get('id')); } + +// select the first child +$c = $modx->newQuery('modResource'); +$c->select(array('id')); +$c->where(array( + 'parent' => $id, + 'published' => true, +)); +$c->sortby('menuindex', 'ASC'); +$c->limit(1); + +$child = $modx->getObject('modResource', $c); +if(!empty($child) && $child instanceof modResource) { + return $child->get('id'); +} + +return $id; \ No newline at end of file diff --git a/_data/snippets/getElementDescription.php b/_data/snippets/getElementDescription.php index 31c9eebe..25f0ff0b 100644 --- a/_data/snippets/getElementDescription.php +++ b/_data/snippets/getElementDescription.php @@ -16,17 +16,17 @@ $dbNameField = "name"; $modxObject = "modTemplateVar"; break; - case stripos($elementType,'atom') !== false: + case stripos($elementType, 'atom') !== false: $dbTable = "site_htmlsnippets"; $dbNameField = "name"; $modxObject = "modChunk"; break; - case stripos($elementType,'molecule') !== false: + case stripos($elementType, 'molecule') !== false: $dbTable = "site_htmlsnippets"; $dbNameField = "name"; $modxObject = "modChunk"; break; - case stripos($elementType,'Organism') !== false: + case stripos($elementType,'organism') !== false: $dbTable = "site_htmlsnippets"; $dbNameField = "name"; $modxObject = "modChunk"; @@ -41,7 +41,7 @@ $dbNameField = "pagetitle"; $modxObject = "modResource"; break; - case stripos($elementType, 'formulas') !== false: + case stripos($elementType, 'formula') !== false: $dbTable = "site_snippets"; $dbNameField = "name"; $modxObject = "modSnippet"; diff --git a/_data/snippets/includedBosons.php b/_data/snippets/includedBosons.php new file mode 100644 index 00000000..267f60c1 --- /dev/null +++ b/_data/snippets/includedBosons.php @@ -0,0 +1,127 @@ +id: 111 +name: includedBosons +category: f_hub +properties: 'a:0:{}' + +----- + +/** + * includedBosons + * + * List all ContentBlocks fields being used in a given layout, or if no layout + * is specified, on a given page. + * + * @author Hugo Peek + */ + +$cbCorePath = $modx->getOption('contentblocks.core_path', null, $modx->getOption('core_path').'components/contentblocks/'); +$ContentBlocks = $modx->getService('contentblocks','ContentBlocks', $cbCorePath.'model/contentblocks/'); + +$resourceID = $modx->getOption('resource', $scriptProperties, $modx->resource->get('id')); +$layoutIdx = $modx->getOption('layout', $scriptProperties, ''); +$filterFields = $modx->getOption('filterFields', $scriptProperties, ''); +$tpl = $modx->getOption('tpl', $scriptProperties, 'includedContentBlocksRow'); + +$htmlContentType = $modx->getObject('modContentType', array('name' => 'HTML')); + +// Function to turn result into a link to its corresponding resource +// @todo: This function is also being used in the referringBosons snippet.. Could this somehow be loaded from 1 file? +if (!function_exists('createLink')) { + function createLink($catID, $uriExtension) { + global $modx; + + // Since we have an ID, let's go hunt for the category name + $category = $modx->getObject('cbCategory', array( + 'id' => $catID + )); + + if ($category) { + $catName = strtolower($category->get('name')); + } else { + $modx->log(modX::LOG_LEVEL_WARN, '[includedBosons] Link could not be generated due to missing category ID'); + } + + // Use bosons as parent name, because we don't know if this is a layout or field + $parentName = 'bosons'; + + // Get the resource with an alias that matches both category and parent name + $query = $modx->newQuery('modResource'); + $query->where(array( + 'uri:LIKE' => '%' . $parentName . '%', + 'AND:uri:LIKE' => '%' . $catName . $uriExtension + )); + $query->select('uri'); + $link = $modx->getValue($query->prepare()); + + return $link; + } +} + +// Function to look for a key in a multi level array +if (!function_exists('recursive_array_search')) { + function recursive_array_search(array $array, $needle) { + $result = array(); + $iterator = new RecursiveArrayIterator($array); + $recursive = new RecursiveIteratorIterator( + $iterator, + RecursiveIteratorIterator::SELF_FIRST + ); + foreach ($recursive as $key => $value) { + if ($key === $needle) { + $result[] = $value; + } + } + return $result; + } +} + +// Get the properties of the current resource first +$query = $modx->newQuery('modResource', array( + 'id' => $resourceID +)); +$query->select('properties'); +$properties = $modx->getValue($query->prepare()); + +// Prepare an array with just the content part +$propertiesArray = json_decode($properties, true); +$propertiesArray = json_decode($propertiesArray['contentblocks']['content'], true); + +// If a layout idx is set, pick the corresponding layout from the array +if ($layoutIdx != '') { + $result = $propertiesArray[$layoutIdx]; +} else { + $result = $propertiesArray; // And if not, just get all the fields +} + +// Great! Now let's retrieve all field IDs from the array +if (is_array($result)) { + $result = recursive_array_search($result, 'field'); + $result = array_unique($result); +} else { + $modx->log(modX::LOG_LEVEL_ERROR, '[includedBosons] Result is not a valid array. Is the layout idx correct?'); + return ''; +} + +// User specified CB fields need to be excluded from result +$arrayFilter = explode(',', $filterFields); + +// Turn each match into a list item with a link +foreach ($result as $id) { + if (!in_array($id, $arrayFilter)) { + $boson = $modx->getObject('cbField', array( + 'id' => $id + )); + } + if ($boson) { + $name = $boson->get('name'); + $link = createLink($boson->get('category'), $htmlContentType->get('file_extensions')); + + $output[] = $modx->getChunk($tpl, array( + 'name' => $name, + 'link' => $link, + 'label_classes' => '' + )); + } +} + +return implode(array_unique($output)); \ No newline at end of file diff --git a/_data/snippets/includedChunks.php b/_data/snippets/includedChunks.php index 3b16f30e..eee74d85 100644 --- a/_data/snippets/includedChunks.php +++ b/_data/snippets/includedChunks.php @@ -48,8 +48,14 @@ $patternType = $modx->getOption('type', $scriptProperties, ''); $tpl = $modx->getOption('tpl', $scriptProperties, 'includedPatternsRow'); -// Find chunk names by their leading $ character -$regex = '/(? '%"available_chunks":"%' )); - $properties = $result->get('properties'); - $array = json_decode($properties, true); - - $chunks = $array['available_chunks']; - $result = explode(',', $chunks); - - foreach ($result as $name) { - // Also fetch category, to help ensure the correct resource is being linked - $query = $modx->newQuery('modChunk', array( - 'name' => $name - )); - $query->select('category'); - $category = $modx->getValue($query->prepare()); - - $idx++; - - $output[] = $modx->getChunk($tpl, array( - 'name' => $name, - 'category' => $category, - 'assigned' => 1, - 'idx' => $idx - )); + if (is_object($result)) { + $properties = $result->get('properties'); + $array = json_decode($properties, true); + + $chunks = $array['available_chunks']; + $result = explode(',', $chunks); + + foreach ($result as $name) { + // Also fetch category, to help ensure the correct resource is being linked + $query = $modx->newQuery('modChunk', array( + 'name' => $name + )); + $query->select('category'); + $category = $modx->getValue($query->prepare()); + + $idx++; + + $output[] = $modx->getChunk($tpl, array( + 'name' => $name, + 'category' => $category, + 'assigned' => 1, + 'idx' => $idx + )); + } } } } diff --git a/_data/snippets/includedPatternsLink.php b/_data/snippets/includedPatternsLink.php index 581c3327..390d0a31 100644 --- a/_data/snippets/includedPatternsLink.php +++ b/_data/snippets/includedPatternsLink.php @@ -9,6 +9,8 @@ $placeholder = $modx->getOption('toPlaceholder', $scriptProperties, ''); $prefix = $modx->getOption('prefix', $scriptProperties, ''); +$htmlContentType = $modx->getObject('modContentType', array('name' => 'HTML')); + // Get category name and parent ID $category = $modx->getObject('modCategory', array( 'id' => $catID @@ -50,7 +52,7 @@ // Get the resource with an alias that matches the category name $query = $modx->newQuery('modResource'); $query->where(array( - 'uri:LIKE' => '%' . $match, + 'uri:LIKE' => '%' . $match . $htmlContentType->get('file_extensions') )); $query->select('uri'); $link = $modx->getValue($query->prepare()); diff --git a/_data/snippets/includedSnippets.php b/_data/snippets/includedSnippets.php index c30ef295..e288cac6 100644 --- a/_data/snippets/includedSnippets.php +++ b/_data/snippets/includedSnippets.php @@ -67,4 +67,6 @@ } } +sort($output); + return implode($output); \ No newline at end of file diff --git a/_data/snippets/jsonToHTML.php b/_data/snippets/jsonToHTML.php index d87e41b8..50bb4580 100644 --- a/_data/snippets/jsonToHTML.php +++ b/_data/snippets/jsonToHTML.php @@ -6,47 +6,42 @@ ----- -// Original script by Tran Duc Thang // @todo: write documentation and use chunks for the HTML templating $json = $modx->getOption('json', $scriptProperties, ''); +//$filterKeys = $modx->getOption('filterKeys', $scriptProperties, 'template,process_tags,field_is_exposed'); +//$filterKeys = $modx->getOption('filterKeys', $scriptProperties, '"template","process_tags","field_is_exposed"'); -if (!class_exists('jsonToHTML')) { - class jsonToHTML { - public static function jsonToDebug($json = '') - { - $arr = json_decode($json, true); - $html = ''; - if ($arr && is_array($arr)) { - $html .= self::_arrayToHtmlTableRecursive($arr); - } - return $html; - } +$jsonArray = json_decode($json, true); +//$filterArray = explode(',', $filterKeys); + +if (!function_exists('jsonToHTML')) { + function jsonToHTML($array) { + $output = ''; + + // @todo: For some strange reason, the function won't accept filterArray to be anything other that what's below + $filterKeys = array("templates","process_tags","field_is_exposed"); - private static function _arrayToHtmlTableRecursive($arr) { - $str = '
'; - foreach ($arr as $key => $val) { - // Exclude templates from result - // @todo: make this variable - if ($key != 'templates') { - $str .= ""; - $str .= ""; - $str .= ""; + foreach ($array as $key => $value) { + // Exclude unwanted keys and keys with an empty value from result + // @todo: When not set to 'true', the first item in the array will always be excluded + if (in_array($key, $filterKeys, true) == false && $value != false) { + $output .= ""; + $output .= ""; + $output .= ""; } - $str .= "
$key"; - if (is_array($val)) { - if (!empty($val)) { - $str .= self::_arrayToHtmlTableRecursive($val); - } - } else { - $str .= nl2br("$val"); - } - $str .= "
$key"; + if (is_array($value)) { + $output .= jsonToHTML($value); + } else { + $output .= nl2br("$value"); } + $output .= "
"; - - return $str; } + + $output .= ""; + + return $output; } } -return jsonToHTML::jsonToDebug($json); \ No newline at end of file +return (jsonToHTML($jsonArray)); \ No newline at end of file diff --git a/_data/snippets/referringBosons.php b/_data/snippets/referringBosons.php index cd223738..3a0ab7ec 100644 --- a/_data/snippets/referringBosons.php +++ b/_data/snippets/referringBosons.php @@ -11,9 +11,11 @@ $pattern = $modx->getOption('pattern', $scriptProperties, ''); $tpl = $modx->getOption('tpl', $scriptProperties, 'includedContentBlocksRow'); +$htmlContentType = $modx->getObject('modContentType', array('name' => 'HTML')); + // Function to turn result into a link to its corresponding resource if (!function_exists('createLink')) { - function createLink($catID) { + function createLink($catID, $uriExtension) { global $modx; // Since we have an ID, let's go hunt for the category name @@ -34,7 +36,7 @@ function createLink($catID) { $query = $modx->newQuery('modResource'); $query->where(array( 'uri:LIKE' => '%' . $parentName . '%', - 'AND:uri:LIKE' => '%' . $catName, + 'AND:uri:LIKE' => '%' . $catName . $uriExtension )); $query->select('uri'); $link = $modx->getValue($query->prepare()); @@ -90,15 +92,16 @@ function createLink($catID) { // Turn each match into a list item with a link foreach ($result as $boson) { $name = $boson->get('name'); - $link = createLink($boson->get('category')); + $link = createLink($boson->get('category'), $htmlContentType->get('file_extensions')); $output[] = $modx->getChunk($tpl, array( 'name' => $name, - 'link' => $link + 'link' => $link, + 'label_classes' => 'blue' )); } - return(implode($output)); + return implode($output); //if ($placeholder) { // $modx->toPlaceholder($placeholder, $output); diff --git a/_data/snippets/setPatternPlaceholders.php b/_data/snippets/setPatternPlaceholders.php index a0dd875b..16b31c8c 100644 --- a/_data/snippets/setPatternPlaceholders.php +++ b/_data/snippets/setPatternPlaceholders.php @@ -27,10 +27,13 @@ $modx->toPlaceholders($array, $prefix); // Set placeholder with all field settings parsed in an HTML table - $settingsTable = $modx->runSnippet('jsonToHTML', array( - 'json' => $field->get('settings') - )); - $modx->toPlaceholder('settings_table', $settingsTable, $prefix); + //$settingsTable = $modx->runSnippet('jsonToHTML', array( + // 'json' => $field->get('settings') + //)); + //$modx->toPlaceholder('settings_table', $settingsTable, $prefix); + + // Above option doesn't work somehow, so just output raw json to placeholder + $modx->toPlaceholder('settings_json', $field->get('settings'), $prefix); // Set placeholder with wrapper template, if present inside properties field $properties = $field->get('properties'); @@ -66,11 +69,8 @@ // Use a prefix to prevent collisions $modx->toPlaceholders($array, $prefix); - // Set placeholder with all field settings parsed in an HTML table - $settingsTable = $modx->runSnippet('jsonToHTML', array( - 'json' => $layout->get('settings') - )); - $modx->toPlaceholder('settings_table', $settingsTable, $prefix); + // Set placeholder with raw json output from the settings column + $modx->toPlaceholder('settings_json', $layout->get('settings'), $prefix); // Set separate placeholder with prefix, for easier retrieval of the other placeholders // Usage example: [[+[[+cl]].placeholder]] diff --git a/_data/snippets/tabsGenerateNav.php b/_data/snippets/tabsGenerateNav.php index d7ad4a32..e8d6e269 100644 --- a/_data/snippets/tabsGenerateNav.php +++ b/_data/snippets/tabsGenerateNav.php @@ -6,8 +6,26 @@ ----- +/** + * tabsGenerateNav + * + * Create tab buttons based on the tab content's HTML. + * Each content field contains data attributes with the correct text for each heading. + * + * Many thanks to @christianseel for coming up with the original idea and code! + */ + $doc = new DOMDocument(); -$doc->loadHTML(''.$input); + +// Set error level to suppress warnings in log over special characters in HTML +$internalErrors = libxml_use_internal_errors(true); + +// Load HTML +$doc->loadHTML('' . $input); + +// Restore error level +$internalErrors = libxml_use_internal_errors(false); + $divs = $doc->getElementsByTagName('div'); // Little flaky.. If div element changes, navigation breaks. $tabs = array(); diff --git a/_data/snippets/tvToJSON.php b/_data/snippets/tvToJSON.php new file mode 100644 index 00000000..cf5e8bc8 --- /dev/null +++ b/_data/snippets/tvToJSON.php @@ -0,0 +1,64 @@ +id: 114 +name: tvToJSON +description: 'Output the properties of given TV to a JSON object. The output could be used by jsonToHTML.' +category: f_json +properties: 'a:0:{}' + +----- + +/** + * tvToJSON + * + * Output the properties of given TV to a JSON object. + * The output could be used by jsonToHTML. + * + * Initially intended for use in the front-end library. TV settings can now be + * loaded automatically, instead of copy/pasting the JSON from the GPM config by hand. + * + * Usage example: + * [[tvToJSON? &tv=`[[+pattern_name]]`]] + * + */ + +$tvName = $modx->getOption('tv', $scriptProperties, ''); + +// Get the TV by name +$tv = $modx->getObject('modTemplateVar', array('name'=>$tvName)); + +if ($tv) { + // Render category name for clarity + $query = $modx->newQuery('modCategory', array( + 'id' => $tv->get('category') + )); + $query->select('category'); + $catName = $modx->getValue($query->prepare()); + + // Render media source name for clarity + $sourceID = $tv->get('source'); + if ($sourceID != false) { + $query = $modx->newQuery('modMediaSource', array( + 'id' => $sourceID + )); + $query->select('name'); + $sourceName = $modx->getValue($query->prepare()); + } + + // Create a new object with altered elements + // The new key names mimic the properties used by GPM + $tvAltered = array( + 'caption' => $tv->get('caption'), + 'description' => $tv->get('description'), + //'name' => $tv->get('name'), + 'type' => $tv->get('type'), + 'category' => $catName, + 'sortOrder' => $tv->get('rank'), + 'inputOptionValues' => str_replace('||', '
', $tv->get('elements')), + 'defaultValue' => $tv->get('default_text'), + 'inputProperties' => $tv->get('input_properties'), + 'outputProperties' => $tv->get('output_properties'), + 'mediaSource' => $sourceName // Not a GPM property, but good to know anyway + ); + + // Output as JSON object + return json_encode($tvAltered); +} \ No newline at end of file diff --git a/_data/system_settings/contentblocks.defaults-allowed-inputs.yaml b/_data/system_settings/contentblocks.defaults-allowed-inputs.yaml new file mode 100644 index 00000000..de2f4b4b --- /dev/null +++ b/_data/system_settings/contentblocks.defaults-allowed-inputs.yaml @@ -0,0 +1,4 @@ +key: contentblocks.defaults_allowed_inputs +value: 'textarea,richtext,code,blockdown' +namespace: contentblocks +area: Defaults diff --git a/_data/system_settings/contentblocks.file.upload-path.yaml b/_data/system_settings/contentblocks.file.upload-path.yaml new file mode 100644 index 00000000..e4db2323 --- /dev/null +++ b/_data/system_settings/contentblocks.file.upload-path.yaml @@ -0,0 +1,4 @@ +key: contentblocks.file.upload_path +value: assets/uploads/ +namespace: contentblocks +area: 'Input: File' diff --git a/_data/system_settings/contentblocks.show-resource-option.yaml b/_data/system_settings/contentblocks.show-resource-option.yaml new file mode 100644 index 00000000..b30718b9 --- /dev/null +++ b/_data/system_settings/contentblocks.show-resource-option.yaml @@ -0,0 +1,5 @@ +key: contentblocks.show_resource_option +value: '1' +xtype: combo-boolean +namespace: contentblocks +area: Core diff --git a/_data/template_variables/fb-form-layout.yaml b/_data/template_variables/fb-form-layout.yaml index 141b7c15..b7ef9aeb 100644 --- a/_data/template_variables/fb-form-layout.yaml +++ b/_data/template_variables/fb-form-layout.yaml @@ -2,9 +2,9 @@ id: 13 type: listbox name: fb_form_layout caption: 'Layout type' -description: 'Stacked means the labels are always above the input fields, Horizontal means the labels are next to the fields, Inline means everything is on 1 row (so only for very small forms).' +description: 'Vertical means the labels are always above the input fields, Horizontal means the labels are next to the fields, Inline means everything is on 1 row (so only for very small forms).' category: 'Settings - General' -elements: Stacked==vertical||Horizontal==horizontal||Inline==inline +elements: Vertical==vertical||Horizontal==horizontal||Inline==inline rank: 5 properties: 'a:0:{}' input_properties: null diff --git a/_data/template_variables/project-hub-timeline.yaml b/_data/template_variables/project-hub-timeline.yaml index b842d400..562b4eff 100644 --- a/_data/template_variables/project-hub-timeline.yaml +++ b/_data/template_variables/project-hub-timeline.yaml @@ -1,8 +1,8 @@ id: 35 type: migx name: project_hub_timeline -caption: 'Project hub timeline' -description: 'In this timeline you can keep track of the projects'' progress and see what''s coming up next. You can also link to all related project files and resources from here, so you can find them back more easily.' +caption: 'Project timeline' +description: 'In this timeline you can keep track of the project''s progress and see what''s coming up next. You can also link to all related project files and resources from here, so you can find them back more easily.' category: 'Project Hub' elements: '' rank: 1 diff --git a/_data/template_variables/status-indicator.yaml b/_data/template_variables/status-indicator.yaml index 0f4ccce0..c4a8fa6c 100644 --- a/_data/template_variables/status-indicator.yaml +++ b/_data/template_variables/status-indicator.yaml @@ -2,9 +2,9 @@ id: 40 type: option name: status_indicator caption: 'Status indicator' -description: 'Is this page ready for prime time at this point?' +description: 'How is this resource doing?' category: Status -elements: 'Yes, it''s finished==done||No, but it''s almost there==almost-done||No, it needs (way) more work==not-done||Yes, but the content is outdated==expired' +elements: '[Seed] Its idea is ready to take root, but this resource is still empty==not-done||[Seedling] Work has begun and leaves are starting to appear==in-progress||[Small plant] Almost ready to be transplanted to its live container==almost-done||[Healthy plant] Watered, fertilized and growing steadily==done||[Fruiting] This particular resource is performing really well==thriving||[Plagued] Somehow, this resource is having some difficulties staying healthy==struggling||[Wilting] The content is outdated or has outlived its purpose entirely==expired' rank: 1 properties: 'a:0:{}' input_properties: null diff --git a/_data/templates/ProjectHub.yaml b/_data/templates/ProjectDashboard.yaml similarity index 89% rename from _data/templates/ProjectHub.yaml rename to _data/templates/ProjectDashboard.yaml index e6e28743..416c27aa 100644 --- a/_data/templates/ProjectHub.yaml +++ b/_data/templates/ProjectDashboard.yaml @@ -1,8 +1,8 @@ id: 11 -templatename: ProjectHub +templatename: ProjectDashboard description: '' category: t_hub -icon: icon-history +icon: icon-line-chart properties: 'a:0:{}' -----