* renamed screenshots to gallery and movies to videos

This commit is contained in:
slawkens
2017-10-16 09:25:26 +02:00
parent 3fef1a6eec
commit dd572b00d0
23 changed files with 206 additions and 177 deletions

28
system/pages/videos.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
/**
* Videos
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.5.1
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Videos';
$videos = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'videos` ORDER BY `ordering`;');
if(!$videos->rowCount())
{
?>
There are no videos added yet.
<?php
if(admin())
echo ' You can add new videos in phpmyadmin under ' . TABLE_PREFIX . 'videos table.';
return;
}
echo $twig->render('videos.html.twig', array(
'videos' => $videos
));
?>