diff options
| author | Naglfar <naglfar@tilde.institute> | 2021-01-11 20:52:06 +0100 |
|---|---|---|
| committer | Naglfar <naglfar@tilde.institute> | 2021-01-11 20:52:06 +0100 |
| commit | 412d6cd0427f54846fe4a809fe1bc20deb7fab98 (patch) | |
| tree | 602802b4d742407b218ab01ac5277d952b11ccf8 /divs | |
| parent | bf0d6e35c962691a13c1d6f6e40cf24cf1b31f51 (diff) | |
| download | MightyWVMS-412d6cd0427f54846fe4a809fe1bc20deb7fab98.tar.gz | |
Add canonical url
Diffstat (limited to 'divs')
| -rw-r--r-- | divs/footer.php | 2 | ||||
| -rw-r--r-- | divs/head.php | 3 | ||||
| -rw-r--r-- | divs/sidebar.php | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/divs/footer.php b/divs/footer.php index e8bbc20..52becc2 100644 --- a/divs/footer.php +++ b/divs/footer.php @@ -1 +1 @@ -<?php printf("<a href='%s'>%s</a>\n", $wsdata[5], $wsdata[6]) ?> +<?php printf("<a href='%s'>%s</a>\n", $wsdata[7], $wsdata[8]) ?> diff --git a/divs/head.php b/divs/head.php index 6b90913..7fff23c 100644 --- a/divs/head.php +++ b/divs/head.php @@ -1,7 +1,8 @@ <head> <title><?php printf("%s - %s", $vdata[2], $wsdata[0]) ?></title> - <meta name="description" content="<?php echo $wsdata[4] ?>" /> + <meta name="description" content="<?php echo $wsdata[6] ?>" /> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="/theme/body-wrapper.css"/> <link rel="shortcut icon" href="/theme/favicon.ico" type="image/x-icon"> + <link rel="canonical" href="<?php echo $wsdata[1] ?>"> </head> diff --git a/divs/sidebar.php b/divs/sidebar.php index 38fa099..fda8422 100644 --- a/divs/sidebar.php +++ b/divs/sidebar.php @@ -1,9 +1,9 @@ <div id="sidebar-related">Related videos</div> <?php foreach($vindex as $i => $value) - if($value != $vid && $i < $wsdata[2]) + if($value != $vid && $i < $wsdata[3]) { - $rdata = file($dpath.$wsdata[3].'/toc/'.$value, FILE_IGNORE_NEW_LINES); + $rdata = file($dpath.$wsdata[4].'/toc/'.$value, FILE_IGNORE_NEW_LINES); printf("<div class='sidebar-thumb'><img alt='' src='thumbnails/%s.png'/></div>\n", $value); printf("<div class='sidebar-data'>\n"); |