Changeset 512 for trunk/WordPress/plugin/transposh/wp/transposh_widget.php
- Timestamp:
- 08/23/2010 03:25:08 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/wp/transposh_widget.php
r500 r512 86 86 87 87 // Register widget 88 register_sidebar_widget(array('Transposh', 'widgets'), array(&$this, 'transposh_widget'));88 wp_register_sidebar_widget('Transposh','Transposh', array(&$this, 'transposh_widget'), array( 'description' => __('Transposh language selection widget') )); 89 89 90 90 // Register widget control 91 register_widget_control("Transposh", array(&$this, 'transposh_widget_control'));91 wp_register_widget_control('Transposh','Transposh', array(&$this, 'transposh_widget_control')); 92 92 93 93 // Register callback for widget's css and js … … 120 120 $this->load_widget(); 121 121 122 if (function_exists( tp_widget_css)) {122 if (function_exists('tp_widget_css')) { 123 123 tp_widget_css(); 124 124 } else { … … 138 138 $this->load_widget(); 139 139 140 if (function_exists( tp_widget_js)) {140 if (function_exists('tp_widget_js')) { 141 141 tp_widget_js(); 142 142 } else { … … 158 158 // hmmm, this should actually prepare all vars needed, include the correct widget and send the vars to that function, 159 159 $calc_url = false; // By default, avoid calculating the urls 160 if (function_exists( tp_widget_needs_post_url))160 if (function_exists('tp_widget_needs_post_url')) 161 161 $calc_url = tp_widget_needs_post_url(); 162 162
Note: See TracChangeset
for help on using the changeset viewer.
