Header Footer Elementor - Version 1.2.1

Version Description

  • Categorize the Elementor widgets in a separate category in the Elementor window.
  • Hide target rules options when a custom block template is selected.
Download this release

Release Info

Developer Nikschavan
Plugin Icon Header Footer Elementor
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

admin/assets/css/ehf-admin.css CHANGED
@@ -86,4 +86,22 @@ li#toplevel_page_Settings-page {
86
  margin: 0;
87
  padding: 9px 0 4px 0;
88
  line-height: 1.3;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
86
  margin: 0;
87
  padding: 9px 0 4px 0;
88
  line-height: 1.3;
89
+ }
90
+
91
+ .hfe-selected-template-type-custom .bsf-target-rules-row,
92
+ .hfe-selected-template-type-custom .enable-for-canvas {
93
+ display: none;
94
+ }
95
+
96
+ .hfe-selected-template-type-custom .hfe-shortcode {
97
+ display: table-row;
98
+ }
99
+ .hfe-shortcode {
100
+ display: none;
101
+ }
102
+
103
+ .hfe-selected-template-type-none .bsf-target-rules-row,
104
+ .hfe-selected-template-type-none .hfe-shortcode,
105
+ .hfe-selected-template-type-none .enable-for-canvas {
106
+ display: none;
107
  }
admin/assets/js/ehf-admin.js CHANGED
@@ -1,22 +1,12 @@
1
  jQuery(document).ready(function ($) {
2
-
3
  var ehf_hide_shortcode_field = function() {
4
-
5
- var selected = jQuery('#ehf_template_type').val();
6
-
7
- if( 'custom' == selected ) {
8
- jQuery( '.hfe-options-row.hfe-shortcode' ).show();
9
- } else {
10
- jQuery( '.hfe-options-row.hfe-shortcode' ).hide();
11
- }
12
  }
13
 
14
  jQuery(document).on( 'change', '#ehf_template_type', function( e ) {
15
-
16
  ehf_hide_shortcode_field();
17
-
18
  });
19
 
20
  ehf_hide_shortcode_field();
21
-
22
  });
1
  jQuery(document).ready(function ($) {
 
2
  var ehf_hide_shortcode_field = function() {
3
+ var selected = jQuery('#ehf_template_type').val() || 'none';
4
+ jQuery( '.hfe-options-table' ).removeClass().addClass( 'hfe-options-table widefat hfe-selected-template-type-' + selected );
 
 
 
 
 
 
5
  }
6
 
7
  jQuery(document).on( 'change', '#ehf_template_type', function( e ) {
 
8
  ehf_hide_shortcode_field();
 
9
  });
10
 
11
  ehf_hide_shortcode_field();
 
12
  });
admin/class-hfe-admin.php CHANGED
@@ -230,7 +230,7 @@ class HFE_Admin {
230
  ?>
231
  <table class="hfe-options-table widefat">
232
  <tbody>
233
- <tr class="hfe-options-row">
234
  <td class="hfe-options-row-heading">
235
  <label for="ehf_template_type"><?php _e( 'Type of Template', 'header-footer-elementor' ); ?></label>
236
  </td>
@@ -258,7 +258,7 @@ class HFE_Admin {
258
  </span>
259
  </td>
260
  </tr>
261
- <tr class="hfe-options-row">
262
  <td class="hfe-options-row-heading">
263
  <label for="display-on-canvas-template">
264
  <?php _e( 'Enable Layout for Elementor Canvas Template?', 'header-footer-elementor' ); ?>
230
  ?>
231
  <table class="hfe-options-table widefat">
232
  <tbody>
233
+ <tr class="hfe-options-row type-of-template">
234
  <td class="hfe-options-row-heading">
235
  <label for="ehf_template_type"><?php _e( 'Type of Template', 'header-footer-elementor' ); ?></label>
236
  </td>
258
  </span>
259
  </td>
260
  </tr>
261
+ <tr class="hfe-options-row enable-for-canvas">
262
  <td class="hfe-options-row-heading">
263
  <label for="display-on-canvas-template">
264
  <?php _e( 'Enable Layout for Elementor Canvas Template?', 'header-footer-elementor' ); ?>
header-footer-elementor.php CHANGED
@@ -7,12 +7,12 @@
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.2.0
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.2.0' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
+ * Version: 1.2.1
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.2.1' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
inc/lib/notices/class-astra-notices.php CHANGED
@@ -117,7 +117,7 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
117
  $nonce = ( isset( $_POST['nonce'] ) ) ? sanitize_key( $_POST['nonce'] ) : '';
118
 
119
  if ( false === wp_verify_nonce( $nonce, 'astra-notices' ) ) {
120
- wp_send_json_error( _e( 'WordPress Nonce not validated.', 'astra-notices' ) );
121
  }
122
 
123
  // Valid inputs?
117
  $nonce = ( isset( $_POST['nonce'] ) ) ? sanitize_key( $_POST['nonce'] ) : '';
118
 
119
  if ( false === wp_verify_nonce( $nonce, 'astra-notices' ) ) {
120
+ wp_send_json_error( _e( 'WordPress Nonce not validated.', 'header-footer-elementor' ) );
121
  }
122
 
123
  // Valid inputs?
inc/widgets-manager/class-widgets-loader.php CHANGED
@@ -48,6 +48,10 @@ class Widgets_Loader {
48
  * @since 1.2.0
49
  */
50
  private function __construct() {
 
 
 
 
51
  // Register widgets.
52
  add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] );
53
 
@@ -85,6 +89,26 @@ class Widgets_Loader {
85
  return $mimes;
86
  }
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  /**
89
  * Register Widgets
90
  *
48
  * @since 1.2.0
49
  */
50
  private function __construct() {
51
+
52
+ // Register category.
53
+ add_action( 'elementor/elements/categories_registered', [ $this, 'register_widget_category' ] );
54
+
55
  // Register widgets.
56
  add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] );
57
 
89
  return $mimes;
90
  }
