Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public function load_additional_scss_settings() {
$slideoverlayval = theme_academi_get_setting('slideOverlay');
$slideopacity = (!empty($slideoverlayval)) ? $this->get_hexa('#000000', $slideoverlayval) : 0.4;
$footerbgoverlayval = theme_academi_get_setting('footerbgOverlay');
$footerbgcolor = theme_academi_get_setting('footerbgcolor');
$footertitlecolor = theme_academi_get_setting('footertitlecolor');

$footerbgopacity = (!empty($footerbgoverlayval)) ? $this->get_hexa($primary, $footerbgoverlayval) : 0.4;
$pagesizecustomval = theme_academi_get_setting('pagesizecustomval');
Expand All @@ -82,6 +84,8 @@ public function load_additional_scss_settings() {
$scss .= $pagesizecustomval ? '$custom-container:'.$pagesizecustomval."px;\n" : "";
$scss .= $fontsize ? '$fontsize:'.$fontsize. "px;" : "";
$scss .= $footerbgopacity ? '$footerbgopacity:'.$footerbgopacity.";\n" : "";
$scss .= $footerbgcolor ? '$footerbgcolor:'.$footerbgcolor.";\n" : "";
$scss .= $footertitlecolor ? '$footertitlecolor:'.$footertitlecolor.";\n" : "";

if (!empty($primary)) {
$scss .= $primary30 ? '$primary_30:'.$primary30.";\n" : "";
Expand Down
4 changes: 4 additions & 0 deletions lang/ar/theme_academi.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
$string['fontsize_desc'] = 'تغيير حجم الخط لمحتوى موقعك.';
$string['footerbgOverlay'] = 'عتامة تراكب التذييل';
$string['footerbgOverlay_desc'] = 'للتحكم في مستوى عتامة التراكب في كتلة التذييل، استخدم هذا الخيار. القيمة الافتراضية لهذا الخيار هي 0.4، مما يعني أن التراكب سيكون له عتامة بنسبة 40%، مما يسمح للمحتوى الموجود خلفه بأن يكون مرئيًا جزئيًا.';
$string['footerbgcolor'] = 'لون خلفية التذييل';
$string['footerbgcolor_desc'] = 'قم بتعيين لون الخلفية للتذييل. سيتم تطبيق هذا اللون خلف محتوى التذييل والتراكب.';
$string['footertitlecolor'] = 'لون عناوين التذييل';
$string['footertitlecolor_desc'] = 'قم بتعيين لون عناوين قسم التذييل (عناوين h2). سيتم تطبيق هذا اللون على جميع العناوين في كتل التذييل.';
$string['footerbgimg'] = 'صورة خلفية التذييل';
$string['footerbgimgdesc'] = 'يرجى تحميل صورة خلفية التذييل المخصصة الخاصة بك هنا إذا كنت تريد إضافتها إلى التذييل. يجب أن يكون حجم صورة الخلفية بحجم 1345 × 517';
$string['footerblock'] = 'كتلة التذييل';
Expand Down
4 changes: 4 additions & 0 deletions lang/en/theme_academi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
$string['fontsize_desc'] = 'Change the font size of your site\'s content.';
$string['footerbgOverlay'] = 'Footer Overlay Opacity';
$string['footerbgOverlay_desc'] = 'To control the opacity level of the overlay in the footer block, use this option. The default value for this option is 0.4, which means the overlay will have a 40% opacity, allowing the content behind it to be partially visible.';
$string['footerbgcolor'] = 'Footer background color';
$string['footerbgcolor_desc'] = 'Set the background color for the footer. This color will be applied behind the footer content and overlay.';
$string['footertitlecolor'] = 'Footer titles color';
$string['footertitlecolor_desc'] = 'Set the color for the footer section titles (h2 headings). This color will be applied to all titles in the footer blocks.';
$string['footerbgimg'] = 'Footer background Image';
$string['footerbgimgdesc'] = 'Please upload your custom footer background image here if you want to add it to the footer.Background Image size should be following size 1345 X 517';
$string['footerblock'] = 'Footer Block ';
Expand Down
5 changes: 4 additions & 1 deletion scss/footer.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Footer */
$footerbgcolor: $night_rider !default;
$footertitlecolor: $secondary !default;
.empty-footer {
display: none;
}
Expand Down Expand Up @@ -47,7 +49,7 @@
}
}
.footer-main {
background-color: $night_rider;
background-color: $footerbgcolor;
padding: 30px 0 54px;
position: relative;
z-index: 0;
Expand All @@ -58,6 +60,7 @@
font-weight: bold;
line-height: 36px;
margin: 0 0 20px;
color: $footertitlecolor;
}
p {
color: $white;
Expand Down
18 changes: 18 additions & 0 deletions settings/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);

// Footer background color.
$name = 'theme_academi/footerbgcolor';
$title = get_string('footerbgcolor', 'theme_academi');
$description = get_string('footerbgcolor_desc', 'theme_academi');
$default = '';
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);

// Footer titles color.
$name = 'theme_academi/footertitlecolor';
$title = get_string('footertitlecolor', 'theme_academi');
$description = get_string('footertitlecolor_desc', 'theme_academi');
$default = '';
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);

// Copyright.
$name = 'theme_academi/copyright_footer';
$title = get_string('copyright_footer', 'theme_academi');
Expand Down