Changeset 8298 for extensions/FacebookPlug/Plugin
- Timestamp:
- Dec 24, 2010, 7:23:54 PM (14 years ago)
- Location:
- extensions/FacebookPlug/Plugin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/admin.config.php
r8295 r8298 93 93 case 'advanced' : 94 94 { 95 $conf['fbp']['facebook_app_id'] = $_POST['FBP_FACEBOOK_APP_ID']; 95 96 $conf['fbp']['async_script'] = empty($_POST['FBP_ASYNC_SCRIPT']) ? false : true; 96 97 $conf['fbp']['picture_url_type'] = $picture_url_type[$_POST['FBP_PICTURE_URL_TYPE']]; … … 172 173 $page['tab'], 173 174 array( 174 'FBP_ASYNC_SCRIPT'=> ($conf['fbp']['async_script'] ? 'checked="checked"' : ''), 175 'FBP_FACEBOOK_APP_ID' => $conf['fbp']['facebook_app_id'], 176 'FBP_ASYNC_SCRIPT' => ($conf['fbp']['async_script'] ? 'checked="checked"' : ''), 175 177 'FBP_PICTURE_URL_TYPE_OPTIONS' => $picture_url_type_l10n, 176 178 'FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED' => array_search($conf['fbp']['picture_url_type'], $picture_url_type), -
extensions/FacebookPlug/Plugin/include/conf.inc.php
r8295 r8298 30 30 array 31 31 ( 32 'facebook_app_id' => null, 32 33 'async_script' => false, 33 34 'picture_url_type' => 'page', … … 68 69 ( 69 70 'enabled' => false, 70 'numposts' => 5,71 'numposts' => 3, 71 72 'css' => null, 72 73 'title' => null, -
extensions/FacebookPlug/Plugin/include/header.inc.php
r8275 r8298 26 26 function fbp_header($content, &$smarty) 27 27 { 28 global $conf;29 30 28 // replace tag html 31 29 $search = '<html '; … … 42 40 function fbp_init() 43 41 { 44 global $template, $ user, $page, $conf, $picture;42 global $template, $conf, $user; 45 43 46 44 // set prefilter 47 45 $template->set_prefilter('header', 'fbp_header'); 48 46 49 $template->assign('FACEBOOK_APP_ID', FACEBOOK_APP_ID);47 $template->assign('FACEBOOK_APP_ID', (is_numeric($conf['fbp']['facebook_app_id']) ? $conf['fbp']['facebook_app_id'] : FACEBOOK_APP_ID)); 50 48 // define language 51 49 $template->assign('LANGUAGE', $user['language']); -
extensions/FacebookPlug/Plugin/language/en_UK/plugin.lang.php
r8295 r8298 62 62 $lang['Reverse'] = 'Reverse'; 63 63 $lang['Publish feed'] = 'Publish feed'; 64 //~ $lang[''] = '';64 $lang['Facebook application identifient'] = 'Facebook application identifient'; 65 65 66 66 ?> -
extensions/FacebookPlug/Plugin/language/fr_FR/plugin.lang.php
r8295 r8298 62 62 $lang['Reverse'] = 'Ordre inversé'; 63 63 $lang['Publish feed'] = 'Publier les commentaires'; 64 $lang['Facebook application identifient'] = 'Identifiant de l\'application Facebook'; 64 65 65 66 ?> -
extensions/FacebookPlug/Plugin/tpl/admin.config.tpl
r8295 r8298 169 169 <fieldset> 170 170 <ul> 171 <li> 172 <label> 173 <span class="property">{'Facebook application identifient'|@translate}</span> 174 <input type="text" size="15" name="FBP_FACEBOOK_APP_ID" value="{$advanced.FBP_FACEBOOK_APP_ID}" /> 175 </label> 176 </li> 171 177 {* <li> 172 178 <label> … … 174 180 <input type="checkbox" name="FBP_ASYNC_SCRIPT" {$advanced.FBP_ASYNC_SCRIPT} /> 175 181 </label> 176 </li> 177 *} 182 </li>*} 178 183 <li> 179 184 <label>
Note: See TracChangeset
for help on using the changeset viewer.