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

Last change on this file since 8298 was 8298, checked in by rub, 13 years ago

Can change default facebook application id

  • Property svn:eol-style set to LF
File size: 3.0 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | FacebookPlug - a Piwigo Plugin                                        |
4// | Copyright (C) 2010 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;
27
28$conf['fbp'] = array_merge(
29  // default values
30  array
31  (
32    'facebook_app_id' => null,
33    'async_script' => false,
34    'picture_url_type' => 'page',
35    'allow_fb_access_private_page' => true,
36    'social_plugin_like_button' => array(),
37    'social_plugin_facepile' => array(),
38    'social_plugin_comments' => array(),
39    'social_plugin_like_box' => array(),
40  ),
41  unserialize($conf['fbp']));
42
43$conf['fbp']['social_plugin_like_button'] = array_merge(
44  // default values
45  array
46  (
47    'enabled' => true,
48    'layout' => 'standard',
49    'show_faces' => true,
50    'action' => 'like',
51    'colorscheme' => 'dark',
52    'width' => null,
53  ),
54  $conf['fbp']['social_plugin_like_button']);
55
56$conf['fbp']['social_plugin_facepile'] = array_merge(
57  // default values
58  array
59  (
60    'enabled' => true,
61    'max_rows' => 1,
62    'width' => null,
63  ),
64  $conf['fbp']['social_plugin_facepile']);
65
66$conf['fbp']['social_plugin_comments'] = array_merge(
67  // default values
68  array
69  (
70    'enabled' => false,
71    'numposts' => 3,
72    'css' => null,
73    'title' => null,
74    'simple' => true,
75    'reverse' => false,
76    'publish_feed' => true,
77    'width' => null,
78  ),
79  $conf['fbp']['social_plugin_comments']);
80
81$conf['fbp']['social_plugin_like_box'] = array_merge(
82  // default values
83  array
84  (
85    'enabled' => false,
86    'url' => 'http://www.facebook.com/Piwigo',
87    'colorscheme' => 'dark',
88    'show_faces' => true,
89    'stream' => true,
90    'header' => true,
91    'width' => 210,
92  ),
93  $conf['fbp']['social_plugin_like_box']);
94
95//~ print_r($conf['fbp']);
96
97?>
Note: See TracBrowser for help on using the repository browser.