Changeset 8386
- Timestamp:
- Dec 29, 2010, 11:45:21 PM (13 years ago)
- Location:
- extensions/FacebookPlug/Plugin
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/admin.config.php
r8375 r8386 54 54 l10n('Advanced'), 55 55 add_url_params($base_url, array('tab' => 'advanced'))); 56 $tabsheet->add('activity', 57 l10n('Activity'), 58 add_url_params($base_url, array('tab' => 'activity'))); 56 59 $tabsheet->select($page['tab']); 57 60 $tabsheet->assign(); 61 62 function fbp_intval($n) 63 { 64 return (is_numeric($n) ? $n : null); 65 } 66 67 function fbp_checked($b) 68 { 69 return ($b ? 'checked="checked"' : ''); 70 } 58 71 59 72 // Update … … 67 80 { 68 81 // Like button 69 $conf['fbp']['social_plugin_like_button']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED']) ? false : true;82 $conf['fbp']['social_plugin_like_button']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED']); 70 83 $conf['fbp']['social_plugin_like_button']['layout'] = $layout[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT']]; 71 $conf['fbp']['social_plugin_like_button']['show_faces'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES']) ? false : true;84 $conf['fbp']['social_plugin_like_button']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES']); 72 85 $conf['fbp']['social_plugin_like_button']['action'] = $action[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION']]; 73 86 $conf['fbp']['social_plugin_like_button']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME']]; 74 87 // Facepile 75 $conf['fbp']['social_plugin_facepile']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED']) ? false : true;88 $conf['fbp']['social_plugin_facepile']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED']); 76 89 $conf['fbp']['social_plugin_facepile']['max_rows'] = intval($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS']); 77 90 // Comments 78 $conf['fbp']['social_plugin_comments']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED']) ? false : true;79 $conf['fbp']['social_plugin_comments']['numposts'] = intval($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS']);91 $conf['fbp']['social_plugin_comments']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED']); 92 $conf['fbp']['social_plugin_comments']['numposts'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS']); 80 93 $conf['fbp']['social_plugin_comments']['title'] = $_POST['FBP_SOCIAL_PLUGIN_COMMENTS_TITLE']; 81 $conf['fbp']['social_plugin_comments']['simple'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE']) ? false : true; 82 $conf['fbp']['social_plugin_comments']['reverse'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE']) ? false : true; 83 $conf['fbp']['social_plugin_comments']['publish_feed'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED']) ? false : true; 94 $conf['fbp']['social_plugin_comments']['simple'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE']); 95 $conf['fbp']['social_plugin_comments']['reverse'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE']); 96 $conf['fbp']['social_plugin_comments']['publish_feed'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED']); 97 // Actvity feed 98 $conf['fbp']['social_plugin_activity_feed']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED']); 99 $conf['fbp']['social_plugin_activity_feed']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME']]; 100 $conf['fbp']['social_plugin_activity_feed']['recommendations'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS']); 101 $conf['fbp']['social_plugin_activity_feed']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER']); 102 $conf['fbp']['social_plugin_activity_feed']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT']); 84 103 // Like box 85 $conf['fbp']['social_plugin_like_box']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED']) ? false : true;104 $conf['fbp']['social_plugin_like_box']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED']); 86 105 $conf['fbp']['social_plugin_like_box']['url'] = $_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_URL']; 87 106 $conf['fbp']['social_plugin_like_box']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME']]; 88 $conf['fbp']['social_plugin_like_box']['show_faces'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES']) ? false : true; 89 $conf['fbp']['social_plugin_like_box']['stream'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM']) ? false : true; 90 $conf['fbp']['social_plugin_like_box']['header'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER']) ? false : true; 91 107 $conf['fbp']['social_plugin_like_box']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES']); 108 $conf['fbp']['social_plugin_like_box']['stream'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM']); 109 $conf['fbp']['social_plugin_like_box']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER']); 110 $conf['fbp']['social_plugin_like_box']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT']); 111 92 112 // Check 93 113 if ($conf['fbp']['social_plugin_like_button']['enabled'] and $conf['fbp']['social_plugin_comments']['enabled']) … … 103 123 { 104 124 $conf['fbp']['facebook_app_id'] = $_POST['FBP_FACEBOOK_APP_ID']; 105 $conf['fbp']['async_script'] = empty($_POST['FBP_ASYNC_SCRIPT']) ? false : true;106 $conf['fbp']['force_facebook_init'] = empty($_POST['FBP_FORCE_FACEBOOK_INIT']) ? false : true;125 $conf['fbp']['async_script'] = ! empty($_POST['FBP_ASYNC_SCRIPT']); 126 $conf['fbp']['force_facebook_init'] = ! empty($_POST['FBP_FORCE_FACEBOOK_INIT']); 107 127 $conf['fbp']['picture_url_type'] = $picture_url_type[$_POST['FBP_PICTURE_URL_TYPE']]; 108 $conf['fbp']['allow_fb_access_private_page'] = empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']) ? false : true;109 $conf['fbp']['add_about_informations'] = empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']) ? false : true;110 $conf['fbp']['add_group_footer'] = empty($_POST['FBP_ADD_GROUP_FOOTER']) ? false : true;111 $conf['fbp']['add_application_footer'] = empty($_POST['FBP_ADD_APPLICATION_FOOTER']) ? false : true;128 $conf['fbp']['allow_fb_access_private_page'] = ! empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']); 129 $conf['fbp']['add_about_informations'] = ! empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']); 130 $conf['fbp']['add_group_footer'] = ! empty($_POST['FBP_ADD_GROUP_FOOTER']); 131 $conf['fbp']['add_application_footer'] = ! empty($_POST['FBP_ADD_APPLICATION_FOOTER']); 112 132 break; 113 133 } … … 145 165 ( 146 166 'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like/', 147 'ENABLED' => ($conf['fbp']['social_plugin_like_button']['enabled'] ? 'checked="checked"' : ''),167 'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_button']['enabled']), 148 168 'LAYOUT_OPTIONS' => $layout_l10n, 149 169 'LAYOUT_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['layout'], $layout), 150 'SHOW_FACES' => ($conf['fbp']['social_plugin_like_button']['show_faces'] ? 'checked="checked"' : ''),170 'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_button']['show_faces']), 151 171 'ACTION_OPTIONS' => $action_l10n, 152 172 'ACTION_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['action'], $action), … … 157 177 ( 158 178 'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/facepile/', 159 'ENABLED' => ($conf['fbp']['social_plugin_facepile']['enabled'] ? 'checked="checked"' : ''),179 'ENABLED' => fbp_checked($conf['fbp']['social_plugin_facepile']['enabled']), 160 180 'MAX_ROWS' => $conf['fbp']['social_plugin_facepile']['max_rows'], 161 181 ), … … 163 183 ( 164 184 'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/comments/', 165 'ENABLED' => ($conf['fbp']['social_plugin_comments']['enabled'] ? 'checked="checked"' : ''),185 'ENABLED' => fbp_checked($conf['fbp']['social_plugin_comments']['enabled']), 166 186 'NUMPOSTS' => $conf['fbp']['social_plugin_comments']['numposts'], 167 187 'TITLE' => $conf['fbp']['social_plugin_comments']['title'], 168 'SIMPLE' => ($conf['fbp']['social_plugin_comments']['simple'] ? 'checked="checked"' : ''), 169 'REVERSE' => ($conf['fbp']['social_plugin_comments']['reverse'] ? 'checked="checked"' : ''), 170 'PUBLISH_FEED' => ($conf['fbp']['social_plugin_comments']['publish_feed'] ? 'checked="checked"' : ''), 188 'SIMPLE' => fbp_checked($conf['fbp']['social_plugin_comments']['simple']), 189 'REVERSE' => fbp_checked($conf['fbp']['social_plugin_comments']['reverse']), 190 'PUBLISH_FEED' => fbp_checked($conf['fbp']['social_plugin_comments']['publish_feed']), 191 ), 192 'activity_feed' => array 193 ( 194 'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/activity/', 195 'ENABLED' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['enabled']), 196 'COLORSCHEME_OPTIONS' => $colorscheme_l10n, 197 'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_activity_feed']['colorscheme'], $colorscheme), 198 'RECOMMENDATIONS' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['recommendations']), 199 'HEADER' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['header']), 200 'HEIGHT' => $conf['fbp']['social_plugin_activity_feed']['height'], 171 201 ), 172 202 'like_box' => array 173 203 ( 174 204 'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like-box/', 175 'ENABLED' => ($conf['fbp']['social_plugin_like_box']['enabled'] ? 'checked="checked"' : ''),205 'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_box']['enabled']), 176 206 'URL' => $conf['fbp']['social_plugin_like_box']['url'], 177 207 'COLORSCHEME_OPTIONS' => $colorscheme_l10n, 178 208 'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_box']['colorscheme'], $colorscheme), 179 'SHOW_FACES' => ($conf['fbp']['social_plugin_like_box']['show_faces'] ? 'checked="checked"' : ''), 180 'STREAM' => ($conf['fbp']['social_plugin_like_box']['stream'] ? 'checked="checked"' : ''), 181 'HEADER' => ($conf['fbp']['social_plugin_like_box']['header'] ? 'checked="checked"' : ''), 209 'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_box']['show_faces']), 210 'STREAM' => fbp_checked($conf['fbp']['social_plugin_like_box']['stream']), 211 'HEADER' => fbp_checked($conf['fbp']['social_plugin_like_box']['header']), 212 'HEIGHT' => $conf['fbp']['social_plugin_like_box']['height'], 182 213 ), 183 214 )); … … 190 221 array( 191 222 'FBP_FACEBOOK_APP_ID' => $conf['fbp']['facebook_app_id'], 192 'FBP_ASYNC_SCRIPT' => ($conf['fbp']['async_script'] ? 'checked="checked"' : ''),193 'FBP_FORCE_FACEBOOK_INIT' => ($conf['fbp']['force_facebook_init'] ? 'checked="checked"' : ''),223 'FBP_ASYNC_SCRIPT' => fbp_checked($conf['fbp']['async_script']), 224 'FBP_FORCE_FACEBOOK_INIT' => fbp_checked($conf['fbp']['force_facebook_init']), 194 225 'FBP_PICTURE_URL_TYPE_OPTIONS' => $picture_url_type_l10n, 195 226 'FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED' => array_search($conf['fbp']['picture_url_type'], $picture_url_type), 196 'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> ($conf['fbp']['allow_fb_access_private_page'] ? 'checked="checked"' : ''), 197 'FBP_ADD_ABOUT_INFORMATIONS' => ($conf['fbp']['add_about_informations'] ? 'checked="checked"' : ''), 198 'FBP_ADD_GROUP_FOOTER' => ($conf['fbp']['add_group_footer'] ? 'checked="checked"' : ''), 199 'FBP_ADD_APPLICATION_FOOTER' => ($conf['fbp']['add_application_footer'] ? 'checked="checked"' : ''), 227 'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> fbp_checked($conf['fbp']['allow_fb_access_private_page']), 228 'FBP_ADD_ABOUT_INFORMATIONS' => fbp_checked($conf['fbp']['add_about_informations']), 229 'FBP_ADD_GROUP_FOOTER' => fbp_checked($conf['fbp']['add_group_footer']), 230 'FBP_ADD_APPLICATION_FOOTER' => fbp_checked($conf['fbp']['add_application_footer']), 231 )); 232 break; 233 } 234 case 'activity' : 235 { 236 $template->assign( 237 $page['tab'], 238 array( 200 239 )); 201 240 break; … … 216 255 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 217 256 218 219 257 ?> -
extensions/FacebookPlug/Plugin/css/fbp.css
r8275 r8386 1 #fb-xfbml- like-box {1 #fb-xfbml-activity-feed, #fb-xfbml-like-box { 2 2 margin-bottom: 0px; 3 3 margin-left: 10px; -
extensions/FacebookPlug/Plugin/include/conf.inc.php
r8375 r8386 42 42 'social_plugin_comments' => array(), 43 43 'social_plugin_like_box' => array(), 44 'social_plugin_activity_feed' => array(), 44 45 ), 45 46 unserialize($conf['fbp'])); … … 55 56 'colorscheme' => 'dark', 56 57 'width' => null, 58 'font' => null, 59 'ref' => null, 57 60 ), 58 61 $conf['fbp']['social_plugin_like_button']); … … 83 86 $conf['fbp']['social_plugin_comments']); 84 87 88 $conf['fbp']['social_plugin_activity_feed'] = array_merge( 89 // default values 90 array 91 ( 92 'enabled' => true, 93 'site' => null, 94 'colorscheme' => 'dark', 95 'recommendations' => false, 96 'header' => true, 97 'width' => 210, 98 'height' => null, 99 'border_color' => null, 100 'filter' => null, 101 'ref' => null, 102 ), 103 $conf['fbp']['social_plugin_activity_feed']); 104 85 105 $conf['fbp']['social_plugin_like_box'] = array_merge( 86 106 // default values … … 94 114 'header' => true, 95 115 'width' => 210, 116 'height' => null, 96 117 ), 97 118 $conf['fbp']['social_plugin_like_box']); -
extensions/FacebookPlug/Plugin/include/header.inc.php
r8375 r8386 61 61 (script_basename() == 'index') 62 62 and 63 ($conf['fbp']['social_plugin_ like_box']['enabled'])63 ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled']) 64 64 ) 65 65 { … … 72 72 global $conf; 73 73 74 //~ return $do_it or (script_basename() == 'about');75 74 return 76 75 $do_it … … 86 85 (script_basename() == 'index') 87 86 and 88 ($conf['fbp']['social_plugin_like_box']['enabled'] /*or $conf['fbp']['']['enabled'] or $conf['fbp']['']['enabled']*/) 87 ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled']) 88 ) 89 or 90 ( 91 (script_basename() == 'admin') 92 and 93 ($_GET['page'] == 'plugin') 94 and 95 (strtok($_GET['section'], '/') == 'FacebookPlug') 96 //~ ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled']) 89 97 ) 90 98 ) -
extensions/FacebookPlug/Plugin/include/index.inc.php
r8375 r8386 24 24 } 25 25 26 /*function fbp_loc_begin_index()27 {28 global $template;29 30 $template->set_filename('social.plugin.like.box', FBP_DIR.'/tpl/social.plugin.like.box.tpl');31 32 //~ $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_BEFORE', 'social.plugin.like.box');33 //~ $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_BEGIN', 'social.plugin.like.box');34 $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_END', 'social.plugin.like.box');35 //~ $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_AFTER', 'social.plugin.like.box');36 37 //~ $template->set_filename('social.plugin.like.box', FBP_DIR.'/tpl/social.plugin.like.box.tpl');38 //~ $content .= $template->parse('social.plugin.like.box', true);39 }*/40 41 26 function fbp_blockmanager_register_blocks( $menu_ref_arr ) 42 27 { 28 global $conf; 29 43 30 $menu = & $menu_ref_arr[0]; 44 31 if ($menu->get_id() != 'menubar') 45 32 return; 46 $menu->register_block(new RegisteredBlock( 'mbFBP', 'social.plugin.like.box', 'FacebookPlug')); 33 34 if ($conf['fbp']['social_plugin_activity_feed']['enabled']) 35 { 36 $menu->register_block(new RegisteredBlock('mbFBP_activity_feed', 'social.plugin.activity.feed', 'FacebookPlug')); 37 } 38 if ($conf['fbp']['social_plugin_like_box']['enabled']) 39 { 40 $menu->register_block(new RegisteredBlock('mbFBP_like_box', 'social.plugin.like.box', 'FacebookPlug')); 41 } 47 42 } 48 43 … … 52 47 53 48 $menu = & $menu_ref_arr[0]; 54 55 if ($block = $menu->get_block('mbFBP'))49 50 foreach (array('mbFBP_activity_feed', 'mbFBP_like_box') as $mbFBPId) 56 51 { 57 $template->set_template_dir(FBP_DIR.'/tpl/'); 58 $block->template = 'social.plugin.like.box.tpl'; 52 if ($block = $menu->get_block($mbFBPId)) 53 { 54 $template->set_template_dir(FBP_DIR.'/tpl/'); 55 $block->template = $block->get_block()->get_name().'.tpl'; 56 } 59 57 } 60 58 } 61 59 62 60 63 if ($conf['fbp']['social_plugin_ like_box']['enabled'])61 if ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled']) 64 62 { 65 //~ add_event_handler('loc_begin_index', 'fbp_loc_begin_index');66 63 add_event_handler('blockmanager_register_blocks', 'fbp_blockmanager_register_blocks', EVENT_HANDLER_PRIORITY_NEUTRAL); 67 64 add_event_handler('blockmanager_apply', 'fpt_blockmanager_apply'); -
extensions/FacebookPlug/Plugin/language/en_UK/admin.config.lang.php
r8375 r8386 81 81 $lang['Add Facebook Piwigo application on footer'] = 'Add Facebook Piwigo application on footer'; 82 82 $lang['Develop by'] = 'Develop by'; 83 $lang['Activity feed'] = 'Activity feed'; 84 $lang['Show recommendations'] = 'Show recommendations'; 85 $lang['Height'] = 'Height'; 86 $lang['Other options are available by programming'] = 'Other options are available by programming'; 87 $lang['Activity'] = 'Activity'; 88 //~ $lang[''] = ''; 89 //~ $lang[''] = ''; 90 //~ $lang[''] = ''; 91 //~ $lang[''] = ''; 92 //~ $lang[''] = ''; 93 //~ $lang[''] = ''; 94 //~ $lang[''] = ''; 95 //~ $lang[''] = ''; 96 //~ $lang[''] = ''; 97 //~ $lang[''] = ''; 83 98 //~ $lang[''] = ''; 84 99 //~ $lang[''] = ''; -
extensions/FacebookPlug/Plugin/language/fr_FR/admin.config.lang.php
r8375 r8386 81 81 $lang['Add Facebook Piwigo application on footer'] = 'Ajout de l\'application Piwigo de Facebook en bas de page'; 82 82 $lang['Develop by'] = 'Développer par'; 83 $lang['Activity feed'] = 'Flux d\'activité'; 84 $lang['Show recommendations'] = 'Voir les recommandations'; 85 $lang['Height'] = 'Hauteur'; 86 $lang['Other options are available by programming'] = 'D\'autres options sont disponibles par programmation'; 87 $lang['Activity'] = 'Activité'; 83 88 84 89 -
extensions/FacebookPlug/Plugin/tpl/admin.config.tpl
r8375 r8386 129 129 <h3>{'On menu of main pages'|@translate}</h3> 130 130 <fieldset> 131 <legend><a href="{$social_plugin.activity_feed.FB_PAGE}" onclick="window.open(this.href); return false;">{'Activity feed'|@translate}</a></legend> 132 <ul> 133 <li> 134 <label> 135 <span class="property">{'Enabled'|@translate}</span> 136 <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED" {$social_plugin.activity_feed.ENABLED} /> 137 </label> 138 </li> 139 140 <div id='activity_feed'> 141 <li> 142 <label> 143 <span class="property">{'Color scheme'|@translate}</span> 144 <select name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME" size="1"> 145 {html_options options=$social_plugin.activity_feed.COLORSCHEME_OPTIONS selected=$social_plugin.activity_feed.COLORSCHEME_OPTIONS_SELECTED} 146 </select> 147 </label> 148 </li> 149 <li> 150 <label> 151 <span class="property">{'Show header'|@translate}</span> 152 <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER" {$social_plugin.activity_feed.HEADER} /> 153 </label> 154 </li> 155 <li> 156 <label> 157 <span class="property">{'Show recommendations'|@translate}</span> 158 <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS" {$social_plugin.activity_feed.RECOMMENDATIONS} /> 159 </label> 160 </li> 161 <li> 162 <label> 163 <span class="property">{'Height'|@translate}</span> 164 <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT" value="{$social_plugin.activity_feed.HEIGHT}" /> 165 </label> 166 </li> 167 </div> 168 </ul> 169 </fieldset> 170 171 <fieldset> 131 172 <legend><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a></legend> 132 173 <ul> … … 171 212 </label> 172 213 </li> 214 <li> 215 <label> 216 <span class="property">{'Height'|@translate}</span> 217 <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT" value="{$social_plugin.like_box.HEIGHT}" /> 218 </label> 219 </li> 173 220 </div> 174 221 </ul> 175 222 </fieldset> 223 <p><i>{'Other options are available by programming'|@translate}</i></p> 176 224 {/if}{* isset $social_plugin*} 177 225 … … 251 299 {/if}{* isset $advanced*} 252 300 253 301 {if isset($activity)} 302 <center> 303 <div> 304 <fb:activity 305 width="550" 306 height="950" 307 recommendations="true" 308 header="true" 309 ></fb:activity> 310 </center> 311 {/if}{* isset $activity*} 312 313 {if ! isset($activity)} 254 314 <p> 255 315 <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> 256 316 <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> 257 317 </p> 318 {/if}{* isset $activity*} 258 319 259 320 <p> … … 326 387 init_checkbox("FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED", "facepile"); 327 388 init_checkbox("FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED", "comments"); 389 init_checkbox("FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED", "activity_feed"); 328 390 init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box"); 329 391 // Init message box -
extensions/FacebookPlug/Plugin/tpl/social.plugin.facepile.tpl
r8282 r8386 1 1 <div id="fb-xfbml-facepile"> 2 <fb:facepile href="{$fbp_url_picture}" width="{$fbp.social_plugin_facepile.width}" max_rows="{$fbp.social_plugin_facepile.max_rows}"></fb:facepile> 2 <fb:facepile 3 href="{$fbp_url_picture}" 4 width="{$fbp.social_plugin_facepile.width}" 5 max_rows="{$fbp.social_plugin_facepile.max_rows}" 6 ></fb:facepile> 3 7 </div> -
extensions/FacebookPlug/Plugin/tpl/social.plugin.like.box.tpl
r8275 r8386 2 2 <ul> 3 3 <div id="fb-xfbml-like-box"> 4 <fb:like-box href="{$fbp.social_plugin_like_box.url}" width="{$fbp.social_plugin_like_box.width}" show_faces="{$fbp.social_plugin_like_box.show_faces|@boolean_to_string}" stream="{$fbp.social_plugin_like_box.stream|@boolean_to_string}" header="{$fbp.social_plugin_like_box.header|@boolean_to_string}" colorscheme="{$fbp.social_plugin_like_box.colorscheme}"></fb:like-box> 4 <fb:like-box 5 href="{$fbp.social_plugin_like_box.url}" 6 width="{$fbp.social_plugin_like_box.width}" 7 height="{$fbp.social_plugin_like_box.height}" 8 show_faces="{$fbp.social_plugin_like_box.show_faces|@boolean_to_string}" 9 stream="{$fbp.social_plugin_like_box.stream|@boolean_to_string}" 10 header="{$fbp.social_plugin_like_box.header|@boolean_to_string}" 11 colorscheme="{$fbp.social_plugin_like_box.colorscheme}" 12 ></fb:like-box> 5 13 </div> 6 14 </ul> -
extensions/FacebookPlug/Plugin/tpl/social.plugin.like.button.tpl
r8282 r8386 1 1 <div id="fb-xfbml-like-button"> 2 <fb:like href="{$fbp_url_picture}" width="{$fbp.social_plugin_like_button.width}" layout="{$fbp.social_plugin_like_button.layout}" show_faces="{$fbp.social_plugin_like_button.show_faces|@boolean_to_string}" action="{$fbp.social_plugin_like_button.action}" colorscheme="{$fbp.social_plugin_like_button.colorscheme}"></fb:like> 2 <fb:like 3 href="{$fbp_url_picture}" 4 width="{$fbp.social_plugin_like_button.width}" 5 layout="{$fbp.social_plugin_like_button.layout}" 6 show_faces="{$fbp.social_plugin_like_button.show_faces|@boolean_to_string}" 7 action="{$fbp.social_plugin_like_button.action}" 8 colorscheme="{$fbp.social_plugin_like_button.colorscheme}" 9 font="{$fbp.social_plugin_like_button.font}" 10 ref="{$fbp.social_plugin_like_button.ref}" 11 ></fb:like> 3 12 </div>
Note: See TracChangeset
for help on using the changeset viewer.