From b1490bed316f64e1e4a4215aebe90e990801e446 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 12:09:59 +0100 Subject: favelaframes is nothing more than frameset AFAIC --- templates/themes/favelaframes/theme.php | 74 --------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 templates/themes/favelaframes/theme.php (limited to 'templates/themes/favelaframes/theme.php') diff --git a/templates/themes/favelaframes/theme.php b/templates/themes/favelaframes/theme.php deleted file mode 100644 index d31a324e..00000000 --- a/templates/themes/favelaframes/theme.php +++ /dev/null @@ -1,74 +0,0 @@ - $config, 'settings' => $settings)); - } - - // Build news page - public static function news($settings) { - global $config; - - $query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error()); - $news = $query->fetchAll(PDO::FETCH_ASSOC); - - return Element('themes/favelaframes/news.html', Array( - 'settings' => $settings, - 'config' => $config, - 'news' => $news - )); - } - - // Build sidebar - public static function sidebar($settings) { - global $config, $board; - - $categories = $config['categories']; - - foreach ($categories as &$boards) { - foreach ($boards as &$board) { - $title = boardTitle($board); - if (!$title) - $title = $board; // board doesn't exist, but for some reason you want to display it anyway - $board = Array('title' => $title, 'uri' => sprintf($config['board_path'], $board)); - } - } - - return Element('themes/favelaframes/sidebar.html', Array( - 'settings' => $settings, - 'config' => $config, - 'categories' => $categories - )); - } - }; - -?> -- cgit v1.3