-
Notifications
You must be signed in to change notification settings - Fork 0
/
atbar.php
34 lines (27 loc) · 1.05 KB
/
atbar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
Plugin Name: ATbar
Plugin URI: http://www.atbar.org
Description: ATbar is a cross browser accessibility toolbar which can be added to a user's browser or alternatively, for developers, the toolbar launcher can be embedded on a website.
Version: 3.3
Author: Magnus P White
Author Email: admin@atbar.org
Author URI: http://www.atbar.org
*/
// registure plugin with Wordpress
add_action('admin_menu', 'atbar_register_settings');
add_action('admin_menu', 'atbar_add_options');
// adds functions & widget class
include_once ('functions/functions.php');
include_once ('functions/atbarwidget.class.php');
// add options menu
include(dirname(__FILE__).'/options.php');
// adds css to header
add_action('wp_print_styles', 'atbar_css');
// adds the toolbar itself
add_action('the_post', 'add_toolbar');
// adds ATbar widget
add_action( 'widgets_init', create_function( '', 'register_widget( "atbar_widget" );' ) );
// add ATbar shortcode - type [atbar] (uses the same settings as the other launchers - edit in settings)
add_shortcode('atbar','shortcode_launcher');
?>