Cheetah
ChPhotosConfig.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_CLASSES . 'ChWsbFilesConfig.php');
9 
11 {
15  function __construct (&$aModule)
16  {
17  parent::__construct($aModule);
18 
19  $this->aFilesConfig = array (
20  'icon' => array('postfix' => '_ri.jpg', 'size_def' => 32, 'square' => true),
21  'thumb' => array('postfix' => '_rt.jpg', 'size_def' => 64, 'square' => true),
22  'browse' => array('postfix' => '_t.jpg', 'size_def' => 240, 'square' => true),
23  'browse2x' => array('postfix' => '_t_2x.jpg', 'size_def' => 480, 'square' => true),
24  'file' => array('postfix' => '_m.jpg', 'size_def' => 600),
25  'original' => array('postfix' => '.{ext}'),
26  );
27 
28  $this->aGlParams = array(
29  'auto_activation' => 'ch_photos_activation',
30  'mode_top_index' => 'ch_photos_mode_index',
31  'category_auto_approve' => 'category_auto_activation_ch_photos',
32  );
33 
34  $this->aDefaultAlbums[] = 'profile_cover_album_name';
35 
36  if(!defined("FLICKR_PHOTO_RSS"))
37  define("FLICKR_PHOTO_RSS", "https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=#api_key#&photo_id=#photo#");
38  if(!defined("FLICKR_PHOTO_URL"))
39  define("FLICKR_PHOTO_URL", "https://farm#farm#.static.flickr.com/#server#/#id#_#secret##mode#.#ext#");
40 
41  $this->initConfig();
42  }
43 }
$aModule
$aModule
Definition: classifieds.php:21
php
ChPhotosConfig
Definition: ChPhotosConfig.php:11
ChWsbFilesConfig\initConfig
initConfig()
Definition: ChWsbFilesConfig.php:41
ChWsbFilesConfig
Definition: ChWsbFilesConfig.php:11
ChPhotosConfig\__construct
__construct(&$aModule)
Definition: ChPhotosConfig.php:15