| 25 |
- |
1 |
<?php
|
| 65 |
- |
2 |
// Generate page title from file name
|
|
|
3 |
$pageFile = basename($_SERVER['PHP_SELF']);
|
|
|
4 |
$pageTitle = '';
|
|
|
5 |
if (!empty($pageFile) && $pageFile != 'index.php') {
|
|
|
6 |
$replaceVals = array(
|
|
|
7 |
'_' => ' ',
|
|
|
8 |
'-' => ' ',
|
|
|
9 |
'.php' => ''
|
|
|
10 |
);
|
|
|
11 |
$pageTitle = strtr($pageFile, $replaceVals);
|
|
|
12 |
$pageTitle = preg_replace('/(?<!\ )[A-Z]/', ' $0', $pageTitle);
|
|
|
13 |
$pageTitle = ucwords($pageTitle) . ' - ';
|
|
|
14 |
}
|
|
|
15 |
$metaTitle = trim($pageTitle . SITE_TITLE, ' ');
|
|
|
16 |
?>
|
| 25 |
- |
17 |
<meta charset="utf-8">
|
|
|
18 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 35 |
- |
19 |
<title><?php echo $metaTitle; ?></title>
|
| 108 |
- |
20 |
<meta name="description" content="Create your free login at FindCheapMusic in order to maintain your wishlist, set up the price monitoring and see the coupons and special offers."/>
|
|
|
21 |
<link href="<?php echo PUBLIC_URL . "css/style.css?" . filemtime("assets/css/style.css"); ?>" rel="stylesheet" type="text/css" media="all" integrity="sha384-1U/LCHkLmEVTM/H6lj2ffLODCR06qmtEWVvVIbuZIpO27/jn7da7eeMYaTyqKTFu" crossorigin="anonymous"/>
|
| 65 |
- |
22 |
<?php if (!empty($pageFile) && $pageFile != 'index.php' && $pageFile != 'forgotPassword.php' && $pageFile != 'resetPassword.php' && $pageFile != 'registration.php') { ?>
|
| 108 |
- |
23 |
<link href="<?php echo PUBLIC_URL . "css/account.css?" . filemtime("assets/css/account.css"); ?>" rel="stylesheet" type="text/css" media="all" integrity="sha384-cmkIQzWOEwd3oG2Pb0PebEOdgced5Dh+CEQD6MHmQKB9o/k0Ie4WFWHhpqVSzgOm" crossorigin="anonymous"/>
|
| 65 |
- |
24 |
<?php
|
| 70 |
- |
25 |
}
|
|
|
26 |
include_once ($_SERVER['DOCUMENT_ROOT'] . "/php/header.php");
|
|
|
27 |
?>
|