Plugin Directory

Changeset 3071514


Ignore:
Timestamp:
04/16/2024 10:45:27 AM (20 months ago)
Author:
Nikschavan
Message:

Update to version 1.6.28 from GitHub

Location:
header-footer-elementor
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • header-footer-elementor/tags/1.6.28/admin/class-hfe-admin.php

    r3070659 r3071514  
    195195
    196196        $location_label = [];
    197         $index          = array_search( 'specifics', $locations['rule'] );
    198         if ( false !== $index && ! empty( $index ) ) {
    199             unset( $locations['rule'][ $index ] );
     197        if ( is_array( $locations ) && is_array( $locations['rule'] ) && isset( $locations['rule'] ) ) {
     198            $index = array_search( 'specifics', $locations['rule'] );
     199            if ( false !== $index && ! empty( $index ) ) {
     200                unset( $locations['rule'][ $index ] );
     201            }
    200202        }
    201203
     
    449451        }
    450452
    451         $target_locations = array_map( 'sanitize_text_field', Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-location' ) );
    452         $target_exclusion = array_map( 'sanitize_text_field', Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-exclusion' ) );
     453        $target_locations = Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-location' );
     454        $target_exclusion = Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-exclusion' );
    453455        $target_users     = [];
    454456
  • header-footer-elementor/tags/1.6.28/header-footer-elementor.php

    r3070659 r3071514  
    88 * Text Domain: header-footer-elementor
    99 * Domain Path: /languages
    10  * Version: 1.6.27
     10 * Version: 1.6.28
    1111 * Elementor tested up to: 3.21
    1212 * Elementor Pro tested up to: 3.21
     
    1515 */
    1616
    17 define( 'HFE_VER', '1.6.27' );
     17define( 'HFE_VER', '1.6.28' );
    1818define( 'HFE_FILE', __FILE__ );
    1919define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
  • header-footer-elementor/tags/1.6.28/inc/lib/target-rule/class-astra-target-rules-fields.php

    r3034938 r3071514  
    766766
    767767        $index = 0;
    768 
    769         foreach ( $saved_values['rule'] as $index => $data ) {
    770             $output .= '<div class="astra-target-rule-condition ast-target-rule-' . $index . '" data-rule="' . $index . '" >';
    771             /* Condition Selection */
    772             $output .= '<span class="target_rule-condition-delete dashicons dashicons-dismiss"></span>';
    773             $output .= '<div class="target_rule-condition-wrap" >';
    774             $output .= '<select name="' . esc_attr( $input_name ) . '[rule][' . $index . ']" class="target_rule-condition form-control ast-input">';
    775             $output .= '<option value="">' . __( 'Select', 'header-footer-elementor' ) . '</option>';
    776 
    777             foreach ( $selection_options as $group => $group_data ) {
    778                 $output .= '<optgroup label="' . $group_data['label'] . '">';
    779                 foreach ( $group_data['value'] as $opt_key => $opt_value ) {
    780 
    781                     // specific rules.
    782                     $selected = '';
    783 
    784                     if ( $data == $opt_key ) {
    785                         $selected = 'selected="selected"';
     768        if ( is_array( $saved_values ) && is_array( $saved_values['rule'] ) ) {
     769            foreach ( $saved_values['rule'] as $index => $data ) {
     770                $output .= '<div class="astra-target-rule-condition ast-target-rule-' . $index . '" data-rule="' . $index . '" >';
     771                /* Condition Selection */
     772                $output .= '<span class="target_rule-condition-delete dashicons dashicons-dismiss"></span>';
     773                $output .= '<div class="target_rule-condition-wrap" >';
     774                $output .= '<select name="' . esc_attr( $input_name ) . '[rule][' . $index . ']" class="target_rule-condition form-control ast-input">';
     775                $output .= '<option value="">' . __( 'Select', 'header-footer-elementor' ) . '</option>';
     776
     777                foreach ( $selection_options as $group => $group_data ) {
     778                    $output .= '<optgroup label="' . $group_data['label'] . '">';
     779                    foreach ( $group_data['value'] as $opt_key => $opt_value ) {
     780
     781                        // specific rules.
     782                        $selected = '';
     783
     784                        if ( $data == $opt_key ) {
     785                            $selected = 'selected="selected"';
     786                        }
     787
     788                        $output .= '<option value="' . $opt_key . '" ' . $selected . '>' . $opt_value . '</option>';
    786789                    }
    787 
    788                     $output .= '<option value="' . $opt_key . '" ' . $selected . '>' . $opt_value . '</option>';
    789                 }
    790                 $output .= '</optgroup>';
    791             }
    792             $output .= '</select>';
    793             $output .= '</div>';
    794 
    795             $output .= '</div>';
    796 
    797             /* Specific page selection */
    798             $output .= '<div class="target_rule-specific-page-wrap" style="display:none">';
    799             $output .= '<select name="' . esc_attr( $input_name ) . '[specific][]" class="target-rule-select2 target_rule-specific-page form-control ast-input " multiple="multiple">';
    800 
    801             if ( 'specifics' == $data && isset( $saved_values['specific'] ) && null != $saved_values['specific'] && is_array( $saved_values['specific'] ) ) {
    802                 foreach ( $saved_values['specific'] as $data_key => $sel_value ) {
    803                     // posts.
    804                     if ( strpos( $sel_value, 'post-' ) !== false ) {
    805                         $post_id    = (int) str_replace( 'post-', '', $sel_value );
    806                         $post_title = get_the_title( $post_id );
    807                         $output    .= '<option value="post-' . $post_id . '" selected="selected" >' . $post_title . '</option>';
     790                    $output .= '</optgroup>';
     791                }
     792                $output .= '</select>';
     793                $output .= '</div>';
     794
     795                $output .= '</div>';
     796
     797                /* Specific page selection */
     798                $output .= '<div class="target_rule-specific-page-wrap" style="display:none">';
     799                $output .= '<select name="' . esc_attr( $input_name ) . '[specific][]" class="target-rule-select2 target_rule-specific-page form-control ast-input " multiple="multiple">';
     800
     801                if ( 'specifics' == $data && isset( $saved_values['specific'] ) && null != $saved_values['specific'] && is_array( $saved_values['specific'] ) ) {
     802                    foreach ( $saved_values['specific'] as $data_key => $sel_value ) {
     803                        // posts.
     804                        if ( strpos( $sel_value, 'post-' ) !== false ) {
     805                            $post_id    = (int) str_replace( 'post-', '', $sel_value );
     806                            $post_title = get_the_title( $post_id );
     807                            $output    .= '<option value="post-' . $post_id . '" selected="selected" >' . $post_title . '</option>';
     808                        }
     809
     810                        // taxonomy options.
     811                        if ( strpos( $sel_value, 'tax-' ) !== false ) {
     812                            $tax_data = explode( '-', $sel_value );
     813
     814                            $tax_id    = (int) str_replace( 'tax-', '', $sel_value );
     815                            $term      = get_term( $tax_id );
     816                            $term_name = '';
     817
     818                            if ( ! is_wp_error( $term ) ) {
     819                                $term_taxonomy = ucfirst( str_replace( '_', ' ', $term->taxonomy ) );
     820
     821                                if ( isset( $tax_data[2] ) && 'single' === $tax_data[2] ) {
     822                                    $term_name = 'All singulars from ' . $term->name;
     823                                } else {
     824                                    $term_name = $term->name . ' - ' . $term_taxonomy;
     825                                }
     826                            }
     827
     828                            $output .= '<option value="' . $sel_value . '" selected="selected" >' . $term_name . '</option>';
     829                        }
    808830                    }
    809 
    810                     // taxonomy options.
    811                     if ( strpos( $sel_value, 'tax-' ) !== false ) {
    812                         $tax_data = explode( '-', $sel_value );
    813 
    814                         $tax_id    = (int) str_replace( 'tax-', '', $sel_value );
    815                         $term      = get_term( $tax_id );
    816                         $term_name = '';
    817 
    818                         if ( ! is_wp_error( $term ) ) {
    819                             $term_taxonomy = ucfirst( str_replace( '_', ' ', $term->taxonomy ) );
    820 
    821                             if ( isset( $tax_data[2] ) && 'single' === $tax_data[2] ) {
    822                                 $term_name = 'All singulars from ' . $term->name;
    823                             } else {
    824                                 $term_name = $term->name . ' - ' . $term_taxonomy;
    825                             }
    826                         }
    827 
    828                         $output .= '<option value="' . $sel_value . '" selected="selected" >' . $term_name . '</option>';
    829                     }
    830                 }
    831             }
    832             $output .= '</select>';
    833             $output .= '</div>';
     831                }
     832                $output .= '</select>';
     833                $output .= '</div>';
     834            }
    834835        }
    835836
  • header-footer-elementor/tags/1.6.28/languages/header-footer-elementor.pot

    r3070659 r3071514  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Elementor Header & Footer Builder 1.6.27\n"
     5"Project-Id-Version: Elementor Header & Footer Builder 1.6.28\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/header-footer-elementor\n"
    8 "POT-Creation-Date: 2024-04-15 08:11:23+00:00\n"
     8"POT-Creation-Date: 2024-04-16 10:00:51+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    9191msgstr ""
    9292
    93 #: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:371
     93#: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:373
    9494msgid "Display Rules"
    9595msgstr ""
     
    103103msgstr ""
    104104
    105 #: admin/class-hfe-admin.php:226
     105#: admin/class-hfe-admin.php:228
    106106msgid "Add New"
    107107msgstr ""
    108108
    109 #: admin/class-hfe-admin.php:227
     109#: admin/class-hfe-admin.php:229
    110110msgid "Add New Header or Footer"
    111111msgstr ""
    112112
    113 #: admin/class-hfe-admin.php:228
     113#: admin/class-hfe-admin.php:230
    114114msgid "New Template"
    115115msgstr ""
    116116
    117 #: admin/class-hfe-admin.php:229
     117#: admin/class-hfe-admin.php:231
    118118msgid "Edit Template"
    119119msgstr ""
    120120
    121 #: admin/class-hfe-admin.php:230
     121#: admin/class-hfe-admin.php:232
    122122msgid "View Template"
    123123msgstr ""
    124124
    125 #: admin/class-hfe-admin.php:231 inc/class-hfe-settings-page.php:270
     125#: admin/class-hfe-admin.php:233 inc/class-hfe-settings-page.php:270
    126126msgid "All Templates"
    127127msgstr ""
    128128
    129 #: admin/class-hfe-admin.php:232
     129#: admin/class-hfe-admin.php:234
    130130msgid "Search Templates"
    131131msgstr ""
    132132
    133 #: admin/class-hfe-admin.php:233
     133#: admin/class-hfe-admin.php:235
    134134msgid "Parent Templates:"
    135135msgstr ""
    136136
    137 #: admin/class-hfe-admin.php:234
     137#: admin/class-hfe-admin.php:236
    138138msgid "No Templates found."
    139139msgstr ""
    140140
    141 #: admin/class-hfe-admin.php:235
     141#: admin/class-hfe-admin.php:237
    142142msgid "No Templates found in Trash."
    143143msgstr ""
    144144
    145 #: admin/class-hfe-admin.php:277
     145#: admin/class-hfe-admin.php:279
    146146msgid "Elementor Header & Footer Builder Options"
    147147msgstr ""
    148148
    149 #: admin/class-hfe-admin.php:305
     149#: admin/class-hfe-admin.php:307
    150150msgid "Type of Template"
    151151msgstr ""
    152152
    153 #: admin/class-hfe-admin.php:309
     153#: admin/class-hfe-admin.php:311
    154154msgid "Select Option"
    155155msgstr ""
    156156
    157 #: admin/class-hfe-admin.php:310
     157#: admin/class-hfe-admin.php:312
    158158msgid "Header"
    159159msgstr ""
    160160
    161 #: admin/class-hfe-admin.php:311
     161#: admin/class-hfe-admin.php:313
    162162msgid "Before Footer"
    163163msgstr ""
    164164
    165 #: admin/class-hfe-admin.php:312
     165#: admin/class-hfe-admin.php:314
    166166msgid "Footer"
    167167msgstr ""
    168168
    169 #: admin/class-hfe-admin.php:313
     169#: admin/class-hfe-admin.php:315
    170170msgid "Custom Block"
    171171msgstr ""
    172172
    173 #: admin/class-hfe-admin.php:321 admin/class-hfe-admin.php:566
     173#: admin/class-hfe-admin.php:323 admin/class-hfe-admin.php:568
    174174msgid "Shortcode"
    175175msgstr ""
    176176
    177 #: admin/class-hfe-admin.php:322
     177#: admin/class-hfe-admin.php:324
    178178msgid ""
    179179"Copy this shortcode and paste it into your post, page, or text widget "
     
    181181msgstr ""
    182182
    183 #: admin/class-hfe-admin.php:334
     183#: admin/class-hfe-admin.php:336
    184184msgid "Enable Layout for Elementor Canvas Template?"
    185185msgstr ""
    186186
    187 #: admin/class-hfe-admin.php:336
     187#: admin/class-hfe-admin.php:338
    188188msgid ""
    189189"Enabling this option will display this layout on pages using Elementor "
     
    191191msgstr ""
    192192
    193 #: admin/class-hfe-admin.php:362
     193#: admin/class-hfe-admin.php:364
    194194msgid "Display On"
    195195msgstr ""
    196196
    197 #: admin/class-hfe-admin.php:364
     197#: admin/class-hfe-admin.php:366
    198198msgid "Add locations for where this template should appear."
    199199msgstr ""
    200200
    201 #: admin/class-hfe-admin.php:375
     201#: admin/class-hfe-admin.php:377
    202202msgid "Add Display Rule"
    203203msgstr ""
    204204
    205 #: admin/class-hfe-admin.php:384
     205#: admin/class-hfe-admin.php:386
    206206msgid "Do Not Display On"
    207207msgstr ""
    208208
    209 #: admin/class-hfe-admin.php:386
     209#: admin/class-hfe-admin.php:388
    210210msgid "Add locations for where this template should not appear."
    211211msgstr ""
    212212
    213 #: admin/class-hfe-admin.php:393
     213#: admin/class-hfe-admin.php:395
    214214msgid "Exclude On"
    215215msgstr ""
    216216
    217 #: admin/class-hfe-admin.php:396
    218 #: inc/lib/target-rule/class-astra-target-rules-fields.php:846
     217#: admin/class-hfe-admin.php:398
     218#: inc/lib/target-rule/class-astra-target-rules-fields.php:847
    219219msgid "Add Exclusion Rule"
    220220msgstr ""
    221221
    222 #: admin/class-hfe-admin.php:406
     222#: admin/class-hfe-admin.php:408
    223223msgid "User Roles"
    224224msgstr ""
    225225
    226 #: admin/class-hfe-admin.php:407
     226#: admin/class-hfe-admin.php:409
    227227msgid "Display custom template based on user role."
    228228msgstr ""
    229229
    230 #: admin/class-hfe-admin.php:414
     230#: admin/class-hfe-admin.php:416
    231231msgid "Users"
    232232msgstr ""
    233233
    234 #: admin/class-hfe-admin.php:417
     234#: admin/class-hfe-admin.php:419
    235235msgid "Add User Rule"
    236236msgstr ""
    237237
    238 #: admin/class-hfe-admin.php:497
     238#: admin/class-hfe-admin.php:499
    239239#. Translators: Post title, Template Location
    240240msgid "Template %1$s is already assigned to the location %2$s"
     
    712712
    713713#: inc/lib/target-rule/class-astra-target-rules-fields.php:654
    714 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1063
     714#: inc/lib/target-rule/class-astra-target-rules-fields.php:1064
    715715msgid "Add Rule"
    716716msgstr ""
     
    718718#: inc/lib/target-rule/class-astra-target-rules-fields.php:670
    719719#: inc/lib/target-rule/class-astra-target-rules-fields.php:775
    720 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1079
    721 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1109
    722 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1569
     720#: inc/lib/target-rule/class-astra-target-rules-fields.php:1080
     721#: inc/lib/target-rule/class-astra-target-rules-fields.php:1110
     722#: inc/lib/target-rule/class-astra-target-rules-fields.php:1570
    723723msgid "Select"
    724724msgstr ""
     
    736736msgstr ""
    737737
    738 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1510
     738#: inc/lib/target-rule/class-astra-target-rules-fields.php:1511
    739739#. translators: %s post title.
    740740msgid "The same display setting is already exist in %s post/s."
  • header-footer-elementor/tags/1.6.28/readme.txt

    r3070659 r3071514  
    66Requires PHP: 5.4
    77Tested up to: 6.5
    8 Stable tag: 1.6.27
     8Stable tag: 1.6.28
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141== Changelog ==
    142142
     143= 1.6.28 =
     144- Fix: Error messages appearing for Display rules.
     145
    143146= 1.6.27 =
    144147- Improvement: Compatibility with latest Elementor and Elementor Pro 3.21 version.
  • header-footer-elementor/trunk/admin/class-hfe-admin.php

    r3070659 r3071514  
    195195
    196196        $location_label = [];
    197         $index          = array_search( 'specifics', $locations['rule'] );
    198         if ( false !== $index && ! empty( $index ) ) {
    199             unset( $locations['rule'][ $index ] );
     197        if ( is_array( $locations ) && is_array( $locations['rule'] ) && isset( $locations['rule'] ) ) {
     198            $index = array_search( 'specifics', $locations['rule'] );
     199            if ( false !== $index && ! empty( $index ) ) {
     200                unset( $locations['rule'][ $index ] );
     201            }
    200202        }
    201203
     
    449451        }
    450452
    451         $target_locations = array_map( 'sanitize_text_field', Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-location' ) );
    452         $target_exclusion = array_map( 'sanitize_text_field', Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-exclusion' ) );
     453        $target_locations = Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-location' );
     454        $target_exclusion = Astra_Target_Rules_Fields::get_format_rule_value( $_POST, 'bsf-target-rules-exclusion' );
    453455        $target_users     = [];
    454456
  • header-footer-elementor/trunk/header-footer-elementor.php

    r3070659 r3071514  
    88 * Text Domain: header-footer-elementor
    99 * Domain Path: /languages
    10  * Version: 1.6.27
     10 * Version: 1.6.28
    1111 * Elementor tested up to: 3.21
    1212 * Elementor Pro tested up to: 3.21
     
    1515 */
    1616
    17 define( 'HFE_VER', '1.6.27' );
     17define( 'HFE_VER', '1.6.28' );
    1818define( 'HFE_FILE', __FILE__ );
    1919define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
  • header-footer-elementor/trunk/inc/lib/target-rule/class-astra-target-rules-fields.php

    r3034938 r3071514  
    766766
    767767        $index = 0;
    768 
    769         foreach ( $saved_values['rule'] as $index => $data ) {
    770             $output .= '<div class="astra-target-rule-condition ast-target-rule-' . $index . '" data-rule="' . $index . '" >';
    771             /* Condition Selection */
    772             $output .= '<span class="target_rule-condition-delete dashicons dashicons-dismiss"></span>';
    773             $output .= '<div class="target_rule-condition-wrap" >';
    774             $output .= '<select name="' . esc_attr( $input_name ) . '[rule][' . $index . ']" class="target_rule-condition form-control ast-input">';
    775             $output .= '<option value="">' . __( 'Select', 'header-footer-elementor' ) . '</option>';
    776 
    777             foreach ( $selection_options as $group => $group_data ) {
    778                 $output .= '<optgroup label="' . $group_data['label'] . '">';
    779                 foreach ( $group_data['value'] as $opt_key => $opt_value ) {
    780 
    781                     // specific rules.
    782                     $selected = '';
    783 
    784                     if ( $data == $opt_key ) {
    785                         $selected = 'selected="selected"';
     768        if ( is_array( $saved_values ) && is_array( $saved_values['rule'] ) ) {
     769            foreach ( $saved_values['rule'] as $index => $data ) {
     770                $output .= '<div class="astra-target-rule-condition ast-target-rule-' . $index . '" data-rule="' . $index . '" >';
     771                /* Condition Selection */
     772                $output .= '<span class="target_rule-condition-delete dashicons dashicons-dismiss"></span>';
     773                $output .= '<div class="target_rule-condition-wrap" >';
     774                $output .= '<select name="' . esc_attr( $input_name ) . '[rule][' . $index . ']" class="target_rule-condition form-control ast-input">';
     775                $output .= '<option value="">' . __( 'Select', 'header-footer-elementor' ) . '</option>';
     776
     777                foreach ( $selection_options as $group => $group_data ) {
     778                    $output .= '<optgroup label="' . $group_data['label'] . '">';
     779                    foreach ( $group_data['value'] as $opt_key => $opt_value ) {
     780
     781                        // specific rules.
     782                        $selected = '';
     783
     784                        if ( $data == $opt_key ) {
     785                            $selected = 'selected="selected"';
     786                        }
     787
     788                        $output .= '<option value="' . $opt_key . '" ' . $selected . '>' . $opt_value . '</option>';
    786789                    }
    787 
    788                     $output .= '<option value="' . $opt_key . '" ' . $selected . '>' . $opt_value . '</option>';
    789                 }
    790                 $output .= '</optgroup>';
    791             }
    792             $output .= '</select>';
    793             $output .= '</div>';
    794 
    795             $output .= '</div>';
    796 
    797             /* Specific page selection */
    798             $output .= '<div class="target_rule-specific-page-wrap" style="display:none">';
    799             $output .= '<select name="' . esc_attr( $input_name ) . '[specific][]" class="target-rule-select2 target_rule-specific-page form-control ast-input " multiple="multiple">';
    800 
    801             if ( 'specifics' == $data && isset( $saved_values['specific'] ) && null != $saved_values['specific'] && is_array( $saved_values['specific'] ) ) {
    802                 foreach ( $saved_values['specific'] as $data_key => $sel_value ) {
    803                     // posts.
    804                     if ( strpos( $sel_value, 'post-' ) !== false ) {
    805                         $post_id    = (int) str_replace( 'post-', '', $sel_value );
    806                         $post_title = get_the_title( $post_id );
    807                         $output    .= '<option value="post-' . $post_id . '" selected="selected" >' . $post_title . '</option>';
     790                    $output .= '</optgroup>';
     791                }
     792                $output .= '</select>';
     793                $output .= '</div>';
     794
     795                $output .= '</div>';
     796
     797                /* Specific page selection */
     798                $output .= '<div class="target_rule-specific-page-wrap" style="display:none">';
     799                $output .= '<select name="' . esc_attr( $input_name ) . '[specific][]" class="target-rule-select2 target_rule-specific-page form-control ast-input " multiple="multiple">';
     800
     801                if ( 'specifics' == $data && isset( $saved_values['specific'] ) && null != $saved_values['specific'] && is_array( $saved_values['specific'] ) ) {
     802                    foreach ( $saved_values['specific'] as $data_key => $sel_value ) {
     803                        // posts.
     804                        if ( strpos( $sel_value, 'post-' ) !== false ) {
     805                            $post_id    = (int) str_replace( 'post-', '', $sel_value );
     806                            $post_title = get_the_title( $post_id );
     807                            $output    .= '<option value="post-' . $post_id . '" selected="selected" >' . $post_title . '</option>';
     808                        }
     809
     810                        // taxonomy options.
     811                        if ( strpos( $sel_value, 'tax-' ) !== false ) {
     812                            $tax_data = explode( '-', $sel_value );
     813
     814                            $tax_id    = (int) str_replace( 'tax-', '', $sel_value );
     815                            $term      = get_term( $tax_id );
     816                            $term_name = '';
     817
     818                            if ( ! is_wp_error( $term ) ) {
     819                                $term_taxonomy = ucfirst( str_replace( '_', ' ', $term->taxonomy ) );
     820
     821                                if ( isset( $tax_data[2] ) && 'single' === $tax_data[2] ) {
     822                                    $term_name = 'All singulars from ' . $term->name;
     823                                } else {
     824                                    $term_name = $term->name . ' - ' . $term_taxonomy;
     825                                }
     826                            }
     827
     828                            $output .= '<option value="' . $sel_value . '" selected="selected" >' . $term_name . '</option>';
     829                        }
    808830                    }
    809 
    810                     // taxonomy options.
    811                     if ( strpos( $sel_value, 'tax-' ) !== false ) {
    812                         $tax_data = explode( '-', $sel_value );
    813 
    814                         $tax_id    = (int) str_replace( 'tax-', '', $sel_value );
    815                         $term      = get_term( $tax_id );
    816                         $term_name = '';
    817 
    818                         if ( ! is_wp_error( $term ) ) {
    819                             $term_taxonomy = ucfirst( str_replace( '_', ' ', $term->taxonomy ) );
    820 
    821                             if ( isset( $tax_data[2] ) && 'single' === $tax_data[2] ) {
    822                                 $term_name = 'All singulars from ' . $term->name;
    823                             } else {
    824                                 $term_name = $term->name . ' - ' . $term_taxonomy;
    825                             }
    826                         }
    827 
    828                         $output .= '<option value="' . $sel_value . '" selected="selected" >' . $term_name . '</option>';
    829                     }
    830                 }
    831             }
    832             $output .= '</select>';
    833             $output .= '</div>';
     831                }
     832                $output .= '</select>';
     833                $output .= '</div>';
     834            }
    834835        }
    835836
  • header-footer-elementor/trunk/languages/header-footer-elementor.pot

    r3070659 r3071514  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Elementor Header & Footer Builder 1.6.27\n"
     5"Project-Id-Version: Elementor Header & Footer Builder 1.6.28\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/header-footer-elementor\n"
    8 "POT-Creation-Date: 2024-04-15 08:11:23+00:00\n"
     8"POT-Creation-Date: 2024-04-16 10:00:51+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    9191msgstr ""
    9292
    93 #: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:371
     93#: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:373
    9494msgid "Display Rules"
    9595msgstr ""
     
    103103msgstr ""
    104104
    105 #: admin/class-hfe-admin.php:226
     105#: admin/class-hfe-admin.php:228
    106106msgid "Add New"
    107107msgstr ""
    108108
    109 #: admin/class-hfe-admin.php:227
     109#: admin/class-hfe-admin.php:229
    110110msgid "Add New Header or Footer"
    111111msgstr ""
    112112
    113 #: admin/class-hfe-admin.php:228
     113#: admin/class-hfe-admin.php:230
    114114msgid "New Template"
    115115msgstr ""
    116116
    117 #: admin/class-hfe-admin.php:229
     117#: admin/class-hfe-admin.php:231
    118118msgid "Edit Template"
    119119msgstr ""
    120120
    121 #: admin/class-hfe-admin.php:230
     121#: admin/class-hfe-admin.php:232
    122122msgid "View Template"
    123123msgstr ""
    124124
    125 #: admin/class-hfe-admin.php:231 inc/class-hfe-settings-page.php:270
     125#: admin/class-hfe-admin.php:233 inc/class-hfe-settings-page.php:270
    126126msgid "All Templates"
    127127msgstr ""
    128128
    129 #: admin/class-hfe-admin.php:232
     129#: admin/class-hfe-admin.php:234
    130130msgid "Search Templates"
    131131msgstr ""
    132132
    133 #: admin/class-hfe-admin.php:233
     133#: admin/class-hfe-admin.php:235
    134134msgid "Parent Templates:"
    135135msgstr ""
    136136
    137 #: admin/class-hfe-admin.php:234
     137#: admin/class-hfe-admin.php:236
    138138msgid "No Templates found."
    139139msgstr ""
    140140
    141 #: admin/class-hfe-admin.php:235
     141#: admin/class-hfe-admin.php:237
    142142msgid "No Templates found in Trash."
    143143msgstr ""
    144144
    145 #: admin/class-hfe-admin.php:277
     145#: admin/class-hfe-admin.php:279
    146146msgid "Elementor Header & Footer Builder Options"
    147147msgstr ""
    148148
    149 #: admin/class-hfe-admin.php:305
     149#: admin/class-hfe-admin.php:307
    150150msgid "Type of Template"
    151151msgstr ""
    152152
    153 #: admin/class-hfe-admin.php:309
     153#: admin/class-hfe-admin.php:311
    154154msgid "Select Option"
    155155msgstr ""
    156156
    157 #: admin/class-hfe-admin.php:310
     157#: admin/class-hfe-admin.php:312
    158158msgid "Header"
    159159msgstr ""
    160160
    161 #: admin/class-hfe-admin.php:311
     161#: admin/class-hfe-admin.php:313
    162162msgid "Before Footer"
    163163msgstr ""
    164164
    165 #: admin/class-hfe-admin.php:312
     165#: admin/class-hfe-admin.php:314
    166166msgid "Footer"
    167167msgstr ""
    168168
    169 #: admin/class-hfe-admin.php:313
     169#: admin/class-hfe-admin.php:315
    170170msgid "Custom Block"
    171171msgstr ""
    172172
    173 #: admin/class-hfe-admin.php:321 admin/class-hfe-admin.php:566
     173#: admin/class-hfe-admin.php:323 admin/class-hfe-admin.php:568
    174174msgid "Shortcode"
    175175msgstr ""
    176176
    177 #: admin/class-hfe-admin.php:322
     177#: admin/class-hfe-admin.php:324
    178178msgid ""
    179179"Copy this shortcode and paste it into your post, page, or text widget "
     
    181181msgstr ""
    182182
    183 #: admin/class-hfe-admin.php:334
     183#: admin/class-hfe-admin.php:336
    184184msgid "Enable Layout for Elementor Canvas Template?"
    185185msgstr ""
    186186
    187 #: admin/class-hfe-admin.php:336
     187#: admin/class-hfe-admin.php:338
    188188msgid ""
    189189"Enabling this option will display this layout on pages using Elementor "
     
    191191msgstr ""
    192192
    193 #: admin/class-hfe-admin.php:362
     193#: admin/class-hfe-admin.php:364
    194194msgid "Display On"
    195195msgstr ""
    196196
    197 #: admin/class-hfe-admin.php:364
     197#: admin/class-hfe-admin.php:366
    198198msgid "Add locations for where this template should appear."
    199199msgstr ""
    200200
    201 #: admin/class-hfe-admin.php:375
     201#: admin/class-hfe-admin.php:377
    202202msgid "Add Display Rule"
    203203msgstr ""
    204204
    205 #: admin/class-hfe-admin.php:384
     205#: admin/class-hfe-admin.php:386
    206206msgid "Do Not Display On"
    207207msgstr ""
    208208
    209 #: admin/class-hfe-admin.php:386
     209#: admin/class-hfe-admin.php:388
    210210msgid "Add locations for where this template should not appear."
    211211msgstr ""
    212212
    213 #: admin/class-hfe-admin.php:393
     213#: admin/class-hfe-admin.php:395
    214214msgid "Exclude On"
    215215msgstr ""
    216216
    217 #: admin/class-hfe-admin.php:396
    218 #: inc/lib/target-rule/class-astra-target-rules-fields.php:846
     217#: admin/class-hfe-admin.php:398
     218#: inc/lib/target-rule/class-astra-target-rules-fields.php:847
    219219msgid "Add Exclusion Rule"
    220220msgstr ""
    221221
    222 #: admin/class-hfe-admin.php:406
     222#: admin/class-hfe-admin.php:408
    223223msgid "User Roles"
    224224msgstr ""
    225225
    226 #: admin/class-hfe-admin.php:407
     226#: admin/class-hfe-admin.php:409
    227227msgid "Display custom template based on user role."
    228228msgstr ""
    229229
    230 #: admin/class-hfe-admin.php:414
     230#: admin/class-hfe-admin.php:416
    231231msgid "Users"
    232232msgstr ""
    233233
    234 #: admin/class-hfe-admin.php:417
     234#: admin/class-hfe-admin.php:419
    235235msgid "Add User Rule"
    236236msgstr ""
    237237
    238 #: admin/class-hfe-admin.php:497
     238#: admin/class-hfe-admin.php:499
    239239#. Translators: Post title, Template Location
    240240msgid "Template %1$s is already assigned to the location %2$s"
     
    712712
    713713#: inc/lib/target-rule/class-astra-target-rules-fields.php:654
    714 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1063
     714#: inc/lib/target-rule/class-astra-target-rules-fields.php:1064
    715715msgid "Add Rule"
    716716msgstr ""
     
    718718#: inc/lib/target-rule/class-astra-target-rules-fields.php:670
    719719#: inc/lib/target-rule/class-astra-target-rules-fields.php:775
    720 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1079
    721 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1109
    722 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1569
     720#: inc/lib/target-rule/class-astra-target-rules-fields.php:1080
     721#: inc/lib/target-rule/class-astra-target-rules-fields.php:1110
     722#: inc/lib/target-rule/class-astra-target-rules-fields.php:1570
    723723msgid "Select"
    724724msgstr ""
     
    736736msgstr ""
    737737
    738 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1510
     738#: inc/lib/target-rule/class-astra-target-rules-fields.php:1511
    739739#. translators: %s post title.
    740740msgid "The same display setting is already exist in %s post/s."
  • header-footer-elementor/trunk/readme.txt

    r3070659 r3071514  
    66Requires PHP: 5.4
    77Tested up to: 6.5
    8 Stable tag: 1.6.27
     8Stable tag: 1.6.28
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141== Changelog ==
    142142
     143= 1.6.28 =
     144- Fix: Error messages appearing for Display rules.
     145
    143146= 1.6.27 =
    144147- Improvement: Compatibility with latest Elementor and Elementor Pro 3.21 version.
Note: See TracChangeset for help on using the changeset viewer.