- Add: Plugin Widget to define where the reference container shall appear when set to "widget area"
- Update: Translation for new settings and for the Widget description git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@920341 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
b7af8ff042
commit
e6a31532e0
10 changed files with 216 additions and 95 deletions
|
@ -53,6 +53,8 @@ require_once(dirname(__FILE__) . "/includes/replacer.php");
|
|||
require_once(dirname(__FILE__) . "/classes/footnotes.php");
|
||||
/* require plugin settings class */
|
||||
require_once(dirname(__FILE__) . "/classes/footnotes_settings.php");
|
||||
/* require plugin widget class */
|
||||
require_once(dirname(__FILE__) . "/classes/footnotes_widget.php");
|
||||
|
||||
/* register functions for the footnote replacement */
|
||||
footnotes_RegisterReplacementFunctions();
|
||||
|
@ -82,6 +84,9 @@ add_action('plugins_loaded', 'footnotes_load_language');
|
|||
$l_str_plugin_file = FOOTNOTES_PLUGIN_DIR_NAME . '/index.php';
|
||||
add_filter("plugin_action_links_{$l_str_plugin_file}", 'footnotes_plugin_settings_link', 10, 2);
|
||||
|
||||
/* register footnotes widget */
|
||||
add_action('widgets_init', create_function('', 'return register_widget("Class_FootnotesWidget");'));
|
||||
|
||||
/* initialize an object of the plugin class */
|
||||
global $g_obj_FootnotesPlugin;
|
||||
|
||||
|
|
Reference in a new issue