Commit de39176 1 parent dc880b1 commit de39176 Copy full SHA for de39176
File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ public function beforeFilter(EventInterface $event)
145
145
}
146
146
147
147
$ this ->ACL ->checkAccess ();
148
+ $ version = file_get_contents (ROOT . DS . 'src ' . DS . 'VERSION.json ' );
149
+ $ version = json_decode ($ version , true )['version ' ];
150
+ $ this ->set ('cerebrate_version ' , $ version );
148
151
if (!$ this ->ParamHandler ->isRest ()) {
149
152
$ this ->set ('ajax ' , $ this ->request ->is ('ajax ' ));
150
153
$ this ->request ->getParam ('prefix ' );
Original file line number Diff line number Diff line change 1
1
<div class="d-flex">
2
+ <div class="global-search-container d-md-block d-none me-4">
3
+ <span><a style="text-decoration: none" class="link-light" href="https://cerebrate-project.org">Cerebrate</a> <a style="text-decoration: none" class="link-light" href="https://github.com/cerebrate-project/cerebrate/releases/tag/v<?= h ($ cerebrate_version ) ?> ">v<?= h ($ cerebrate_version ) ?> </a></span>
4
+ </div>
2
5
<div class="global-search-container d-md-block d-none">
3
6
<span class="search-input-container">
4
7
<input type="text" class="form-control d-inline-block" id="globalSearch" placeholder="<?= __ ('Search in Cerebrate... ' ) ?> ">
You can’t perform that action at this time.
0 commit comments