Skip to content

Commit b4d274a

Browse files
Heading added for spacing
1 parent 0b1df35 commit b4d274a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

astroid/astroid-framework/framework/elements/section-default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<field ngShow="custom_colors" name="link_color" type="astroidcolor" label="TPL_ASTROID_LINK_COLOR_LABEL" />
7474
<field ngShow="custom_colors" name="link_hover_color" type="astroidcolor" label="TPL_ASTROID_LINK_HOVER_COLOR_LABEL" />
7575

76-
76+
<field name="spacing_settings" type="astroidheading" title="ASTROID_ELEMENT_HEAD_SPACING_LABEL" />
7777
<field name="margin" type="astroidspacing" label="Margin" />
7878
<field name="padding" type="astroidspacing" label="Padding" />
7979
</fieldset>

astroid/astroid-framework/framework/fields/astroidheading.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function getInput() {
4747
$attrs[] = 'ng-hide="' . $ngRequired . '"';
4848
}
4949

50-
return "<div " . implode(' ', $attrs) . " class='form-group form-group-heading'><h3>" . ((!empty($this->element['icon']) ? "<i class='" . $this->element['icon'] . "'></i> " : "")) . JText::_($this->element['title']) . "</h3><p class='mb-0'>" . JText::_($this->description) . "</p></div>";
50+
return "<div " . implode(' ', $attrs) . " class='form-group form-group-heading'><h3 class='mb-0'>" . ((!empty($this->element['icon']) ? "<i class='" . $this->element['icon'] . "'></i> " : "")) . JText::_($this->element['title']) . "</h3><p class='mb-0'>" . JText::_($this->description) . "</p></div>";
5151
}
5252

5353
}

astroid/astroid-framework/language/en-GB/en-GB.astroid.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ ASTROID_ELEMENT_HEAD_RESPONSIVE_SEETINGS_LABEL="Responsive Settings"
603603
ASTROID_ELEMENT_HEAD_BACKGROUND_OPTIONS_LABEL="Background Options"
604604
ASTROID_ELEMENT_HEAD_COLOR_OPTIONS_LABEL="Color Options"
605605
ASTROID_ELEMENT_HEAD_DEVICE_VISIBILITY_LABEL="Device Visibility"
606+
ASTROID_ELEMENT_HEAD_SPACING_LABEL="Spacing"
606607
TPL_ASTROID_GENERAL_SETTINGS_LABEL="General Settings"
607608

608609
; Element Module Position

0 commit comments

Comments
 (0)