Skip to content

Commit 90b6181

Browse files
Added background color at coming soon tab under image
1 parent 176df18 commit 90b6181

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

astroid/astroid-template-zero/astroid/options/miscellaneous.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565

6666
<field astroidgroup="coming_soon" ngShow="background_setting =='color' AND developemnt_mode=='1'" description="ASTROID_SELECT_BACKGROUND_COLOR_DESC" name="background_color" type="astroidcolor" label="TPL_ASTROID_BACKGROUND_COLOR_LABEL" />
6767

68+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" description="ASTROID_SELECT_BACKGROUND_COLOR_DESC" name="img_background_color" type="astroidcolor" label="TPL_ASTROID_BACKGROUND_COLOR_LABEL" />
69+
6870
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" name="background_image" type="astroidmedia" label="TPL_ASTROID_BACKGROUND_IMAGE_LABEL"/>
6971

7072
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" name="background_repeat" type="astroidlist" label="TPL_ASTROID_BACKGROUND_REPEAT_LABEL" hint="Background Repeat">

astroid/astroid-template-zero/frontend/comingsoon.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
}
3232
}
3333
if($background_setting =="image"){
34+
35+
$img_background_color = $template->params->get('img_background_color', '');
36+
$img_background_color = empty($img_background_color) ? 'inherit' : $img_background_color;
37+
$styles[] = 'background-color:' . $img_background_color;
38+
3439
$background_image = $template->params->get('background_image', '');
3540
if (!empty($background_image)) {
3641
$styles[] = 'background-image: url(' . JURI::root() . 'images/' . $background_image . ')';

0 commit comments

Comments
 (0)