daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jun 19th, 2018 132 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Original
  2. <?php
  3. class CustomScriptInit extends DataObjectDecorator
  4. {
  5.     /**
  6.      * Load our required scripts and stylesheets into the cms
  7.      * We do this by adding DataObject::add_extension('LeftAndMain', 'CustomScriptInit');
  8.      * into our _config.php file.
  9.      * DARN! That took some time to figure out.
  10.      */
  11.     public function augmentInit(){
  12.         Requirements::css('filemanager/css/filemanager.css');
  13.         //Requirements::javascript('filemanager/javascript/lib/jquery-1.2.6.pack.js');
  14.         Requirements::javascript('filemanager/javascript/lib/jquery.dimensions.min.js');
  15.         Requirements::javascript('filemanager/javascript/lib/jquery-ui-sortables-1.5.2.packed.js');
  16.         Requirements::javascript('filemanager/javascript/FileManager.js');
  17.     }
  18. }
  19.  
  20. ?>
  21.  
  22. ## Compatible for 2.3.2
  23. <?php
  24. class CustomScriptInit extends LeftAndMainDecorator
  25. {
  26.     public function init(){
  27.         Requirements::css('filemanager/css/filemanager.css');
  28.         //Requirements::javascript('filemanager/javascript/lib/jquery-1.2.6.pack.js');
  29.         Requirements::javascript('filemanager/javascript/lib/jquery.dimensions.min.js');
  30.         Requirements::javascript('filemanager/javascript/lib/jquery-ui-sortables-1.5.2.packed.js');
  31.         Requirements::javascript('filemanager/javascript/FileManager.js');
  32.     }
  33. }
  34.  
  35. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top