Skip to content

Commit 87555a2

Browse files
fix developemnt_mode spell
1 parent d123ccb commit 87555a2

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,51 +41,51 @@
4141
<field astroidgroup="contact_info" ngShow="contact_details=='1' AND contact_display=='icons'" description="TPL_ASTROID_ICON_COLOR_DESC" name="icon_color" type="astroidcolor" large="true" label="TPL_ASTROID_ICON_COLOR_LABEL">
4242
</field>
4343

44-
<field astroidgroup="coming_soon" name="developemnt_mode" type="astroidtext" astroid-switch="true" default="0" label="TPL_ASTROID_MISCELL_ENABLE_DEVELOPMENT_MODE_LABEL" description="TPL_ASTROID_MISCELL_ENABLE_DEVELOPMENT_MODE_DESC">
44+
<field astroidgroup="coming_soon" name="development_mode" type="astroidtext" astroid-switch="true" default="0" label="TPL_ASTROID_MISCELL_ENABLE_DEVELOPMENT_MODE_LABEL" description="TPL_ASTROID_MISCELL_ENABLE_DEVELOPMENT_MODE_DESC">
4545
</field>
4646

47-
<field astroidgroup="coming_soon" name="coming_soon_logo" type="astroidmedia" label="TPL_ASTROID_MISCELL_COMING_LOGO_LABEL" description="TPL_ASTROID_MISCELL_COMING_LOGO_DESC" ngShow="developemnt_mode=='1'" ngRequired="developemnt_mode=='1'" class="form-control">
47+
<field astroidgroup="coming_soon" name="coming_soon_logo" type="astroidmedia" label="TPL_ASTROID_MISCELL_COMING_LOGO_LABEL" description="TPL_ASTROID_MISCELL_COMING_LOGO_DESC" ngShow="development_mode=='1'" ngRequired="development_mode=='1'" class="form-control">
4848
</field>
4949

50-
<field astroidgroup="coming_soon" name="coming_soon_content" code="html" class="form-control" type="astroidtextarea" label="TPL_ASTROID_MISCELL_COMING_CONTENT_LABEL" description="TPL_ASTROID_MISCELL_COMING_CONTENT_DESC" ngShow="developemnt_mode=='1'" ngRequired="developemnt_mode=='1'">
50+
<field astroidgroup="coming_soon" name="coming_soon_content" code="html" class="form-control" type="astroidtextarea" label="TPL_ASTROID_MISCELL_COMING_CONTENT_LABEL" description="TPL_ASTROID_MISCELL_COMING_CONTENT_DESC" ngShow="development_mode=='1'" ngRequired="development_mode=='1'">
5151
</field>
5252

53-
<field astroidgroup="coming_soon" name="coming_soon_countdown_date" type="astroidcalendar" label="TPL_ASTROID_MISCELL_COMING_COUNTDOWN_DATE_LABEL" description="TPL_ASTROID_MISCELL_COMING_COUNTDOWN_DATE_DESC" default="01/01/2020 00:00 AM" ngShow="developemnt_mode=='1'" ngRequired="developemnt_mode=='1'">
53+
<field astroidgroup="coming_soon" name="coming_soon_countdown_date" type="astroidcalendar" label="TPL_ASTROID_MISCELL_COMING_COUNTDOWN_DATE_LABEL" description="TPL_ASTROID_MISCELL_COMING_COUNTDOWN_DATE_DESC" default="01/01/2020 00:00 AM" ngShow="development_mode=='1'" ngRequired="development_mode=='1'">
5454
</field>
5555

56-
<field astroidgroup="coming_soon" name="coming_soon_social" type="astroidtext" astroid-switch="true" default="1" label="TPL_ASTROID_MISCELL_ENABLE_SOCIAL_LABEL" ngShow="developemnt_mode=='1'" description="TPL_ASTROID_MISCELL_ENABLE_SOCIAL_DESC">
56+
<field astroidgroup="coming_soon" name="coming_soon_social" type="astroidtext" astroid-switch="true" default="1" label="TPL_ASTROID_MISCELL_ENABLE_SOCIAL_LABEL" ngShow="development_mode=='1'" description="TPL_ASTROID_MISCELL_ENABLE_SOCIAL_DESC">
5757
</field>
5858

59-
<field astroidgroup="coming_soon" ngShow="developemnt_mode=='1'" description="TPL_ASTROID_MISCELL_COMING_BG_TYPE_DESC" name="background_setting" type="astroidradio" default="0" label="TPL_ASTROID_MISCELL_COMING_BG_TYPE_LABEL">
59+
<field astroidgroup="coming_soon" ngShow="development_mode=='1'" description="TPL_ASTROID_MISCELL_COMING_BG_TYPE_DESC" name="background_setting" type="astroidradio" default="0" label="TPL_ASTROID_MISCELL_COMING_BG_TYPE_LABEL">
6060
<option value="0">ASTROID_NONE</option>
6161
<option value="color">TPL_ASTROID_COLOR</option>
6262
<option value="image">TPL_ASTROID_IMAGE</option>
6363
<option value="video">TPL_ASTROID_VIDEO</option>
6464
</field>
6565

