Changeset 3471951
- Timestamp:
- 03/01/2026 09:08:11 AM (9 days ago)
- Location:
- hreflang-manager-lite
- Files:
-
- 4 deleted
- 10 edited
- 1 copied
-
tags/1.16 (copied) (copied from hreflang-manager-lite/trunk)
-
tags/1.16/admin/assets/css/meta-box.css (modified) (1 diff)
-
tags/1.16/admin/assets/css/select2-custom.css (deleted)
-
tags/1.16/admin/assets/js/meta-box.js (deleted)
-
tags/1.16/admin/class-daexthrmal-admin.php (modified) (13 diffs)
-
tags/1.16/init.php (modified) (1 diff)
-
tags/1.16/readme.txt (modified) (2 diffs)
-
tags/1.16/shared/class-daexthrmal-shared.php (modified) (1 diff)
-
trunk/admin/assets/css/meta-box.css (modified) (1 diff)
-
trunk/admin/assets/css/select2-custom.css (deleted)
-
trunk/admin/assets/js/meta-box.js (deleted)
-
trunk/admin/class-daexthrmal-admin.php (modified) (13 diffs)
-
trunk/init.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shared/class-daexthrmal-shared.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hreflang-manager-lite/tags/1.16/admin/assets/css/meta-box.css
r3462372 r3471951 1 #daexthrmal-meta .inside{ 1 #daexthrmal-meta > .inside { 2 margin: 0 !important; 3 padding: 0 !important; 4 } 5 6 .daexthrmal-metabox-single-connection{ 7 display: flex; 8 flex-direction: column; 9 } 10 11 .daexthrmal-metabox-single-connection:not(:last-of-type){ 12 border-bottom: 1px solid #e0e0e0; 13 } 14 15 .daexthrmal-field { 16 position: relative; 2 17 margin: 0; 18 padding: 0 16px; 19 margin-top: 16px; 20 } 21 22 .daexthrmal-field:last-of-type{ 23 margin-bottom: 16px; 24 } 25 26 .daexthrmal-field label { 27 display: block; 28 font-weight: 500; 29 margin: 0 0 3px; 3 30 padding: 0; 4 31 } 5 32 6 .daexthrmal-table-hreflang-manager{ 7 border-collapse: collapse; 33 .daexthrmal-field input[type=text] { 8 34 width: 100%; 9 border: 0;35 padding: 4px 8px; 10 36 margin: 0; 37 box-sizing: border-box; 38 font-size: 14px; 39 line-height: 1.4; 11 40 } 12 41 13 .daexthrmal-table-hreflang-manager *{ 14 font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; 15 font-weight: 400; 16 font-size: 12px !important; 42 .daexthrmal-field select { 43 width: 100%; 44 padding: 4px 8px; 45 margin: 0; 46 box-sizing: border-box; 47 font-size: 14px; 48 line-height: 1.4; 17 49 } 18 50 19 .daexthrmal- table-hreflang-manager input[type="text"],20 .daexthrmal-table-hreflang-manager select{ 21 color: #333 !important;51 .daexthrmal-label { 52 vertical-align: top; 53 margin: 0 0 10px; 22 54 } 23 24 .daexthrmal-table-hreflang-manager input[type="text"]{25 height: 24px;26 line-height: 16px;27 box-shadow: none;28 padding: 3px 5px;29 margin: 0 !important;30 border-color: #dddddd;31 border-radius: 0;32 min-height: auto;33 }34 35 .daexthrmal-table-hreflang-manager input[type="text"]:focus{36 border-color: #5b9dd9;37 }38 39 .daexthrmal-table-hreflang-manager select{40 height: 24px;41 line-height: 24px;42 }43 44 .daexthrmal-table-hreflang-manager > tbody > tr > td,45 .daexthrmal-table-hreflang-manager > tbody > tr > th{46 padding: 8px;47 }48 49 .daexthrmal-table-hreflang-manager > tbody > tr:not(:last-child) > td,50 .daexthrmal-table-hreflang-manager > tbody > tr:not(:last-child) > th{51 border-bottom: 1px solid #eeeeee;52 }53 54 .daexthrmal-table-hreflang-manager > tbody > tr > th{55 text-align: right;56 color: #555;57 }58 59 .daexthrmal-table-hreflang-manager > tbody > tr > th > label{60 height: 24px;61 line-height: 24px;62 display: block;63 overflow: hidden;64 }65 66 .daexthrmal-table-hreflang-manager .daexthrmal-language,67 .daexthrmal-table-hreflang-manager .daexthrmal-script,68 .daexthrmal-table-hreflang-manager .daexthrmal-locale{69 width: 300px !important;70 visibility: hidden !important;71 }72 73 .daexthrmal-url{74 width: 100%;75 max-width: 570px;76 }77 78 /* Meta box in "Side" position -------------------------------------------------------------------------------------- */79 #side-sortables .daexthrmal-table-hreflang-manager .regular-text,80 #side-sortables .daexthrmal-table-hreflang-manager .select2-container{81 min-width: 190px !important;82 max-width: 190px !important;83 }84 85 /* Responsive ------------------------------------------------------------------------------------------------------- */86 @media screen and (max-width: 782px){87 .daexthrmal-table-hreflang-manager label{88 text-align: left;89 }90 #side-sortables .select2,91 .select2{92 width: 100% !important;93 max-width: 100% !important;94 min-width: 0 !important;95 }96 .daexthrmal-table-hreflang-manager > tbody > tr > th{97 border-bottom: 1px solid #eeeeee;98 }99 } -
hreflang-manager-lite/tags/1.16/admin/class-daexthrmal-admin.php
r3462507 r3471951 243 243 if ( in_array( $screen->id, $meta_box_post_types_a, true ) ) { 244 244 wp_enqueue_style( $this->shared->get( 'slug' ) . '-meta-box', $this->shared->get( 'url' ) . 'admin/assets/css/meta-box.css', array(), $this->shared->get( 'ver' ) ); 245 246 // Select2.247 wp_enqueue_style(248 $this->shared->get( 'slug' ) . '-select2',249 $this->shared->get( 'url' ) . 'admin/assets/inc/select2/css/select2.min.css',250 array(),251 $this->shared->get( 'ver' )252 );253 254 wp_enqueue_style( $this->shared->get( 'slug' ) . '-select2-custom', $this->shared->get( 'url' ) . 'admin/assets/css/select2-custom.css', array(), $this->shared->get( 'ver' ) );255 256 245 } 257 246 } … … 320 309 } 321 310 322 $meta_box_post_types_a = $this->shared->get_post_types_with_ui();323 324 if ( in_array( $screen->id, $meta_box_post_types_a, true ) ) {325 326 wp_enqueue_script(327 $this->shared->get( 'slug' ) . '-select2',328 $this->shared->get( 'url' ) . 'admin/assets/inc/select2/js/select2.min.js',329 array( 'jquery' ),330 $this->shared->get( 'ver' ),331 true332 );333 334 wp_enqueue_script( $this->shared->get( 'slug' ) . '-meta-box', $this->shared->get( 'url' ) . 'admin/assets/js/meta-box.js', array( 'jquery', $this->shared->get( 'slug' ) . '-select2' ), $this->shared->get( 'ver' ), true );335 }336 311 } 337 312 … … 662 637 ?> 663 638 664 <table class="form-table daexthrmal-table-hreflang-manager">665 666 <tbody>667 668 639 <?php 669 670 /**671 * Activate the 'disabled="disabled"' attribute when the post status is not:672 * - publish673 * - future674 * - pending675 * - private676 */677 $post_status = get_post_status();678 if ( 'publish' !== $post_status && 'future' !== $post_status && 'pending' !== $post_status && 'private' !== $post_status ) {679 $input_disabled = 'disabled';680 } else {681 $input_disabled = '';682 }683 640 684 641 /** … … 711 668 ?> 712 669 670 <div class="daexthrmal-metabox-single-connection"> 671 713 672 <!-- url --> 714 <tr valign="top"> 715 <th scope="row"><label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 716 <td><input autocomplete="off" <?php echo esc_attr( $input_disabled ); ?> type="text" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/></td> 717 </tr> 673 <div class="daexthrmal-field"> 674 <div class="daexthrmal-label"> 675 <label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 676 </div> 677 <div class="daexthrmal-input"> 678 <input autocomplete="off" type="text" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/> 679 </div> 680 </div> 718 681 719 682 <!-- Language --> 720 <tr valign="top"> 721 <th scope="row"><label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 722 <td> 723 <select <?php echo esc_attr( $input_disabled ); ?> id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>"> 683 <div class="daexthrmal-field"> 684 <div class="daexthrmal-label"> 685 <label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 686 </div> 687 <div class="daexthrmal-input"> 688 <select id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>"> 724 689 <?php 725 690 … … 731 696 ?> 732 697 </select> 733 </ td>734 </ tr>698 </div> 699 </div> 735 700 736 701 <!-- Script --> 737 <tr valign="top"> 738 <th scope="row"><label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 739 <td> 740 <select <?php echo esc_attr( $input_disabled ); ?> id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>"> 702 <div class="daexthrmal-field"> 703 <div class="daexthrmal-label"> 704 <label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 705 </div> 706 <div class="daexthrmal-input"> 707 <select id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>"> 741 708 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> 742 709 <?php … … 749 716 ?> 750 717 </select> 751 </ td>752 </ tr>718 </div> 719 </div> 753 720 754 721 <!-- Locale --> 755 <tr valign="top"> 756 <th scope="row"><label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 757 <td> 758 <select <?php echo esc_attr( $input_disabled ); ?> id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>"> 722 <div class="daexthrmal-field"> 723 <div class="daexthrmal-label"> 724 <label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 725 </div> 726 <div class="daexthrmal-input"> 727 <select id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>"> 759 728 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> 760 729 <?php … … 767 736 ?> 768 737 </select> 769 </td> 770 </tr> 738 </div> 739 </div> 740 741 </div> 771 742 772 743 <?php … … 780 751 ?> 781 752 753 <div class="daexthrmal-metabox-single-connection"> 754 782 755 <!-- url --> 783 <tr valign="top"> 784 <th scope="row"><label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 785 <td><input autocomplete="off" type="text" value="<?php echo esc_attr( stripslashes( $permalink_connections->{'url' .$i} ) ); ?>" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/></td> 786 787 </tr> 756 <div class="daexthrmal-field"> 757 <div class="daexthrmal-label"> 758 <label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 759 </div> 760 <div class="daexthrmal-input"> 761 <input autocomplete="off" type="text" value="<?php echo esc_attr( stripslashes( $permalink_connections->{'url' .$i} ) ); ?>" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/> 762 </div> 763 </div> 788 764 789 765 <!-- Language <?php echo intval( $i, 10 ); ?> --> 790 <tr valign="top"> 791 <th scope="row"><label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 792 <td> 766 <div class="daexthrmal-field"> 767 <div class="daexthrmal-label"> 768 <label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 769 </div> 770 <div class="daexthrmal-input"> 793 771 <select id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>"> 794 772 <?php … … 801 779 ?> 802 780 </select> 803 </ td>804 </ tr>781 </div> 782 </div> 805 783 806 784 <!-- Script <?php echo intval( $i, 10 ); ?> --> 807 <tr valign="top"> 808 <th scope="row"><label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 809 <td> 785 <div class="daexthrmal-field"> 786 <div class="daexthrmal-label"> 787 <label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 788 </div> 789 <div class="daexthrmal-input"> 810 790 <select id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>"> 811 791 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> … … 819 799 ?> 820 800 </select> 821 </ td>822 </ tr>801 </div> 802 </div> 823 803 824 804 <!-- Locale <?php echo intval( $i, 10 ); ?> --> 825 <tr valign="top"> 826 <th scope="row"><label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 827 <td> 805 <div class="daexthrmal-field"> 806 <div class="daexthrmal-label"> 807 <label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 808 </div> 809 <div class="daexthrmal-input"> 828 810 <select id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>"> 829 811 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> … … 837 819 ?> 838 820 </select> 839 </td> 840 </tr> 821 </div> 822 </div> 823 824 </div> 841 825 842 826 <?php … … 846 830 847 831 ?> 848 849 </tbody>850 851 </table>852 832 853 833 <?php … … 893 873 894 874 /* - end security verification - */ 895 896 /*897 * Return ( do not save ) if the post status is not:898 * - publish899 * - future900 * - pending901 * - private902 */903 $post_status = get_post_status();904 if ( 'publish' !== $post_status && 'future' !== $post_status && 'pending' !== $post_status && 'private' !== $post_status ) {905 return;}906 875 907 876 // Init vars. -
hreflang-manager-lite/tags/1.16/init.php
r3462507 r3471951 3 3 * Plugin Name: Hreflang Manager 4 4 * Description: Set language and regional URL for better SEO performance. (Lite Version) 5 * Version: 1.1 55 * Version: 1.16 6 6 * Author: DAEXT 7 7 * Author URI: https://daext.com -
hreflang-manager-lite/tags/1.16/readme.txt
r3462507 r3471951 6 6 Tested up to: 6.9.1 7 7 Requires PHP: 5.2 8 Stable tag: 1.1 58 Stable tag: 1.16 9 9 License: GPLv3 10 10 … … 64 64 65 65 == Changelog == 66 67 = 1.16 = 68 69 *March 1, 2026* 70 71 * The style of the post editor meta box has been updated for improved consistency with the native classic editor interface. In addition, the Select2 library is no longer used for select elements, as these have been replaced with native HTML select fields. 72 * Additional minor functional improvements to the post editor meta box. 66 73 67 74 = 1.15 = -
hreflang-manager-lite/tags/1.16/shared/class-daexthrmal-shared.php
r3462507 r3471951 41 41 42 42 $this->data['slug'] = 'daexthrmal'; 43 $this->data['ver'] = '1.1 5';43 $this->data['ver'] = '1.16'; 44 44 $this->data['dir'] = substr( plugin_dir_path( __FILE__ ), 0, -7 ); 45 45 $this->data['url'] = substr( plugin_dir_url( __FILE__ ), 0, -7 ); -
hreflang-manager-lite/trunk/admin/assets/css/meta-box.css
r3462372 r3471951 1 #daexthrmal-meta .inside{ 1 #daexthrmal-meta > .inside { 2 margin: 0 !important; 3 padding: 0 !important; 4 } 5 6 .daexthrmal-metabox-single-connection{ 7 display: flex; 8 flex-direction: column; 9 } 10 11 .daexthrmal-metabox-single-connection:not(:last-of-type){ 12 border-bottom: 1px solid #e0e0e0; 13 } 14 15 .daexthrmal-field { 16 position: relative; 2 17 margin: 0; 18 padding: 0 16px; 19 margin-top: 16px; 20 } 21 22 .daexthrmal-field:last-of-type{ 23 margin-bottom: 16px; 24 } 25 26 .daexthrmal-field label { 27 display: block; 28 font-weight: 500; 29 margin: 0 0 3px; 3 30 padding: 0; 4 31 } 5 32 6 .daexthrmal-table-hreflang-manager{ 7 border-collapse: collapse; 33 .daexthrmal-field input[type=text] { 8 34 width: 100%; 9 border: 0;35 padding: 4px 8px; 10 36 margin: 0; 37 box-sizing: border-box; 38 font-size: 14px; 39 line-height: 1.4; 11 40 } 12 41 13 .daexthrmal-table-hreflang-manager *{ 14 font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; 15 font-weight: 400; 16 font-size: 12px !important; 42 .daexthrmal-field select { 43 width: 100%; 44 padding: 4px 8px; 45 margin: 0; 46 box-sizing: border-box; 47 font-size: 14px; 48 line-height: 1.4; 17 49 } 18 50 19 .daexthrmal- table-hreflang-manager input[type="text"],20 .daexthrmal-table-hreflang-manager select{ 21 color: #333 !important;51 .daexthrmal-label { 52 vertical-align: top; 53 margin: 0 0 10px; 22 54 } 23 24 .daexthrmal-table-hreflang-manager input[type="text"]{25 height: 24px;26 line-height: 16px;27 box-shadow: none;28 padding: 3px 5px;29 margin: 0 !important;30 border-color: #dddddd;31 border-radius: 0;32 min-height: auto;33 }34 35 .daexthrmal-table-hreflang-manager input[type="text"]:focus{36 border-color: #5b9dd9;37 }38 39 .daexthrmal-table-hreflang-manager select{40 height: 24px;41 line-height: 24px;42 }43 44 .daexthrmal-table-hreflang-manager > tbody > tr > td,45 .daexthrmal-table-hreflang-manager > tbody > tr > th{46 padding: 8px;47 }48 49 .daexthrmal-table-hreflang-manager > tbody > tr:not(:last-child) > td,50 .daexthrmal-table-hreflang-manager > tbody > tr:not(:last-child) > th{51 border-bottom: 1px solid #eeeeee;52 }53 54 .daexthrmal-table-hreflang-manager > tbody > tr > th{55 text-align: right;56 color: #555;57 }58 59 .daexthrmal-table-hreflang-manager > tbody > tr > th > label{60 height: 24px;61 line-height: 24px;62 display: block;63 overflow: hidden;64 }65 66 .daexthrmal-table-hreflang-manager .daexthrmal-language,67 .daexthrmal-table-hreflang-manager .daexthrmal-script,68 .daexthrmal-table-hreflang-manager .daexthrmal-locale{69 width: 300px !important;70 visibility: hidden !important;71 }72 73 .daexthrmal-url{74 width: 100%;75 max-width: 570px;76 }77 78 /* Meta box in "Side" position -------------------------------------------------------------------------------------- */79 #side-sortables .daexthrmal-table-hreflang-manager .regular-text,80 #side-sortables .daexthrmal-table-hreflang-manager .select2-container{81 min-width: 190px !important;82 max-width: 190px !important;83 }84 85 /* Responsive ------------------------------------------------------------------------------------------------------- */86 @media screen and (max-width: 782px){87 .daexthrmal-table-hreflang-manager label{88 text-align: left;89 }90 #side-sortables .select2,91 .select2{92 width: 100% !important;93 max-width: 100% !important;94 min-width: 0 !important;95 }96 .daexthrmal-table-hreflang-manager > tbody > tr > th{97 border-bottom: 1px solid #eeeeee;98 }99 } -
hreflang-manager-lite/trunk/admin/class-daexthrmal-admin.php
r3462507 r3471951 243 243 if ( in_array( $screen->id, $meta_box_post_types_a, true ) ) { 244 244 wp_enqueue_style( $this->shared->get( 'slug' ) . '-meta-box', $this->shared->get( 'url' ) . 'admin/assets/css/meta-box.css', array(), $this->shared->get( 'ver' ) ); 245 246 // Select2.247 wp_enqueue_style(248 $this->shared->get( 'slug' ) . '-select2',249 $this->shared->get( 'url' ) . 'admin/assets/inc/select2/css/select2.min.css',250 array(),251 $this->shared->get( 'ver' )252 );253 254 wp_enqueue_style( $this->shared->get( 'slug' ) . '-select2-custom', $this->shared->get( 'url' ) . 'admin/assets/css/select2-custom.css', array(), $this->shared->get( 'ver' ) );255 256 245 } 257 246 } … … 320 309 } 321 310 322 $meta_box_post_types_a = $this->shared->get_post_types_with_ui();323 324 if ( in_array( $screen->id, $meta_box_post_types_a, true ) ) {325 326 wp_enqueue_script(327 $this->shared->get( 'slug' ) . '-select2',328 $this->shared->get( 'url' ) . 'admin/assets/inc/select2/js/select2.min.js',329 array( 'jquery' ),330 $this->shared->get( 'ver' ),331 true332 );333 334 wp_enqueue_script( $this->shared->get( 'slug' ) . '-meta-box', $this->shared->get( 'url' ) . 'admin/assets/js/meta-box.js', array( 'jquery', $this->shared->get( 'slug' ) . '-select2' ), $this->shared->get( 'ver' ), true );335 }336 311 } 337 312 … … 662 637 ?> 663 638 664 <table class="form-table daexthrmal-table-hreflang-manager">665 666 <tbody>667 668 639 <?php 669 670 /**671 * Activate the 'disabled="disabled"' attribute when the post status is not:672 * - publish673 * - future674 * - pending675 * - private676 */677 $post_status = get_post_status();678 if ( 'publish' !== $post_status && 'future' !== $post_status && 'pending' !== $post_status && 'private' !== $post_status ) {679 $input_disabled = 'disabled';680 } else {681 $input_disabled = '';682 }683 640 684 641 /** … … 711 668 ?> 712 669 670 <div class="daexthrmal-metabox-single-connection"> 671 713 672 <!-- url --> 714 <tr valign="top"> 715 <th scope="row"><label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 716 <td><input autocomplete="off" <?php echo esc_attr( $input_disabled ); ?> type="text" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/></td> 717 </tr> 673 <div class="daexthrmal-field"> 674 <div class="daexthrmal-label"> 675 <label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 676 </div> 677 <div class="daexthrmal-input"> 678 <input autocomplete="off" type="text" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/> 679 </div> 680 </div> 718 681 719 682 <!-- Language --> 720 <tr valign="top"> 721 <th scope="row"><label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 722 <td> 723 <select <?php echo esc_attr( $input_disabled ); ?> id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>"> 683 <div class="daexthrmal-field"> 684 <div class="daexthrmal-label"> 685 <label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 686 </div> 687 <div class="daexthrmal-input"> 688 <select id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>"> 724 689 <?php 725 690 … … 731 696 ?> 732 697 </select> 733 </ td>734 </ tr>698 </div> 699 </div> 735 700 736 701 <!-- Script --> 737 <tr valign="top"> 738 <th scope="row"><label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 739 <td> 740 <select <?php echo esc_attr( $input_disabled ); ?> id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>"> 702 <div class="daexthrmal-field"> 703 <div class="daexthrmal-label"> 704 <label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 705 </div> 706 <div class="daexthrmal-input"> 707 <select id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>"> 741 708 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> 742 709 <?php … … 749 716 ?> 750 717 </select> 751 </ td>752 </ tr>718 </div> 719 </div> 753 720 754 721 <!-- Locale --> 755 <tr valign="top"> 756 <th scope="row"><label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 757 <td> 758 <select <?php echo esc_attr( $input_disabled ); ?> id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>"> 722 <div class="daexthrmal-field"> 723 <div class="daexthrmal-label"> 724 <label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 725 </div> 726 <div class="daexthrmal-input"> 727 <select id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>"> 759 728 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> 760 729 <?php … … 767 736 ?> 768 737 </select> 769 </td> 770 </tr> 738 </div> 739 </div> 740 741 </div> 771 742 772 743 <?php … … 780 751 ?> 781 752 753 <div class="daexthrmal-metabox-single-connection"> 754 782 755 <!-- url --> 783 <tr valign="top"> 784 <th scope="row"><label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 785 <td><input autocomplete="off" type="text" value="<?php echo esc_attr( stripslashes( $permalink_connections->{'url' .$i} ) ); ?>" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/></td> 786 787 </tr> 756 <div class="daexthrmal-field"> 757 <div class="daexthrmal-label"> 758 <label for="url<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'URL', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 759 </div> 760 <div class="daexthrmal-input"> 761 <input autocomplete="off" type="text" value="<?php echo esc_attr( stripslashes( $permalink_connections->{'url' .$i} ) ); ?>" id="url<?php echo esc_attr( $i ); ?>" maxlength="2083" name="url<?php echo esc_attr( $i ); ?>" class="regular-text daexthrmal-url"/> 762 </div> 763 </div> 788 764 789 765 <!-- Language <?php echo intval( $i, 10 ); ?> --> 790 <tr valign="top"> 791 <th scope="row"><label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 792 <td> 766 <div class="daexthrmal-field"> 767 <div class="daexthrmal-label"> 768 <label for="language<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Language', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 769 </div> 770 <div class="daexthrmal-input"> 793 771 <select id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>"> 794 772 <?php … … 801 779 ?> 802 780 </select> 803 </ td>804 </ tr>781 </div> 782 </div> 805 783 806 784 <!-- Script <?php echo intval( $i, 10 ); ?> --> 807 <tr valign="top"> 808 <th scope="row"><label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 809 <td> 785 <div class="daexthrmal-field"> 786 <div class="daexthrmal-label"> 787 <label for="script<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Script', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 788 </div> 789 <div class="daexthrmal-input"> 810 790 <select id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>"> 811 791 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> … … 819 799 ?> 820 800 </select> 821 </ td>822 </ tr>801 </div> 802 </div> 823 803 824 804 <!-- Locale <?php echo intval( $i, 10 ); ?> --> 825 <tr valign="top"> 826 <th scope="row"><label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label></th> 827 <td> 805 <div class="daexthrmal-field"> 806 <div class="daexthrmal-label"> 807 <label for="locale<?php echo esc_attr( $i ); ?>"><?php esc_html_e( 'Locale', 'hreflang-manager-lite' ); ?> <?php echo esc_html( $i ); ?></label> 808 </div> 809 <div class="daexthrmal-input"> 828 810 <select id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>"> 829 811 <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option> … … 837 819 ?> 838 820 </select> 839 </td> 840 </tr> 821 </div> 822 </div> 823 824 </div> 841 825 842 826 <?php … … 846 830 847 831 ?> 848 849 </tbody>850 851 </table>852 832 853 833 <?php … … 893 873 894 874 /* - end security verification - */ 895 896 /*897 * Return ( do not save ) if the post status is not:898 * - publish899 * - future900 * - pending901 * - private902 */903 $post_status = get_post_status();904 if ( 'publish' !== $post_status && 'future' !== $post_status && 'pending' !== $post_status && 'private' !== $post_status ) {905 return;}906 875 907 876 // Init vars. -
hreflang-manager-lite/trunk/init.php
r3462507 r3471951 3 3 * Plugin Name: Hreflang Manager 4 4 * Description: Set language and regional URL for better SEO performance. (Lite Version) 5 * Version: 1.1 55 * Version: 1.16 6 6 * Author: DAEXT 7 7 * Author URI: https://daext.com -
hreflang-manager-lite/trunk/readme.txt
r3462507 r3471951 6 6 Tested up to: 6.9.1 7 7 Requires PHP: 5.2 8 Stable tag: 1.1 58 Stable tag: 1.16 9 9 License: GPLv3 10 10 … … 64 64 65 65 == Changelog == 66 67 = 1.16 = 68 69 *March 1, 2026* 70 71 * The style of the post editor meta box has been updated for improved consistency with the native classic editor interface. In addition, the Select2 library is no longer used for select elements, as these have been replaced with native HTML select fields. 72 * Additional minor functional improvements to the post editor meta box. 66 73 67 74 = 1.15 = -
hreflang-manager-lite/trunk/shared/class-daexthrmal-shared.php
r3462507 r3471951 41 41 42 42 $this->data['slug'] = 'daexthrmal'; 43 $this->data['ver'] = '1.1 5';43 $this->data['ver'] = '1.16'; 44 44 $this->data['dir'] = substr( plugin_dir_path( __FILE__ ), 0, -7 ); 45 45 $this->data['url'] = substr( plugin_dir_url( __FILE__ ), 0, -7 );
Note: See TracChangeset
for help on using the changeset viewer.