2021-07-10 19:18:17 +01:00
|
|
|
<?php
|
2021-07-10 18:21:03 -04:00
|
|
|
require_once('includes/common.php');
|
2021-07-10 19:18:17 +01:00
|
|
|
require_once('includes/functions.php');
|
|
|
|
|
2021-08-29 01:26:29 -04:00
|
|
|
use PonePaste\Models\Paste;
|
|
|
|
|
|
|
|
$popular_pastes = Paste::getMostViewed();//->map('transformPasteRow');
|
|
|
|
$monthly_popular_pastes = Paste::getMonthPopular();//->map('transformPasteRow');
|
|
|
|
$recent_pastes = Paste::getRecent();//->map('transformPasteRow');
|
|
|
|
$updated_pastes = Paste::getRecentlyUpdated();//->map('transformPasteRow');
|
|
|
|
$random_pastes = Paste::getRandom();//->map('transformPasteRow');
|
2021-07-13 13:32:28 -04:00
|
|
|
|
2021-07-10 19:18:17 +01:00
|
|
|
// Theme
|
2021-08-22 21:45:26 -04:00
|
|
|
$page_template = 'discover';
|
2021-08-26 05:35:21 -04:00
|
|
|
$page_title = 'Discover';
|
2021-08-22 21:45:26 -04:00
|
|
|
require_once('theme/' . $default_theme . '/common.php');
|
|
|
|
|