Skip to content

Commit

Permalink
Merge pull request #153 from devgeniem/PIEN-8572
Browse files Browse the repository at this point in the history
PIEN-8572: Add missing body-script to use
  • Loading branch information
eebbi authored Apr 26, 2023
2 parents fd6c66f + 69f7897 commit b8cd1e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions models/shared/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit b8cd1e8

Please sign in to comment.