Changeset 3105985
- Timestamp:
- 06/22/2024 10:58:09 AM (5 weeks ago)
- Location:
- wp-multilang/trunk
- Files:
-
- 15 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-multilang/trunk/assets/styles/admin/admin.css
r3092152 r3105985 161 161 } 162 162 163 .edit-post-header-toolbar, .edit-widgets-header__navigable-toolbar-wrapper {163 .edit-post-header-toolbar, .edit-widgets-header__navigable-toolbar-wrapper { 164 164 margin-left: 48px !important; 165 165 } 166 .edit-post-header-toolbar .wpm-language-switcher, .edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher {166 .edit-post-header-toolbar .wpm-language-switcher, .edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher { 167 167 position: absolute; 168 168 left: 10px; 169 169 } 170 .edit-post-header-toolbar .wpm-language-switcher .lang-main, .edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher .lang-main {170 .edit-post-header-toolbar .wpm-language-switcher .lang-main, .edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher .lang-main { 171 171 padding-left: 10px; 172 172 padding-right: 10px; 173 173 line-height: 36px; 174 174 } 175 .edit-post-header-toolbar .wpm-language-switcher .lang-main img, .edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher .lang-main img {175 .edit-post-header-toolbar .wpm-language-switcher .lang-main img, .edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher .lang-main img { 176 176 top: 2px; 177 177 } 178 .edit-post-header-toolbar .lang-dropdown, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown {178 .edit-post-header-toolbar .lang-dropdown, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown { 179 179 position: absolute; 180 180 top: 100%; … … 184 184 z-index: 1; 185 185 } 186 .edit-post-header-toolbar .lang-dropdown ul, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul {186 .edit-post-header-toolbar .lang-dropdown ul, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul { 187 187 list-style: none; 188 188 } 189 .edit-post-header-toolbar .lang-dropdown ul a, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a {189 .edit-post-header-toolbar .lang-dropdown ul a, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a { 190 190 padding: 10px; 191 191 display: block; 192 192 } 193 .edit-post-header-toolbar .lang-dropdown ul a:hover, .edit-post-header-toolbar .lang-dropdown ul a:focus, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:hover, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:focus {193 .edit-post-header-toolbar .lang-dropdown ul a:hover, .edit-post-header-toolbar .lang-dropdown ul a:focus, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:hover, .edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:focus { 194 194 background-color: #ccc; 195 195 } -
wp-multilang/trunk/assets/styles/admin/admin.min.css
r3092152 r3105985 1 .wpm-language-switcher{left:48px;padding-right:0;text-align:center}.wpm-hide,.wpm-language-switcher .lang-dropdown,.wpm-language-switcher:before,.wrap.wpm .hidden_option{display:none}.wpm-language-switcher *{box-sizing:border-box}.lang-dropdown li a,.wpm-language-switcher:hover .lang-dropdown{display:block}.wpm-language-switcher .lang-main{line-height:41px}.wpm-language-switcher .lang-main img{position:relative;top:-1px}.lang-dropdown{background-color:#fff}.lang-dropdown ul{margin-bottom:0;margin-top:0}.lang-dropdown li{margin-bottom:0}.lang-dropdown li a:hover{background-color:#f3f3f5}#wp-admin-bar-wpm-language-switcher-default .ab-item{height:32px!important;line-height:32px!important}#wp-admin-bar-wpm-language-switcher-default .ab-item .ab-label{color:#eee!important}#wp-admin-bar-wpm-language-switcher-default .ab-item:focus .ab-label,#wp-admin-bar-wpm-language-switcher-default .ab-item:hover .ab-label{color:#00b9eb!important}@media screen and (max-width:782px){#wp-toolbar>ul>#wp-admin-bar-wpm-language-switcher{display:block}#wp-admin-bar-wpm-language-switcher-default .ab-item{min-width:20px!important;padding:0!important}#wp-admin-bar-wpm-language-switcher .ab-icon,#wp-admin-bar-wpm-language-switcher-default .ab-icon{line-height:20px!important}.language-switcher{padding-top:0}.language-switcher a{margin-top:0!important}.edit-post-header-toolbar .wpm-language-switcher{left:10px;margin-left:0!important}}.language-switcher{left:0;position:absolute;top:0}.screen-meta-toggle{z-index:1}.wpm-languages .language-status{position:absolute;top:5px;right:40px;font-size:13px;line-height:26px;height:28px;display:inline-block}.wpm-languages .language-order{font-weight:400;display:inline-block;width:20px;height:20px;line-height:20px;border:1px solid #ccc;border-radius:50px;margin-right:10px;text-align:center}.wpm-languages .prefix{font-weight:400;margin-left:5px}.js-wpm-action+.error,.js-wpm-action+.success{font-style:italic;display:inline-block;margin-left:10px;line-height:26px;font-weight:700}.wp-core-ui .button-link.delete-language,.wpm-query-error{color:red}.wpm-languages{max-width:600px}.wpm-flags{width:160px}.select2-results__option img,.select2-selection__rendered img{margin-right:5px;margin-left:5px}.languagechecklist li{margin:0;padding:0;line-height:22px;word-wrap:break-word}#customize-controls .wpm-language-switcher{display:block;position:absolute;top:0;width:45px;height:41px;padding:0 2px 0 0;background-color:#eee;border:none;border-top:4px solid #eee;border-right:1px solid #ddd;color:#444;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;box-sizing:content-box}#customize-controls .wpm-language-switcher:focus,#customize-controls .wpm-language-switcher:hover{background-color:#fff;color:#0073aa;border-top-color:#0073aa;outline:0;box-shadow:none}.edit-post-header-toolbar,.edit-widgets-header__navigable-toolbar-wrapper{margin-left:48px!important}.edit-post-header-toolbar .wpm-language-switcher,.edit- widgets-header__navigable-toolbar-wrapper .wpm-language-switcher{position:absolute;left:10px}.edit-post-header-toolbar .wpm-language-switcher .lang-main,.edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher .lang-main{padding-left:10px;padding-right:10px;line-height:36px}.edit-post-header-toolbar .wpm-language-switcher .lang-main img,.edit-widgets-header__navigable-toolbar-wrapper .wpm-language-switcher .lang-main img{top:2px}.edit-post-header-toolbar .lang-dropdown,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown{position:absolute;top:100%;left:0;background-color:#fff;border:1px solid #ccc;z-index:1}.edit-post-header-toolbar .lang-dropdown ul,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul{list-style:none}.edit-post-header-toolbar .lang-dropdown ul a,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a{padding:10px;display:block}.edit-post-header-toolbar .lang-dropdown ul a:focus,.edit-post-header-toolbar .lang-dropdown ul a:hover,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:focus,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:hover{background-color:#ccc}.gutenberg .languagechecklist{list-style:none!important}.js-wpm-action+.spinner{float:none}.js-wpm-action+.success{color:#46b450}.js-wpm-action+.error{color:red}#delete_localization+.spinner,#qts_import+.spinner{vertical-align:top}.column-languages{width:100px}.wpm-support-label{margin-top:4px;float:left;width:70px;font-size:14px}.wpm-star-mark{color:red;margin-left:4px;font-weight:700}.wpm-query-success{color:#46b450}.wpm-upgrade-pro-btn,.wpm-upgrade-pro-btn:hover{background-color:#0099e7;color:#fff;border:1px solid #0099e7;font-weight:500}1 .wpm-language-switcher{left:48px;padding-right:0;text-align:center}.wpm-hide,.wpm-language-switcher .lang-dropdown,.wpm-language-switcher:before,.wrap.wpm .hidden_option{display:none}.wpm-language-switcher *{box-sizing:border-box}.lang-dropdown li a,.wpm-language-switcher:hover .lang-dropdown{display:block}.wpm-language-switcher .lang-main{line-height:41px}.wpm-language-switcher .lang-main img{position:relative;top:-1px}.lang-dropdown{background-color:#fff}.lang-dropdown ul{margin-bottom:0;margin-top:0}.lang-dropdown li{margin-bottom:0}.lang-dropdown li a:hover{background-color:#f3f3f5}#wp-admin-bar-wpm-language-switcher-default .ab-item{height:32px!important;line-height:32px!important}#wp-admin-bar-wpm-language-switcher-default .ab-item .ab-label{color:#eee!important}#wp-admin-bar-wpm-language-switcher-default .ab-item:focus .ab-label,#wp-admin-bar-wpm-language-switcher-default .ab-item:hover .ab-label{color:#00b9eb!important}@media screen and (max-width:782px){#wp-toolbar>ul>#wp-admin-bar-wpm-language-switcher{display:block}#wp-admin-bar-wpm-language-switcher-default .ab-item{min-width:20px!important;padding:0!important}#wp-admin-bar-wpm-language-switcher .ab-icon,#wp-admin-bar-wpm-language-switcher-default .ab-icon{line-height:20px!important}.language-switcher{padding-top:0}.language-switcher a{margin-top:0!important}.edit-post-header-toolbar .wpm-language-switcher{left:10px;margin-left:0!important}}.language-switcher{left:0;position:absolute;top:0}.screen-meta-toggle{z-index:1}.wpm-languages .language-status{position:absolute;top:5px;right:40px;font-size:13px;line-height:26px;height:28px;display:inline-block}.wpm-languages .language-order{font-weight:400;display:inline-block;width:20px;height:20px;line-height:20px;border:1px solid #ccc;border-radius:50px;margin-right:10px;text-align:center}.wpm-languages .prefix{font-weight:400;margin-left:5px}.js-wpm-action+.error,.js-wpm-action+.success{font-style:italic;display:inline-block;margin-left:10px;line-height:26px;font-weight:700}.wp-core-ui .button-link.delete-language,.wpm-query-error{color:red}.wpm-languages{max-width:600px}.wpm-flags{width:160px}.select2-results__option img,.select2-selection__rendered img{margin-right:5px;margin-left:5px}.languagechecklist li{margin:0;padding:0;line-height:22px;word-wrap:break-word}#customize-controls .wpm-language-switcher{display:block;position:absolute;top:0;width:45px;height:41px;padding:0 2px 0 0;background-color:#eee;border:none;border-top:4px solid #eee;border-right:1px solid #ddd;color:#444;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;box-sizing:content-box}#customize-controls .wpm-language-switcher:focus,#customize-controls .wpm-language-switcher:hover{background-color:#fff;color:#0073aa;border-top-color:#0073aa;outline:0;box-shadow:none}.edit-post-header-toolbar,.edit-widgets-header__navigable-toolbar-wrapper{margin-left:48px!important}.edit-post-header-toolbar .wpm-language-switcher,.edit-r .lang-dropdown ul a:hover,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:focus,.edit-widgets-header__navigable-toolbar-wrapper .lang-dropdown ul a:hover{background-color:#ccc}.gutenberg .languagechecklist{list-style:none!important}.js-wpm-action+.spinner{float:none}.js-wpm-action+.success{color:#46b450}.js-wpm-action+.error{color:red}#delete_localization+.spinner,#qts_import+.spinner{vertical-align:top}.column-languages{width:100px}.wpm-support-label{margin-top:4px;float:left;width:70px;font-size:14px}.wpm-star-mark{color:red;margin-left:4px;font-weight:700}.wpm-query-success{color:#46b450}.wpm-upgrade-pro-btn,.wpm-upgrade-pro-btn:hover{background-color:#0099e7;color:#fff;border:1px solid #0099e7;font-weight:500} -
wp-multilang/trunk/assets/styles/components/_lang-switcher.scss
r1789684 r3105985 1 . switcher-list {1 .switcher-list { 2 2 list-style: none; 3 3 margin-bottom: 0; … … 30 30 } 31 31 32 . switcher-dropdown {32 .switcher-dropdown { 33 33 list-style: none; 34 34 margin-bottom: 0; … … 53 53 } 54 54 55 . language-dropdown {55 .language-dropdown { 56 56 display: none; 57 57 left: 0; … … 69 69 &:hover { 70 70 71 . language-dropdown {71 .language-dropdown { 72 72 display: block; 73 73 } … … 75 75 } 76 76 77 . item-language-main {77 .item-language-main { 78 78 79 79 > span { -
wp-multilang/trunk/assets/styles/main.css
r3039194 r3105985 1 . switcher-list {1 .switcher-list { 2 2 list-style: none; 3 3 margin-bottom: 0; 4 4 padding-left: 0; } 5 . switcher-list li a,6 . switcher-list li > span {5 .switcher-list li a, 6 .switcher-list li > span { 7 7 color: #333333; } 8 . switcher-list li a:hover,9 . switcher-list li > span:hover {8 .switcher-list li a:hover, 9 .switcher-list li > span:hover { 10 10 color: #000; } 11 . switcher-list li a img,12 . switcher-list li > span img {11 .switcher-list li a img, 12 .switcher-list li > span img { 13 13 display: inline-block; 14 14 margin-right: 3px; } 15 . switcher-list li.active a,16 . switcher-list li.active > span {15 .switcher-list li.active a, 16 .switcher-list li.active > span { 17 17 color: #000; } 18 18 19 . switcher-dropdown {19 .switcher-dropdown { 20 20 list-style: none; 21 21 margin-bottom: 0; 22 22 padding-left: 0; 23 23 position: relative; } 24 . switcher-dropdown a img,25 . switcher-dropdown span img {24 .switcher-dropdown a img, 25 .switcher-dropdown span img { 26 26 display: inline-block; 27 27 margin-right: 3px; } 28 . switcher-dropdown a {28 .switcher-dropdown a { 29 29 color: #333333; } 30 . switcher-dropdown a:hover {30 .switcher-dropdown a:hover { 31 31 color: #000; } 32 . switcher-dropdown .language-dropdown {32 .language-dropdown { 33 33 display: none; 34 34 left: 0; … … 39 39 position: absolute; 40 40 top: 100%; } 41 . switcher-dropdown > li {41 .switcher-dropdown > li { 42 42 position: relative; } 43 . switcher-dropdown > li:hover .language-dropdown {43 .language-dropdown { 44 44 display: block; } 45 . switcher-dropdown .item-language-main > span:hover {45 .item-language-main > span:hover { 46 46 cursor: pointer; } 47 47 -
wp-multilang/trunk/assets/styles/main.min.css
r2181861 r3105985 1 . switcher-list{list-style:none;margin-bottom:0;padding-left:0}.switcher-list li a,.switcher-list li>span{color:#333}.switcher-list li a:hover,.switcher-list li>span:hover{color:#000}.switcher-list li a img,.switcher-list li>span img{display:inline-block;margin-right:3px}.switcher-list li.active a,.switcher-list li.active>span{color:#000}.switcher-dropdown{list-style:none;margin-bottom:0;padding-left:0;position:relative}.switcher-dropdown a img,.switcher-dropdown span img{display:inline-block;margin-right:3px}.switcher-dropdown a{color:#333}.switcher-dropdown a:hover{color:#000}.switcher-dropdown .language-dropdown{display:none;left:0;list-style:none;margin-bottom:0;margin-left:0;padding-left:0;position:absolute;top:100%}.switcher-dropdown>li{position:relative}.switcher-dropdown>li:hover .language-dropdown{display:block}.switcher-dropdown .item-language-main>span:hover{cursor:pointer}.wpm-languages.menu-item>a img{display:inline-block;margin-right:5px}1 .item-language-main>span:hover{cursor:pointer}.wpm-languages.menu-item>a img{display:inline-block;margin-right:5px} -
wp-multilang/trunk/core-config.json
r3056175 r3105985 11 11 "any": {}, 12 12 "customize_changeset": null, 13 "revision": null 13 "revision": null, 14 "wp_template": {}, 15 "wp_template_part": {}, 16 "wp_navigation": {}, 17 "wp_global_styles": {} 14 18 }, 15 19 "post_fields": { -
wp-multilang/trunk/includes/admin/class-wpm-admin-assets.php
r3092152 r3105985 28 28 add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) ); 29 29 add_action( 'enqueue_block_editor_assets', array( $this, 'add_language_switcher' ) ); 30 30 31 } 31 32 … … 192 193 } 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 194 228 $script = " 195 229 (function( $ ) { 230 231 232 196 233 $(window).on('pageshow',function(){ 197 234 if ($('#wpm-language-switcher').length === 0) { … … 206 243 } 207 244 } 208 window.setTimeout(wpm_add_language_switcher_deferred, 500); 245 window.setTimeout(wpm_add_language_switcher_deferred, $interval); 246 247 wpm_site_editor_lang_switcher_deferred = function() { 248 var SiteToolBar = $('.edit-site-layout__header-container .edit-site-site-hub__site-view-link'); 249 250 if(SiteToolBar.length) { 251 SiteToolBar.before(language_switcher); 252 253 $('.edit-site-layout__header-container .wpm-language-switcher').css({'left': '67%'}); 254 } 255 } 256 257 window.setTimeout(wpm_site_editor_lang_switcher_deferred, 5000); 209 258 } 210 259 }); … … 238 287 href = url + query.replace(/edit_lang=[a-z]{2,4}((-[a-z]{2,4})?)*/i, 'edit_lang=' + lang) + document.location.hash; 239 288 } else { 240 href = url + query + '&edit_lang=' + lang + document.location.hash; 289 if(query.length == 0){ 290 href = url + '?edit_lang=' + lang + document.location.hash; 291 }else{ 292 href = url + query + '&edit_lang=' + lang + document.location.hash; 293 } 241 294 } 242 295 $(this).attr('href', href); 243 296 }); 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 244 355 })( jQuery ); 245 356 "; 246 247 wp_add_inline_script( 'wp-edit-post', $script ); 248 add_action( 'admin_footer', 'wpm_admin_language_switcher_customizer' ); 357 return $script; 249 358 } 250 359 } -
wp-multilang/trunk/includes/admin/class-wpm-admin.php
r3074235 r3105985 53 53 new WPM_Admin_Widgets(); 54 54 new WPM_Admin_Newsletter(); 55 55 56 new WPM_Admin_Assets(); 56 57 new WPM_Admin_Qtranslate(); -
wp-multilang/trunk/includes/admin/settings/class-wpm-settings-support.php
r3039194 r3105985 51 51 <ul> 52 52 <li> 53 <label class="wpm-support-label">< ?php echo esc_html_e('Email', 'wp-multilang') ?><span class="wpm-star-mark">*</span></label>53 <label class="wpm-support-label"><><span class="wpm-star-mark">*</span></label> 54 54 <div class="support-input"> 55 55 <input type="text" id="wp_query_email" name="wp_query_email" size="47" placeholder="Enter your Email" required=""> … … 57 57 </li> 58 58 <li> 59 <label class="wpm-support-label">< ?php echo esc_html_e('Query', 'wp-multilang') ?><span class="wpm-star-mark">*</span></label>59 <label class="wpm-support-label"><><span class="wpm-star-mark">*</span></label> 60 60 <div class="support-input"><textarea rows="5" cols="50" id="wpm_query_message" name="wpm_query_message" placeholder="Write your query"></textarea> 61 61 </div> -
wp-multilang/trunk/includes/class-wp-multilang.php
r3092152 r3105985 22 22 * @var string 23 23 */ 24 public $version = '2.4. 8';24 public $version = '2.4.'; 25 25 26 26 /** -
wp-multilang/trunk/includes/class-wpm-ajax.php
r3074235 r3105985 100 100 'subscribe_to_news_letter' => false, 101 101 'newsletter_hide_form' => false, 102 'settings_newsletter_submit' => false 102 'settings_newsletter_submit' => false, 103 'block_lang_switcher' => true 103 104 ); 104 105 … … 520 521 } 521 522 } 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 522 555 } -
wp-multilang/trunk/includes/class-wpm-frontend-scripts.php
r1815050 r3105985 45 45 add_action( 'wp_print_scripts', array( __CLASS__, 'localize_printed_scripts' ), 5 ); 46 46 add_action( 'wp_print_footer_scripts', array( __CLASS__, 'localize_printed_scripts' ), 5 ); 47 47 48 } 48 49 … … 196 197 } 197 198 } 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 198 220 } -
wp-multilang/trunk/includes/class-wpm-posts.php
r3072392 r3105985 56 56 add_filter( 'wp_get_attachment_link', array( $this, 'translate_attachment_link' ), 5 ); 57 57 add_filter( 'render_block', array( $this, 'wpm_render_post_block' ), 10, 2); 58 58 59 } 59 60 … … 173 174 174 175 $post_id = isset( $data['ID'] ) ? wpm_clean( $data['ID'] ) : ( isset( $postarr['ID'] ) ? wpm_clean( $postarr['ID'] ) : 0 ); 176 177 175 178 176 179 foreach ( $data as $key => $content ) { … … 203 206 } 204 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 205 225 if ( empty( $data['post_name'] ) ) { 206 226 $data['post_name'] = sanitize_title( wpm_translate_value( $data['post_title'] ) ); … … 245 265 return $context; 246 266 } 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 247 304 } -
wp-multilang/trunk/includes/integrations/class-wpm-newsletter.php
r3092152 r3105985 84 84 85 85 public function save_profile_20( $data ) { 86 $data['profile_20'] = wpm_get_language(); 86 if(is_object($data) && isset($data->profile_20)){ 87 $data->profile_20 = wpm_get_language(); 88 }else if(is_array($data) && isset($data['profile_20'])){ 89 $data['profile_20'] = wpm_get_language(); 90 } 87 91 88 92 return $data; -
wp-multilang/trunk/readme.txt
r3092152 r3105985 6 6 Requires at least: 4.7 7 7 Tested up to: 6.5 8 Stable tag: 2.4. 88 Stable tag: 2.4. 9 9 Requires PHP: 5.6.20 10 10 License: GPLv3 … … 19 19 Translations of post types, taxonomies, meta fields, options, text fields in miltimedia files, menus, titles and text fields in widgets. 20 20 21 [Home](https://wp-multilang.com/) | [Help & Tech Support](https://wp-multilang.com/contact-us/) | [Documentation](https://wp-multilang.com/docs/) | [Premium ](https://wp-multilang.com/)21 [Home](https://wp-multilang.com/) | [Help & Tech Support](https://wp-multilang.com/contact-us/) | [Documentation](https://wp-multilang.com/docs/) | [Premium) 22 22 23 23 == New Features of the plugin WP Multilang == 24 24 25 * Support block based widgets 25 26 * Support different feature image for each language … … 228 229 == Changelog == 229 230 231 232 233 234 235 236 230 237 = 2.4.8 = 231 238 - fixed admin_html_tags leaving empty fields #41 … … 301 308 - fixed translation WC coupons 302 309 303 = 2.2.4 =304 - added "no-cache" header in admin on language change305 - added WC coupon for translating306 - fixed compatibility with SiteOrigin307 - fixed http to https redirect error308 - fixed styles309 310 310 All changelog available on [GitHub](https://github.com/ahmedkaludi/wp-multilang/releases). -
wp-multilang/trunk/templates/language-switcher-dropdown.php
r1917032 r3105985 1 1 <?php /** @var $show string */ ?> 2 <ul class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>">3 <li class=" item-language-mainitem-language-<?php echo esc_attr( $lang ); ?>">2 <ul class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>"> 3 <li class="item-language-<?php echo esc_attr( $lang ); ?>"> 4 4 <span> 5 5 <?php if ( ( ( 'flag' === $show ) || ( 'both' === $show ) ) && ( $languages[ $lang ] ['flag'] ) ) { ?> … … 10 10 <?php } ?> 11 11 </span> 12 <ul class=" language-dropdown">12 <ul class="language-dropdown"> 13 13 <?php foreach ( $languages as $code => $language ) { if ( wpm_get_language() == $code ) continue; ?> 14 <li class=" item-language-<?php echo esc_attr( $code ); ?><?php if ( $code === $lang ) { ?> active<?php } ?>">14 <li class="item-language-<?php echo esc_attr( $code ); ?><?php if ( $code === $lang ) { ?> active<?php } ?>"> 15 15 <a href="<?php echo esc_url( wpm_translate_current_url( $code ) ); ?>" data-lang="<?php echo esc_attr( $code ); ?>"> 16 16 <?php if ( ( ( 'flag' === $show ) || ( 'both' === $show ) ) && ( $language['flag'] ) ) { ?> -
wp-multilang/trunk/templates/language-switcher-list.php
r1917032 r3105985 1 1 <?php /** @var $show string */ ?> 2 <ul class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>">2 <ul class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>"> 3 3 <?php foreach ( $languages as $code => $language ) { ?> 4 <li class=" item-language-<?php echo esc_attr( $code ); ?><?php if ( $code === $lang ) { ?> active<?php } ?>">4 <li class="item-language-<?php echo esc_attr( $code ); ?><?php if ( $code === $lang ) { ?> active<?php } ?>"> 5 5 <?php if ( wpm_get_language() == $code ) { ?> 6 6 <span data-lang="<?php echo esc_attr( $code ); ?>"> -
wp-multilang/trunk/templates/language-switcher-select.php
r1917032 r3105985 1 <select class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>" onchange="location = this.value;" title="<?php esc_html_e( __( 'Language Switcher', 'wp-multilang' ) ); ?>">1 <select class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>" onchange="location = this.value;" title="<?php esc_html_e( __( 'Language Switcher', 'wp-multilang' ) ); ?>"> 2 2 <?php foreach ( $languages as $code => $language ) { ?> 3 3 <option value="<?php echo esc_url( wpm_translate_current_url( $code ) ); ?>"<?php if ( $code === $lang ) { ?> selected="selected"<?php } ?> data-lang="<?php echo esc_attr( $code ); ?>"> -
wp-multilang/trunk/vendor/composer/autoload_classmap.php
r3074235 r3105985 31 31 'WPM\\Includes\\Admin\\WPM_Admin_Widgets' => $baseDir . '/includes/admin/class-wpm-admin-widgets.php', 32 32 'WPM\\Includes\\Admin\\WPM_Admin_Newsletter' => $baseDir . '/includes/admin/class-wpm-admin-newsletter.php', 33 33 34 'WPM\\Includes\\Admin\\WPM_Deactivate_Feedback_Form' => $baseDir . '/includes/admin/tracking/class-wpm-feedback-form.php', 34 35 'WPM\\Includes\\Integrations\\WPM_AIOSP' => $baseDir . '/includes/integrations/class-wpm-aiosp.php', -
wp-multilang/trunk/vendor/composer/autoload_static.php
r3074235 r3105985 42 42 'WPM\\Includes\\Admin\\WPM_Admin_Widgets' => __DIR__ . '/../..' . '/includes/admin/class-wpm-admin-widgets.php', 43 43 'WPM\\Includes\\Admin\\WPM_Admin_Newsletter' => __DIR__ . '/../..' . '/includes/admin/class-wpm-admin-newsletter.php', 44 44 45 'WPM\\Includes\\Admin\\WPM_Deactivate_Feedback_Form' => __DIR__ . '/../..' . '/includes/admin/tracking/class-wpm-feedback-form.php', 45 46 'WPM\\Includes\\Integrations\\WPM_AIOSP' => __DIR__ . '/../..' . '/includes/integrations/class-wpm-aiosp.php', -
wp-multilang/trunk/wp-multilang.php
r3092152 r3105985 11 11 * Text Domain: wp-multilang 12 12 * Domain Path: /languages 13 * Version: 2.4. 813 * Version: 2.4. 14 14 * Copyright: © 2017-2019 Valentyn Riaboshtan 15 15 *
Note: See TracChangeset
for help on using the changeset viewer.