diff --git a/CHANGELOG.MD b/CHANGELOG.MD index aaeb9b1..6e9a2b3 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.18.0] - 2023-04-26 + +- PIEN-8572: Add missing body-script to use + ## [1.17.0] - 2023-04-11 - PIEN-8157: PHP 8.1 diff --git a/models/shared/header.php b/models/shared/header.php index 1ea73df..f4a423f 100644 --- a/models/shared/header.php +++ b/models/shared/header.php @@ -284,6 +284,17 @@ public function head_custom_scripts() { return ( ! empty( $head_scripts ) ) ? $head_scripts : false; } + /** + * Get custom body scripts from Site Settings. + * + * @return false|mixed + */ + public function body_custom_scripts() { + $body_scripts = Settings::get_setting( 'body_scripts' ); + + return ( ! empty( $body_scripts ) ) ? $body_scripts : false; + } + /** * Maybe show chat. *