Changeset 3429761
- Timestamp:
- 12/30/2025 06:08:48 PM (7 weeks ago)
- Location:
- language-switcher-for-transposh/trunk
- Files:
-
- 3 added
- 7 edited
-
README.txt (modified) (3 diffs)
-
admin/class-cfx-language-switcher-for-transposh-admin.php (modified) (2 diffs)
-
admin/js/cfx-language-switcher-for-transposh-admin.js (modified) (1 diff)
-
admin/partials/cfx-language-switcher-for-transposh-admin-display.php (modified) (5 diffs)
-
assets/styles/basic_codes.css (added)
-
assets/styles/basic_list.css (modified) (3 diffs)
-
assets/styles/shortcode_custom_dropdown_codes.css (added)
-
assets/styles/shortcode_horizontal_codes.css (added)
-
cfx-language-switcher-for-transposh.php (modified) (2 diffs)
-
public/class-cfx-language-switcher-for-transposh-public.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
language-switcher-for-transposh/trunk/README.txt
r3379007 r3429761 4 4 Tags: multi-language, translation 5 5 Requires at least: 4.0.1 6 Tested up to: 6. 8.37 Stable tag: 1.7. 76 Tested up to: 6.9 7 Stable tag: 1.7.8 8 8 Requires PHP: 5.6 9 9 Requires Plugins: transposh-translation-filter-for-wordpress … … 23 23 24 24 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 25 WARNING! If you are still using version 1.5.7, please uninctall it and download the last version. 36 26 Feel free to email me to codingfix-at-codingfix-dot-com if you need help. 37 27 I apologize for the inconvenience and for the problems it may have caused. … … 366 356 * Fixed typos in UI 367 357 358 = 1.7.8 = 359 * Added the option to display languages as codes both as single items and as custom list items 360 368 361 == Upgrade Notice == 369 362 -
language-switcher-for-transposh/trunk/admin/class-cfx-language-switcher-for-transposh-admin.php
r3378342 r3429761 195 195 $known_files = array( 196 196 'basic_flags.css', 197 'basic_codes.css', 197 198 'basic_list.css', 198 199 'basic_select.css', … … 200 201 'shortcode_custom_dropdown_flags_names.css', 201 202 'shortcode_custom_dropdown_names.css', 203 'shortcode_custom_dropdown_codes.css', 202 204 'shortcode_horizontal_flags.css', 203 205 'shortcode_vertical_flags.css', -
language-switcher-for-transposh/trunk/admin/js/cfx-language-switcher-for-transposh-admin.js
r3017796 r3429761 123 123 124 124 $(document).on("change", "#switcher_type", function () { 125 if ($(this).val() == "list") { 125 // if ($(this).val() == "list" || $(this).val() == "select") { 126 if ($(this).val() == "list" ) { 126 127 if (!$("#flag_styles").hasClass("hidden")) { 127 128 $("#flag_styles").addClass("hidden"); -
language-switcher-for-transposh/trunk/admin/partials/cfx-language-switcher-for-transposh-admin-display.php
r3072495 r3429761 64 64 <h2>Language Switcher for Transposh Settings (LSFT)</h2> 65 65 <?php 66 66 67 if ( false !== $transposh_installed ) { 67 68 $default_tab = 'general'; … … 287 288 $select_options = array( 288 289 'Flags' => 'flags', 290 'Codes' => 'codes', 289 291 'Native dropdown (select)' => 'select', 290 292 'Custom dropdown (list)' => 'list', … … 316 318 <br> 317 319 <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> 319 321 <select name="custom_list_items"> 320 322 <?php … … 322 324 'Flag only' => 'flag-only', 323 325 'Text only' => 'text-only', 326 'Code only' => 'code-only', 324 327 'Flag and text' => 'flag-and-text', 325 328 ); … … 473 476 <p>Language Switcher currently support following shortcodes:</p> 474 477 <p>Horizontal flags: [lsft_horizontal_flags]</p> 478 <p>Horizontal flags: [lsft_horizontal_codes]</p> 475 479 <p>Vertical flags: [lsft_vertical_flags]</p> 476 480 <p>Dropdown native select: [lsft_native_dropdown]</p> 477 481 <p>Dropdown flags custom list: [lsft_custom_dropdown_flags]</p> 478 482 <p>Dropdown flags custom list: [lsft_custom_dropdown_names]</p> 483 <p>Dropdown flags custom list: [lsft_custom_dropdown_codes]</p> 479 484 <p>Dropdown flags and names custom list: [lsft_custom_dropdown_flags_names]</p> 480 485 </div> -
language-switcher-for-transposh/trunk/assets/styles/basic_list.css
r2978105 r3429761 2 2 .stylable-list { 3 3 position: relative; 4 background: white;4 /* background: white; */ 5 5 } 6 6 … … 33 33 margin-left: 0 !important; 34 34 flex-direction: column; 35 align-items: center; 36 justify-content: center; 35 37 list-style-type: none !important; 36 38 width: 100% !important; 37 background-color: white !important;39 /* background-color: white !important; */ 38 40 border: none !important; 39 41 box-shadow: none !important; … … 57 59 line-height: 32px; 58 60 margin-top: 10px; 61 text-align: center; 59 62 } 60 63 -
language-switcher-for-transposh/trunk/cfx-language-switcher-for-transposh.php
r3379007 r3429761 16 16 * Plugin URI: https://codingfix.com/language-switcher-for-transposh 17 17 * Description: A small plugin to use a customized language switcher with Transposh plugin. 18 * Version: 1.7. 718 * Version: 1.7.8 19 19 * Author: Marco Gasi 20 20 * Author URI: https://codingfix.com … … 30 30 * Rename this for your plugin and update it as you release new versions. 31 31 */ 32 define( 'CFX_LANGUAGE_SWITCHER_FOR_TRANSPOSH_VERSION', '1.7. 7' );32 define( 'CFX_LANGUAGE_SWITCHER_FOR_TRANSPOSH_VERSION', '1.7.8' ); 33 33 34 34 /** -
language-switcher-for-transposh/trunk/public/class-cfx-language-switcher-for-transposh-public.php
r3072495 r3429761 148 148 include_once WP_PLUGIN_DIR . '/transposh-translation-filter-for-wordpress/core/utils.php'; 149 149 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'] ); 150 154 $this->plugin_name = $plugin_name; 151 155 $this->version = $version; … … 191 195 public function register_shortcodes() { 192 196 add_shortcode( 'lsft_horizontal_flags', array( $this, 'shortcode_horizontal_flags' ) ); 197 add_shortcode( 'lsft_horizontal_codes', array( $this, 'shortcode_horizontal_codes' ) ); 193 198 add_shortcode( 'lsft_vertical_flags', array( $this, 'shortcode_vertical_flags' ) ); 194 199 add_shortcode( 'lsft_custom_dropdown_flags', array( $this, 'shortcode_custom_dropdown_flags' ) ); 195 200 add_shortcode( 'lsft_custom_dropdown_flags_names', array( $this, 'shortcode_custom_dropdown_flags_names' ) ); 196 201 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' ) ); 197 203 add_shortcode( 'lsft_native_dropdown', array( $this, 'shortcode_native_dropdown' ) ); 198 204 } … … 207 213 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cfx-language-switcher-for-transposh-public.css', array(), $this->version, 'all' ); 208 214 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' ); 209 216 wp_enqueue_style( $this->plugin_name . '-basic_list', $this->style_path . 'basic_list.css', array(), '2.0', 'all' ); 210 217 wp_enqueue_style( $this->plugin_name . '-basic_select', $this->style_path . 'basic_select.css', array(), $this->version, 'all' ); 211 218 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' ); 212 220 wp_enqueue_style( $this->plugin_name . '-shortcode_vertical_flags', $this->style_path . 'shortcode_vertical_flags.css', array(), $this->version, 'all' ); 213 221 wp_enqueue_style( $this->plugin_name . '-shortcode_custom_dropdown_flags', $this->style_path . 'shortcode_custom_dropdown_flags.css', array(), $this->version, 'all' ); 214 222 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' ); 215 224 wp_enqueue_style( $this->plugin_name . '-shortcode_custom_dropdown_flags_names', $this->style_path . 'shortcode_custom_dropdown_flags_names.css', array(), $this->version, 'all' ); 216 225 } … … 319 328 break; 320 329 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>"; 322 334 break; 323 335 case 'flag-and-text': … … 341 353 } 342 354 343 /**344 * Returns the markup of the first list item.345 *346 * @since 1.0.0347 */355 /** 356 * Returns the markup of the first list item. 357 * 358 * @since 1.0.0 359 */ 348 360 public function get_list_first_item_markup_sc_names() { 349 361 $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() ) ); 350 362 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>"; 351 372 } 352 373 … … 379 400 $item = "<a class='menu-link' href='$target'>$lang_name</a>"; 380 401 break; 402 case 'code-only': 403 $item = "<a class='menu-link' href='$target'>$lang</a>"; 404 break; 381 405 case 'flag-and-text': 382 406 $item = "<a class='menu-link' style='background: url({$this->flag_path}/$flag_name.png) 0 center no-repeat;' href='$target'>$lang_name</a>"; … … 427 451 } 428 452 429 /**430 * Returns the markup for the list items.431 *432 * @since 1.0.0433 */453 /** 454 * Returns the markup for the list items. 455 * 456 * @since 1.0.0 457 */ 434 458 public function shortcode_horizontal_flags() { 435 459 $used_languages = $this->used_languages; … … 443 467 $flag_name = $this->get_flag_name( $lang ); 444 468 $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>'; 446 470 } 447 471 if ( $this->get_current_lang() != $this->default_lang ) { … … 457 481 } 458 482 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 */ 467 519 public function shortcode_vertical_flags() { 468 520 $used_languages = $this->used_languages; … … 558 610 } 559 611 560 /**561 * Returns the markup for the list items.562 *563 * @since 1.0.0564 */612 /** 613 * Returns the markup for the list items. 614 * 615 * @since 1.0.0 616 */ 565 617 public function shortcode_custom_dropdown_names() { 566 618 $used_languages = $this->used_languages; … … 589 641 } 590 642 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 */ 596 681 public function shortcode_custom_dropdown_flags_names() { 597 682 $used_languages = $this->used_languages; … … 637 722 if ( in_array( $args->theme_location, $menu_locations, true ) ) { 638 723 /**DISPLAY FLAGS */ 639 if ( $this->options['switcher_type'] == 'flags') {724 if ( 'flags' === $this->options['switcher_type'] ) { 640 725 foreach ( $used_languages as $lang ) { 641 726 $flag_name = $this->get_flag_name( $lang ); … … 643 728 $lang_name = 'on' === $this->options['original_lang_names'] ? ucfirst( transposh_consts::get_language_orig_name( $lang ) ) : ucfirst( transposh_consts::get_language_name( $lang ) ); 644 729 $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++; 645 752 } 646 753 if ( get_locale() != $this->default_lang ) {
Note: See TracChangeset
for help on using the changeset viewer.