summary refs log tree commit diff stats
path: root/theme
diff options
context:
space:
mode:
authorNaglfar <naglfar@tilde.institute>2021-01-08 01:50:19 +0100
committerNaglfar <naglfar@tilde.institute>2021-01-08 01:50:19 +0100
commita341f2bd9693e0157cd59726b1faf43d88f48601 (patch)
tree45d36661b6ae5cbf7270164409c89e691975f767 /theme
parentb1067b2b75ef10c2d48d145617d0e92f78d21187 (diff)
downloadMightyWVMS-a341f2bd9693e0157cd59726b1faf43d88f48601.tar.gz
Add theme related files
Diffstat (limited to 'theme')
-rw-r--r--theme/body-wrapper.css35
-rw-r--r--theme/mwvms.php22
2 files changed, 57 insertions, 0 deletions
diff --git a/theme/body-wrapper.css b/theme/body-wrapper.css
new file mode 100644
index 0000000..c95d6f4
--- /dev/null
+++ b/theme/body-wrapper.css
@@ -0,0 +1,35 @@
+body{margin:0 0 10px 0; padding:0; background:#000; font-family:'DejaVu Serif'; font-size:14px; color:#fff}
+video{height:360px;color:#000}
+
+#body-wrapper{width:1045px;margin-left:auto;margin-right:auto}
+#header{min-height:90px;background:url(mwvms.php) no-repeat center}
+#sidebar{width:400px}
+.sidebar-thumb{width:178px}
+.sidebar-data{width:217px}
+#video-views{text-align:right}
+#video-info{white-space: pre-wrap}
+#footer{clear:both; text-align: center}
+
+video, #content-wrapper{width:640px}
+#content-wrapper, .sidebar-thumb{float:left}
+#sidebar, .sidebar-data{float:right}
+.sidebar-thumb, .sidebar-data{height:100px}
+.sidebar-thumb, .sidebar-data, #video-info{margin-top:5px}
+#video-info, #sidebar{margin-bottom:5px}
+.sidebar-data, #sidebar-related{padding-left:5px}
+.sidebar-data, #sidebar-related, #video-data, #video-views, #video-info, #footer{background:#222}
+
+a{color:#ff0000;text-decoration:none}
+a:hover{color:green}
+
+/* Responsive */
+@media(max-width:768px)
+{
+	#header{background:url(mwvms.php) no-repeat center}
+	#body-wrapper, #content-wrapper, #header, #footer{width:640px}
+}
+@media(max-width:650px)
+{
+	video{width:480px;height:270px}
+	#body-wrapper, #content-wrapper, #header, #footer{width:480px}
+}
diff --git a/theme/mwvms.php b/theme/mwvms.php
new file mode 100644
index 0000000..430fa37
--- /dev/null
+++ b/theme/mwvms.php
@@ -0,0 +1,22 @@
+<?php
+require '../php/definitions.php';	# Variables and constants definition
+$mdata = file('../'.$dpath.'/'.$common, FILE_IGNORE_NEW_LINES);
+
+$fontsize = 25;
+$angle = 0;
+$x = 25;
+$y = 41;
+
+// Create the image
+$im = imagecreate(266, 66);
+// Create colors
+$background = imagecolorallocate($im, 0, 0, 0);
+$text_color = imagecolorallocate($im, 255, 255, 255);
+// Add the text
+imagettftext($im, $fontsize, $angle, $x, $y, $text_color, $mdata[1], $mdata[0]);
+
+// Set the content-type
+header('Content-Type: image/png');
+imagepng($im);
+imagedestroy($im);
+?>