Changeset 9795 for extensions/FacebookPlug/Plugin
- Timestamp:
- Mar 20, 2011, 7:05:17 PM (14 years ago)
- Location:
- extensions/FacebookPlug/Plugin
- Files:
-
- 3 edited
- 9 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/admin.php
r9792 r9795 28 28 29 29 // Lingua 30 load_language('admin. config.lang', FBP_DIR.'/');30 load_language('admin.lang', FBP_DIR.'/'); 31 31 32 32 // Arguments … … 34 34 35 35 // Data 36 $base_url = get_admin_plugin_menu_link(__FILE__); 36 //~ $base_url = get_admin_plugin_menu_link(__FILE__); 37 $base_url = get_root_url().'admin.php?page=plugin-'.FBP_PLUGIN_NAME.'-'; 37 38 $picture_url_type = array('page', 'image'); 38 39 $picture_url_type_l10n = array_map('l10n', $picture_url_type); … … 49 50 $tabsheet->add('social_plugin', 50 51 l10n('Social plugins'), 51 add_url_params($base_url, array('tab' => 'social_plugin'))); 52 //add_url_params($base_url, array('tab' => 'social_plugin'))); 53 $base_url.'social_plugin'); 52 54 $tabsheet->add('button', 53 55 l10n('Buttons'), 54 add_url_params($base_url, array('tab' => 'button'))); 56 //add_url_params($base_url, array('tab' => 'button'))); 57 $base_url.'button'); 55 58 $tabsheet->add('advanced', 56 59 l10n('Advanced'), 57 add_url_params($base_url, array('tab' => 'advanced'))); 60 //add_url_params($base_url, array('tab' => 'advanced'))); 61 $base_url.'advanced'); 58 62 $tabsheet->add('activity', 59 63 l10n('Activity'), 60 add_url_params($base_url, array('tab' => 'activity'))); 64 //add_url_params($base_url, array('tab' => 'activity'))); 65 $base_url.'activity'); 61 66 $tabsheet->select($page['tab']); 62 67 $tabsheet->assign(); … … 264 269 265 270 // Global value 266 $template->assign('FBP_ACTION', add_url_params($base_url, array('tab' => $page['tab'])));267 //~ $template->block_html_head('', '<link rel="stylesheet" type="text/css" href="'.FBP_PATH.'/css/admin.config.css">', $smarty, $repeat);271 //~ $template->assign('FBP_ACTION', add_url_params($base_url, array('tab' => $page['tab']))); 272 $template->assign('FBP_ACTION', $base_url.$page['tab']); 268 273 $template->assign('FACEBOOK_PIWIGO_RUB_URL', FACEBOOK_PIWIGO_RUB_URL); 269 274 $template->assign('FACEBOOK_PIWIGO_GROUP_URL', FACEBOOK_PIWIGO_GROUP_URL); … … 272 277 273 278 //Apply tpl 274 $template->set_filename('fbp_plugin_admin_content', FBP_DIR.'/tpl/admin. config.tpl');279 $template->set_filename('fbp_plugin_admin_content', FBP_DIR.'/tpl/admin.tpl'); 275 280 $template->assign_var_from_handle('ADMIN_CONTENT', 'fbp_plugin_admin_content'); 276 281 -
extensions/FacebookPlug/Plugin/include/admin.inc.php
r8425 r9795 30 30 array( 31 31 'NAME' => 'FacebookPlug', 32 'URL' => get_admin_plugin_menu_link( 33 FBP_DIR.'/admin.config.php') 32 'URL' => get_root_url().'admin.php?page=plugin-'.FBP_PLUGIN_NAME 33 /*'URL' => get_admin_plugin_menu_link( 34 FBP_DIR.'/admin.config.php')*/ 34 35 ) 35 36 ); -
extensions/FacebookPlug/Plugin/include/constants.inc.php
r8440 r9795 38 38 define('FBP_DIR', dirname(dirname(__FILE__))); 39 39 define('FBP_PATH' , PHPWG_PLUGINS_PATH.basename(FBP_DIR)); 40 define('FBP_PLUGIN_NAME', basename(dirname(dirname(__FILE__)))); 40 41 define('FBP_IP_FB', '66.220.'); 41 42 -
extensions/FacebookPlug/Plugin/include/header.inc.php
r8667 r9795 121 121 ) 122 122 { 123 $template-> block_html_head('', '<link rel="stylesheet" type="text/css" href="'.FBP_PATH.'/css/fbp.css">', $smarty, $repeat);123 $template->func_combine_css(array('path' => FBP_PATH.'/css/fbp.css'), $smarty); 124 124 } 125 125 } … … 149 149 (script_basename() == 'admin') 150 150 and 151 (isset($_GET['page']) and $_GET['page'] == 'plugin') 152 and 153 (isset($_GET['section']) and strtok($_GET['section'], '/') == 'FacebookPlug') 151 ( 152 (isset($_GET['page']) and preg_match('/^plugin-FacebookPlug(?:-(.*))?$/', $_GET['page'])) 153 or 154 ( 155 (isset($_GET['page']) and $_GET['page'] == 'plugin') 156 and 157 (isset($_GET['section']) and strtok($_GET['section'], '/') == 'FacebookPlug') 158 ) 159 ) 154 160 ) 155 161 ) -
extensions/FacebookPlug/Plugin/tpl/admin.tpl
r9792 r9795 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 3 {known_script id="jquery.ui.dialog" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.dialog.packed.js"} 4 {known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.tipTip.minified.js" } 5 6 {html_head} 7 <link rel="stylesheet" type="text/css" href="{$FBP_PATH|@cat:'/css/admin.config.css'}"> 8 {/html_head} 1 {combine_script id="jquery.tipTip" path='themes/default/js/plugins/jquery.tipTip.minified.js' load='async'} 2 3 {combine_css path=$FBP_PATH|@cat:"/css/admin.css"} 4 {combine_css path="plugins/FacebookPlug/css/admin.css"} 9 5 10 6 <div class="titrePage"> … … 362 358 {*<div id="dialog_modal_can_close" title="{'Informations'|@translate}">{'Data are modified but not saved! Are you sure to quit this tabsheet?'|@translate}</div>*} 363 359 360 {footer_script require='jquery.ui.dialog,jquery.tipTip'} 364 361 {literal} 365 <script type="text/javascript">366 362 function show_hide(checkbox_name, div_name) 367 363 { … … 466 462 {literal} 467 463 }); 468 </script>469 464 {/literal} 470 465 {/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.