- Timestamp:
- 11/27/2011 07:27:39 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/wp/transposh_widget.php
r680 r681 84 84 $this->WP_Widget('transposh', __('Transposh'), $widget_ops, $control_ops); 85 85 86 add_action('widgets_init', create_function('', 'register_widget("transposh_plugin_widget");')); 87 86 88 // We only need to add those actions once, makes life simpler 87 89 if (is_active_widget(false, false, $this->id_base) && self::$first_init) { 88 90 self::$first_init = false; 89 add_action('widgets_init', create_function('', 'register_widget("transposh_plugin_widget");'));90 91 add_action('wp_print_styles', array(&$this, 'add_transposh_widget_css')); 91 92 add_action('wp_print_scripts', array(&$this, 'add_transposh_widget_js')); … … 152 153 function add_transposh_widget_css() { 153 154 // first we discover all active widgets of ours, and aggregate the files 155 $activewidgets = array(); 154 156 $settings = $this->get_settings(); 155 157 foreach ($settings as $key => $value) { … … 171 173 */ 172 174 function add_transposh_widget_js() { 175 $activewidgets = array(); 173 176 $settings = $this->get_settings(); 174 177 foreach ($settings as $key => $value) {
Note: See TracChangeset
for help on using the changeset viewer.
