1 | <?php |
---|
2 | /** |
---|
3 | * Plugin Mediaspip Core |
---|
4 | * |
---|
5 | * Auteurs : |
---|
6 | * kent1 (http://www.kent1.info - kent1@arscenic.info) |
---|
7 | * |
---|
8 | * © 2010-2013 - Distribue sous licence GNU/GPL |
---|
9 | * |
---|
10 | * Fichier des options spécifiques du plugin (utilisées à chaque hit) |
---|
11 | */ |
---|
12 | if (!defined('_ECRIRE_INC_VERSION')) return; |
---|
13 | |
---|
14 | /** |
---|
15 | * Indiquer MediaSPIP dans les headers |
---|
16 | */ |
---|
17 | define('_HEADER_COMPOSED_BY',"Composed-By: MediaSPIP v0.2 @ www.mediaspip.net + SPIP"); |
---|
18 | define('_MEDIASPIP_VERSION','0.2'); |
---|
19 | |
---|
20 | define('_ZENGARDEN_FILTRE_THEMES','mediaspip_core'); |
---|
21 | define('_DIR_LIB_SVG',_DIR_RACINE.'lib/jquery.svg.package-1.4.4/'); |
---|
22 | |
---|
23 | $GLOBALS['forcer_lang'] = true; |
---|
24 | |
---|
25 | define('_STATUT_AUTEUR_CREATION', '6forum'); |
---|
26 | |
---|
27 | if ( |
---|
28 | ( // on est en mode apercu |
---|
29 | (isset($_COOKIE['spip_zengarden_theme']) AND $t = $_COOKIE['spip_zengarden_theme']) |
---|
30 | // ou avec le cookie du switcher |
---|
31 | OR |
---|
32 | // ou un theme est vraiment selectionne |
---|
33 | (isset($GLOBALS['meta']['zengarden_theme']) AND $t = $GLOBALS['meta']['zengarden_theme'])) |
---|
34 | AND is_dir(_DIR_RACINE . $t)){ |
---|
35 | if(file_exists(_DIR_RACINE . $t.'/theme_options.php')){ |
---|
36 | include_spip(_DIR_RACINE . $t.'/theme_options'); |
---|
37 | } |
---|
38 | } |
---|
39 | /** |
---|
40 | * Les limites de nombre de fichiers pour emballe medias |
---|
41 | * - _EM_FILE_UPLOAD_LIMIT : Le nombre maximum de fichier que l'on peut uploader dans un article (1) |
---|
42 | * - _EM_FILE_QUEUE_LIMIT : Le nombre maximum de fichier que l'on peut mettre dans la file d'upload dans un article (1) |
---|
43 | */ |
---|
44 | define('_EM_FILE_UPLOAD_LIMIT','1'); |
---|
45 | define('_EM_FILE_QUEUE_LIMIT','1'); |
---|
46 | |
---|
47 | if(!defined('_EM_PREVISU_HAUTEUR')) |
---|
48 | define('_EM_PREVISU_HAUTEUR','400'); |
---|
49 | if(!defined('_EM_PREVISU_LARGEUR')) |
---|
50 | define('_EM_PREVISU_LARGEUR','400'); |
---|
51 | |
---|
52 | if (!isset($GLOBALS['z_blocs'])) { |
---|
53 | /* à faire : extra1 -> aside, extra2 -> extra */ |
---|
54 | $GLOBALS['z_blocs'] = array('content','extra1','extra2','head','head_js','header','footer','breadcrumb'); |
---|
55 | } |
---|
56 | ?> |
---|