mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 03:33:26 +02:00
* renamed screenshots to gallery and movies to videos
This commit is contained in:
28
system/pages/videos.php
Normal file
28
system/pages/videos.php
Normal 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
|
||||
));
|
||||
?>
|
Reference in New Issue
Block a user