[8241] | 1 | <?php |
---|
| 2 | // +-----------------------------------------------------------------------+ |
---|
| 3 | // | FacebookPlug - a Piwigo Plugin | |
---|
[8425] | 4 | // | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org | |
---|
[8241] | 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 | |
---|
| 21 | if (!defined('PHPWG_ROOT_PATH')) |
---|
| 22 | { |
---|
| 23 | die('Hacking attempt!'); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | global $conf; |
---|
| 27 | |
---|
[8275] | 28 | $conf['fbp'] = array_merge( |
---|
| 29 | // default values |
---|
| 30 | array |
---|
| 31 | ( |
---|
[8298] | 32 | 'facebook_app_id' => null, |
---|
[8295] | 33 | 'async_script' => false, |
---|
[8366] | 34 | 'force_facebook_init' => false, |
---|
[8375] | 35 | 'add_about_informations' => true, |
---|
| 36 | 'add_group_footer' => true, |
---|
| 37 | 'add_application_footer' => true, |
---|
[8295] | 38 | 'picture_url_type' => 'page', |
---|
[8436] | 39 | 'share_picture' => true, |
---|
| 40 | 'share_album' => true, |
---|
[8440] | 41 | 'upload_picture' => true, |
---|
[8275] | 42 | 'allow_fb_access_private_page' => true, |
---|
| 43 | 'social_plugin_like_button' => array(), |
---|
[8295] | 44 | 'social_plugin_facepile' => array(), |
---|
| 45 | 'social_plugin_comments' => array(), |
---|
[8275] | 46 | 'social_plugin_like_box' => array(), |
---|
[8386] | 47 | 'social_plugin_activity_feed' => array(), |
---|
[8275] | 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', |
---|
[8282] | 60 | 'width' => null, |
---|
[8386] | 61 | 'font' => null, |
---|
| 62 | 'ref' => null, |
---|
[8275] | 63 | ), |
---|
| 64 | $conf['fbp']['social_plugin_like_button']); |
---|
| 65 | |
---|
[8295] | 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, |
---|
[8298] | 81 | 'numposts' => 3, |
---|
[8295] | 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 | |
---|
[8386] | 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 | |
---|
[8275] | 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, |
---|
[8282] | 118 | 'width' => 210, |
---|
[8386] | 119 | 'height' => null, |
---|
[8275] | 120 | ), |
---|
| 121 | $conf['fbp']['social_plugin_like_box']); |
---|
| 122 | |
---|
[8241] | 123 | //~ print_r($conf['fbp']); |
---|
| 124 | |
---|
| 125 | ?> |
---|