Added theme support for dynamic contrast
This commit is contained in:
parent
08e12fffc5
commit
5b55e8ad35
|
@ -7,4 +7,3 @@
|
||||||
<style>{!! file_get_contents(base_path("assets/linkstack/css/animate.css")) !!}</style>
|
<style>{!! file_get_contents(base_path("assets/linkstack/css/animate.css")) !!}</style>
|
||||||
|
|
||||||
<script>{!! file_get_contents(base_path("assets/js/dynamic-contrast.min.js")) !!}</script>
|
<script>{!! file_get_contents(base_path("assets/js/dynamic-contrast.min.js")) !!}</script>
|
||||||
@include('linkstack.modules.dynamic-contrast')
|
|
||||||
|
|
|
@ -1,24 +1,42 @@
|
||||||
@push('linkstack-body-end')
|
@if($customBackgroundExists == true)
|
||||||
<script>
|
@if(($info->theme == '' || $info->theme == 'default') || theme('enable_dynamic_contrast') == 'true')
|
||||||
BackgroundCheck.init({
|
@push('linkstack-body-end')
|
||||||
targets: '.dynamic-contrast',
|
<script>
|
||||||
images: 'body'
|
BackgroundCheck.init({
|
||||||
});
|
targets: '.dynamic-contrast',
|
||||||
</script>
|
images: 'body'
|
||||||
@endpush
|
});
|
||||||
|
BackgroundCheck.refresh();
|
||||||
|
BackgroundCheck.init({
|
||||||
|
targets: '.dynamic-contrast-footer',
|
||||||
|
images: 'body'
|
||||||
|
});
|
||||||
|
BackgroundCheck.refresh();
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
||||||
@push('linkstack-head-end')
|
@push('linkstack-head-end')
|
||||||
<style>
|
<style>
|
||||||
.background--light {
|
.background--light {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
.background--dark {
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
.background--complex {
|
||||||
|
color: gray !important;
|
||||||
|
}
|
||||||
|
|
||||||
.background--dark {
|
.dynamic-contrast-footer.background--light {
|
||||||
color: white !important;
|
color: #0085FF !important;
|
||||||
}
|
}
|
||||||
|
.dynamic-contrast-footer.background--dark {
|
||||||
.background--complex {
|
color: white !important;
|
||||||
color: gray !important;
|
}
|
||||||
}
|
.dynamic-contrast-footer.background--complex {
|
||||||
</style>
|
color: gray !important;
|
||||||
@endpush
|
}
|
||||||
|
</style>
|
||||||
|
@endpush
|
||||||
|
@endif
|
||||||
|
@endif
|
|
@ -105,4 +105,5 @@ if($customBackgroundExists == true){
|
||||||
|
|
||||||
@push('linkstack-body-end')
|
@push('linkstack-body-end')
|
||||||
@if(theme('enable_custom_code') == "true" and theme('enable_custom_body_end') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body-end')@endif
|
@if(theme('enable_custom_code') == "true" and theme('enable_custom_body_end') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body-end')@endif
|
||||||
@endpush
|
@endpush
|
||||||
|
@include('linkstack.modules.dynamic-contrast')
|
Loading…
Reference in New Issue