HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/libraries/astroid/framework/astroid.php
<?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));
   }
}