Time to do an update.
This commit is contained in:
parent
70c8a87e15
commit
0b0697bb42
22 changed files with 4352 additions and 268 deletions
21
includes/header-meta.php
Normal file
21
includes/header-meta.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
|
||||
require_once 'includes/globals.php';
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
use DJMixHosting\HeaderMeta;
|
||||
|
||||
$mixPages = ["/mix/", "/mix.php"];
|
||||
$page = $_SERVER['SCRIPT_NAME'];
|
||||
// the $mixPages has a list of pages, but the request or script name might be /mix/content or /mix.php?mix=content...
|
||||
// so we need to check if the script name contains any of the pages in the $mixPages array
|
||||
if (isset($mix)) {
|
||||
if (str_contains($page, $mixPages[0])) {
|
||||
|
||||
$headerMeta = new HeaderMeta($mix, $config);
|
||||
$meta = $headerMeta->mixMetaOutput();
|
||||
echo $meta;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue