Plugin Directory

Changeset 3105985

Timestamp:
06/22/2024 10:58:09 AM (5 weeks ago)
Author:
magazine3
Message:

Released version 2.4.9

Location:
wp-multilang/trunk
Files:
15 added
21 edited

Legend:

Unmodified
Added
Removed
  • wp-multilang/trunk/assets/styles/admin/admin.css

    r3092152 r3105985  
    161161}
    162162
    163 .edit-post-header-toolbar, .edit-widgets-header__navigable-toolbar-wrapper {
     163.edit-post-header-toolbar, .edit-widgets-header__navigable-toolbar-wrapper {
    164164  margin-left: 48px !important;
    165165}
    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 {
    167167  position: absolute;
    168168  left: 10px;
    169169}
    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 {
    171171  padding-left: 10px;
    172172  padding-right: 10px;
    173173  line-height: 36px;
    174174}
    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 {
    176176  top: 2px;
    177177}
    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 {
    179179  position: absolute;
    180180  top: 100%;
     
    184184  z-index: 1;
    185185}
    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 {
    187187  list-style: none;
    188188}
    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 {
    190190  padding: 10px;
    191191  display: block;
    192192}
    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 {
    194194  background-color: #ccc;
    195195}
  • 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 {
    22    list-style: none;
    33    margin-bottom: 0;
     
    3030}
    3131
    32 .switcher-dropdown {
     32.switcher-dropdown {
    3333    list-style: none;
    3434    margin-bottom: 0;
     
    5353    }
    5454
    55     .language-dropdown {
     55    .language-dropdown {
    5656        display: none;
    5757        left: 0;
     
    6969        &:hover {
    7070
    71             .language-dropdown {
     71            .language-dropdown {
    7272                display: block;
    7373            }
     
    7575    }
    7676
    77     .item-language-main {
     77    .item-language-main {
    7878
    7979        > span {
  • wp-multilang/trunk/assets/styles/main.css

    r3039194 r3105985  
    1 .switcher-list {
     1.switcher-list {
    22  list-style: none;
    33  margin-bottom: 0;
    44  padding-left: 0; }
    5   .switcher-list li a,
    6   .switcher-list li > span {
     5  .switcher-list li a,
     6  .switcher-list li > span {
    77    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 {
    1010      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 {
    1313      display: inline-block;
    1414      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 {
    1717    color: #000; }
    1818
    19 .switcher-dropdown {
     19.switcher-dropdown {
    2020  list-style: none;
    2121  margin-bottom: 0;
    2222  padding-left: 0;
    2323  position: relative; }
    24   .switcher-dropdown a img,
    25   .switcher-dropdown span img {
     24  .switcher-dropdown a img,
     25  .switcher-dropdown span img {
    2626    display: inline-block;
    2727    margin-right: 3px; }
    28   .switcher-dropdown a {
     28  .switcher-dropdown a {
    2929    color: #333333; }
    30     .switcher-dropdown a:hover {
     30    .switcher-dropdown a:hover {
    3131      color: #000; }
    32   .switcher-dropdown .language-dropdown {
     32  .language-dropdown {
    3333    display: none;
    3434    left: 0;
     
    3939    position: absolute;
    4040    top: 100%; }
    41   .switcher-dropdown > li {
     41  .switcher-dropdown > li {
    4242    position: relative; }
    43     .switcher-dropdown > li:hover .language-dropdown {
     43    .language-dropdown {
    4444      display: block; }
    45   .switcher-dropdown .item-language-main > span:hover {
     45  .item-language-main > span:hover {
    4646    cursor: pointer; }
    4747
  • 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  
    1111    "any": {},
    1212    "customize_changeset": null,
    13     "revision": null
     13    "revision": null,
     14    "wp_template": {},
     15    "wp_template_part": {},
     16    "wp_navigation": {},
     17    "wp_global_styles": {}
    1418  },
    1519  "post_fields": {
  • wp-multilang/trunk/includes/admin/class-wpm-admin-assets.php

    r3092152 r3105985  
    2828        add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
    2929        add_action( 'enqueue_block_editor_assets', array( $this, 'add_language_switcher' ) );
     30
    3031    }
    3132
     
    192193        }
    193194
     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
    194228        $script = "
    195229            (function( $ ) {
     230
     231
     232
    196233                $(window).on('pageshow',function(){
    197234                    if ($('#wpm-language-switcher').length === 0) {
     
    206243                            }
    207244                        }
    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);
    209258                    }
    210259                });
     
    238287                        href = url + query.replace(/edit_lang=[a-z]{2,4}((-[a-z]{2,4})?)*/i, 'edit_lang=' + lang) + document.location.hash;
    239288                    } 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                        }
    241294                    }
    242295                    $(this).attr('href', href);
    243296                });
     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
    244355            })( jQuery );
    245356        ";
    246 
    247         wp_add_inline_script( 'wp-edit-post', $script );
    248         add_action( 'admin_footer', 'wpm_admin_language_switcher_customizer' );
     357        return $script;
    249358    }
    250359}
  • wp-multilang/trunk/includes/admin/class-wpm-admin.php

    r3074235 r3105985  
    5353        new WPM_Admin_Widgets();
    5454        new WPM_Admin_Newsletter();
     55
    5556        new WPM_Admin_Assets();
    5657        new WPM_Admin_Qtranslate();
  • wp-multilang/trunk/includes/admin/settings/class-wpm-settings-support.php

    r3039194 r3105985  
    5151                <ul>
    5252                    <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>
    5454                       <div class="support-input">
    5555                          <input type="text" id="wp_query_email" name="wp_query_email" size="47" placeholder="Enter your Email" required="">
     
    5757                    </li>
    5858                    <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> 
    6060                        <div class="support-input"><textarea rows="5" cols="50" id="wpm_query_message" name="wpm_query_message" placeholder="Write your query"></textarea>
    6161                        </div>
  • wp-multilang/trunk/includes/class-wp-multilang.php

    r3092152 r3105985  
    2222     * @var string
    2323     */
    24     public $version = '2.4.8';
     24    public $version = '2.4.';
    2525
    2626    /**
  • wp-multilang/trunk/includes/class-wpm-ajax.php

    r3074235 r3105985  
    100100            'subscribe_to_news_letter' => false,
    101101            'newsletter_hide_form' => false,
    102             'settings_newsletter_submit' => false
     102            'settings_newsletter_submit' => false,
     103            'block_lang_switcher' => true
    103104        );
    104105
     
    520521        }
    521522    }
     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
    522555}
  • wp-multilang/trunk/includes/class-wpm-frontend-scripts.php

    r1815050 r3105985  
    4545        add_action( 'wp_print_scripts', array( __CLASS__, 'localize_printed_scripts' ), 5 );
    4646        add_action( 'wp_print_footer_scripts', array( __CLASS__, 'localize_printed_scripts' ), 5 );
     47
    4748    }
    4849
     
    196197        }
    197198    }
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
     218
     219
    198220}
  • wp-multilang/trunk/includes/class-wpm-posts.php

    r3072392 r3105985  
    5656        add_filter( 'wp_get_attachment_link', array( $this, 'translate_attachment_link' ), 5 );
    5757        add_filter( 'render_block', array( $this, 'wpm_render_post_block' ), 10, 2);
     58
    5859    }
    5960
     
    173174
    174175        $post_id = isset( $data['ID'] ) ? wpm_clean( $data['ID'] ) : ( isset( $postarr['ID'] ) ? wpm_clean( $postarr['ID'] ) : 0 );
     176
     177
    175178
    176179        foreach ( $data as $key => $content ) {
     
    203206        }
    204207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
     218
     219
     220
     221
     222
     223
     224
    205225        if ( empty( $data['post_name'] ) ) {
    206226            $data['post_name'] = sanitize_title( wpm_translate_value( $data['post_title'] ) );
     
    245265        return $context;
    246266    }
     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
    247304}
  • wp-multilang/trunk/includes/integrations/class-wpm-newsletter.php

    r3092152 r3105985  
    8484
    8585    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        }
    8791
    8892        return $data;
  • wp-multilang/trunk/readme.txt

    r3092152 r3105985  
    66Requires at least: 4.7
    77Tested up to: 6.5
    8 Stable tag: 2.4.8
     8Stable tag: 2.4.
    99Requires PHP: 5.6.20
    1010License: GPLv3
     
    1919Translations of post types, taxonomies, meta fields, options, text fields in miltimedia files, menus, titles and text fields in widgets.
    2020
    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)
    2222
    2323== New Features of the plugin WP Multilang ==
     24
    2425* Support block based widgets
    2526* Support different feature image for each language
     
    228229== Changelog ==
    229230
     231
     232
     233
     234
     235
     236
    230237= 2.4.8 =
    231238- fixed admin_html_tags leaving empty fields #41
     
    301308- fixed translation WC coupons
    302309
    303 = 2.2.4 =
    304 - added "no-cache" header in admin on language change
    305 - added WC coupon for translating
    306 - fixed compatibility with SiteOrigin
    307 - fixed http to https redirect error
    308 - fixed styles
    309 
    310310All changelog available on [GitHub](https://github.com/ahmedkaludi/wp-multilang/releases).
  • wp-multilang/trunk/templates/language-switcher-dropdown.php

    r1917032 r3105985  
    11<?php /** @var $show string */ ?>
    2 <ul class="wpm-language-switcher switcher-<?php esc_attr_e( $type ); ?>">
    3     <li class="item-language-main item-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 ); ?>">
    44                <span>
    55                    <?php if ( ( ( 'flag' === $show ) || ( 'both' === $show ) ) && ( $languages[ $lang ] ['flag'] ) ) { ?>
     
    1010                    <?php } ?>
    1111                </span>
    12         <ul class="language-dropdown">
     12        <ul class="language-dropdown">
    1313            <?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 } ?>">
    1515                    <a href="<?php echo esc_url( wpm_translate_current_url( $code ) ); ?>" data-lang="<?php echo esc_attr( $code ); ?>">
    1616                        <?php if ( ( ( 'flag' === $show ) || ( 'both' === $show ) ) && ( $language['flag'] ) ) { ?>
  • wp-multilang/trunk/templates/language-switcher-list.php

    r1917032 r3105985  
    11<?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 ); ?>">
    33    <?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 } ?>">
    55            <?php if ( wpm_get_language() == $code ) { ?>
    66                <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' ) ); ?>">
    22    <?php foreach ( $languages as $code => $language ) { ?>
    33        <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  
    3131    'WPM\\Includes\\Admin\\WPM_Admin_Widgets' => $baseDir . '/includes/admin/class-wpm-admin-widgets.php',
    3232    'WPM\\Includes\\Admin\\WPM_Admin_Newsletter' => $baseDir . '/includes/admin/class-wpm-admin-newsletter.php',
     33
    3334    'WPM\\Includes\\Admin\\WPM_Deactivate_Feedback_Form' => $baseDir . '/includes/admin/tracking/class-wpm-feedback-form.php',
    3435    'WPM\\Includes\\Integrations\\WPM_AIOSP' => $baseDir . '/includes/integrations/class-wpm-aiosp.php',
  • wp-multilang/trunk/vendor/composer/autoload_static.php

    r3074235 r3105985  
    4242        'WPM\\Includes\\Admin\\WPM_Admin_Widgets' => __DIR__ . '/../..' . '/includes/admin/class-wpm-admin-widgets.php',
    4343        'WPM\\Includes\\Admin\\WPM_Admin_Newsletter' => __DIR__ . '/../..' . '/includes/admin/class-wpm-admin-newsletter.php',
     44
    4445        'WPM\\Includes\\Admin\\WPM_Deactivate_Feedback_Form' => __DIR__ . '/../..' . '/includes/admin/tracking/class-wpm-feedback-form.php',
    4546        'WPM\\Includes\\Integrations\\WPM_AIOSP' => __DIR__ . '/../..' . '/includes/integrations/class-wpm-aiosp.php',
  • wp-multilang/trunk/wp-multilang.php

    r3092152 r3105985  
    1111 * Text Domain:       wp-multilang
    1212 * Domain Path:       /languages
    13  * Version:           2.4.8
     13 * Version:           2.4.
    1414 * Copyright:         © 2017-2019 Valentyn Riaboshtan
    1515 *
Note: See TracChangeset for help on using the changeset viewer.