91
 
92
+ /**
93
+ * Register Category
94
+ *
95
+ * @since 1.2.0
96
+ * @param object $this_cat class.
97
+ */
98
+ public function register_widget_category( $this_cat ) {
99
+ $category = __( 'Header, Footer & Blocks', 'header-footer-elementor' );
100
+
101
+ $this_cat->add_category(
102
+ 'hfe-widgets',
103
+ [
104
+ 'title' => $category,
105
+ 'icon' => 'eicon-font',
106
+ ]
107
+ );
108
+
109
+ return $this_cat;
110
+ }
111
+
112
  /**
113
  * Register Widgets
114
  *
inc/widgets-manager/widgets/class-copyright.php CHANGED
@@ -79,7 +79,7 @@ class Copyright extends Widget_Base {
79
  * @return array Widget categories.
80
  */
81
  public function get_categories() {
82
- return [ 'HFE' ];
83
  }
84
  /**
85
  * Register Copyright controls.
@@ -193,10 +193,10 @@ class Copyright extends Widget_Base {
193
  <div class="hfe-copyright-wrapper">
194
  <?php if ( ! empty( $link ) ) { ?>
195
  <a href="<?php echo esc_url( $link ); ?>">
196
- <span><?php echo esc_attr( $copy_right_shortcode ); ?></span>
197
  </a>
198
  <?php } else { ?>
199
- <span><?php echo esc_attr( $copy_right_shortcode ); ?></span>
200
  <?php } ?>
201
  </div>
202
  <?php
79
  * @return array Widget categories.
80
  */
81
  public function get_categories() {
82
+ return [ 'hfe-widgets' ];
83
  }
84
  /**
85
  * Register Copyright controls.
193
  <div class="hfe-copyright-wrapper">
194
  <?php if ( ! empty( $link ) ) { ?>
195
  <a href="<?php echo esc_url( $link ); ?>">
196
+ <span><?php echo wp_kses_post( $copy_right_shortcode ); ?></span>
197
  </a>
198
  <?php } else { ?>
199
+ <span><?php echo wp_kses_post( $copy_right_shortcode ); ?></span>
200
  <?php } ?>
201
  </div>
202
  <?php
inc/widgets-manager/widgets/class-retina.php CHANGED
@@ -89,7 +89,7 @@ class Retina extends Widget_Base {
89
  * @return array Widget categories.
90
  */
91
  public function get_categories() {
92
- return [ 'HFE' ];
93
  }
94
 
95
  /**
89
  * @return array Widget categories.
90
  */
91
  public function get_categories() {
92
+ return [ 'hfe-widgets' ];
93
  }
94
 
