summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNaglfar <naglfar@tilde.institute>2021-01-12 20:13:29 +0100
committerNaglfar <naglfar@tilde.institute>2021-01-12 20:13:29 +0100
commit5770e1c03d65d6c7882e343c10435681e16e69e7 (patch)
tree440dc7d8fefd741c2e89225a0368392f6014df9a
parentf33dd412056f3ee762513d40030f134e7b8ccb9b (diff)
downloadMightyWVMS-5770e1c03d65d6c7882e343c10435681e16e69e7.tar.gz
Use echo shortcut syntax
-rw-r--r--divs/content-wrapper.php8
-rw-r--r--index.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/divs/content-wrapper.php b/divs/content-wrapper.php
index 8c4d27a..f495f41 100644
--- a/divs/content-wrapper.php
+++ b/divs/content-wrapper.php
@@ -1,7 +1,7 @@
 <video controls>
-	<source src="video/<?php echo $vid ?>.ogv" type="video/ogg">html5 browser not found.
+	<source src="video/<?=$vid?>.ogv" type="video/ogg">html5 browser not found.
 </video> 
 
-<div id="video-data"><?php echo $vdata[2].'<br>'.$cindex[$vdata[3]] ?></div>
-<div id="video-views"><?php echo $vdata[0] ?> views</div>
-<div id="video-info">Published on <?php echo $vdata[1]."<br>\n".$vdata[5] ?></div>
+<div id="video-data"><?=$vdata[2].'<br>'.$cindex[$vdata[3]]?></div>
+<div id="video-views"><?=$vdata[0]?> views</div>
+<div id="video-info">Published on <?=$vdata[1]."<br>\n".$vdata[5]?></div>
diff --git a/index.php b/index.php
index 0fe6136..80517a1 100644
--- a/index.php
+++ b/index.php
@@ -6,14 +6,14 @@ require 'php/rd-procedures.php';  #video management (Read data)
 require 'php/wd-procedures.php';  #video management (Write/update data)
 ?>
 <!DOCTYPE html>
-<html lang="<?php echo $wsdata[4] ?>">
+<html lang="<?=$wsdata[4]?>">
 <head>
   <title><?php printf("%s - %s", $title, $wsdata[0]) ?></title>
-  <meta name="description" content="<?php echo $wsdata[6] ?>" />
+  <meta name="description" content="<?=$wsdata[6]?>" />
   <meta name="viewport" content="width=device-width,initial-scale=1.0">
   <link rel="stylesheet" href="/theme/body-wrapper.css" type="text/css">
   <link rel="icon" href="/theme/favicon.ico" type="image/x-icon">
-  <link rel="canonical" href="<?php echo $wsdata[1] ?>">
+  <link rel="canonical" href="<?=$wsdata[1]?>">
 </head>
 <body>
   <div id="body-wrapper">