Changeset 10986 for extensions/SmiliesSupport/main.inc.php
- Timestamp:
- May 22, 2011, 12:48:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmiliesSupport/main.inc.php
r9966 r10986 2 2 /* 3 3 Plugin Name: Smilies Support 4 Version: 2.2.a4 Version: auto 5 5 Description: Allow add Smilies for comments and descriptions. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=159 … … 19 19 20 20 function add_smiliessupport() { 21 22 23 24 25 26 27 21 global $page, $pwg_loaded_plugins; 22 23 if (!isset($pwg_loaded_plugins['bbcode_bar']) 24 AND isset($page['body_id']) AND $page['body_id'] == 'thePicturePage') 25 { 26 set_smiliessupport(); 27 } 28 28 } 29 29 30 30 if (script_basename() == 'admin') 31 31 { 32 33 34 35 36 37 38 39 32 add_event_handler('get_admin_plugin_menu_links', 'smiliessupport_admin_menu'); 33 function smiliessupport_admin_menu($menu) 34 { 35 array_push($menu, array( 36 'NAME' => 'Smilies Support', 37 'URL' => get_root_url().'admin.php?page=plugin-' . SMILIES_DIR)); 38 return $menu; 39 } 40 40 } 41 41 ?>
Note: See TracChangeset
for help on using the changeset viewer.