Initial commit
This commit is contained in:
31
app/plugins/dashboards/templates/dashboards.inc.php
Normal file
31
app/plugins/dashboards/templates/dashboards.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* app/plugins/dashboards/templates/dashboards.inc.php
|
||||
*
|
||||
* This is the loader for the dashboards template.
|
||||
*
|
||||
* @package TP Dashboards
|
||||
* @version 3.0
|
||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||
* @link https://TheTempusProject.com
|
||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||
*/
|
||||
namespace TheTempusProject\Templates;
|
||||
|
||||
use TheTempusProject\Houdini\Classes\Components;
|
||||
use TheTempusProject\Houdini\Classes\Navigation;
|
||||
use TheTempusProject\Houdini\Classes\Views;
|
||||
use TheTempusProject\Bedrock\Functions\Input;
|
||||
use TheTempusProject\Models\Dashboards;
|
||||
|
||||
class DashboardsLoader extends DefaultLoader {
|
||||
/**
|
||||
* This is the function used to generate any components that may be
|
||||
* needed by this template.
|
||||
*/
|
||||
public function __construct() {
|
||||
$dashboards = new Dashboards;
|
||||
$this->addJs( '<script language="JavaScript" crossorigin="anonymous" type="text/javascript" src="{ROOT_URL}app/plugins/dashboards/js/dashboards.js"></script>' );
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user