Plugin Directory

Changeset 3438877


Ignore:
Timestamp:
01/13/2026 05:51:43 PM (8 weeks ago)
Author:
codingfix
Message:
  • Added: class 'current-lang' to the current language item in horizontal and vertical switchers
Location:
language-switcher-for-transposh/tags/2.0.6
Files:
1 edited
4 copied

Legend:

Unmodified
Added
Removed
  • language-switcher-for-transposh/tags/2.0.6/README.txt

    r3437043 r3438877  
    55Requires at least: 5.0
    66Tested up to: 6.9
    7 Stable tag: 2.0.5
     7Stable tag: 2.0.6
    88Requires PHP: 5.6
    99Requires Plugins: transposh-translation-filter-for-wordpress
     
    6161
    6262== Changelog ==
     63
     64= 2.0.6 =
     65* Added: class 'current-lang' to the current language item in horizontal and vertical switchers
    6366
    6467= 2.0.5 =
  • language-switcher-for-transposh/tags/2.0.6/cfx-language-switcher-for-transposh.php

    r3437043 r3438877  
    1616 * Plugin URI:        https://codingfix.com/language-switcher-for-transposh
    1717 * Description:       A small plugin to use a customized language switcher with Transposh plugin.
    18  * Version:           2.0.5
     18 * Version:           2.0.6
    1919 * Author:            Marco Gasi
    2020 * Author URI:        https://codingfix.com
     
    3030 * Rename this for your plugin and update it as you release new versions.
    3131 */
    32 define( 'CFX_LSFT_VERSION', '2.0.5' );
     32define( 'CFX_LSFT_VERSION', '2.0.6' );
    3333
    3434/**
  • language-switcher-for-transposh/tags/2.0.6/public/class-cfx-language-switcher-for-transposh-public.php

    r3436176 r3438877  
    546546            default: // 'horizontal' o 'vertical'
    547547                foreach ( $languages as $lang ) {
    548                     $items_html .= "<li class='switch_lang no_translate $menu_classes'>" . $this->render_item( $lang, $variant, 'link', 'menu-link' ) . '</li>';
     548                    $current     = $lang['is_current'] ? 'current-lang' : '';
     549                    $items_html .= "<li class='switch_lang no_translate $menu_classes $current'>" . $this->render_item( $lang, $variant, 'link', 'menu-link' ) . '</li>';
    549550                }
    550551                $items_html .= $this->maybe_render_edit_button( 'list', $menu_classes );
Note: See TracChangeset for help on using the changeset viewer.