Changeset 59
- Timestamp:
- 03/03/2009 10:23:57 PM (3 years ago)
- Location:
- trunk/WordPress/plugin/transposh
- Files:
-
- 2 edited
-
transposh.php (modified) (1 diff)
-
transposh_widget.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r58 r59 278 278 function insert_javascript_includes() 279 279 { 280 global $plugin_url; 280 global $plugin_url, $is_edit_mode, $wp_query; 281 282 if (!($wp_query->query_vars[EDIT_PARAM] == "1" || 283 $wp_query->query_vars[EDIT_PARAM] == "true")) 284 { 285 //check permission later - for now just make sure we don't load the 286 //js code when it is not needed 287 return; 288 } 289 281 290 282 291 $overlib_dir = "$plugin_url/js/overlibmws"; -
trunk/WordPress/plugin/transposh/transposh_widget.php
r46 r59 102 102 103 103 echo $before_widget . $before_title . __(no_translate("Transposh")) . $after_title; 104 echo "<span class=\"" . NO_TRANSLATE_CLASS . "\" >"; 105 104 106 105 switch ($options['style']) { 107 106 case 1: // flags 108 107 //keep the flags in the same direction regardless of the overall page direction 109 echo "<div dir=rtl>";110 108 echo "<div style=\"text-align: left;\" class=\"" . NO_TRANSLATE_CLASS . "\" >"; 109 111 110 global $plugin_url; 112 111 $using_permalinks = $wp_rewrite->using_permalinks(); … … 131 130 } 132 131 } 133 134 132 echo "</div>"; 135 133 … … 141 139 142 140 echo "<form action=\"$page_url\" method=\"post\">"; 141 echo "<span class=\"" . NO_TRANSLATE_CLASS . "\" >"; 143 142 echo "<select name=\"lang\" id=\"lang\" onchange=\"Javascript:this.form.submit();\">"; 144 143 echo "<option value=\"none\">[Language]</option>"; … … 153 152 { 154 153 $is_selected = ($lang == $code ? "selected=\"selected\"" : "" ); 155 echo "<option value=\"$code\" $is_selected>" . no_translate($language). "</option>";154 echo "<option value=\"$code\" $is_selected>" . $language . "</option>"; 156 155 $is_showing_languages = TRUE; 157 156 } 158 157 } 159 158 echo "</select><br/>"; 159 echo "</span>"; // the no_translate for the language list 160 160 } 161 161 … … 169 169 echo "<input type=\"checkbox\" name=\"" . EDIT_PARAM . "\" value=\"1\"" . 170 170 ($is_edit ? "checked=\"1\"" : "0") . 171 "\" onClick=\"this.form.submit();\"/> Edit Translation<br/>";171 "\" onClick=\"this.form.submit();\"/> Edit Translation"; 172 172 } 173 173 … … 181 181 182 182 echo "</form>"; 183 echo "</span>"; // the no_translate for the widget184 183 185 184 echo $after_widget;
Note: See TracChangeset
for help on using the changeset viewer.
