PluginProbe ʕ •ᴥ•ʔ
Translate WordPress – Google Language Translator / 3.0.3
Translate WordPress – Google Language Translator v3.0.3
trunk 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.7 4.0.8 4.0.9 5.0 5.0.0 5.0.01 5.0.02 5.0.03 5.0.04 5.0.05 5.0.06 5.0.07 5.0.08 5.0.09 5.0.10 5.0.11 5.0.12 5.0.13 5.0.14 5.0.15 5.0.16 5.0.17 5.0.18 5.0.19 5.0.20 5.0.21 5.0.22 5.0.23 5.0.24 5.0.25 5.0.26 5.0.27 5.0.28 5.0.29 5.0.30 5.0.31 5.0.32 5.0.33 5.0.34 5.0.35 5.0.36 5.0.37 5.0.38 5.0.39 5.0.40 5.0.41 5.0.42 5.0.43 5.0.44 5.0.45 5.0.46 5.0.47 5.0.48 5.0.49 6.0.0 6.0.1 6.0.10 6.0.11 6.0.12 6.0.13 6.0.14 6.0.15 6.0.16 6.0.19 6.0.2 6.0.20 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 6.0.8 6.0.9
google-language-translator / glt_widget.php
google-language-translator Last commit date
css 12 years ago images 12 years ago admin.js 12 years ago flags.js 12 years ago glt_activate.php 12 years ago glt_css.php 12 years ago glt_horizontal.php 12 years ago glt_scripts.php 12 years ago glt_vertical.php 12 years ago glt_widget.php 12 years ago google-language-translator.php 12 years ago readme.txt 12 years ago
glt_widget.php
30 lines
1 <?php
2
3 add_action( 'widgets_init', create_function( '', 'register_widget( "Google_Language_Translator" );' ) );
4
5 class Google_Language_Translator extends WP_Widget {
6
7 public function __construct() {
8 parent::__construct(
9 'bapi_google_translate', // Base ID
10 'Google Language Translator', // Name
11 array( 'description' => __( 'Go to Settings > Google Language Translator to configure this widget.', 'text_domain' ), ) // Args
12 );
13 }
14
15 public function widget( $args, $instance ) {
16
17 $title = null;
18
19 extract( $args );
20
21 if (! empty( $instance['title'] ) ) { $title = apply_filters('widget_title', $instance['title'] ); }
22
23
24 echo $before_widget;
25 echo google_translator_shortcode();
26 echo $after_widget;
27 }
28
29 } // class Google_Translate_Widget
30 ?>