extensions and fixes
This commit is contained in:
52
app/controllers/extensions.php
Normal file
52
app/controllers/extensions.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* app/controllers/extensions.php
|
||||
*
|
||||
* This is the extensions controller.
|
||||
*
|
||||
* @version 3.0
|
||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||
* @link https://TheTempusProject.com
|
||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||
*/
|
||||
namespace TheTempusProject\Controllers;
|
||||
|
||||
use TheTempusProject\Classes\Controller;
|
||||
use TheTempusProject\Houdini\Classes\Views;
|
||||
|
||||
class Extensions extends Controller {
|
||||
public function index() {
|
||||
self::$title = 'Browser Extensions';
|
||||
Views::view( 'extensions.index' );
|
||||
}
|
||||
|
||||
public function chrome() {
|
||||
self::$title = 'Chrome Extension';
|
||||
Views::view( 'extensions.chrome' );
|
||||
}
|
||||
|
||||
public function firefox() {
|
||||
self::$title = 'Firefox Extension';
|
||||
Views::view( 'extensions.firefox' );
|
||||
}
|
||||
|
||||
public function opera() {
|
||||
self::$title = 'Opera Extension';
|
||||
Views::view( 'extensions.opera' );
|
||||
}
|
||||
|
||||
public function edge() {
|
||||
self::$title = 'Edge Extension';
|
||||
Views::view( 'extensions.edge' );
|
||||
}
|
||||
|
||||
public function brave() {
|
||||
self::$title = 'Brave Extension';
|
||||
Views::view( 'extensions.brave' );
|
||||
}
|
||||
|
||||
public function safari() {
|
||||
self::$title = 'Safari Extension';
|
||||
Views::view( 'extensions.safari' );
|
||||
}
|
||||
}
|
@ -86,17 +86,7 @@ class Home extends Controller {
|
||||
self::$title = 'Terms and Conditions - {SITENAME}';
|
||||
self::$pageDescription = '{SITENAME} Terms and Conditions of use. Please use {SITENAME} safely.';
|
||||
Components::set( 'TERMS', Views::simpleView( 'terms' ) );
|
||||
Views::raw( '<div class="terms-page">{TERMS}</div>' );
|
||||
}
|
||||
|
||||
public function hashtag( $id = null ) {
|
||||
self::$title = 'HashTag - {SITENAME}';
|
||||
self::$pageDescription = 'HashTags for {SITENAME}';
|
||||
if ( !App::$isLoggedIn ) {
|
||||
return Issues::add( 'notice', 'You must be logged in to view this page.' );
|
||||
}
|
||||
// this should look up comments and blog posts with the hashtag in them
|
||||
Views::view( 'hashtags' );
|
||||
Views::raw( '<div class="terms-page col-lg-8 mx-auto">{TERMS}</div>' );
|
||||
}
|
||||
|
||||
public function about() {
|
||||
|
Reference in New Issue
Block a user