Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tags to all settings applied only in desktop view #116

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/settings-blog-page-layout.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
settingsBtn: document.querySelector('.js-blog-layout-settings-editor'),
menuItems: [
{
"title": {{ "blog_layout" | lce | json }},
"title": "{{ "blog_layout" | lce }} ({{ "desktop" | lce }})",
"type": "radio",
"key": "blog_layout",
"list": [
Expand Down
8 changes: 4 additions & 4 deletions components/settings-menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
settingsBtn: document.querySelector('.js-menu-settings-btn'),
menuItems: [
{
"title": {{ "menu_alignment" | lce | json }},
"title": "{{ "menu_alignment" | lce }} ({{ "desktop" | lce }})",
"type": "radio",
"key": "positioning",
"list": [
Expand All @@ -70,7 +70,7 @@
]
},
{
"title": {{ "active_page_indicator" | lce | json }},
"title": "{{ "active_page_indicator" | lce }} ({{ "desktop" | lce }})",
"type": "radio",
"key": "indicator",
"list": [
Expand All @@ -89,14 +89,14 @@
{%- assign pxTr = "units.px" | lce -%}
{%- assign sideMenuCombinedTr = sideMenuWidthTr | append: ' (' | append: pxTr | append: ')' -%}
{
"title": {{ sideMenuCombinedTr | json }},
"title": "{{ sideMenuCombinedTr }} ({{ "desktop" | lce }})",
"type": "number",
"min": 1,
"key": "max_width",
"placeholder": {{ sideMenuCombinedTr | json }}
},
{
"title": {{ "max_no_of_menu_pages" | lce | json }},
"title": "{{ "max_no_of_menu_pages" | lce }} ({{ "desktop" | lce }})",
"type": "number",
"key": "max_elements",
"placeholder": {{ "max_no_of_menu_pages" | lce | json }},
Expand Down
30 changes: 15 additions & 15 deletions components/settings-modular-content.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
valuesObj.col_h_padding = "{{_defaultBlockObj.default.col_h_padding}}";
{%- endif -%}
}

if (!('col_min_width' in valuesObj)) {
{%- if _defaultBlockObj[blockColumnsSettingsKey].col_min_width -%}
valuesObj.col_min_width = "{{_defaultBlockObj[blockColumnsSettingsKey].col_min_width}}";
Expand Down Expand Up @@ -143,15 +143,6 @@
{"title": "5", "value": 5}
]
},
{%- assign blockMaxWidthTr = "max_width" | lce -%}
{%- assign blockMaxWidthCombinedTr = blockMaxWidthTr | append: ' (%)' -%}
{
"title": {{ blockMaxWidthCombinedTr| json }},
"type": "number",
"min": 1,
"key": "block_max_width",
"placeholder": {{ blockMaxWidthCombinedTr| json }}
},
{%- assign verticalSpacingTr = "vertical_spacing" | lce -%}
{%- assign pxTr = "units.px" | lce -%}
{%- assign verticalSpacingCombinedTr = verticalSpacingTr | append: ' (' | append: pxTr | append: ')' -%}
Expand All @@ -162,8 +153,17 @@
"key": "block_v_padding",
"placeholder": {{verticalSpacingCombinedTr | json }}
},
{%- assign blockMaxWidthTr = "max_width" | lce -%}
{%- assign blockMaxWidthCombinedTr = blockMaxWidthTr | append: ' (%)' -%}
{
"title": "{{ blockMaxWidthCombinedTr }} ({{ "desktop" | lce }})" ,
"type": "number",
"min": 1,
"key": "block_max_width",
"placeholder": {{ blockMaxWidthCombinedTr| json }}
},
{
"title": {{ "column_distribution" | lce | json }},
"title": "{{ "column_distribution" | lce }} ({{ "desktop" | lce }})",
"type": "select",
"key": "block_justification",
"list": [
Expand All @@ -188,7 +188,7 @@
{%- assign pxTr = "units.px" | lce -%}
{%- assign colMaxWidthCombinedTr = colMaxWidthTr | append: ' (' | append: pxTr | append: ')' -%}
{
"title": {{ colMaxWidthCombinedTr | json }},
"title": "{{ colMaxWidthCombinedTr }} ({{ "desktop" | lce }})",
"type": "number",
"min": 1,
"key": "col_max_width",
Expand All @@ -198,7 +198,7 @@
{%- assign pxTr = "units.px" | lce -%}
{%- assign colMinWidthCombinedTr = colMinWidthTr | append: ' (' | append: pxTr | append: ')' -%}
{
"title": {{ colMinWidthCombinedTr | json }},
"title": "{{ colMinWidthCombinedTr }} ({{ "desktop" | lce }})",
"type": "number",
"min": 1,
"key": "col_min_width",
Expand All @@ -208,14 +208,14 @@
{%- assign pxTr = "units.px" | lce -%}
{%- assign colHPadCombinedTr = colHPadTr | append: ' (' | append: pxTr | append: ')' -%}
{
"title": {{ colHPadCombinedTr | json }},
"title": "{{ colHPadCombinedTr }} ({{ "desktop" | lce }})",
"type": "number",
"min": 0,
"key": "col_h_padding",
"placeholder": {{ colHPadCombinedTr | json }}
},
{
"title": {{ "column_distribution" | lce | json }},
"title": "{{ "column_distribution" | lce }} ({{ "desktop" | lce }})",
"type": "select",
"key": "col_justification",
"list": [
Expand Down
2 changes: 1 addition & 1 deletion components/settings-swiper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
},
{
"title": {{ "content_position" | lce | json }},
"title": "{{ "content_position" | lce }} ({{ "desktop" | lce }})",
"type": "radio",
"key": "content_position",
"list": [
Expand Down