66-
<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" />
66+
<field astroidgroup="coming_soon" ngShow="background_setting =='color' AND development_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" />
68+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND development_mode=='1'" description="ASTROID_SELECT_BACKGROUND_COLOR_DESC" name="img_background_color" type="astroidcolor" label="TPL_ASTROID_BACKGROUND_COLOR_LABEL" />
6969

70-
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" name="background_image" type="astroidmedia" label="TPL_ASTROID_BACKGROUND_IMAGE_LABEL"/>
70+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND development_mode=='1'" name="background_image" type="astroidmedia" label="TPL_ASTROID_BACKGROUND_IMAGE_LABEL"/>
7171

72-
<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">
72+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND development_mode=='1'" name="background_repeat" type="astroidlist" label="TPL_ASTROID_BACKGROUND_REPEAT_LABEL" hint="Background Repeat">
7373
<option value="">JGLOBAL_INHERIT</option>
7474
<option value="no-repeat">TPL_ASTROID_BACKGROUND_NO_REPEAT_LABEL</option>
7575
<option value="repeat-x">TPL_ASTROID_BACKGROUND_REPEAT_HORIZONTALLY_LABEL</option>
7676
<option value="repeat-y">TPL_ASTROID_BACKGROUND_REPEAT_VERTICAL_LABEL</option>
7777
</field>
78-
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" name="background_size" type="astroidlist" label="ASTROID_BACKGROUND_SIZE">
78+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND development_mode=='1'" name="background_size" type="astroidlist" label="ASTROID_BACKGROUND_SIZE">
7979
<option value="">JGLOBAL_INHERIT</option>
8080
<option value="cover">ASTROID_BACKGROUND_SIZE_COVER</option>
8181
<option value="contain">ASTROID_BACKGROUND_SIZE_CONTAIN</option>
8282
</field>
83-
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" name="background_attchment" type="astroidlist" label="ASTROID_BACKGROUND_ATTCHMENT">
83+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND development_mode=='1'" name="background_attchment" type="astroidlist" label="ASTROID_BACKGROUND_ATTCHMENT">
8484
<option value="">JGLOBAL_INHERIT</option>
8585
<option value="scroll">ASTROID_BACKGROUND_ATTCHMENT_SCROLL</option>
8686
<option value="fixed">ASTROID_BACKGROUND_ATTCHMENT_FIXED</option>
8787
</field>
88-
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND developemnt_mode=='1'" name="background_position" type="astroidlist" label="ASTROID_BACKGROUND_POSITION_LABEL">
88+
<field astroidgroup="coming_soon" ngShow="background_setting =='image' AND development_mode=='1'" name="background_position" type="astroidlist" label="ASTROID_BACKGROUND_POSITION_LABEL">
8989
<option value="">JGLOBAL_INHERIT</option>
9090
<option value="left top">ASTROID_BACKGROUND_POSITION_LEFT_TOP</option>
9191
<option value="left center">ASTROID_BACKGROUND_POSITION_LEFT_CENTER</option>
@@ -97,7 +97,7 @@
9797
<option value="center center">ASTROID_BACKGROUND_POSITION_CENTER_CENTER</option>
9898
<option value="center bottom">ASTROID_BACKGROUND_POSITION_CENTER_BOTTOM</option>
9999
</field>
100-
<field astroidgroup="coming_soon" ngShow="background_setting =='video' AND developemnt_mode=='1'" name="background_video" type="astroidmedia" media="videos" label="TPL_ASTROID_BACKGROUND_VIDEO_LABEL" description="TPL_ASTROID_BACKGROUND_VIDEO_DESC"/>
100+
<field astroidgroup="coming_soon" ngShow="background_setting =='video' AND development_mode=='1'" name="background_video" type="astroidmedia" media="videos" label="TPL_ASTROID_BACKGROUND_VIDEO_LABEL" description="TPL_ASTROID_BACKGROUND_VIDEO_DESC"/>
101101

102102
<field astroidgroup="error_404" name="error_404_content" code="html" class="form-control" type="astroidtextarea" label="TPL_ASTROID_MISCELL_ERROR_404_CONTENT_LABEL" description="TPL_ASTROID_MISCELL_ERROR_404_CONTENT_DESC">
103103
</field>

astroid/astroid-template-zero/index.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@
102102
</head>
103103
<body class="<?php echo $template->bodyClass($template->language, $template->direction); ?>">
104104
<?php
105-
if ($template->params->get('developemnt_mode', 0)) {
105+
if($template->params->exists('developemnt_mode')){
106+
$devMode = $template->params->get('developemnt_mode', 0);
107+
}else{
108+
$devMode = $template->params->get('development_mode', 0);
109+
}
110+
if ($devMode) {
106111
$template->loadLayout('comingsoon');
107112
} else {
108113
$template->loadLayout('preloader');

0 commit comments

Comments
 (0)