Skip to content

Commit

Permalink
Design settings for additional text
Browse files Browse the repository at this point in the history
  • Loading branch information
uldisrudzitis committed Aug 2, 2024
1 parent ea19f9c commit 6c0274c
Show file tree
Hide file tree
Showing 8 changed files with 260 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _templates/default/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
color: <?php echo $s->get('pageHeading', 'color') ?>;
}

#additionalText {
color: <?php echo $s->get('additionalText', 'color') ?>;
font-family: <?php echo $s->getFont('additionalText') ?>;
font-size: <?php echo $s->get('additionalText', 'fontSize') ?>;
}

#contentContainer {
width: <?php echo $s->get('pageLayout', 'contentWidth') ?>;
padding: <?php echo $s->get('pageLayout', 'bodyMargin') ?>;
Expand Down
59 changes: 59 additions & 0 deletions _templates/default/template.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,65 @@
],
],

'additionalText' => [
'_' => [
'title' => I18n::_('Additional text'),
],
'color' => [
'format' => 'color',
'default' => 'inherit',
'title' => I18n::_('Color'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'color'
]
]
],
'fontFamily' => [
'format' => 'fontselect',
'values' => $fontOptionsWithInherit,
'default' => 'inherit',
'title' => I18n::_('Font face'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'googleFont' => [
'format' => 'text',
'default' => '',
'allow_blank' => true,
'html_entities' => true,
'title' => I18n::_('Google web fonts'),
'description' => I18n::_('googleFont_description'),
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'fontSize' => [
'format' => 'text',
'css_units' => true,
'default' => 'inherit',
'allow_blank' => true,
'title' => I18n::_('Font size'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-size'
]
]
],
],

'menu' => [
'_' => [
'title' => I18n::_('Main menu'),
Expand Down
6 changes: 6 additions & 0 deletions _templates/mashup-0.3.5/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
color: <?php echo $s->get('sideBar', 'color') ?> !important;
}

#additionalText {
color: <?php echo $s->get('additionalText', 'color') ?>;
font-family: <?php echo $s->getFont('additionalText') ?>;
font-size: <?php echo $s->get('additionalText', 'fontSize') ?>;
}

#sideColumnTop ul li {
font-family: <?php echo $s->getFont('menu') ?>;
font-size: <?php echo $s->get('menu', 'fontSize') ?>;
Expand Down
59 changes: 59 additions & 0 deletions _templates/mashup-0.3.5/template.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,65 @@
],
],

'additionalText' => [
'_' => [
'title' => I18n::_('Additional text'),
],
'color' => [
'format' => 'color',
'default' => 'inherit',
'title' => I18n::_('Color'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'color'
]
]
],
'fontFamily' => [
'format' => 'fontselect',
'values' => $fontOptionsWithInherit,
'default' => 'inherit',
'title' => I18n::_('Font face'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'googleFont' => [
'format' => 'text',
'default' => '',
'allow_blank' => true,
'html_entities' => true,
'title' => I18n::_('Google web fonts'),
'description' => I18n::_('googleFont_description'),
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'fontSize' => [
'format' => 'text',
'css_units' => true,
'default' => 'inherit',
'allow_blank' => true,
'title' => I18n::_('Font size'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-size'
]
]
],
],

'menu' => [
'_' => [
'title' => I18n::_('Main menu'),
Expand Down
6 changes: 6 additions & 0 deletions _templates/messy-0.4.2/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@
text-decoration: <?php echo $s->get('menu', 'textDecorationActive') ?>;
}

#additionalText {
color: <?php echo $s->get('additionalText', 'color') ?>;
font-family: <?php echo $s->getFont('additionalText') ?>;
font-size: <?php echo $s->get('additionalText', 'fontSize') ?>;
}

#xBackground #xBackgroundLoader {
background: url(layout/loader_<?php echo $s->get('pageLayout', 'bgButtonType') ?>.gif) no-repeat;
}
Expand Down
59 changes: 59 additions & 0 deletions _templates/messy-0.4.2/template.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,65 @@
],
],

'additionalText' => [
'_' => [
'title' => I18n::_('Additional text'),
],
'color' => [
'format' => 'color',
'default' => 'inherit',
'title' => I18n::_('Color'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'color'
]
]
],
'fontFamily' => [
'format' => 'fontselect',
'values' => $fontOptionsWithInherit,
'default' => 'inherit',
'title' => I18n::_('Font face'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'googleFont' => [
'format' => 'text',
'default' => '',
'allow_blank' => true,
'html_entities' => true,
'title' => I18n::_('Google web fonts'),
'description' => I18n::_('googleFont_description'),
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'fontSize' => [
'format' => 'text',
'css_units' => true,
'default' => 'inherit',
'allow_blank' => true,
'title' => I18n::_('Font size'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-size'
]
]
],
],

'socialMediaLinks' => [
'_' => [
'title' => I18n::_('Social media buttons'),
Expand Down
6 changes: 6 additions & 0 deletions _templates/white-0.3.5/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
color: <?php echo $s->get('pageHeading', 'color') ?> !important;
}

#additionalText {
color: <?php echo $s->get('additionalText', 'color') ?>;
font-family: <?php echo $s->getFont('additionalText') ?>;
font-size: <?php echo $s->get('additionalText', 'fontSize') ?>;
}

#sideColumnTop a:link,
#sideColumnTop a:visited {
color: <?php echo $s->get('menu', 'colorLink') ?>;
Expand Down
59 changes: 59 additions & 0 deletions _templates/white-0.3.5/template.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,65 @@
],
],

'additionalText' => [
'_' => [
'title' => I18n::_('Additional text'),
],
'color' => [
'format' => 'color',
'default' => 'inherit',
'title' => I18n::_('Color'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'color'
]
]
],
'fontFamily' => [
'format' => 'fontselect',
'values' => $fontOptionsWithInherit,
'default' => 'inherit',
'title' => I18n::_('Font face'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'googleFont' => [
'format' => 'text',
'default' => '',
'allow_blank' => true,
'html_entities' => true,
'title' => I18n::_('Google web fonts'),
'description' => I18n::_('googleFont_description'),
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-family'
]
]
],
'fontSize' => [
'format' => 'text',
'css_units' => true,
'default' => 'inherit',
'allow_blank' => true,
'title' => I18n::_('Font size'),
'description' => '',
'css' => [
[
'selector' => '#additionalText',
'property' => 'font-size'
]
]
],
],

'menu' => [
'_' => [
'title' => I18n::_('Main menu')
Expand Down

0 comments on commit 6c0274c

Please sign in to comment.