From ad47f59b1c17bd95f8299a93efbf1450867642ef Mon Sep 17 00:00:00 2001 From: Abu Ashraf Masnun Date: Fri, 11 Nov 2011 20:32:30 +0600 Subject: [PATCH] Image Preloader --- avro-phonetic.php | 243 ++++++++++++++++++++++++---------------------- 1 file changed, 127 insertions(+), 116 deletions(-) diff --git a/avro-phonetic.php b/avro-phonetic.php index bbe0763..ed53e82 100644 --- a/avro-phonetic.php +++ b/avro-phonetic.php @@ -1,106 +1,104 @@ Avro Phonetic WP Plugin '; -} - -function avro_phonetic_register_widget() -{ - register_widget("AvroPhoneticWidget"); -} - -function avro_phonetic_styles_admin() -{ - ?> + /** + * @package Avro Phonetic WP Plugin + * @version 1.1 + */ + /* + Plugin Name: Avro Phonetic WP Plugin + Plugin URI: http://www.masnun.me/2011/11/11/avro-phonetic-wp-plugin.html + Description: Adds Avro Phonetic to all your text inputs + Author: Masnun + Version: 1.1 + Author URI: http://masnun.com + */ + + //Admin Section + add_action('admin_head', 'avro_phonetic_styles_admin'); + add_action('admin_head', 'avro_phonetic'); + add_action('admin_footer', 'avro_phonetic_notif'); + add_action('admin_footer', 'avro_phonetic_hidden_div'); + + // Blog View + add_action("widgets_init", "avro_phonetic_register_widget"); + + add_action('wp_head', 'avro_phonetic_styles'); + add_action('wp_head', 'avro_phonetic'); + add_action('wp_footer', 'avro_phonetic_notif'); + add_action('wp_footer', 'avro_phonetic_hidden_div'); + + function avro_phonetic_disclaimer() + { + echo 'Bangla input is proudly powered by Avro Phonetic WP Plugin '; + } + + function avro_phonetic_register_widget() + { + register_widget("AvroPhoneticWidget"); + } + + function avro_phonetic_styles_admin() + { + ?> + function avro_phonetic_styles() + { + ?> E'; -} + function avro_phonetic_notif() + { + echo '
E
'; + } -function avro_phonetic_hidden_div() -{ - echo ''; -} + function avro_phonetic_hidden_div() + { + echo ''; + } -function avro_phonetic() -{ - ?> + function avro_phonetic() + { + ?> "AvroPhoneticWidget", - "description" => "Adds Avro Phonetic Layout" - ); - $this->WP_Widget('AvroPhoneticWidget', 'Avro Phonetic', $widget_ops); - } + function AvroPhoneticWidget() + { + $widget_ops = array( + "classname" => "AvroPhoneticWidget", + "description" => "Adds Avro Phonetic Layout" + ); + $this->WP_Widget('AvroPhoneticWidget', 'Avro Phonetic', $widget_ops); + } - function widget($args, $instance) - { - extract($args); - echo $before_widget; - echo $before_title; - echo 'অ'; - echo $after_title; - echo "The blog supports Avro Phonetic. Press Ctrl + M to switch keyboard.
"; - avro_phonetic_disclaimer(); - echo $after_widget; - } + function widget($args, $instance) + { + extract($args); + echo $before_widget; + echo $before_title; + echo 'অ'; + echo $after_title; + echo "The blog supports Avro Phonetic. Press Ctrl + M to switch keyboard.
"; + avro_phonetic_disclaimer(); + echo $after_widget; + } -} + }