Changeset 754
- Timestamp:
- 12/09/2012 01:06:01 AM (5 months ago)
- Location:
- trunk/WordPress/plugin/transposh
- Files:
-
- 2 edited
-
transposh.php (modified) (1 diff)
-
wp/transposh_widget.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r753 r754 1122 1122 return $translation; 1123 1123 } 1124 tp_logger("($translation, $orig, $domain)", 4);1124 tp_logger("($translation, $orig, $domain)", 5); 1125 1125 // HACK - TODO - FIX 1126 1126 if (in_array($domain, transposh_consts::$ignored_po_domains)) -
trunk/WordPress/plugin/transposh/wp/transposh_widget.php
r753 r754 39 39 */ 40 40 static function tp_widget_css($file, $plugin_dir, $plugin_url) { 41 tp_logger('looking for css:' . $file, 4); 41 42 $basefile = substr($file, 0, -4); 42 43 $widget_css = TRANSPOSH_DIR_WIDGETS . '/' . $basefile . ".css"; … … 53 54 */ 54 55 static function tp_widget_js($file, $plugin_dir, $plugin_url) { 56 tp_logger('looking for js:' . $file, 4); 55 57 $basefile = substr($file, 0, -4); 56 58 $widget_js = TRANSPOSH_DIR_WIDGETS . '/' . $basefile . ".js"; … … 89 91 if (is_active_widget(false, false, $this->id_base) && self::$first_init) { 90 92 self::$first_init = false; 91 add_action('wp_print_styles', array(&$this, 'add_transposh_widget_css')); 92 add_action('wp_print_scripts', array(&$this, 'add_transposh_widget_js')); 93 if (!is_admin()) { 94 add_action('wp_print_styles', array(&$this, 'add_transposh_widget_css')); 95 add_action('wp_print_scripts', array(&$this, 'add_transposh_widget_js')); 96 } 93 97 } 94 98 } … … 139 143 */ 140 144 function load_widget($file) { 145 tp_logger("widget loaded: $file", 4); 141 146 $widget_src = $this->transposh->transposh_plugin_dir . TRANSPOSH_DIR_WIDGETS . '/' . $file; 142 147 if ($file && file_exists($widget_src)) {
Note: See TracChangeset
for help on using the changeset viewer.
