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

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

Rename language files: plugin.lang.php => admin.config.lang.php
Add constants for Facebook URL
Add promote on footer
Add promote on about page (available for Piwigo 2.2)
Add promote on admin config page
Superscripted help tips on admin config page

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