Plugin Directory

Changeset 3471951


Ignore:
Timestamp:
03/01/2026 09:08:11 AM (9 days ago)
Author:
daext
Message:

Committing and tagging 1.16

Location:
hreflang-manager-lite
Files:
4 deleted
10 edited
1 copied

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;
    217    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;
    330    padding: 0;
    431}
    532
    6 .daexthrmal-table-hreflang-manager{
    7     border-collapse: collapse;
     33.daexthrmal-field input[type=text] {
    834    width: 100%;
    9     border: 0;
     35    padding: 4px 8px;
    1036    margin: 0;
     37    box-sizing: border-box;
     38    font-size: 14px;
     39    line-height: 1.4;
    1140}
    1241
    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;
    1749}
    1850
    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;
    2254}
    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  
    243243        if ( in_array( $screen->id, $meta_box_post_types_a, true ) ) {
    244244            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 
    256245        }
    257246    }
     
    320309        }
    321310
    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                 true
    332             );
    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         }
    336311    }
    337312
     
    662637        ?>
    663638
    664         <table class="form-table daexthrmal-table-hreflang-manager">
    665 
    666             <tbody>
    667 
    668639            <?php
    669 
    670             /**
    671              * Activate the 'disabled="disabled"' attribute when the post status is not:
    672              *  - publish
    673              *  - future
    674              *  - pending
    675              *  - private
    676              */
    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             }
    683640
    684641            /**
     
    711668                    ?>
    712669
     670                    <div class="daexthrmal-metabox-single-connection">
     671
    713672                    <!-- 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>
    718681
    719682                    <!-- 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 ); ?>">
    724689                                <?php
    725690
     
    731696                                ?>
    732697                            </select>
    733                         </td>
    734                     </tr>
     698                        </div>
     699                    </div>
    735700
    736701                    <!-- 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 ); ?>">
    741708                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
    742709                                <?php
     
    749716                                ?>
    750717                            </select>
    751                         </td>
    752                     </tr>
     718                        </div>
     719                    </div>
    753720
    754721                    <!-- 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 ); ?>">
    759728                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
    760729                                <?php
     
    767736                                ?>
    768737                            </select>
    769                         </td>
    770                     </tr>
     738                        </div>
     739                    </div>
     740
     741                    </div>
    771742
    772743                    <?php
     
    780751                    ?>
    781752
     753                    <div class="daexthrmal-metabox-single-connection">
     754
    782755                    <!-- 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>
    788764
    789765                    <!-- 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">
    793771                            <select id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>">
    794772                                <?php
     
    801779                                ?>
    802780                            </select>
    803                         </td>
    804                     </tr>
     781                        </div>
     782                    </div>
    805783
    806784                    <!-- 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">
    810790                            <select id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>">
    811791                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
     
    819799                                ?>
    820800                            </select>
    821                         </td>
    822                     </tr>
     801                        </div>
     802                    </div>
    823803
    824804                    <!-- 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">
    828810                            <select id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>">
    829811                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
     
    837819                                ?>
    838820                            </select>
    839                         </td>
    840                     </tr>
     821                        </div>
     822                    </div>
     823
     824                    </div>
    841825
    842826                    <?php
     
    846830
    847831        ?>
    848 
    849         </tbody>
    850 
    851         </table>
    852832
    853833        <?php
     
    893873
    894874        /* - end security verification - */
    895 
    896         /*
    897          * Return ( do not save ) if the post status is not:
    898          * - publish
    899          * - future
    900          * - pending
    901          * - private
    902          */
    903         $post_status = get_post_status();
    904         if ( 'publish' !== $post_status && 'future' !== $post_status && 'pending' !== $post_status && 'private' !== $post_status ) {
    905             return;}
    906875
    907876        // Init vars.
  • hreflang-manager-lite/tags/1.16/init.php

    r3462507 r3471951  
    33 * Plugin Name: Hreflang Manager
    44 * Description: Set language and regional URL for better SEO performance. (Lite Version)
    5  * Version: 1.15
     5 * Version: 1.16
    66 * Author: DAEXT
    77 * Author URI: https://daext.com
  • hreflang-manager-lite/tags/1.16/readme.txt

    r3462507 r3471951  
    66Tested up to: 6.9.1
    77Requires PHP: 5.2
    8 Stable tag: 1.15
     8Stable tag: 1.16
    99License: GPLv3
    1010
     
    6464
    6565== 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.
    6673
    6774= 1.15 =
  • hreflang-manager-lite/tags/1.16/shared/class-daexthrmal-shared.php

    r3462507 r3471951  
    4141
    4242        $this->data['slug'] = 'daexthrmal';
    43         $this->data['ver']  = '1.15';
     43        $this->data['ver']  = '1.16';
    4444        $this->data['dir']  = substr( plugin_dir_path( __FILE__ ), 0, -7 );
    4545        $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;
    217    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;
    330    padding: 0;
    431}
    532
    6 .daexthrmal-table-hreflang-manager{
    7     border-collapse: collapse;
     33.daexthrmal-field input[type=text] {
    834    width: 100%;
    9     border: 0;
     35    padding: 4px 8px;
    1036    margin: 0;
     37    box-sizing: border-box;
     38    font-size: 14px;
     39    line-height: 1.4;
    1140}
    1241
    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;
    1749}
    1850
    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;
    2254}
    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  
    243243        if ( in_array( $screen->id, $meta_box_post_types_a, true ) ) {
    244244            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 
    256245        }
    257246    }
     
    320309        }
    321310
    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                 true
    332             );
    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         }
    336311    }
    337312
     
    662637        ?>
    663638
    664         <table class="form-table daexthrmal-table-hreflang-manager">
    665 
    666             <tbody>
    667 
    668639            <?php
    669 
    670             /**
    671              * Activate the 'disabled="disabled"' attribute when the post status is not:
    672              *  - publish
    673              *  - future
    674              *  - pending
    675              *  - private
    676              */
    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             }
    683640
    684641            /**
     
    711668                    ?>
    712669
     670                    <div class="daexthrmal-metabox-single-connection">
     671
    713672                    <!-- 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>
    718681
    719682                    <!-- 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 ); ?>">
    724689                                <?php
    725690
     
    731696                                ?>
    732697                            </select>
    733                         </td>
    734                     </tr>
     698                        </div>
     699                    </div>
    735700
    736701                    <!-- 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 ); ?>">
    741708                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
    742709                                <?php
     
    749716                                ?>
    750717                            </select>
    751                         </td>
    752                     </tr>
     718                        </div>
     719                    </div>
    753720
    754721                    <!-- 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 ); ?>">
    759728                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
    760729                                <?php
     
    767736                                ?>
    768737                            </select>
    769                         </td>
    770                     </tr>
     738                        </div>
     739                    </div>
     740
     741                    </div>
    771742
    772743                    <?php
     
    780751                    ?>
    781752
     753                    <div class="daexthrmal-metabox-single-connection">
     754
    782755                    <!-- 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>
    788764
    789765                    <!-- 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">
    793771                            <select id="language<?php echo esc_attr( $i ); ?>" class="daexthrmal-language" name="language<?php echo esc_attr( $i ); ?>">
    794772                                <?php
     
    801779                                ?>
    802780                            </select>
    803                         </td>
    804                     </tr>
     781                        </div>
     782                    </div>
    805783
    806784                    <!-- 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">
    810790                            <select id="script<?php echo esc_attr( $i ); ?>" class="daexthrmal-script" name="script<?php echo esc_attr( $i ); ?>">
    811791                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
     
    819799                                ?>
    820800                            </select>
    821                         </td>
    822                     </tr>
     801                        </div>
     802                    </div>
    823803
    824804                    <!-- 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">
    828810                            <select id="locale<?php echo esc_attr( $i ); ?>" class="daexthrmal-locale" name="locale<?php echo esc_attr( $i ); ?>">
    829811                                <option value=""><?php esc_html_e( 'Not Assigned', 'hreflang-manager-lite' ); ?></option>
     
    837819                                ?>
    838820                            </select>
    839                         </td>
    840                     </tr>
     821                        </div>
     822                    </div>
     823
     824                    </div>
    841825
    842826                    <?php
     
    846830
    847831        ?>
    848 
    849         </tbody>
    850 
    851         </table>
    852832
    853833        <?php
     
    893873
    894874        /* - end security verification - */
    895 
    896         /*
    897          * Return ( do not save ) if the post status is not:
    898          * - publish
    899          * - future
    900          * - pending
    901          * - private
    902          */
    903         $post_status = get_post_status();
    904         if ( 'publish' !== $post_status && 'future' !== $post_status && 'pending' !== $post_status && 'private' !== $post_status ) {
    905             return;}
    906875
    907876        // Init vars.
  • hreflang-manager-lite/trunk/init.php

    r3462507 r3471951  
    33 * Plugin Name: Hreflang Manager
    44 * Description: Set language and regional URL for better SEO performance. (Lite Version)
    5  * Version: 1.15
     5 * Version: 1.16
    66 * Author: DAEXT
    77 * Author URI: https://daext.com
  • hreflang-manager-lite/trunk/readme.txt

    r3462507 r3471951  
    66Tested up to: 6.9.1
    77Requires PHP: 5.2
    8 Stable tag: 1.15
     8Stable tag: 1.16
    99License: GPLv3
    1010
     
    6464
    6565== 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.
    6673
    6774= 1.15 =
  • hreflang-manager-lite/trunk/shared/class-daexthrmal-shared.php

    r3462507 r3471951  
    4141
    4242        $this->data['slug'] = 'daexthrmal';
    43         $this->data['ver']  = '1.15';
     43        $this->data['ver']  = '1.16';
    4444        $this->data['dir']  = substr( plugin_dir_path( __FILE__ ), 0, -7 );
    4545        $this->data['url']  = substr( plugin_dir_url( __FILE__ ), 0, -7 );
Note: See TracChangeset for help on using the changeset viewer.