-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #622 from templaza/v3
v3.0.13
- Loading branch information
Showing
169 changed files
with
8,888 additions
and
3,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,9 @@ | ||
<?php | ||
|
||
jimport('astroid.framework.template'); | ||
|
||
abstract class AstroidFramework | ||
{ | ||
|
||
public static $template = null; | ||
public static $stylesheets = []; | ||
public static $javascripts = ['head' => [], 'body' => []]; | ||
public static $styles = []; | ||
public static $scripts = ['head' => [], 'body' => []]; | ||
|
||
public static function getTemplate() | ||
{ | ||
if (!self::$template) { | ||
self::$template = self::createTemplate(); | ||
} | ||
|
||
return self::$template; | ||
} | ||
|
||
public static function setTemplate($template) | ||
{ | ||
self::$template = $template; | ||
} | ||
|
||
public static function addStyleSheet($url) | ||
{ | ||
self::$stylesheets[] = $url; | ||
} | ||
|
||
public static function addStyleDeclaration($css) | ||
{ | ||
self::$styles[] = $css; | ||
} | ||
|
||
public static function addScript($url, $position = 'head') | ||
{ | ||
self::$javascripts[$position][] = $url; | ||
} | ||
|
||
public static function addScriptDeclaration($js, $position = 'head') | ||
{ | ||
self::$scripts[$position][] = $js; | ||
} | ||
|
||
public static function createTemplate() | ||
{ | ||
return new AstroidFrameworkTemplate(JFactory::getApplication()->getTemplate(true)); | ||
} | ||
} | ||
/** | ||
* @package Astroid Framework | ||
* @author Astroid Framework Team https://astroidframe.work | ||
* @copyright Copyright (C) 2023 AstroidFrame.work. | ||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later | ||
*/ | ||
defined('_JEXEC') or die; | ||
abstract class AstroidFramework extends \Astroid\Framework {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.