Пример #1
0
 /**
  * Loads assets for given extension
  *
  * @param   string  $extension  Name of the extension
  *
  * @return  void
  *
  * @since   3.0
  */
 public static function loadTjAssets($extension = '')
 {
     if ($extension != '') {
         switch ($extension) {
             case 'com_emailbeautifier':
                 self::$load_com_emailbeautifier_assets = 1;
                 break;
             case 'com_invitex':
                 self::$load_com_invitex_assets = 1;
                 break;
             case 'com_jbolo':
                 self::$load_com_jbolo_assets = 1;
                 break;
             case 'com_jgive':
                 self::$load_com_jgive_assets = 1;
                 break;
             case 'com_jlike':
                 self::$load_com_jlike_assets = 1;
                 break;
             case 'com_jmailalerts':
                 self::$load_com_jmailalerts_assets = 1;
                 break;
             case 'com_jticketing':
                 self::$load_com_jticketing_assets = 1;
                 break;
             case 'com_quick2cart':
                 self::$load_com_quick2cart_assets = 1;
                 break;
             case 'com_socialads':
                 self::$load_com_socialads_assets = 1;
                 break;
             case 'com_tjfields':
                 self::$load_com_tjfields_assets = 1;
                 break;
             case 'com_tjlms':
                 self::$load_com_tjlms_assets = 1;
                 break;
             case 'com_tmt':
                 self::$load_com_tmt_assets = 1;
                 break;
             case 'com_psuggest':
                 self::$load_com_people_suggest_assets = 1;
                 break;
             default:
                 break;
         }
         onAfterRouteTj();
         onAfterRenderTj();
     }
 }