Since: 3.0.0
Author: Henry Ruhs
Author: Balázs Szilágyi
Inheritance: extends HeadAbstract
示例#1
0
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     /* link */
     $link = Head\Link::getInstance();
     $link->init()->appendFile('modules/ShareThis/assets/styles/share_this.css');
     /* script */
     $script = Head\Script::getInstance();
     $script->init('foot')->appendFile('modules/ShareThis/assets/scripts/init.js')->appendFile('modules/ShareThis/assets/scripts/share_this.js');
 }
示例#2
0
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     /* link */
     $link = Head\Link::getInstance();
     $link->init()->appendFile('modules/LazyLoad/assets/styles/lazy_load.css');
     /* script */
     $script = Head\Script::getInstance();
     $script->init('foot')->appendFile('modules/LazyLoad/assets/scripts/init.js')->appendFile('modules/LazyLoad/assets/scripts/lazy_load.js');
 }
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     /* link */
     $link = Head\Link::getInstance();
     $link->init()->appendFile('//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/atom-one-dark.min.css');
     /* script */
     $script = Head\Script::getInstance();
     $script->init('foot')->appendFile('//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js')->appendFile('modules/SyntaxHighlighter/assets/scripts/init.js')->appendFile('modules/SyntaxHighlighter/assets/scripts/syntax_highlighter.js');
 }
示例#4
0
 /**
  * renderStart
  *
  * @since 2.2.0
  */
 public static function renderStart()
 {
     if (Registry::get('firstParameter') === 'preview') {
         Registry::set('metaTitle', Language::get('preview', '_preview'));
         Registry::set('metaDescription', Language::get('description', '_preview'));
         Registry::set('routerBreak', true);
         /* link */
         $link = Head\Link::getInstance();
         $link->init()->appendFile('modules/Preview/dist/styles/preview.min.css');
     }
 }
示例#5
0
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     if (!Registry::get('adminParameter')) {
         /* link */
         $link = Head\Link::getInstance();
         $link->init()->appendFile('modules/Maps/assets/styles/maps.css');
         /* script */
         $script = Head\Script::getInstance();
         $script->init('foot')->appendFile(self::$_configArray['apiUrl'] . '?key=' . self::$_configArray['apiKey'])->appendFile('modules/Maps/assets/scripts/init.js')->appendFile('modules/Maps/assets/scripts/maps.js');
     }
 }
示例#6
0
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     if (Registry::get('loggedIn') === Registry::get('token')) {
         /* link */
         $link = Head\Link::getInstance();
         $link->init()->appendFile('modules/Ace/assets/styles/ace.css');
         /* script */
         $script = Head\Script::getInstance();
         $script->init('foot')->appendFile('//cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js')->appendFile('modules/Ace/assets/scripts/init.js')->appendFile('modules/Ace/assets/scripts/ace.js');
     }
 }
示例#7
0
 /**
  * link
  *
  * @since 3.0.0
  *
  * @return object
  */
 public static function link()
 {
     return Head\Link::getInstance();
 }
示例#8
0
 /**
  * testRewrite
  *
  * @since 3.0.0
  *
  */
 public function testRewrite()
 {
     /* setup */
     $link = Head\Link::getInstance();
     $link->init('rewrite')->rewrite(['test1' => 'test1', 'test2' => 'test2'])->rewrite(['test3' => 'test3']);
     /* expect and actual */
     $expectArray = ['test1' => 'test1', 'test2' => 'test2', 'test3' => 'test3'];
     $actualArray = $this->getProperty($link, '_rewriteArray')['Redaxscript\\Head\\Link\\Rewrite'];
     /* compare */
     $this->assertEquals($expectArray, $actualArray);
 }
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     $link = Head\Link::getInstance();
     $link->init()->appendFile('modules/DirectoryLister/assets/styles/directory_lister.css');
 }
示例#10
0
 /**
  * renderStart
  *
  * @since 3.0.0
  */
 public static function renderStart()
 {
     $link = Head\Link::getInstance();
     $link->init()->appendFile('modules/FeedReader/assets/styles/feed_reader.css');
 }