Changeset 3071514
- Timestamp:
- 04/16/2024 10:45:27 AM (20 months ago)
- Location:
- header-footer-elementor
- Files:
-
- 10 edited
- 1 copied
-
tags/1.6.28 (copied) (copied from header-footer-elementor/trunk)
-
tags/1.6.28/admin/class-hfe-admin.php (modified) (2 diffs)
-
tags/1.6.28/header-footer-elementor.php (modified) (2 diffs)
-
tags/1.6.28/inc/lib/target-rule/class-astra-target-rules-fields.php (modified) (1 diff)
-
tags/1.6.28/languages/header-footer-elementor.pot (modified) (8 diffs)
-
tags/1.6.28/readme.txt (modified) (2 diffs)
-
trunk/admin/class-hfe-admin.php (modified) (2 diffs)
-
trunk/header-footer-elementor.php (modified) (2 diffs)
-
trunk/inc/lib/target-rule/class-astra-target-rules-fields.php (modified) (1 diff)
-
trunk/languages/header-footer-elementor.pot (modified) (8 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
header-footer-elementor/tags/1.6.28/admin/class-hfe-admin.php
r3070659 r3071514 195 195 196 196 $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 } 200 202 } 201 203 … … 449 451 } 450 452 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' ); 453 455 $target_users = []; 454 456 -
header-footer-elementor/tags/1.6.28/header-footer-elementor.php
r3070659 r3071514 8 8 * Text Domain: header-footer-elementor 9 9 * Domain Path: /languages 10 * Version: 1.6.2 710 * Version: 1.6.28 11 11 * Elementor tested up to: 3.21 12 12 * Elementor Pro tested up to: 3.21 … … 15 15 */ 16 16 17 define( 'HFE_VER', '1.6.2 7' );17 define( 'HFE_VER', '1.6.28' ); 18 18 define( 'HFE_FILE', __FILE__ ); 19 19 define( '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 766 766 767 767 $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>'; 786 789 } 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 } 808 830 } 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 } 834 835 } 835 836 -
header-footer-elementor/tags/1.6.28/languages/header-footer-elementor.pot
r3070659 r3071514 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Elementor Header & Footer Builder 1.6.2 7\n"5 "Project-Id-Version: Elementor Header & Footer Builder 1.6.28\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/header-footer-elementor\n" 8 "POT-Creation-Date: 2024-04-1 5 08:11:23+00:00\n"8 "POT-Creation-Date: 2024-04-16 10:00:51+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 91 91 msgstr "" 92 92 93 #: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:37 193 #: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:373 94 94 msgid "Display Rules" 95 95 msgstr "" … … 103 103 msgstr "" 104 104 105 #: admin/class-hfe-admin.php:22 6105 #: admin/class-hfe-admin.php:228 106 106 msgid "Add New" 107 107 msgstr "" 108 108 109 #: admin/class-hfe-admin.php:22 7109 #: admin/class-hfe-admin.php:229 110 110 msgid "Add New Header or Footer" 111 111 msgstr "" 112 112 113 #: admin/class-hfe-admin.php:2 28113 #: admin/class-hfe-admin.php:230 114 114 msgid "New Template" 115 115 msgstr "" 116 116 117 #: admin/class-hfe-admin.php:2 29117 #: admin/class-hfe-admin.php:231 118 118 msgid "Edit Template" 119 119 msgstr "" 120 120 121 #: admin/class-hfe-admin.php:23 0121 #: admin/class-hfe-admin.php:232 122 122 msgid "View Template" 123 123 msgstr "" 124 124 125 #: admin/class-hfe-admin.php:23 1inc/class-hfe-settings-page.php:270125 #: admin/class-hfe-admin.php:233 inc/class-hfe-settings-page.php:270 126 126 msgid "All Templates" 127 127 msgstr "" 128 128 129 #: admin/class-hfe-admin.php:23 2129 #: admin/class-hfe-admin.php:234 130 130 msgid "Search Templates" 131 131 msgstr "" 132 132 133 #: admin/class-hfe-admin.php:23 3133 #: admin/class-hfe-admin.php:235 134 134 msgid "Parent Templates:" 135 135 msgstr "" 136 136 137 #: admin/class-hfe-admin.php:23 4137 #: admin/class-hfe-admin.php:236 138 138 msgid "No Templates found." 139 139 msgstr "" 140 140 141 #: admin/class-hfe-admin.php:23 5141 #: admin/class-hfe-admin.php:237 142 142 msgid "No Templates found in Trash." 143 143 msgstr "" 144 144 145 #: admin/class-hfe-admin.php:27 7145 #: admin/class-hfe-admin.php:279 146 146 msgid "Elementor Header & Footer Builder Options" 147 147 msgstr "" 148 148 149 #: admin/class-hfe-admin.php:30 5149 #: admin/class-hfe-admin.php:307 150 150 msgid "Type of Template" 151 151 msgstr "" 152 152 153 #: admin/class-hfe-admin.php:3 09153 #: admin/class-hfe-admin.php:311 154 154 msgid "Select Option" 155 155 msgstr "" 156 156 157 #: admin/class-hfe-admin.php:31 0157 #: admin/class-hfe-admin.php:312 158 158 msgid "Header" 159 159 msgstr "" 160 160 161 #: admin/class-hfe-admin.php:31 1161 #: admin/class-hfe-admin.php:313 162 162 msgid "Before Footer" 163 163 msgstr "" 164 164 165 #: admin/class-hfe-admin.php:31 2165 #: admin/class-hfe-admin.php:314 166 166 msgid "Footer" 167 167 msgstr "" 168 168 169 #: admin/class-hfe-admin.php:31 3169 #: admin/class-hfe-admin.php:315 170 170 msgid "Custom Block" 171 171 msgstr "" 172 172 173 #: admin/class-hfe-admin.php:32 1 admin/class-hfe-admin.php:566173 #: admin/class-hfe-admin.php:323 admin/class-hfe-admin.php:568 174 174 msgid "Shortcode" 175 175 msgstr "" 176 176 177 #: admin/class-hfe-admin.php:32 2177 #: admin/class-hfe-admin.php:324 178 178 msgid "" 179 179 "Copy this shortcode and paste it into your post, page, or text widget " … … 181 181 msgstr "" 182 182 183 #: admin/class-hfe-admin.php:33 4183 #: admin/class-hfe-admin.php:336 184 184 msgid "Enable Layout for Elementor Canvas Template?" 185 185 msgstr "" 186 186 187 #: admin/class-hfe-admin.php:33 6187 #: admin/class-hfe-admin.php:338 188 188 msgid "" 189 189 "Enabling this option will display this layout on pages using Elementor " … … 191 191 msgstr "" 192 192 193 #: admin/class-hfe-admin.php:36 2193 #: admin/class-hfe-admin.php:364 194 194 msgid "Display On" 195 195 msgstr "" 196 196 197 #: admin/class-hfe-admin.php:36 4197 #: admin/class-hfe-admin.php:366 198 198 msgid "Add locations for where this template should appear." 199 199 msgstr "" 200 200 201 #: admin/class-hfe-admin.php:37 5201 #: admin/class-hfe-admin.php:377 202 202 msgid "Add Display Rule" 203 203 msgstr "" 204 204 205 #: admin/class-hfe-admin.php:38 4205 #: admin/class-hfe-admin.php:386 206 206 msgid "Do Not Display On" 207 207 msgstr "" 208 208 209 #: admin/class-hfe-admin.php:38 6209 #: admin/class-hfe-admin.php:388 210 210 msgid "Add locations for where this template should not appear." 211 211 msgstr "" 212 212 213 #: admin/class-hfe-admin.php:39 3213 #: admin/class-hfe-admin.php:395 214 214 msgid "Exclude On" 215 215 msgstr "" 216 216 217 #: admin/class-hfe-admin.php:39 6218 #: inc/lib/target-rule/class-astra-target-rules-fields.php:84 6217 #: admin/class-hfe-admin.php:398 218 #: inc/lib/target-rule/class-astra-target-rules-fields.php:847 219 219 msgid "Add Exclusion Rule" 220 220 msgstr "" 221 221 222 #: admin/class-hfe-admin.php:40 6222 #: admin/class-hfe-admin.php:408 223 223 msgid "User Roles" 224 224 msgstr "" 225 225 226 #: admin/class-hfe-admin.php:40 7226 #: admin/class-hfe-admin.php:409 227 227 msgid "Display custom template based on user role." 228 228 msgstr "" 229 229 230 #: admin/class-hfe-admin.php:41 4230 #: admin/class-hfe-admin.php:416 231 231 msgid "Users" 232 232 msgstr "" 233 233 234 #: admin/class-hfe-admin.php:41 7234 #: admin/class-hfe-admin.php:419 235 235 msgid "Add User Rule" 236 236 msgstr "" 237 237 238 #: admin/class-hfe-admin.php:49 7238 #: admin/class-hfe-admin.php:499 239 239 #. Translators: Post title, Template Location 240 240 msgid "Template %1$s is already assigned to the location %2$s" … … 712 712 713 713 #: inc/lib/target-rule/class-astra-target-rules-fields.php:654 714 #: inc/lib/target-rule/class-astra-target-rules-fields.php:106 3714 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1064 715 715 msgid "Add Rule" 716 716 msgstr "" … … 718 718 #: inc/lib/target-rule/class-astra-target-rules-fields.php:670 719 719 #: inc/lib/target-rule/class-astra-target-rules-fields.php:775 720 #: inc/lib/target-rule/class-astra-target-rules-fields.php:10 79721 #: inc/lib/target-rule/class-astra-target-rules-fields.php:11 09722 #: inc/lib/target-rule/class-astra-target-rules-fields.php:15 69720 #: 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 723 723 msgid "Select" 724 724 msgstr "" … … 736 736 msgstr "" 737 737 738 #: inc/lib/target-rule/class-astra-target-rules-fields.php:151 0738 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1511 739 739 #. translators: %s post title. 740 740 msgid "The same display setting is already exist in %s post/s." -
header-footer-elementor/tags/1.6.28/readme.txt
r3070659 r3071514 6 6 Requires PHP: 5.4 7 7 Tested up to: 6.5 8 Stable tag: 1.6.2 78 Stable tag: 1.6.28 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 141 141 == Changelog == 142 142 143 = 1.6.28 = 144 - Fix: Error messages appearing for Display rules. 145 143 146 = 1.6.27 = 144 147 - Improvement: Compatibility with latest Elementor and Elementor Pro 3.21 version. -
header-footer-elementor/trunk/admin/class-hfe-admin.php
r3070659 r3071514 195 195 196 196 $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 } 200 202 } 201 203 … … 449 451 } 450 452 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' ); 453 455 $target_users = []; 454 456 -
header-footer-elementor/trunk/header-footer-elementor.php
r3070659 r3071514 8 8 * Text Domain: header-footer-elementor 9 9 * Domain Path: /languages 10 * Version: 1.6.2 710 * Version: 1.6.28 11 11 * Elementor tested up to: 3.21 12 12 * Elementor Pro tested up to: 3.21 … … 15 15 */ 16 16 17 define( 'HFE_VER', '1.6.2 7' );17 define( 'HFE_VER', '1.6.28' ); 18 18 define( 'HFE_FILE', __FILE__ ); 19 19 define( 'HFE_DIR', plugin_dir_path( __FILE__ ) ); -
header-footer-elementor/trunk/inc/lib/target-rule/class-astra-target-rules-fields.php
r3034938 r3071514 766 766 767 767 $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>'; 786 789 } 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 } 808 830 } 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 } 834 835 } 835 836 -
header-footer-elementor/trunk/languages/header-footer-elementor.pot
r3070659 r3071514 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Elementor Header & Footer Builder 1.6.2 7\n"5 "Project-Id-Version: Elementor Header & Footer Builder 1.6.28\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/header-footer-elementor\n" 8 "POT-Creation-Date: 2024-04-1 5 08:11:23+00:00\n"8 "POT-Creation-Date: 2024-04-16 10:00:51+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 91 91 msgstr "" 92 92 93 #: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:37 193 #: admin/class-hfe-admin.php:138 admin/class-hfe-admin.php:373 94 94 msgid "Display Rules" 95 95 msgstr "" … … 103 103 msgstr "" 104 104 105 #: admin/class-hfe-admin.php:22 6105 #: admin/class-hfe-admin.php:228 106 106 msgid "Add New" 107 107 msgstr "" 108 108 109 #: admin/class-hfe-admin.php:22 7109 #: admin/class-hfe-admin.php:229 110 110 msgid "Add New Header or Footer" 111 111 msgstr "" 112 112 113 #: admin/class-hfe-admin.php:2 28113 #: admin/class-hfe-admin.php:230 114 114 msgid "New Template" 115 115 msgstr "" 116 116 117 #: admin/class-hfe-admin.php:2 29117 #: admin/class-hfe-admin.php:231 118 118 msgid "Edit Template" 119 119 msgstr "" 120 120 121 #: admin/class-hfe-admin.php:23 0121 #: admin/class-hfe-admin.php:232 122 122 msgid "View Template" 123 123 msgstr "" 124 124 125 #: admin/class-hfe-admin.php:23 1inc/class-hfe-settings-page.php:270125 #: admin/class-hfe-admin.php:233 inc/class-hfe-settings-page.php:270 126 126 msgid "All Templates" 127 127 msgstr "" 128 128 129 #: admin/class-hfe-admin.php:23 2129 #: admin/class-hfe-admin.php:234 130 130 msgid "Search Templates" 131 131 msgstr "" 132 132 133 #: admin/class-hfe-admin.php:23 3133 #: admin/class-hfe-admin.php:235 134 134 msgid "Parent Templates:" 135 135 msgstr "" 136 136 137 #: admin/class-hfe-admin.php:23 4137 #: admin/class-hfe-admin.php:236 138 138 msgid "No Templates found." 139 139 msgstr "" 140 140 141 #: admin/class-hfe-admin.php:23 5141 #: admin/class-hfe-admin.php:237 142 142 msgid "No Templates found in Trash." 143 143 msgstr "" 144 144 145 #: admin/class-hfe-admin.php:27 7145 #: admin/class-hfe-admin.php:279 146 146 msgid "Elementor Header & Footer Builder Options" 147 147 msgstr "" 148 148 149 #: admin/class-hfe-admin.php:30 5149 #: admin/class-hfe-admin.php:307 150 150 msgid "Type of Template" 151 151 msgstr "" 152 152 153 #: admin/class-hfe-admin.php:3 09153 #: admin/class-hfe-admin.php:311 154 154 msgid "Select Option" 155 155 msgstr "" 156 156 157 #: admin/class-hfe-admin.php:31 0157 #: admin/class-hfe-admin.php:312 158 158 msgid "Header" 159 159 msgstr "" 160 160 161 #: admin/class-hfe-admin.php:31 1161 #: admin/class-hfe-admin.php:313 162 162 msgid "Before Footer" 163 163 msgstr "" 164 164 165 #: admin/class-hfe-admin.php:31 2165 #: admin/class-hfe-admin.php:314 166 166 msgid "Footer" 167 167 msgstr "" 168 168 169 #: admin/class-hfe-admin.php:31 3169 #: admin/class-hfe-admin.php:315 170 170 msgid "Custom Block" 171 171 msgstr "" 172 172 173 #: admin/class-hfe-admin.php:32 1 admin/class-hfe-admin.php:566173 #: admin/class-hfe-admin.php:323 admin/class-hfe-admin.php:568 174 174 msgid "Shortcode" 175 175 msgstr "" 176 176 177 #: admin/class-hfe-admin.php:32 2177 #: admin/class-hfe-admin.php:324 178 178 msgid "" 179 179 "Copy this shortcode and paste it into your post, page, or text widget " … … 181 181 msgstr "" 182 182 183 #: admin/class-hfe-admin.php:33 4183 #: admin/class-hfe-admin.php:336 184 184 msgid "Enable Layout for Elementor Canvas Template?" 185 185 msgstr "" 186 186 187 #: admin/class-hfe-admin.php:33 6187 #: admin/class-hfe-admin.php:338 188 188 msgid "" 189 189 "Enabling this option will display this layout on pages using Elementor " … … 191 191 msgstr "" 192 192 193 #: admin/class-hfe-admin.php:36 2193 #: admin/class-hfe-admin.php:364 194 194 msgid "Display On" 195 195 msgstr "" 196 196 197 #: admin/class-hfe-admin.php:36 4197 #: admin/class-hfe-admin.php:366 198 198 msgid "Add locations for where this template should appear." 199 199 msgstr "" 200 200 201 #: admin/class-hfe-admin.php:37 5201 #: admin/class-hfe-admin.php:377 202 202 msgid "Add Display Rule" 203 203 msgstr "" 204 204 205 #: admin/class-hfe-admin.php:38 4205 #: admin/class-hfe-admin.php:386 206 206 msgid "Do Not Display On" 207 207 msgstr "" 208 208 209 #: admin/class-hfe-admin.php:38 6209 #: admin/class-hfe-admin.php:388 210 210 msgid "Add locations for where this template should not appear." 211 211 msgstr "" 212 212 213 #: admin/class-hfe-admin.php:39 3213 #: admin/class-hfe-admin.php:395 214 214 msgid "Exclude On" 215 215 msgstr "" 216 216 217 #: admin/class-hfe-admin.php:39 6218 #: inc/lib/target-rule/class-astra-target-rules-fields.php:84 6217 #: admin/class-hfe-admin.php:398 218 #: inc/lib/target-rule/class-astra-target-rules-fields.php:847 219 219 msgid "Add Exclusion Rule" 220 220 msgstr "" 221 221 222 #: admin/class-hfe-admin.php:40 6222 #: admin/class-hfe-admin.php:408 223 223 msgid "User Roles" 224 224 msgstr "" 225 225 226 #: admin/class-hfe-admin.php:40 7226 #: admin/class-hfe-admin.php:409 227 227 msgid "Display custom template based on user role." 228 228 msgstr "" 229 229 230 #: admin/class-hfe-admin.php:41 4230 #: admin/class-hfe-admin.php:416 231 231 msgid "Users" 232 232 msgstr "" 233 233 234 #: admin/class-hfe-admin.php:41 7234 #: admin/class-hfe-admin.php:419 235 235 msgid "Add User Rule" 236 236 msgstr "" 237 237 238 #: admin/class-hfe-admin.php:49 7238 #: admin/class-hfe-admin.php:499 239 239 #. Translators: Post title, Template Location 240 240 msgid "Template %1$s is already assigned to the location %2$s" … … 712 712 713 713 #: inc/lib/target-rule/class-astra-target-rules-fields.php:654 714 #: inc/lib/target-rule/class-astra-target-rules-fields.php:106 3714 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1064 715 715 msgid "Add Rule" 716 716 msgstr "" … … 718 718 #: inc/lib/target-rule/class-astra-target-rules-fields.php:670 719 719 #: inc/lib/target-rule/class-astra-target-rules-fields.php:775 720 #: inc/lib/target-rule/class-astra-target-rules-fields.php:10 79721 #: inc/lib/target-rule/class-astra-target-rules-fields.php:11 09722 #: inc/lib/target-rule/class-astra-target-rules-fields.php:15 69720 #: 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 723 723 msgid "Select" 724 724 msgstr "" … … 736 736 msgstr "" 737 737 738 #: inc/lib/target-rule/class-astra-target-rules-fields.php:151 0738 #: inc/lib/target-rule/class-astra-target-rules-fields.php:1511 739 739 #. translators: %s post title. 740 740 msgid "The same display setting is already exist in %s post/s." -
header-footer-elementor/trunk/readme.txt
r3070659 r3071514 6 6 Requires PHP: 5.4 7 7 Tested up to: 6.5 8 Stable tag: 1.6.2 78 Stable tag: 1.6.28 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 141 141 == Changelog == 142 142 143 = 1.6.28 = 144 - Fix: Error messages appearing for Display rules. 145 143 146 = 1.6.27 = 144 147 - Improvement: Compatibility with latest Elementor and Elementor Pro 3.21 version.
Note: See TracChangeset
for help on using the changeset viewer.