Exemple #1
0
 /**
  *
  * @param <JParameter> $globalParams */
 function __construct($globalParams)
 {
     $this->staticParams['th_height'] = $globalParams->get('th_height', 200);
     $this->staticParams['galleryStyle'] = $globalParams->get('galleryStyle', 'classic');
     $this->staticParams['newImageTag'] = $globalParams->get('newImageTag', true);
     $this->staticParams['newImageTag_days'] = $globalParams->get('newImageTag_days', '7');
     $this->staticParams['sortImages'] = $globalParams->get('sortImages', false);
     $this->staticParams['frame_width'] = $globalParams->get('frame_width', false);
     $this->staticParams['frame_height'] = $globalParams->get('frame_height', false);
     $this->staticParams['showSignature'] = $globalParams->get('showSignature', '1');
     $this->staticParams['popupEngine'] = $globalParams->get('popupEngine', 'slimbox');
     $this->staticParams['usePopuEngine'] = $globalParams->get('usePopuEngine', true);
     $this->staticParams['ignoreError'] = $globalParams->get('ignoreError', true);
     $this->staticParams['ignoreAllError'] = $globalParams->get('ignoreAllError', false);
     $this->staticParams['loadjQuery'] = $globalParams->get('loadjQuery', true);
     $this->staticParams['jQueryNoConflict'] = $globalParams->get('jQueryNoConflict', true);
     $this->staticParams['rootFolder'] = $globalParams->get('rootFolder', '/images/stories/');
     $this->params = $this->staticParams;
 }
Exemple #2
0
 /**
  * Gallery constructor, sets path values, sets document reference
  * @param <JParameter> $globalParams
  * @param <string> $path
  * @param <string> $sitePhysicalPath
  * @param <pointer> $document
  */
 function __construct($globalParams, $path, $sitePhysicalPath, $document)
 {
     $this->staticParams['thumbWidth'] = $globalParams->get('thumbWidth', 200);
     $this->staticParams['thumbHeight'] = $globalParams->get('thumbHeight', 120);
     $this->staticParams['thumbAutoSize'] = $globalParams->get('thumbAutoSize', "none");
     $this->staticParams['template'] = $globalParams->get('template', 'classic');
     $this->staticParams['arrange'] = $globalParams->get('arrange', 'priority');
     $this->staticParams['newImageTag'] = $globalParams->get('newImageTag', true);
     $this->staticParams['newImageTag_days'] = $globalParams->get('newImageTag_days', '7');
     $this->staticParams['frame_width'] = $globalParams->get('frame_width', false);
     $this->staticParams['frame_height'] = $globalParams->get('frame_height', false);
     $this->staticParams['showSignature'] = $globalParams->get('showSignature', true);
     $this->staticParams['plainTextCaptions'] = $globalParams->get('plainTextCaptions', true);
     $this->staticParams['popupEngine'] = $globalParams->get('popupEngine', 'slimbox');
     $this->staticParams['usePopuEngine'] = $globalParams->get('usePopuEngine', true);
     $this->staticParams['ignoreError'] = $globalParams->get('ignoreError', true);
     $this->staticParams['ignoreAllError'] = $globalParams->get('ignoreAllError', false);
     $this->staticParams['rootFolder'] = $globalParams->get('rootFolder', '/images/sampledata/');
     $this->staticParams['backgroundColor'] = $globalParams->get('backgroundColor', 'ffffff');
     $this->staticParams['foregroundColor'] = $globalParams->get('foregroundColor', '808080');
     $this->staticParams['highliteColor'] = $globalParams->get('highliteColor', 'fea804');
     $this->popupEngine = new agPopup();
     $this->params = $this->staticParams;
     if (substr($path, -1) == "/") {
         $path = substr($path, 0, -1);
     }
     $this->sitePath = $path;
     $this->sitePhysicalPath = $sitePhysicalPath;
     $this->thumbsFolderPhysicalPath = $sitePhysicalPath . PLUGIN_BASE_PATH . 'thumbs' . $this->DS;
     $this->imagesFolderPhysicalPath = $sitePhysicalPath . $this->params["rootFolder"];
     $this->cleanThumbsFolder();
     $this->doc = $document;
     $this->loadCSS('AdmirorGallery.css');
     //$this->errors = new agErrors();
     // Album Support
     $this->staticParams['albumUse'] = $globalParams->get('albumUse', true);
     // Paginations Support
     $this->staticParams['paginUse'] = $globalParams->get('paginUse', true);
     $this->staticParams['paginImagesPerGallery'] = $globalParams->get('paginImagesPerGallery', 10);
 }