Plugin Directory

Changeset 3429761


Ignore:
Timestamp:
12/30/2025 06:08:48 PM (7 weeks ago)
Author:
codingfix
Message:

Added the option to display languages as codes both as single items and as custom list items

Location:
language-switcher-for-transposh/trunk
Files:
3 added
7 edited

Legend:

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

    r3379007 r3429761  
    44Tags: multi-language, translation
    55Requires at least: 4.0.1
    6 Tested up to: 6.8.3
    7 Stable tag: 1.7.7
     6Tested up to: 6.9
     7Stable tag: 1.7.8
    88Requires PHP: 5.6
    99Requires Plugins: transposh-translation-filter-for-wordpress
     
    2323
    2424
    25 WARNING! Recently I've got serveral issues updating this plugin and trying to fix the new bugs. Now it looks like the users who have installed version 1.5.7 are asked to give a license key. In addition, they can’t receive automatic updates.
    26 
    27 Unfortunately, the only way to solve this problem is
    28 
    29    - deactivate version 1.5.7 and uninstall it
    30    - download version 1.5.8 from the WordPress repository
    31    - upload the downloaded archive to your server
    32    - reinstall and reactiavte the plugin
    33 
    34 I am very sorry about all this and I apologize again for any problems it may have caused.
    35  
     25WARNING! If you are still using version 1.5.7, please uninctall it and download the last version.
    3626Feel free to email me to codingfix-at-codingfix-dot-com if you need help.
    3727I apologize for the inconvenience and for the problems it may have caused.
     
    366356* Fixed typos in UI
    367357
     358= 1.7.8 =
     359* Added the option to display languages as codes both as single items and as custom list items
     360
    368361== Upgrade Notice ==
    369362
  • language-switcher-for-transposh/trunk/admin/class-cfx-language-switcher-for-transposh-admin.php

    r3378342 r3429761  
    195195        $known_files   = array(
    196196            'basic_flags.css',
     197            'basic_codes.css',
    197198            'basic_list.css',
    198199            'basic_select.css',
     
    200201            'shortcode_custom_dropdown_flags_names.css',
    201202            'shortcode_custom_dropdown_names.css',
     203            'shortcode_custom_dropdown_codes.css',
    202204            'shortcode_horizontal_flags.css',
    203205            'shortcode_vertical_flags.css',
  • language-switcher-for-transposh/trunk/admin/js/cfx-language-switcher-for-transposh-admin.js

    r3017796 r3429761  
    123123
    124124        $(document).on("change", "#switcher_type", function () {
    125             if ($(this).val() == "list") {
     125            // if ($(this).val() == "list" || $(this).val() == "select") {
     126            if ($(this).val() == "list" ) {
    126127                if (!$("#flag_styles").hasClass("hidden")) {
    127128                    $("#flag_styles").addClass("hidden");
  • language-switcher-for-transposh/trunk/admin/partials/cfx-language-switcher-for-transposh-admin-display.php

    r3072495 r3429761  
    6464    <h2>Language Switcher for Transposh Settings (LSFT)</h2>
    6565    <?php
     66
    6667    if ( false !== $transposh_installed ) {
    6768        $default_tab = 'general';
     
    287288                                    $select_options = array(
    288289                                        'Flags' => 'flags',
     290                                        'Codes' => 'codes',
    289291                                        'Native dropdown (select)' => 'select',
    290292                                        'Custom dropdown (list)' => 'list',
     
    316318                                        <br>
    317319                                        <div id="list-styles" class="<?php echo $options['select_as_list'] == 'yes' ? '' : 'hidden'; ?>">
    318                                             <h4>List items (flags, text or flags and text)</h4>
     320                                            <h4>List items (flags, text, code or flags and text)</h4>
    319321                                            <select name="custom_list_items">
    320322                                                <?php
     
    322324                                                    'Flag only'     => 'flag-only',
    323325                                                    'Text only'     => 'text-only',
     326                                                    'Code only'     => 'code-only',
    324327                                                    'Flag and text' => 'flag-and-text',
    325328                                                );
     
    473476            <p>Language Switcher currently support following shortcodes:</p>
    474477            <p>Horizontal flags: [lsft_horizontal_flags]</p>
     478            <p>Horizontal flags: [lsft_horizontal_codes]</p>
    475479            <p>Vertical flags: [lsft_vertical_flags]</p>
    476480            <p>Dropdown native select: [lsft_native_dropdown]</p>
    477481            <p>Dropdown flags custom list: [lsft_custom_dropdown_flags]</p>
    478482            <p>Dropdown flags custom list: [lsft_custom_dropdown_names]</p>
     483            <p>Dropdown flags custom list: [lsft_custom_dropdown_codes]</p>
    479484            <p>Dropdown flags and names custom list: [lsft_custom_dropdown_flags_names]</p>
    480485        </div>
  • language-switcher-for-transposh/trunk/assets/styles/basic_list.css

    r2978105 r3429761  
    22.stylable-list {
    33    position: relative;
    4     background: white;
     4    /* background: white; */
    55}
    66
     
    3333    margin-left: 0 !important;
    3434    flex-direction: column;
     35    align-items: center;
     36    justify-content: center;
    3537    list-style-type: none !important;
    3638    width: 100% !important;
    37     background-color: white !important;
     39    /* background-color: white !important; */
    3840    border: none !important;
    3941    box-shadow: none !important;
     
    5759    line-height: 32px;
    5860    margin-top: 10px;
     61    text-align: center;
    5962}
    6063
  • language-switcher-for-transposh/trunk/cfx-language-switcher-for-transposh.php

    r3379007 r3429761  
    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:           1.7.7
     18 * Version:           1.7.8
    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_LANGUAGE_SWITCHER_FOR_TRANSPOSH_VERSION', '1.7.7' );
     32define( 'CFX_LANGUAGE_SWITCHER_FOR_TRANSPOSH_VERSION', '1.7.8' );
    3333
    3434/**
  • language-switcher-for-transposh/trunk/public/class-cfx-language-switcher-for-transposh-public.php

    r3072495 r3429761  
    148148            include_once WP_PLUGIN_DIR . '/transposh-translation-filter-for-wordpress/core/utils.php';
    149149            include_once WP_PLUGIN_DIR . '/transposh-translation-filter-for-wordpress/core/constants.php';
     150            // $transposh_options = get_option( TRANSPOSH_OPTIONS );
     151            // $used_languages    = explode( ',', $transposh_options['viewable_languages'] );
     152            // $default_lang      = $transposh_options['default_language'];
     153            // $usable_langs      = explode( ',', $transposh_options['viewable_languages'] );
    150154            $this->plugin_name = $plugin_name;
    151155            $this->version     = $version;
     
    191195    public function register_shortcodes() {
    192196        add_shortcode( 'lsft_horizontal_flags', array( $this, 'shortcode_horizontal_flags' ) );
     197        add_shortcode( 'lsft_horizontal_codes', array( $this, 'shortcode_horizontal_codes' ) );
    193198        add_shortcode( 'lsft_vertical_flags', array( $this, 'shortcode_vertical_flags' ) );
    194199        add_shortcode( 'lsft_custom_dropdown_flags', array( $this, 'shortcode_custom_dropdown_flags' ) );
    195200        add_shortcode( 'lsft_custom_dropdown_flags_names', array( $this, 'shortcode_custom_dropdown_flags_names' ) );
    196201        add_shortcode( 'lsft_custom_dropdown_names', array( $this, 'shortcode_custom_dropdown_names' ) );
     202        add_shortcode( 'lsft_custom_dropdown_codes', array( $this, 'shortcode_custom_dropdown_codes' ) );
    197203        add_shortcode( 'lsft_native_dropdown', array( $this, 'shortcode_native_dropdown' ) );
    198204    }
     
    207213        wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cfx-language-switcher-for-transposh-public.css', array(), $this->version, 'all' );
    208214        wp_enqueue_style( $this->plugin_name . '-basic_flags', $this->style_path . 'basic_flags.css', array(), $this->version, 'all' );
     215        wp_enqueue_style( $this->plugin_name . '-basic_codes', $this->style_path . 'basic_codes.css', array(), $this->version, 'all' );
    209216        wp_enqueue_style( $this->plugin_name . '-basic_list', $this->style_path . 'basic_list.css', array(), '2.0', 'all' );
    210217        wp_enqueue_style( $this->plugin_name . '-basic_select', $this->style_path . 'basic_select.css', array(), $this->version, 'all' );
    211218        wp_enqueue_style( $this->plugin_name . '-shortcode_horizontal_flags', $this->style_path . 'shortcode_horizontal_flags.css', array(), $this->version, 'all' );
     219        wp_enqueue_style( $this->plugin_name . '-shortcode_horizontal_codes', $this->style_path . 'shortcode_horizontal_codes.css', array(), $this->version, 'all' );
    212220        wp_enqueue_style( $this->plugin_name . '-shortcode_vertical_flags', $this->style_path . 'shortcode_vertical_flags.css', array(), $this->version, 'all' );
    213221        wp_enqueue_style( $this->plugin_name . '-shortcode_custom_dropdown_flags', $this->style_path . 'shortcode_custom_dropdown_flags.css', array(), $this->version, 'all' );
    214222        wp_enqueue_style( $this->plugin_name . '-shortcode_custom_dropdown_names', $this->style_path . 'shortcode_custom_dropdown_names.css', array(), $this->version, 'all' );
     223        wp_enqueue_style( $this->plugin_name . '-shortcode_custom_dropdown_codes', $this->style_path . 'shortcode_custom_dropdown_codes.css', array(), $this->version, 'all' );
    215224        wp_enqueue_style( $this->plugin_name . '-shortcode_custom_dropdown_flags_names', $this->style_path . 'shortcode_custom_dropdown_flags_names.css', array(), $this->version, 'all' );
    216225    }
     
    319328                break;
    320329            case 'text-only':
    321                 $item = "<a class='menu-link' href='#' id='stylable-list-first-item' class='no_translate'>$lang_name<span role='presentation' class='dropdown-menu-toggle'><span class='gp-icon icon-arrow'><svg viewBox='0 0 330 512' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em'><path d='M305.913 197.085c0 2.266-1.133 4.815-2.833 6.514L171.087 335.593c-1.7 1.7-4.249 2.832-6.515 2.832s-4.815-1.133-6.515-2.832L26.064 203.599c-1.7-1.7-2.832-4.248-2.832-6.514s1.132-4.816 2.832-6.515l14.162-14.163c1.7-1.699 3.966-2.832 6.515-2.832 2.266 0 4.815 1.133 6.515 2.832l111.316 111.317 111.316-111.317c1.7-1.699 4.249-2.832 6.515-2.832s4.815 1.133 6.515 2.832l14.162 14.163c1.7 1.7 2.833 4.249 2.833 6.515z'></path></svg></span></span></a>";
     330                $item = "<a class='menu-link no_translate' href='#' id='stylable-list-first-item'>$lang_name<span role='presentation' class='dropdown-menu-toggle'><span class='gp-icon icon-arrow'><svg viewBox='0 0 330 512' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em'><path d='M305.913 197.085c0 2.266-1.133 4.815-2.833 6.514L171.087 335.593c-1.7 1.7-4.249 2.832-6.515 2.832s-4.815-1.133-6.515-2.832L26.064 203.599c-1.7-1.7-2.832-4.248-2.832-6.514s1.132-4.816 2.832-6.515l14.162-14.163c1.7-1.699 3.966-2.832 6.515-2.832 2.266 0 4.815 1.133 6.515 2.832l111.316 111.317 111.316-111.317c1.7-1.699 4.249-2.832 6.515-2.832s4.815 1.133 6.515 2.832l14.162 14.163c1.7 1.7 2.833 4.249 2.833 6.515z'></path></svg></span></span></a>";
     331                break;
     332            case 'code-only':
     333                $item = "<a class='menu-link no_translate' href='#' id='stylable-list-first-item'>$this->current_lang<span role='presentation' class='dropdown-menu-toggle'><span class='gp-icon icon-arrow'><svg viewBox='0 0 330 512' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em'><path d='M305.913 197.085c0 2.266-1.133 4.815-2.833 6.514L171.087 335.593c-1.7 1.7-4.249 2.832-6.515 2.832s-4.815-1.133-6.515-2.832L26.064 203.599c-1.7-1.7-2.832-4.248-2.832-6.514s1.132-4.816 2.832-6.515l14.162-14.163c1.7-1.699 3.966-2.832 6.515-2.832 2.266 0 4.815 1.133 6.515 2.832l111.316 111.317 111.316-111.317c1.7-1.699 4.249-2.832 6.515-2.832s4.815 1.133 6.515 2.832l14.162 14.163c1.7 1.7 2.833 4.249 2.833 6.515z'></path></svg></span></span></a>";
    322334                break;
    323335            case 'flag-and-text':
     
    341353    }
    342354
    343         /**
    344         * Returns the markup of the first list item.
    345         *
    346         * @since    1.0.0
    347         */
     355    /**
     356    * Returns the markup of the first list item.
     357    *
     358    * @since    1.0.0
     359    */
    348360    public function get_list_first_item_markup_sc_names() {
    349361        $lang_name = $this->options['original_lang_names'] === 'on' ? ucfirst( transposh_consts::get_language_orig_name( $this->get_current_lang() ) ) : ucfirst( transposh_consts::get_language_name( $this->get_current_lang() ) );
    350362        return "<a href='#' id='shortcode-stylable-list-first-item' class='no_translate'>$lang_name<span role='presentation' class='dropdown-menu-toggle'><span class='gp-icon icon-arrow'><svg viewBox='0 0 330 512' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em'><path d='M305.913 197.085c0 2.266-1.133 4.815-2.833 6.514L171.087 335.593c-1.7 1.7-4.249 2.832-6.515 2.832s-4.815-1.133-6.515-2.832L26.064 203.599c-1.7-1.7-2.832-4.248-2.832-6.514s1.132-4.816 2.832-6.515l14.162-14.163c1.7-1.699 3.966-2.832 6.515-2.832 2.266 0 4.815 1.133 6.515 2.832l111.316 111.317 111.316-111.317c1.7-1.699 4.249-2.832 6.515-2.832s4.815 1.133 6.515 2.832l14.162 14.163c1.7 1.7 2.833 4.249 2.833 6.515z'></path></svg></span></span></a>";
     363    }
     364
     365    /**
     366     * Returns the markup of the first list item.
     367     *
     368     * @since    1.0.0
     369     */
     370    public function get_list_first_item_markup_sc_codes() {
     371        return "<a href='#' id='shortcode-stylable-list-first-item' class='no_translate'>$this->default_lang<span role='presentation' class='dropdown-menu-toggle'><span class='gp-icon icon-arrow'><svg viewBox='0 0 330 512' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em'><path d='M305.913 197.085c0 2.266-1.133 4.815-2.833 6.514L171.087 335.593c-1.7 1.7-4.249 2.832-6.515 2.832s-4.815-1.133-6.515-2.832L26.064 203.599c-1.7-1.7-2.832-4.248-2.832-6.514s1.132-4.816 2.832-6.515l14.162-14.163c1.7-1.699 3.966-2.832 6.515-2.832 2.266 0 4.815 1.133 6.515 2.832l111.316 111.317 111.316-111.317c1.7-1.699 4.249-2.832 6.515-2.832s4.815 1.133 6.515 2.832l14.162 14.163c1.7 1.7 2.833 4.249 2.833 6.515z'></path></svg></span></span></a>";
    351372    }
    352373
     
    379400                $item = "<a class='menu-link'  href='$target'>$lang_name</a>";
    380401                break;
     402            case 'code-only':
     403                $item = "<a class='menu-link'  href='$target'>$lang</a>";
     404                break;
    381405            case 'flag-and-text':
    382406                $item = "<a class='menu-link' style='background: url({$this->flag_path}/$flag_name.png) 0 center no-repeat;' href='$target'>$lang_name</a>";
     
    427451    }
    428452
    429         /**
    430         * Returns the markup for the list items.
    431         *
    432         * @since    1.0.0
    433         */
     453    /**
     454    * Returns the markup for the list items.
     455    *
     456    * @since    1.0.0
     457    */
    434458    public function shortcode_horizontal_flags() {
    435459        $used_languages = $this->used_languages;
     
    443467                $flag_name = $this->get_flag_name( $lang );
    444468                $target    = $this->get_target_page( $lang );
    445                 $items    .= '<li class="switch_lang no_translate""><a class="lsft_sc_h_flags" href="' . $target . '"><img src="' . $this->flag_path . '/' . $flag_name . '.png" alt="' . $lang_name . '"/></a></li>';
     469                $items    .= '<li class="switch_lang no_translate"><a class="lsft_sc_h_flags" href="' . $target . '"><img src="' . $this->flag_path . '/' . $flag_name . '.png" alt="' . $lang_name . '"/></a></li>';
    446470            }
    447471            if ( $this->get_current_lang() != $this->default_lang ) {
     
    457481        }
    458482        return $items;
    459 
    460     }
    461 
    462             /**
    463              * Returns the markup for the list items.
    464              *
    465              * @since    1.0.0
    466              */
     483    }
     484
     485    /**
     486     * Returns the markup for the list items.
     487     *
     488     * @since    1.0.0
     489     */
     490    public function shortcode_horizontal_codes() {
     491        $used_languages = $this->used_languages;
     492        $items          = '';
     493        if ( ! empty( $used_languages ) && count( $used_languages ) > 1 ) {
     494            $items = '<ul id="sh_lsft_horizontal_flags">';
     495            foreach ( $used_languages as $lang ) {
     496                $lang_name = 'on' === $this->options['original_lang_names'] ? ucfirst( transposh_consts::get_language_orig_name( $lang ) ) : ucfirst( transposh_consts::get_language_name( $lang ) );
     497                $target    = $this->get_target_page( $lang ); $flag_name .
     498                $items    .= '<li class="switch_lang no_translate"><a class="lsft_sc_h_flags" href="' . $target . '">' . $lang . '</a></li>';
     499            }
     500            if ( $this->get_current_lang() !== $this->default_lang ) {
     501
     502                $user          = wp_get_current_user();
     503                $allowed_roles = array( 'editor', 'administrator', 'author' );
     504                /**this button will be available only to certain user types */
     505                if ( array_intersect( $allowed_roles, $user->roles ) ) {
     506                    $items .= '<li class="edit_translation no_translate"><a class="lsft_sc_h_flags" href="#"> Edit</a></li>';
     507                }
     508            }
     509            $items .= '</ul>';
     510        }
     511        return $items;
     512    }
     513
     514    /**
     515     * Returns the markup for the list items.
     516     *
     517     * @since    1.0.0
     518     */
    467519    public function shortcode_vertical_flags() {
    468520        $used_languages = $this->used_languages;
     
    558610    }
    559611
    560             /**
    561             * Returns the markup for the list items.
    562             *
    563             * @since    1.0.0
    564             */
     612    /**
     613    * Returns the markup for the list items.
     614    *
     615    * @since    1.0.0
     616    */
    565617    public function shortcode_custom_dropdown_names() {
    566618        $used_languages = $this->used_languages;
     
    589641    }
    590642
    591             /**
    592              * Returns the markup for the list items.
    593              *
    594              * @since    1.0.0
    595              */
     643    /**
     644     * Returns the markup for the list items.
     645     *
     646     * @since    1.0.0
     647     */
     648    public function shortcode_custom_dropdown_codes() {
     649        $used_languages = $this->used_languages;
     650        // wp_enqueue_style($this->plugin_name . '-shortcode_custom_dropdown_flags', $this->style_path . 'shortcode-custom-dropdown-flags.css', array(), $this->version, 'all');
     651        $items  = '<ul id="sh_lsft_custom_dropdown_codes">';
     652        $items .= "<li class='stylable-list'>";
     653        // $items .= $this->get_list_first_item_markup_sc_names();
     654        $items .= $this->get_list_first_item_markup();
     655        // if (($key = array_search($this->get_current_lang(), $used_languages)) !== false) {
     656        // unset($used_languages[$key]);
     657        // }
     658        $items .= "<ul id='sh_sc_codes_submenu'>";
     659        foreach ( $used_languages as $lang ) {
     660            // $items .= "<li class='no_translate'>" . $this->get_list_item_markup_sc_names( $lang ) . '</li>';
     661            $items .= "<li class='no_translate'>" . $this->get_list_item_markup( $lang ) . '</li>';
     662        }
     663        // if ($this->get_current_lang() != $this->default_lang) {
     664        $user          = wp_get_current_user();
     665        $allowed_roles = array( 'editor', 'administrator', 'author' );
     666        /**this button will be available only to certain user types */
     667        if ( array_intersect( $allowed_roles, $user->roles ) ) {
     668            $items .= "<li class='edit_translation no_translate'><a class='lsft_sc_h_flags' href='#'>Edit</a></li>";
     669        }
     670        // }
     671        $items .= '</ul></li>';
     672        $items .= '</ul>';
     673        return $items;
     674    }
     675
     676    /**
     677     * Returns the markup for the list items.
     678     *
     679     * @since    1.0.0
     680     */
    596681    public function shortcode_custom_dropdown_flags_names() {
    597682        $used_languages = $this->used_languages;
     
    637722                if ( in_array( $args->theme_location, $menu_locations, true ) ) {
    638723                    /**DISPLAY FLAGS */
    639                     if ( $this->options['switcher_type'] == 'flags' ) {
     724                    if ( 'flags' === $this->options['switcher_type'] ) {
    640725                        foreach ( $used_languages as $lang ) {
    641726                            $flag_name = $this->get_flag_name( $lang );
     
    643728                            $lang_name = 'on' === $this->options['original_lang_names'] ? ucfirst( transposh_consts::get_language_orig_name( $lang ) ) : ucfirst( transposh_consts::get_language_name( $lang ) );
    644729                            $items    .= '<li class="' . $menu_classes . ' menu-item switch_lang no_translate"><a class="menu-link" href="' . $target . '"><img src="' . $this->flag_path . '/' . $flag_name . '.png" alt="' . $lang_name . '" /></a></li>';
     730                        }
     731                        if ( get_locale() != $this->default_lang ) {
     732
     733                            $user          = wp_get_current_user();
     734                            $allowed_roles = array( 'editor', 'administrator', 'author' );
     735
     736                            // this button will be available only to certain user types.
     737                            if ( array_intersect( $allowed_roles, $user->roles ) ) {
     738                                $items .= '<li class="' . $menu_classes . ' menu-item edit_translation no_translate"><a class="menu-link" href="#"> Edit</a></li>';
     739                            }
     740                        }
     741                    } elseif ( 'codes' === $this->options['switcher_type'] ) {
     742                        $i = 0;
     743                        foreach ( $used_languages as $lang ) {
     744                            $flag_name = $this->get_flag_name( $lang );
     745                            $target    = $this->get_target_page( $lang );
     746                            $lang_name = 'on' === $this->options['original_lang_names'] ? ucfirst( transposh_consts::get_language_orig_name( $lang ) ) : ucfirst( transposh_consts::get_language_name( $lang ) );
     747                            if ($i > 0) {
     748                                $separator = '| ';
     749                            }
     750                            $items    .= '<li class="' . $menu_classes . ' menu-item switch_lang no_translate"><a class="menu-link" href="' . $target . '">' . $lang . '</a></li>';
     751                            $i++;
    645752                        }
    646753                        if ( get_locale() != $this->default_lang ) {
Note: See TracChangeset for help on using the changeset viewer.