Subversion Repositories cheapmusic

Rev

Rev 26 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
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('_'=>' ', '-'=>' ', '.php'=>'');
7
    $pageTitle = strtr($pageFile, $replaceVals);
8
    $pageTitle = preg_replace('/(?<!\ )[A-Z]/', ' $0', $pageTitle);
9
    $pageTitle = ucwords($pageTitle).' - ';
10
}
11
$metaTitle = trim($pageTitle.SITE_TITLE,' ');
12
?>
13
<meta charset="utf-8">
14
<meta name="viewport" content="width=device-width, initial-scale=1">
15
<title><?php echo $metaTitle; ?></title>
16
<meta name="description" content="" />
17
<meta name="keywords" content="" />
18
 
19
<link href="//fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900iSlabo+27px&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet">
20
 
21
<link href="<?php echo PUBLIC_URL; ?>css/style.css" rel="stylesheet" type="text/css" media="all" />
22
 
23
<?php if(!empty($pageFile) && $pageFile != 'index.php' && $pageFile != 'forgotPassword.php' && $pageFile != 'resetPassword.php' && $pageFile != 'registration.php'){ ?>
24
<link href="<?php echo PUBLIC_URL; ?>css/account.css" rel="stylesheet" type="text/css" media="all" />
25
 
26
<script src="<?php echo PUBLIC_URL; ?>js/jquery.min.js"></script>
27
<!-- script-for-menu -->
28
<script>
29
$(document).ready(function(){
30
    $( "span.menu" ).click(function() {
31
        $( "ul.nav1" ).slideToggle( 300, function() {
32
            // Animation complete.
33
        });
34
    });
35
});
36
</script>
37
<!-- /script-for-menu -->
38
<?php } ?>