95
  /**
languages/header-footer-elementor.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Elementor - Header, Footer & Blocks package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Elementor - Header, Footer & Blocks 1.2.0-beta.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2019-12-09 06:37:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -25,198 +25,201 @@ msgstr ""
25
  "X-Textdomain-Support: yes\n"
26
  "X-Generator: grunt-wp-i18n 1.0.3\n"
27
 
28
- #: admin/class-hfe-admin.php:60 admin/class-hfe-admin.php:62
 
 
 
 
 
 
 
 
29
  msgid "Header Footers Template"
30
  msgstr ""
31
 
32
- #: admin/class-hfe-admin.php:61 admin/class-hfe-admin.php:63
33
  msgid "Elementor Header Footer"
34
  msgstr ""
35
 
36
- #: admin/class-hfe-admin.php:64
37
  msgid "Add New"
38
  msgstr ""
39
 
40
- #: admin/class-hfe-admin.php:65
41
  msgid "Add New Header Footer"
42
  msgstr ""
43
 
44
- #: admin/class-hfe-admin.php:66
45
  msgid "New Header Footers Template"
46
  msgstr ""
47
 
48
- #: admin/class-hfe-admin.php:67
49
  msgid "Edit Header Footers Template"
50
  msgstr ""
51
 
52
- #: admin/class-hfe-admin.php:68
53
  msgid "View Header Footers Template"
54
  msgstr ""
55
 
56
- #: admin/class-hfe-admin.php:69
57
  msgid "All Elementor Header Footers"
58
  msgstr ""
59
 
60
- #: admin/class-hfe-admin.php:70
61
  msgid "Search Header Footers Templates"
62
  msgstr ""
63
 
64
- #: admin/class-hfe-admin.php:71
65
  msgid "Parent Header Footers Templates:"
66
  msgstr ""
67
 
68
- #: admin/class-hfe-admin.php:72
69
  msgid "No Header Footers Templates found."
70
  msgstr ""
71
 
72
- #: admin/class-hfe-admin.php:73
73
  msgid "No Header Footers Templates found in Trash."
74
  msgstr ""
75
 
76
- #: admin/class-hfe-admin.php:102 admin/class-hfe-admin.php:103
77
  msgid "Header Footer Builder"
78
  msgstr ""
79
 
80
- #: admin/class-hfe-admin.php:115
81
  msgid "Elementor Header Footer options"
82
  msgstr ""
83
 
84
- #: admin/class-hfe-admin.php:143
85
  msgid "Type of Template"
86
  msgstr ""
87
 
88
- #: admin/class-hfe-admin.php:147
89
  msgid "Select Option"
90
  msgstr ""
91
 
92
- #: admin/class-hfe-admin.php:148
93
  msgid "Header"
94
  msgstr ""
95
 
96
- #: admin/class-hfe-admin.php:149
97
  msgid "Before Footer"
98
  msgstr ""
99
 
100
- #: admin/class-hfe-admin.php:150
101
  msgid "Footer"
102
  msgstr ""
103
 
104
- #: admin/class-hfe-admin.php:151
105
  msgid "Custom Block"
106
  msgstr ""
107
 
108
- #: admin/class-hfe-admin.php:159 admin/class-hfe-admin.php:404
109
  msgid "Shortcode"
110
  msgstr ""
111
 
112
- #: admin/class-hfe-admin.php:160
113
  msgid ""
114
  "Copy this shortcode and paste it into your post, page, or text widget "
115
  "content."
116
  msgstr ""
117
 
118
- #: admin/class-hfe-admin.php:172
119
  msgid "Enable Layout for Elementor Canvas Template?"
120
  msgstr ""
121
 
122
- #: admin/class-hfe-admin.php:174
123
  msgid ""
124
  "Enabling this option will display this layout on pages using Elementor "
125
  "Canvas Template."
126
  msgstr ""
127
 
128
- #: admin/class-hfe-admin.php:200
129
  msgid "Display On"
130
  msgstr ""
131
 
132
- #: admin/class-hfe-admin.php:202
133
  msgid "Add locations for where this template should appear."
134
  msgstr ""
135
 
136
- #: admin/class-hfe-admin.php:209
137
- msgid "Display Rules"
138
- msgstr ""
139
-
140
- #: admin/class-hfe-admin.php:213
141
  msgid "Add Display Rule"
142
  msgstr ""
143
 
144
- #: admin/class-hfe-admin.php:222
145
  msgid "Do Not Display On"
146
  msgstr ""
147
 
148
- #: admin/class-hfe-admin.php:224
149
  msgid "This Advanced Header will not appear at these locations."
150
  msgstr ""
151
 
152
- #: admin/class-hfe-admin.php:231
153
  msgid "Exclude On"
154
  msgstr ""
155
 
156
- #: admin/class-hfe-admin.php:234
157
  #: inc/lib/target-rule/class-astra-target-rules-fields.php:840
158
  msgid "Add Exclusion Rule"
159
  msgstr ""
160
 
161
- #: admin/class-hfe-admin.php:244
162
  msgid "User Roles"
163
  msgstr ""
164
 
165
- #: admin/class-hfe-admin.php:245
166
- msgid "Targer header based on user role."
167
  msgstr ""
168
 
169
- #: admin/class-hfe-admin.php:252
170
  msgid "Users"
171
  msgstr ""
172
 
173
- #: admin/class-hfe-admin.php:255
174
  msgid "Add User Rule"
175
  msgstr ""
176
 
177
- #: admin/class-hfe-admin.php:335
178
  #. Translators: Post title, Template Location
179
  msgid "Template %1$s is already assigned to the location %2$s"
180
  msgstr ""
181
 
182
- #: inc/class-header-footer-elementor.php:142
183
  msgid ""
184
  "Hello! Seems like you have used Elementor - Header, Footer & Blocks to "
185
  "build this website — Thanks a ton!"
186
  msgstr ""
187
 
188
- #: inc/class-header-footer-elementor.php:143
189
  msgid ""
190
  "Could you please do us a BIG favor and give it a 5-star rating on "
191
  "WordPress? This would boost our motivation and help other users make a "
192
  "comfortable decision while choosing the Elementor - Header, Footer & Blocks."
193
  msgstr ""
194
 
195
- #: inc/class-header-footer-elementor.php:145
196
  msgid "Ok, you deserve it"
197
  msgstr ""
198
 
199
- #: inc/class-header-footer-elementor.php:147
200
  msgid "Nope, maybe later"
201
  msgstr ""
202
 
203
- #: inc/class-header-footer-elementor.php:148
204
  msgid "I already did"
205
  msgstr ""
206
 
207
- #: inc/class-header-footer-elementor.php:181
208
  #. Translators: URL to install or activate Elementor plugin.
209
  msgid ""
210
  "The <strong>Header Footer Elementor</strong> plugin requires <strong><a "
211
  "href=\"%s\">Elementor</strong></a> plugin installed & activated."
212
  msgstr ""
213
 
214
- #: inc/class-header-footer-elementor.php:313
215
  msgid ""
216
- "Hey, your current theme is not supported by Header Footer Elementor, click "
217
- "<a "
218
- "href=\"https://github.com/Nikschavan/header-footer-elementor#which-themes-"
219
- "are-supported-by-this-plugin\">here</a> to check out the supported themes."
220
  msgstr ""
221
 
222
  #: inc/lib/notices/class-astra-notices.php:120
@@ -374,6 +377,10 @@ msgstr ""
374
  msgid "The same display setting is already exist in %s post/s."
375
  msgstr ""
376
 
 
 
 
 
377
  #: inc/widgets-manager/widgets/class-copyright.php:53
378
  #: inc/widgets-manager/widgets/class-copyright.php:103
379
  msgid "Copyright"
@@ -549,52 +556,61 @@ msgstr ""
549
  msgid "%1$s Getting started article » %2$s"
550
  msgstr ""
551
 
552
- #: themes/default/class-hfe-fallback-theme-support.php:66
553
- msgid "Compatibility Mode"
554
  msgstr ""
555
 
556
- #: themes/default/class-hfe-fallback-theme-support.php:79
557
  msgid ""
558
- "Header Footer Elementor plugin includes two compatibility modes to try to "
559
- "support all the themes.<br>Use the method which works best with your "
560
- "theme.<br><br>It is possible that both these methods will not work with "
561
- "your theme correctly with your theme, In that case you should contact your "
562
- "theme author and request them to <a "
563
- "href=\"https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-"
564
- "Header-Footer-Elementor-support-for-your-theme\" target=\"_blank\">add "
565
- "support for this plugin</a>."
566
  msgstr ""
567
 
568
- #: themes/default/class-hfe-fallback-theme-support.php:96
569
- msgid "Method 1"
570
  msgstr ""
571
 
572
- #: themes/default/class-hfe-fallback-theme-support.php:97
573
  msgid ""
574
- "This replaces the header.php & footer.php template with a custom templates "
575
- "from the plugin."
576
  msgstr ""
577
 
578
- #: themes/default/class-hfe-fallback-theme-support.php:100
579
  msgid "Method 2"
580
  msgstr ""
581
 
582
- #: themes/default/class-hfe-fallback-theme-support.php:140
583
- #: themes/default/class-hfe-fallback-theme-support.php:141
584
- #: themes/default/class-hfe-fallback-theme-support.php:169
585
- #: themes/default/class-hfe-fallback-theme-support.php:210
 
 
 
 
 
 
586
  msgid "Settings"
587
  msgstr ""
588
 
589
- #: themes/default/class-hfe-fallback-theme-support.php:157
590
  msgid "Elementor - Header, Footer & Blocks "
591
  msgstr ""
592
 
593
- #: themes/default/class-hfe-fallback-theme-support.php:165
594
- #: themes/default/class-hfe-fallback-theme-support.php:206
595
  msgid "All templates"
596
  msgstr ""
597
 
 
 
 
 
 
598
  #. Plugin Name of the plugin/theme
599
  msgid "Elementor - Header, Footer & Blocks"
600
  msgstr ""
2
  # This file is distributed under the same license as the Elementor - Header, Footer & Blocks package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Elementor - Header, Footer & Blocks 1.2.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2019-12-23 05:47:57+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
25
  "X-Textdomain-Support: yes\n"
26
  "X-Generator: grunt-wp-i18n 1.0.3\n"
27
 
28
+ #: admin/class-hfe-admin.php:68 admin/class-hfe-admin.php:301
29
+ msgid "Display Rules"
30
+ msgstr ""
31
+
32
+ #: admin/class-hfe-admin.php:69
33
+ msgid "Date"
34
+ msgstr ""
35
+
36
+ #: admin/class-hfe-admin.php:152 admin/class-hfe-admin.php:154
37
  msgid "Header Footers Template"
38
  msgstr ""
39
 
40
+ #: admin/class-hfe-admin.php:153 admin/class-hfe-admin.php:155
41
  msgid "Elementor Header Footer"
42
  msgstr ""
43
 
44
+ #: admin/class-hfe-admin.php:156
45
  msgid "Add New"
46
  msgstr ""
47
 
48
+ #: admin/class-hfe-admin.php:157
49
  msgid "Add New Header Footer"
50
  msgstr ""
51
 
52
+ #: admin/class-hfe-admin.php:158
53
  msgid "New Header Footers Template"
54
  msgstr ""
55
 
56
+ #: admin/class-hfe-admin.php:159
57
  msgid "Edit Header Footers Template"
58
  msgstr ""
59
 
60
+ #: admin/class-hfe-admin.php:160
61
  msgid "View Header Footers Template"
62
  msgstr ""
63
 
64
+ #: admin/class-hfe-admin.php:161
65
  msgid "All Elementor Header Footers"
66
  msgstr ""
67
 
68
+ #: admin/class-hfe-admin.php:162
69
  msgid "Search Header Footers Templates"
70
  msgstr ""
71
 
72
+ #: admin/class-hfe-admin.php:163
73
  msgid "Parent Header Footers Templates:"
74
  msgstr ""
75
 
76
+ #: admin/class-hfe-admin.php:164
77
  msgid "No Header Footers Templates found."
78
  msgstr ""
79
 
80
+ #: admin/class-hfe-admin.php:165
81
  msgid "No Header Footers Templates found in Trash."
82
  msgstr ""
83
 
84
+ #: admin/class-hfe-admin.php:194 admin/class-hfe-admin.php:195
85
  msgid "Header Footer Builder"
86
  msgstr ""
87
 
88
+ #: admin/class-hfe-admin.php:207
89
  msgid "Elementor Header Footer options"
90
  msgstr ""
91
 
92
+ #: admin/class-hfe-admin.php:235
93
  msgid "Type of Template"
94
  msgstr ""
95
 
96
+ #: admin/class-hfe-admin.php:239
97
  msgid "Select Option"
98
  msgstr ""
99
 
100
+ #: admin/class-hfe-admin.php:240
101
  msgid "Header"
102
  msgstr ""
103
 
104
+ #: admin/class-hfe-admin.php:241
105
  msgid "Before Footer"
106
  msgstr ""
107
 
108
+ #: admin/class-hfe-admin.php:242
109
  msgid "Footer"
110
  msgstr ""
111
 
112
+ #: admin/class-hfe-admin.php:243
113
  msgid "Custom Block"
114
  msgstr ""
115
 
116
+ #: admin/class-hfe-admin.php:251 admin/class-hfe-admin.php:496
117
  msgid "Shortcode"
118
  msgstr ""
119
 
120
+ #: admin/class-hfe-admin.php:252
121
  msgid ""
122
  "Copy this shortcode and paste it into your post, page, or text widget "
123
  "content."
124
  msgstr ""
125
 
126
+ #: admin/class-hfe-admin.php:264
127
  msgid "Enable Layout for Elementor Canvas Template?"
128
  msgstr ""
129
 
130
+ #: admin/class-hfe-admin.php:266
131
  msgid ""
132
  "Enabling this option will display this layout on pages using Elementor "
133
  "Canvas Template."
134
  msgstr ""
135
 
136
+ #: admin/class-hfe-admin.php:292
137
  msgid "Display On"
138
  msgstr ""
139
 
140
+ #: admin/class-hfe-admin.php:294
141
  msgid "Add locations for where this template should appear."
142
  msgstr ""
143
 
144
+ #: admin/class-hfe-admin.php:305
 
 
 
 
145
  msgid "Add Display Rule"
146
  msgstr ""
147
 
148
+ #: admin/class-hfe-admin.php:314
149
  msgid "Do Not Display On"
150
  msgstr ""
151
 
152
+ #: admin/class-hfe-admin.php:316
153
  msgid "This Advanced Header will not appear at these locations."
154
  msgstr ""
155
 
156
+ #: admin/class-hfe-admin.php:323
157
  msgid "Exclude On"
158
  msgstr ""
159
 
160
+ #: admin/class-hfe-admin.php:326
161
  #: inc/lib/target-rule/class-astra-target-rules-fields.php:840
162
  msgid "Add Exclusion Rule"
163
  msgstr ""
164
 
165
+ #: admin/class-hfe-admin.php:336
166
  msgid "User Roles"
167
  msgstr ""
168
 
169
+ #: admin/class-hfe-admin.php:337
170
+ msgid "Display custom template based on user role."
171
  msgstr ""
172
 
173
+ #: admin/class-hfe-admin.php:344
174
  msgid "Users"
175
  msgstr ""
176
 
177
+ #: admin/class-hfe-admin.php:347
178
  msgid "Add User Rule"
179
  msgstr ""
180
 
181
+ #: admin/class-hfe-admin.php:427
182
  #. Translators: Post title, Template Location
183
  msgid "Template %1$s is already assigned to the location %2$s"
184
  msgstr ""
185
 
186
+ #: inc/class-header-footer-elementor.php:144
187
  msgid ""
188
  "Hello! Seems like you have used Elementor - Header, Footer & Blocks to "
189
  "build this website — Thanks a ton!"
190
  msgstr ""
191
 
192
+ #: inc/class-header-footer-elementor.php:145
193
  msgid ""
194
  "Could you please do us a BIG favor and give it a 5-star rating on "
195
  "WordPress? This would boost our motivation and help other users make a "
196
  "comfortable decision while choosing the Elementor - Header, Footer & Blocks."
197
  msgstr ""
198
 
199
+ #: inc/class-header-footer-elementor.php:147
200
  msgid "Ok, you deserve it"
201
  msgstr ""
202
 
203
+ #: inc/class-header-footer-elementor.php:149
204
  msgid "Nope, maybe later"
205
  msgstr ""
206
 
207
+ #: inc/class-header-footer-elementor.php:150
208
  msgid "I already did"
209
  msgstr ""
210
 
211
+ #: inc/class-header-footer-elementor.php:183
212
  #. Translators: URL to install or activate Elementor plugin.
213
  msgid ""
214
  "The <strong>Header Footer Elementor</strong> plugin requires <strong><a "
215
  "href=\"%s\">Elementor</strong></a> plugin installed & activated."
216
  msgstr ""
217
 
218
+ #: inc/class-header-footer-elementor.php:315
219
  msgid ""
220
+ "Your current theme is not supported by Elementor - Header, Footer & Blocks "
221
+ "plugin, click <a href=\"themes.php?page=hfe-settings\">here</a> to check "
222
+ "available compatibility methods."
 
223
  msgstr ""
224
 
225
  #: inc/lib/notices/class-astra-notices.php:120
377
  msgid "The same display setting is already exist in %s post/s."
378
  msgstr ""
379
 
380
+ #: inc/widgets-manager/class-widgets-loader.php:99
381
+ msgid "Header, Footer & Blocks"
382
+ msgstr ""
383
+
384
  #: inc/widgets-manager/widgets/class-copyright.php:53
385
  #: inc/widgets-manager/widgets/class-copyright.php:103
386
  msgid "Copyright"
556
  msgid "%1$s Getting started article » %2$s"
557
  msgstr ""
558
 
559
+ #: themes/default/class-hfe-fallback-theme-support.php:65
560
+ msgid "Add Theme Support"
561
  msgstr ""
562
 
563
+ #: themes/default/class-hfe-fallback-theme-support.php:78
564
  msgid ""
565
+ "The Elementor - Header, Footer & Blocks plugin is compatible with themes "
566
+ "listed <a "
567
+ "href=\"https://github.com/Nikschavan/header-footer-elementor#themes-you-can-"
568
+ "use-header-footer-elementor-with\"> here</a>.<br><br> In case your current "
569
+ "theme is not in the list, you can choose one of the following methods to "
570
+ "add theme support."
 
 
571
  msgstr ""
572
 
573
+ #: themes/default/class-hfe-fallback-theme-support.php:95
574
+ msgid " Method 1 (Recommended)"
575
  msgstr ""
576
 
577
+ #: themes/default/class-hfe-fallback-theme-support.php:96
578
  msgid ""
579
+ "This method replaces your theme's header (header.php) & footer (footer.php) "
580
+ "template with plugin's custom templates."
581
  msgstr ""
582
 
583
+ #: themes/default/class-hfe-fallback-theme-support.php:99
584
  msgid "Method 2"
585
  msgstr ""
586
 
587
+ #: themes/default/class-hfe-fallback-theme-support.php:112
588
+ msgid ""
589
+ "Sometimes above methods might not work well with your theme, in this case, "
590
+ "contact your theme author and request them to add support for the <a "
591
+ "href=\"https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-"
592
+ "Header-Footer-Elementor-support-for-your-theme\">plugin.</>"
593
+ msgstr ""
594
+
595
+ #: themes/default/class-hfe-fallback-theme-support.php:147
596
+ #: themes/default/class-hfe-fallback-theme-support.php:148
597
  msgid "Settings"
598
  msgstr ""
599
 
600
+ #: themes/default/class-hfe-fallback-theme-support.php:164
601
  msgid "Elementor - Header, Footer & Blocks "
602
  msgstr ""
603
 
604
+ #: themes/default/class-hfe-fallback-theme-support.php:172
605
+ #: themes/default/class-hfe-fallback-theme-support.php:213
606
  msgid "All templates"
607
  msgstr ""
608
 
609
+ #: themes/default/class-hfe-fallback-theme-support.php:176
610
+ #: themes/default/class-hfe-fallback-theme-support.php:217
611
+ msgid "Theme Support"
612
+ msgstr ""
613
+
614
  #. Plugin Name of the plugin/theme
615
  msgid "Elementor - Header, Footer & Blocks"
616
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.3
8
- Stable tag: 1.2.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -15,24 +15,30 @@ Create Header and Footer for your site using Elementor Page Builder.
15
 
16
  Have you ever imagined you could create your website header and footer with <a href="https://elementor.com/?ref=1352">Elementor</a>?
17
 
18
- The Header Footer Elementor plugin allows you to create a layout with Elementor and set it as a header or footer easily on your website.
19
 
20
- All you need to do is -
21
 
22
  1. Design a layout using Elementor.
23
- 2. Select whether it should be applied as the header or footer.
24
- 3. The template will be automatically applied as the header/footer. Easy peasy!
 
 
 
 
25
 
26
  You can refer to our step-by-step article that will help you <a href="https://uaelementor.com/header-footer-with-elementor/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">set Elementor headers and footers</a> quickly.
27
 
28
- = Features of Header Footer Elementor =
29
 
30
  - Create attractive pages and templates to be used as a header or footer.
31
  - Usefully customized header and footer across the website.
 
 
32
 
33
- = Themes you can use Header Footer Elementor with =
34
 
35
- The Header Footer Elementor isn’t universally compatible with all WordPress themes. Here is a list of themes you can use it with
36
 
37
  1. <a href="https://wpastra.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description&bsf=162">Astra</a> - The Fastest, Most Lightweight &amp; Customizable WordPress Theme.
38
  2. <a href="https://shareasale.com/r.cfm?b=642802&u=1115254&m=55096&urllink=themeisle%2Ecom%2Fthemes%2Fneve%2F&afftrack=">Neve.</a>
@@ -43,14 +49,18 @@ The Header Footer Elementor isn’t universally compatible with all WordPress th
43
  7. Phlox Theme.
44
  8. Attesa Theme.
45
 
46
- Do not see your theme listed here? Theme authors can add <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">support for Header Footer Elementor through their theme</a> easily.
 
 
 
 
47
 
48
  = LOOKING FOR PREMIUM ELEMENTOR ADDONS AND WIDGETS? =
49
  Check <a href="https://uaelementor.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">Ultimate Addons for Elementor</a>. It is a library of creative and unique Elementor widgets that add more functionality and flexibility to your favorite page builder.
50
 
51
  = HAVE YOU TRIED ASTRA WITH ELEMENTOR? =
52
 
53
- Powering over 400,000+ WordPress websites, Astra is loved for the performance and ease-of-use it offers.
54
 
55
  = WHY PEOPLE LOVE ASTRA? =
56
 
@@ -71,43 +81,59 @@ Made with love at <a href="https://www.brainstormforce.com/?utm_source=wp-repo&u
71
 
72
  == Installation ==
73
 
74
- 1. Go to `Plugins -> Add New` and search for Header Footer Elementor.
75
  2. Activate the plugin through the 'Plugins' screen in WordPress.
76
  3. Go to `Appearance -> Header Footer Builder` to build a header or footer layout using elementor.
77
  4. After the layout is ready assign it as header or footer using the option `Select the type of template this is` (<a href="https://cloudup.com/clK2sPg9nXK+">screenshot</a>)
78
 
79
  == Frequently Asked Questions ==
80
 
81
- If you are a theme developer <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">here</a> is a quick tutorial on how you can add support for the Header Footer Elementor from your theme.
82
 
83
- = How does this plugin work =
84
 
85
- 1. Go to `Appearance -> Header Footer Builder` to build a header or footer layout using elementor.
86
- 2. After the layout is ready assign the layout as header or footer using the option `Select the type of template this is` (<a href="https://cloudup.com/clK2sPg9nXK+">screenshot</a>)
 
 
 
87
 
88
- = Can you create a Mobile Responsive Header/Footer using this plugin? =
89
 
90
  Yes, You can create the mobile responsive layout of your header using the plugin.
91
 
92
- The Header-Footer Elementor plugin just gives you a container where you can completely design the header using Elementor Page Builder, So the process of creating the mobile responsive layout is exactly same as you would create a responsive layout of your page.
93
 
94
  Here is a documentation by Elementor Page builder which explains how you can create mobile responsive layouts using Elementor - <a href="https://elementor.com/introducing-mobile-editing/">https://elementor.com/introducing-mobile-editing/</a>
95
  This same applies when you are creating your Header/Footer using this plugin.
96
 
97
- = How Can I add support for Heade/Footer Plugin from my theme? =
98
 
99
- If you are a theme developer <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">here</a> is a quick tutorial on how you can add support for the Header Footer Elementor from your theme.
100
 
101
- If you are using a pre-made theme, The best approach would be to contact your theme developer and provide them link to the <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">Wiki article</a> on how they can add support for the plugin.
102
- If the above is not possible, You can also add support for the plugin from your child theme. Just follow <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Add-support-to-Header-Footer-Elementor-from-the-Child-Theme">this article</a>
 
 
 
 
 
 
 
103
 
104
  == Screenshots ==
105
 
106
  1. Go to Appearance -> Header Footer Builder to create a new template.
107
- 2. After the template is ready, assign it to be a header or footer replacement.
 
 
108
 
109
  == Changelog ==
110
 
 
 
 
 
111
  = 1.2.0 =
112
  - New: Support all the themes, Includes two separate fallback methods so that you can create custom headers and footers for any theme.
113
  - New: Added target rule engine, which allows you to have different headers/footers for different pages.
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.3
8
+ Stable tag: 1.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
15
 
16
  Have you ever imagined you could create your website header and footer with <a href="https://elementor.com/?ref=1352">Elementor</a>?
17
 
18
+ The Elementor – Header, Footer & Blocks plugin allows you to create a layout with Elementor and set it as a header/footer or use as a custom block easily on your website.
19
 
20
+ All you need to do is
21
 
22
  1. Design a layout using Elementor.
23
+ 2. Select whether it should be applied as the header or footer.
24
+ 3. Select target locations where the template should appear.
25
+ 4. The template will be automatically applied as the header/footer on selected locations.
26
+ 5. To display a template as a block, just copy the shortcode and display it anywhere on the website.
27
+
28
+ Easy peasy!
29
 
30
  You can refer to our step-by-step article that will help you <a href="https://uaelementor.com/header-footer-with-elementor/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">set Elementor headers and footers</a> quickly.
31
 
32
+ = Features of Elementor – Header, Footer & Blocks =
33
 
34
  - Create attractive pages and templates to be used as a header or footer.
35
  - Usefully customized header and footer across the website.
36
+ - Design useful custom blocks and add them anywhere with a shortcode.
37
+
38
 
39
+ = Themes you can use Elementor – Header, Footer & Blocks with =
40
 
41
+ The Elementor – Header, Footer & Blocks isn’t universally compatible with all WordPress themes. Here is a list of themes you can use it with
42
 
43
  1. <a href="https://wpastra.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description&bsf=162">Astra</a> - The Fastest, Most Lightweight &amp; Customizable WordPress Theme.
44
  2. <a href="https://shareasale.com/r.cfm?b=642802&u=1115254&m=55096&urllink=themeisle%2Ecom%2Fthemes%2Fneve%2F&afftrack=">Neve.</a>
49
  7. Phlox Theme.
50
  8. Attesa Theme.
51
 
52
+ Do not see your theme listed here? Don’t Worry!
53
+
54
+ A plugin itself offers inbuild options to add theme support.
55
+
56
+ Also, theme authors can add <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">support for Elementor – Header, Footer & Blocks through their theme</a> easily.
57
 
58
  = LOOKING FOR PREMIUM ELEMENTOR ADDONS AND WIDGETS? =
59
  Check <a href="https://uaelementor.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">Ultimate Addons for Elementor</a>. It is a library of creative and unique Elementor widgets that add more functionality and flexibility to your favorite page builder.
60
 
61
  = HAVE YOU TRIED ASTRA WITH ELEMENTOR? =
62
 
63
+ Powering over 500,000+ WordPress websites, Astra is loved for the performance and ease-of-use it offers.
64
 
65
  = WHY PEOPLE LOVE ASTRA? =
66
 
81
 
82
  == Installation ==
83
 
84
+ 1. Go to `Plugins -> Add New` and search for Elementor – Header, Footer & Blocks.
85
  2. Activate the plugin through the 'Plugins' screen in WordPress.
86
  3. Go to `Appearance -> Header Footer Builder` to build a header or footer layout using elementor.
87
  4. After the layout is ready assign it as header or footer using the option `Select the type of template this is` (<a href="https://cloudup.com/clK2sPg9nXK+">screenshot</a>)
88
 
89
  == Frequently Asked Questions ==
90
 
91
+ If you are a theme developer <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">here</a> is a quick tutorial on how you can add support for the Elementor – Header, Footer & Blocks from your theme.
92
 
93
+ = How Does This Plugin Work? =
94
 
95
+ 1. Go to Appearance -> Header Footer Builder to build a header or footer layout using Elementor.
96
+ 2. Click on “Add New” and design a template with Elementor.
97
+ 3. Once the template is ready, set is as a header/footer/block using options “Type of Template” (<a href="https://share.getcloudapp.com/geurz2JR">screenshot</a>).
98
+ 4. a) For Header/Footer - Select the target location with the option “Display On”. With this Header/Footer will be visible only on selected locations for selected “User Roles”.
99
+ b) For Custom Block - Just copy the shortcode and add it anywhere on the website. Your designed template will display automatically. Display conditions or user roles will not be effective with shortcodes.
100
 
101
+ = Can You Create a Mobile Responsive Header/Footer Using This Plugin? =
102
 
103
  Yes, You can create the mobile responsive layout of your header using the plugin.
104
 
105
+ The Elementor – Header, Footer & Blocks plugin just gives you a container where you can completely design the header using Elementor Page Builder, So the process of creating the mobile responsive layout is exactly the same as you would create a responsive layout of your other Elementor page.
106
 
107
  Here is a documentation by Elementor Page builder which explains how you can create mobile responsive layouts using Elementor - <a href="https://elementor.com/introducing-mobile-editing/">https://elementor.com/introducing-mobile-editing/</a>
108
  This same applies when you are creating your Header/Footer using this plugin.
109
 
110
+ = I Am NOT a Developer. How Can I Add Support for the Plugin from My Theme? =
111
 
112
+ The plugin offers two inbuild methods to add theme support. (<a href="https://share.getcloudapp.com/4gux9ykY">Screenshot</a>)
113
 
114
+ 1. If your theme is unsupported by the plugin, you can see a tab “Theme Support” under Appearance -> Header Footer Builder.
115
+ 2. Select a suitable method.
116
+ 3. In case inbuild methods won’t work, you can get in touch with your theme author and share the link <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">here</a>. With this link, your theme author will be able to add theme support very easily.
117
+
118
+ = I Am a Developer. How Can I Add Support for the Plugin from the Theme? =
119
+
120
+ If you are a theme developer <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">here</a> is a quick tutorial on how you can add support for the Elementor – Header, Footer & Blocks from your theme.
121
+
122
+ You can add support for the plugin from your child theme. Just follow <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Add-support-to-Header-Footer-Elementor-from-the-Child-Theme">this article</a>.
123
 
124
  == Screenshots ==
125
 
126
  1. Go to Appearance -> Header Footer Builder to create a new template.
127
+ 2. Assign template to be a header/footer and select display rules.
128
+ 3. Copy shortcode for Custom Blocks.
129
+ 4. Methods to add Theme Support.
130
 
131
  == Changelog ==
132
 
133
+ = 1.2.1 =
134
+ - Categorize the Elementor widgets in a separate category in the Elementor window.
135
+ - Hide target rules options when a custom block template is selected.
136
+
137
  = 1.2.0 =
138
  - New: Support all the themes, Includes two separate fallback methods so that you can create custom headers and footers for any theme.
139
  - New: Added target rule engine, which allows you to have different headers/footers for different pages.