-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/FormBannerSupport
- Loading branch information
Showing
232 changed files
with
7,931 additions
and
54,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@v4 | ||
with: | ||
warn-only: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
enum MenuLinkType { | ||
case Link; | ||
case Modal; | ||
} | ||
|
||
class MenuLinkStruct { | ||
public function __construct( | ||
public string $title, | ||
public string $url, | ||
public MenuLinkType $type = MenuLinkType::Link, | ||
) { | ||
if ($url[0] !== '/') { | ||
$this->url = '/' . $url; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
<?php | ||
|
||
abstract class CmfiveComponent { | ||
|
||
public $tag = 'link'; | ||
public $has_closing_tag = false; | ||
|
||
public $is_included = false; | ||
|
||
// The weight is an integer that allows cmfive to organise the load order of components | ||
// Higher numbers will appear first | ||
public $weight = 1000; | ||
public static $_excludeFromOutput = ['tag', 'has_closing_tag', 'is_included', 'weight']; | ||
|
||
/** | ||
* Returns the HTML to include this component on the page | ||
* | ||
* @return string component include code | ||
*/ | ||
public function _include() { | ||
if ($this->is_included) { | ||
return ''; | ||
} | ||
|
||
$this->is_included = true; | ||
|
||
$buffer = '<' . $this->tag . ' '; | ||
|
||
foreach(get_object_vars($this) as $field => $value) { | ||
if (!in_array($field, static::$_excludeFromOutput) && strpos($field, '_') !== 0) { | ||
$buffer .= $field . ($value !== null ? '=\'' . $value . '\' ' : ' '); | ||
} | ||
} | ||
|
||
return $buffer . ($this->has_closing_tag ? '></' . $this->tag . '>' : '/>'); | ||
} | ||
|
||
/** | ||
* Should return the component itself, some components may not need this like link/script components | ||
* | ||
* @return string component | ||
*/ | ||
public function display($binding_data = []) { | ||
return ''; | ||
} | ||
|
||
} | ||
abstract class CmfiveComponent | ||
{ | ||
public $tag = 'link'; | ||
public $has_closing_tag = false; | ||
|
||
public $is_included = false; | ||
|
||
// The weight is an integer that allows cmfive to organise the load order of components | ||
// Higher numbers will appear first | ||
public $weight = 1000; | ||
public static $_excludeFromOutput = ['tag', 'has_closing_tag', 'is_included', 'weight']; | ||
|
||
/** | ||
* Returns the HTML to include this component on the page | ||
* | ||
* @return string component include code | ||
*/ | ||
public function _include() | ||
{ | ||
if ($this->is_included) { | ||
return ''; | ||
} | ||
|
||
$this->is_included = true; | ||
|
||
$buffer = '<' . $this->tag . ' '; | ||
|
||
foreach (get_object_vars($this) as $field => $value) { | ||
if (!in_array($field, static::$_excludeFromOutput) && strpos($field, '_') !== 0) { | ||
$buffer .= $field . ($value !== null ? '=\'' . $value . '\' ' : ' '); | ||
} | ||
} | ||
|
||
return $buffer . ($this->has_closing_tag ? '></' . $this->tag . '>' : '/>'); | ||
} | ||
|
||
/** | ||
* Should return the component itself, some components may not need this like link/script components | ||
* | ||
* @return string component | ||
*/ | ||
public function display($binding_data = []) | ||
{ | ||
return ''; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.