Subversion Repositories cheapmusic

Rev

Rev 31 | Rev 42 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31 Rev 35
Line 1... Line 1...
1
<?php
1
<?php
2
// Generate page title from file name
2
    // Generate page title from file name
3
$pageFile = basename($_SERVER['PHP_SELF']);
3
    $pageFile = basename($_SERVER['PHP_SELF']);
4
$pageTitle = '';
4
    $pageTitle = '';
5
if(!empty($pageFile) && $pageFile != 'index.php'){
5
    if(!empty($pageFile) && $pageFile != 'index.php'){
6
    $replaceVals = array('_'=>' ', '-'=>' ', '.php'=>'');
6
        $replaceVals = array('_'=>' ', '-'=>' ', '.php'=>'');
7
    $pageTitle = strtr($pageFile, $replaceVals);
7
        $pageTitle = strtr($pageFile, $replaceVals);
8
    $pageTitle = preg_replace('/(?<!\ )[A-Z]/', ' $0', $pageTitle);
8
        $pageTitle = preg_replace('/(?<!\ )[A-Z]/', ' $0', $pageTitle);
9
    $pageTitle = ucwords($pageTitle).' - ';   
9
        $pageTitle = ucwords($pageTitle).' - ';   
10
}
10
    }
11
$metaTitle = trim($pageTitle.SITE_TITLE,' ');
11
    $metaTitle = trim($pageTitle.SITE_TITLE,' ');
12
?>
12
    ?>
13
<meta charset="utf-8">
13
<meta charset="utf-8">
14
<meta name="viewport" content="width=device-width, initial-scale=1">
14
<meta name="viewport" content="width=device-width, initial-scale=1">
15
<title><?php echo $metaTitle; ?></title>	
15
<title><?php echo $metaTitle; ?></title>
16
<meta name="description" content="" />
16
<meta name="description" content="" />
17
<meta name="keywords" content="" />
17
<meta name="keywords" content="" />
18
 
-
 
19
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
18
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
20
 
-
 
21
<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">
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">
22
 
-
 
23
<link href="<?php echo PUBLIC_URL; ?>css/style.css" rel="stylesheet" type="text/css" media="all" />
20
<link href="<?php echo PUBLIC_URL; ?>css/style.css" rel="stylesheet" type="text/css" media="all" />
24
 
-
 
25
<?php if(!empty($pageFile) && $pageFile != 'index.php' && $pageFile != 'forgotPassword.php' && $pageFile != 'resetPassword.php' && $pageFile != 'registration.php'){ ?>
21
<?php if(!empty($pageFile) && $pageFile != 'index.php' && $pageFile != 'forgotPassword.php' && $pageFile != 'resetPassword.php' && $pageFile != 'registration.php'){ ?>
26
<link href="<?php echo PUBLIC_URL; ?>css/account.css" rel="stylesheet" type="text/css" media="all" />
22
<link href="<?php echo PUBLIC_URL; ?>css/account.css" rel="stylesheet" type="text/css" media="all" />
27
 
-
 
28
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js" integrity="sha384-JUMjoW8OzDJw4oFpWIB2Bu/c6768ObEthBMVSiIx4ruBIEdyNSUQAjJNFqT5pnJ6" crossorigin="anonymous"></script>
23
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js" integrity="sha384-JUMjoW8OzDJw4oFpWIB2Bu/c6768ObEthBMVSiIx4ruBIEdyNSUQAjJNFqT5pnJ6" crossorigin="anonymous"></script>
29
 
-
 
30
<link rel="stylesheet" href="../css/style.min.css" integrity="sha384-jiMCtagtxraIvSeV5hY5ZWeVpyX1b9eY+ylxFM/lkYGu/5gUh0cbZ6xjc4EUwkCa" crossorigin="anonymous">
24
<link rel="stylesheet" href="../css/style.min.css" integrity="sha384-jiMCtagtxraIvSeV5hY5ZWeVpyX1b9eY+ylxFM/lkYGu/5gUh0cbZ6xjc4EUwkCa" crossorigin="anonymous">
31
 
-
 
-
 
25
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
32
<!-- script-for-menu -->
26
<!-- script-for-menu -->
33
<script>
27
<script>
34
$(document).ready(function(){
28
    $(document).ready(function(){
35
    $( "span.menu" ).click(function() {
29
        $( "span.menu" ).click(function() {
36
        $( "ul.nav1" ).slideToggle( 300, function() {
30
            $( "ul.nav1" ).slideToggle( 300, function() {
37
            // Animation complete.
31
                // Animation complete.
-
 
32
            });
38
        });
33
        });
39
    });
34
    });
40
});
-
 
41
</script>
35
</script>
42
<!-- /script-for-menu -->	
36
<!-- /script-for-menu -->	
43
<?php } ?>
37
<?php } ?>