1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
$homepage_banner = themeConfiguration(get_frontend_settings('theme'), 'homepage');
?>
<div class="row ">
<div class="col-xl-12">
<div class="card">
<div class="card-body">
<h4 class="page-title"> <i class="mdi mdi-apple-keyboard-command title_icon"></i> <?php echo get_phrase('website_settings'); ?></h4>
</div>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-xl-12">
<div class="card">
<div class="card-body">
<h4 class="mb-3 header-title"><?php echo get_phrase('website_settings');?></h4>
<form class="required-form" action="<?php echo site_url('admin/frontend_settings/frontend_update'); ?>" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="banner_title"><?php echo get_phrase('banner_title'); ?><span class="required">*</span></label>
<input type="text" name = "banner_title" id = "banner_title" class="form-control" value="<?php echo get_frontend_settings('banner_title'); ?>" required>
</div>
<div class="form-group">
<label for="banner_sub_title"><?php echo get_phrase('banner_sub_title'); ?><span class="required">*</span></label>
<input type="text" name = "banner_sub_title" id = "banner_sub_title" class="form-control" value="<?php echo get_frontend_settings('banner_sub_title'); ?>" required>
</div>
<div class="form-group">
<label for="about_us"><?php echo get_phrase('about_us'); ?></label>
<textarea name="about_us" id = "about_us" class="form-control" rows="5"><?php echo get_frontend_settings('about_us'); ?></textarea>
</div>
<div class="form-group">
<label for="terms_and_condition"><?php echo get_phrase('terms_and_condition'); ?></label>
<textarea name="terms_and_condition" id ="terms_and_condition" class="form-control" rows="5"><?php echo get_frontend_settings('terms_and_condition'); ?></textarea>
</div>
<div class="form-group">
<label for="privacy_policy"><?php echo get_phrase('privacy_policy'); ?></label>
<textarea name="privacy_policy" id = "privacy_policy" class="form-control" rows="5"><?php echo get_frontend_settings('privacy_policy'); ?></textarea>
</div>
<div class="row justify-content-center">
<div class="col-md-4">
<button type="button" class="btn btn-primary btn-block" onclick="checkRequiredFields()"><?php echo get_phrase('update_settings'); ?></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row justify-content-center">
<?php if (count($homepage_banner) > 0):
if ($homepage_banner['homepage_banner_image']):?>
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<div class="col-xl-12">
<h4 class="mb-3 header-title"><?php echo get_phrase('update_banner_image');?></h4>
<div class="row justify-content-center">
<form action="<?php echo site_url('admin/frontend_settings/banner_image_update'); ?>" method="post" enctype="multipart/form-data" style="text-align: center;">
<div class="form-group mb-2">
<div class="wrapper-image-preview">
<div class="box" style="width: 250px;">
<div class="js--image-preview" style="background-image: url(<?php echo base_url('uploads/system/home-banner.jpg');?>); background-color: #F5F5F5;"></div>
<div class="upload-options">
<label for="banner_image" class="btn"> <i class="mdi mdi-camera"></i> <?php echo get_phrase('upload_banner_image'); ?> <br> <small>(<?php echo $homepage_banner['homepage_banner_image_size']; ?>)</small> </label>
<input id="banner_image" style="visibility:hidden;" type="file" class="image-upload" name="banner_image" accept="image/*">
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-block"><?php echo get_phrase('upload_banner_image'); ?></button>
</form>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<div class="col-xl-12">
<h4 class="mb-3 header-title"><?php echo get_phrase('update_light_logo');?></h4>
<div class="row justify-content-center">
<form action="<?php echo site_url('admin/frontend_settings/light_logo'); ?>" method="post" enctype="multipart/form-data" style="text-align: center;">
<div class="form-group mb-2">
<div class="wrapper-image-preview">
<div class="box" style="width: 250px;">
<div class="js--image-preview" style="background-image: url(<?php echo base_url('uploads/system/logo-light.png'); ?>); background-color: #F5F5F5;"></div>
<div class="upload-options">
<label for="light_logo" class="btn"> <i class="mdi mdi-camera"></i> <?php echo get_phrase('upload_light_logo'); ?> <br> <small>(330 X 70)</small> </label>
<input id="light_logo" style="visibility:hidden;" type="file" class="image-upload" name="light_logo" accept="image/*">
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-block"><?php echo get_phrase('upload_light_logo'); ?></button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<div class="col-lg-12">
<h4 class="mb-3 header-title"><?php echo get_phrase('update_dark_logo');?></h4>
<div class="row justify-content-center">
<form action="<?php echo site_url('admin/frontend_settings/dark_logo'); ?>" method="post" enctype="multipart/form-data" style="text-align: center;">
<div class="form-group mb-2">
<div class="wrapper-image-preview">
<div class="box" style="width: 250px;">
<div class="js--image-preview" style="background-image: url(<?php echo base_url('uploads/system/logo-dark.png'); ?>); background-color: #F5F5F5;"></div>
<div class="upload-options">
<label for="dark_logo" class="btn"> <i class="mdi mdi-camera"></i> <?php echo get_phrase('upload_dark_logo'); ?> <br> <small>(330 X 70)</small> </label>
<input id="dark_logo" style="visibility:hidden;" type="file" class="image-upload" name="dark_logo" accept="image/*">
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-block"><?php echo get_phrase('upload_dark_logo'); ?></button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<div class="col-lg-12">
<h4 class="mb-3 header-title"><?php echo get_phrase('update_small_logo');?></h4>
<div class="row justify-content-center">
<form action="<?php echo site_url('admin/frontend_settings/small_logo'); ?>" method="post" enctype="multipart/form-data" style="text-align: center;">
<div class="form-group mb-2">
<div class="wrapper-image-preview">
<div class="box" style="width: 250px;">
<div class="js--image-preview" style="background-image: url(<?php echo base_url('uploads/system/logo-light-sm.png'); ?>); background-color: #F5F5F5;"></div>
<div class="upload-options">
<label for="small_logo" class="btn"> <i class="mdi mdi-camera"></i> <?php echo get_phrase('upload_small_logo'); ?> <br> <small>(49 X 58)</small> </label>
<input id="small_logo" style="visibility:hidden;" type="file" class="image-upload" name="small_logo" accept="image/*">
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-block"><?php echo get_phrase('upload_small_logo'); ?></button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<div class="col-lg-12">
<h4 class="mb-3 header-title"><?php echo get_phrase('update_favicon');?></h4>
<div class="row justify-content-center">
<form action="<?php echo site_url('admin/frontend_settings/favicon'); ?>" method="post" enctype="multipart/form-data" style="text-align: center;">
<div class="form-group mb-2">
<div class="wrapper-image-preview">
<div class="box" style="width: 250px;">
<div class="js--image-preview" style="background-image: url(<?php echo base_url('uploads/system/favicon.png'); ?>); background-color: #F5F5F5;"></div>
<div class="upload-options">
<label for="favicon" class="btn"> <i class="mdi mdi-camera"></i> <?php echo get_phrase('upload_favicon'); ?> <br> <small>(90 X 90)</small> </label>
<input id="favicon" style="visibility:hidden;" type="file" class="image-upload" name="favicon" accept="image/*">
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-block"><?php echo get_phrase('upload_favicon'); ?></button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
initSummerNote(['#about_us', '#terms_and_condition', '#privacy_policy']);
});
</script>