cdb7706ad35cb7c63ebb19b68b927ba0363261f5
[atutor.git] / docs / mods / _standard / photos / include / constants.inc.php
1 <?php
2 /***********************************************************************/
3 /* ATutor                                                                                                                          */
4 /***********************************************************************/
5 /* Copyright (c) 2002-2010                                             */
6 /* Inclusive Design Institute                                          */
7 /* http://atutor.ca                                                                                                        */
8 /*                                                                                                                                         */
9 /* This program is free software. You can redistribute it and/or           */
10 /* modify it under the terms of the GNU General Public License             */
11 /* as published by the Free Software Foundation.                                           */
12 /***********************************************************************/
13 // $Id$
14
15 //Photo Album base variables
16 define('AT_PA_BASENAME',        'mods/_standard/photos/');
17 define('AT_PA_BASE',            AT_INCLUDE_PATH.'../mods/_standard/photos/');
18 define('AT_PA_INCLUDE',         AT_PA_BASE.'include/');
19 define('AT_PA_CONTENT_DIR',     AT_CONTENT_DIR.'photos/');
20 define('AT_PA_PHOTOS_PER_PAGE',                 28);    //max # of photos to display
21 define('AT_PA_ALBUMS_PER_PAGE',                 5);             //max # of albums to display on index.php
22 define('AT_PA_ADMIN_ALBUMS_PER_PAGE',   50);    //max # of albums to display on index.php
23 define('AT_PA_PAGE_WINDOW',                             2);             //max # of photos to display
24
25 //Image sizes
26 define('AT_PA_IMAGE',           604);           //default maximum width/height for images
27 define('AT_PA_IMAGE_THUMB',     130);           //default maximum width/height for thumbnails
28
29 //Album types
30 define('AT_PA_TYPE_ALL_ALBUM',                  -1);//all albums
31 define('AT_PA_TYPE_MY_ALBUM',                   1);     //my album
32 define('AT_PA_TYPE_COURSE_ALBUM',               2);     //course album
33 define('AT_PA_TYPE_PERSONAL',                   3); //personal album
34 define('AT_PA_TYPE_GROUP_ALBUM',                4);     //group album
35 define('AT_PA_TYPE_SOCIAL_GROUP_ALBUM', 5);     //social group album
36
37 //Album permissions
38 define('AT_PA_PRIVATE_ALBUM',                   0);     //private album, default
39 define('AT_PA_SHARED_ALBUM',                    1);     //shared album
40
41 //Search 
42 define('AT_PA_PHOTO_SEARCH_PER_PAGE',   20); //display this many photos on search result
43 define('AT_PA_PHOTO_SEARCH_LIMIT',              250); //search results are limited to this number
44 define('AT_PA_ALBUM_PIC_WIDTH',                 147); //album pic width
45 define('AT_PA_PHOTO_PIC_WIDTH',                 146); //photo pic width
46 define('AT_PA_SEARCH_MIN_ALBUM',                4); //numbers of album to show without having to show the next/prev keys
47
48 ?>