source: extensions/FacebookPlug/Plugin/include/conf.inc.php @ 31706

Last change on this file since 31706 was 8481, checked in by rub, 14 years ago

Upload button: check extension and reduce window size

  • Property svn:eol-style set to LF
File size: 3.9 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | FacebookPlug - a Piwigo Plugin                                        |
4// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
5// +-----------------------------------------------------------------------+
6// | This program is free software; you can redistribute it and/or modify  |
7// | it under the terms of the GNU General Public License as published by  |
8// | the Free Software Foundation                                          |
9// |                                                                       |
10// | This program is distributed in the hope that it will be useful, but   |
11// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
12// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
13// | General Public License for more details.                              |
14// |                                                                       |
15// | You should have received a copy of the GNU General Public License     |
16// | along with this program; if not, write to the Free Software           |
17// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
18// | USA.                                                                  |
19// +-----------------------------------------------------------------------+
20
21if (!defined('PHPWG_ROOT_PATH'))
22{
23  die('Hacking attempt!');
24}
25
26global $conf, $page;
27
28$conf['fbp'] = array_merge(
29  // default values
30  array
31  (
32    'facebook_app_id' => null,
33    'async_script' => false,
34    'force_facebook_init' => false,
35    'add_about_informations' => true,
36    'add_group_footer' => true,
37    'add_application_footer' => true,
38    'picture_url_type' => 'page',
39    'share_picture' => true,
40    'share_album' => true,
41    'upload_picture' => true,
42    'allow_fb_access_private_page' => true,
43    'social_plugin_like_button' => array(),
44    'social_plugin_facepile' => array(),
45    'social_plugin_comments' => array(),
46    'social_plugin_like_box' => array(),
47    'social_plugin_activity_feed' => array(),
48  ),
49  unserialize($conf['fbp']));
50
51$conf['fbp']['social_plugin_like_button'] = array_merge(
52  // default values
53  array
54  (
55    'enabled' => true,
56    'layout' => 'standard',
57    'show_faces' => true,
58    'action' => 'like',
59    'colorscheme' => 'dark',
60    'width' => null,
61    'font' => null,
62    'ref' => null,
63  ),
64  $conf['fbp']['social_plugin_like_button']);
65
66$conf['fbp']['social_plugin_facepile'] = array_merge(
67  // default values
68  array
69  (
70    'enabled' => true,
71    'max_rows' => 1,
72    'width' => null,
73  ),
74  $conf['fbp']['social_plugin_facepile']);
75
76$conf['fbp']['social_plugin_comments'] = array_merge(
77  // default values
78  array
79  (
80    'enabled' => false,
81    'numposts' => 3,
82    'css' => null,
83    'title' => null,
84    'simple' => true,
85    'reverse' => false,
86    'publish_feed' => true,
87    'width' => null,
88  ),
89  $conf['fbp']['social_plugin_comments']);
90
91$conf['fbp']['social_plugin_activity_feed'] = array_merge(
92  // default values
93  array
94  (
95    'enabled' => true,
96    'site' => null,
97    'colorscheme' => 'dark',
98    'recommendations' => false,
99    'header' => true,
100    'width' => 210,
101    'height' => null,
102    'border_color' => null,
103    'filter' => null,
104    'ref' => null,
105  ),
106  $conf['fbp']['social_plugin_activity_feed']);
107
108$conf['fbp']['social_plugin_like_box'] = array_merge(
109  // default values
110  array
111  (
112    'enabled' => false,
113    'url' => 'http://www.facebook.com/Piwigo',
114    'colorscheme' => 'dark',
115    'show_faces' => true,
116    'stream' => true,
117    'header' => true,
118    'width' => 210,
119    'height' => null,
120  ),
121  $conf['fbp']['social_plugin_like_box']);
122
123//From http://developers.facebook.com/docs/reference/rest/photos.upload/
124// *GIF *JPG *PNG *PSD *TIFF *JP2 *IFF *WBMP *XBM
125$page['fbp']['available_upload_ext'] = array('GIF', 'JPG', 'PNG', 'PSD', 'TIFF', 'JP2', 'IFF', 'WBMP', 'XBM');
126
127?>
Note: See TracBrowser for help on using the repository browser.