Advertisement
fruffl

Untitled

Jan 31st, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.70 KB | None | 0 0
  1.  
  2.             $this->__Plugin->appendInlineJavascript
  3.             (
  4.             '
  5.             (function(tri4m, undefined)
  6.             {
  7.                 tri4m(function()
  8.                 {
  9.                     tri4m.append
  10.                         .Stylesheet
  11.                         (
  12.                             ["'.$this->__Plugin->getUrlPluginMediaDirectory('css').'tri4m.QtLoader.css"]
  13.                         )
  14.                         .Javascript
  15.                         (
  16.                             [
  17.                                 "'.$this->__Plugin->getUrlPluginMediaDirectory('js').'tri4m.QtLoader.js"
  18.                             ],
  19.                             {
  20.                                 success : function()
  21.                                 {
  22.                                     tri4m.system.QtLoader
  23.                                     (
  24.                                         {
  25.                                             home        : "'.get_bloginfo('wpurl').'",
  26.                                             ignore      : '.$this->jsArray('ignore').',
  27.                                             scrollToTop : '.$this->jsBool('scrollToTop').',
  28.                                             analytics   : '.$this->jsBool('analytics').',
  29.                                             transition  : '.$this->jsString('transition').',
  30.                                             debug       : '.$this->jsBool('debug').',
  31.                                             selector :
  32.                                             {
  33.                                                 searchformClass : '.$this->jsString('selector_searchformClass').',
  34.                                                 contentID   : '.$this->jsString('selector_contentID').'
  35.                                             },
  36.                                             event :
  37.                                             {
  38.                                                 click       : '.$this->jsOpNoop('event_click').',
  39.                                                 complete    : '.$this->jsOpNoop('event_complete').',
  40.                                                 success     : '.$this->jsOpNoop('event_success').',
  41.                                                 error       : '.$this->jsOpNoop('event_error').',
  42.                                             },
  43.                                             html :
  44.                                             {
  45.                                                 loading     : '.$this->jsDom('html_loading').',
  46.                                                 searching   : '.$this->jsDom('html_searching').',
  47.                                                 error       : '.$this->jsDom('html_error').'
  48.                                             },
  49.                                             force :
  50.                                             {
  51.                                                 ready       : '.$this->jsBool('force_ready').'
  52.                                             }
  53.                                         },
  54.                                         "body"
  55.                                     );
  56.                                 }
  57.                             }
  58.                         );
  59.                 });
  60.             })(tri4m);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement