diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-content/plugins/add-to-any/add-to-any-wp-widget.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/plugins/add-to-any/add-to-any-wp-widget.php Mon Nov 19 18:26:13 2012 +0100 @@ -0,0 +1,65 @@ + 'Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, StumbleUpon, Digg and many more.'), array('width' => 400)); + } + + /** Backwards compatibility for A2A_SHARE_SAVE_Widget::display(); usage */ + function display( $args = false ) { + self::widget($args, NULL); + } + + /** @see WP_Widget::widget */ + function widget($args = array(), $instance) { + + global $A2A_SHARE_SAVE_plugin_url_path; + + $defaults = array( + 'before_widget' => '', + 'after_widget' => '', + 'before_title' => '', + 'after_title' => '', + ); + + $args = wp_parse_args( $args, $defaults ); + extract( $args ); + $title = apply_filters('widget_title', $instance['title']); + + echo $before_widget; + + if ($title) { + echo $before_title . $title . $after_title; + } + + ADDTOANY_SHARE_SAVE_KIT(array( + "use_current_page" => TRUE + )); + + echo $after_widget; + } + + /** @see WP_Widget::update */ + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + /** @see WP_Widget::form */ + function form($instance) { + $title = (isset($instance) && isset($instance['title'])) ? esc_attr($instance['title']) : ''; + ?> +

+ + +

+

+ ... +

+