Advanced Sidebar Menu - Version 8.3.0

Version Description

  • Improved plugin headers.
  • Added translations for French (fr_FR).
  • Added translations for Spanish (es_ES).
  • Expose Category::is_tax method for public filters.
  • Improved type casting and PHPStan static type checking.
  • Fix tense in readme.txt words.
Download this release

Release Info

Developer Mat Lipe
Plugin Icon 128x128 Advanced Sidebar Menu
Version 8.3.0
Comparing to
See all releases

Code changes from version 8.2.0 to 8.3.0

advanced-sidebar-menu.php CHANGED
@@ -4,9 +4,13 @@
4
  * Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
5
  * Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
6
  * Author: OnPoint Plugins
7
- * Version: 8.2.0
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
 
 
 
 
10
  *
11
  * @package advanced-sidebar-menu
12
  */
@@ -15,7 +19,7 @@ if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
15
  return;
16
  }
17
 
18
- define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '8.2.0' );
19
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.2.0' );
20
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
21
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
4
  * Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
5
  * Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
6
  * Author: OnPoint Plugins
7
+ * Version: 8.3.0
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
+ * Domain Path: /languages/
11
+ * Network: false
12
+ * Requires at least: 5.0
13
+ * Requires PHP: 5.6.0
14
  *
15
  * @package advanced-sidebar-menu
16
  */
19
  return;
20
  }
21
 
22
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '8.3.0' );
23
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.2.0' );
24
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
25
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
languages/advanced-sidebar-menu-de_DE.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "PO-Revision-Date: 2020-12-07 10:20-0700\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
- "Language: de\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
5
  "PO-Revision-Date: 2020-12-07 10:20-0700\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
+ "Language: de_DE\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
languages/advanced-sidebar-menu-es_ES.mo ADDED
Binary file
languages/advanced-sidebar-menu-es_ES.po ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Advanced Sidebar Menu\n"
4
+ "POT-Creation-Date: 2021-01-20 11:19-0700\n"
5
+ "PO-Revision-Date: 2021-01-20 11:23-0700\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: es_ES\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Generator: Poedit 2.4.2\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
16
+ "X-Poedit-WPHeader: advanced-sidebar-menu.php\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
19
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
21
+ "X-Poedit-SearchPath-0: .\n"
22
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
23
+
24
+ #: advanced-sidebar-menu.php:132
25
+ msgid "widget documentation"
26
+ msgstr "documentación del widget"
27
+
28
+ #. translators: Link to PRO plugin {%1$s}[<a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">]{%2$s}[</a>]
29
+ #: src/Notice.php:54
30
+ #, php-format
31
+ msgctxt "{<a>}{</a>}"
32
+ msgid ""
33
+ "Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version %3$s"
34
+ "+. Please update or deactivate the PRO version."
35
+ msgstr ""
36
+ "Advanced Sidebar Menu requiere %1$sAdvanced Sidebar Menu PRO%2$s versión %3$s"
37
+ "+. Actualice o desactive la versión PRO."
38
+
39
+ #: src/Notice.php:88
40
+ msgid "Advanced Sidebar Menu PRO"
41
+ msgstr "Advanced Sidebar Menu PRO"
42
+
43
+ #: src/Notice.php:92
44
+ msgid ""
45
+ "Styling options including borders, bullets, colors, backgrounds, size, and "
46
+ "font weight."
47
+ msgstr ""
48
+ "Opciones de estilo que incluyen bordes, viñetas, colores, fondos, tamaño y "
49
+ "peso de fuente."
50
+
51
+ #: src/Notice.php:93
52
+ msgid "Accordion menus."
53
+ msgstr "Menús de acordeón."
54
+
55
+ #: src/Notice.php:94
56
+ msgid "Support for custom navigation menus from Appearance -> Menus."
57
+ msgstr "Compatibilidad con menús de navegación personalizados."
58
+
59
+ #: src/Notice.php:98
60
+ msgid "Select and display custom post types."
61
+ msgstr "Seleccione y muestre los tipos de mensajes personalizados."
62
+
63
+ #: src/Notice.php:102
64
+ msgid "Select and display custom taxonomies."
65
+ msgstr "Seleccione y muestre taxonomías personalizadas."
66
+
67
+ #: src/Notice.php:106
68
+ msgid "Priority support with access to members only support area."
69
+ msgstr "Soporte prioritario con acceso a los miembros solo área de apoyo."
70
+
71
+ #: src/Notice.php:112
72
+ msgid "So much more..."
73
+ msgstr "Mucho más..."
74
+
75
+ #: src/Notice.php:121
76
+ msgid "Upgrade"
77
+ msgstr "Actualizar"
78
+
79
+ #: src/Notice.php:137
80
+ msgid "Preview"
81
+ msgstr "Vista previa"
82
+
83
+ #: src/Widget/Category.php:52
84
+ msgid ""
85
+ "Creates a menu of all the categories using the child/parent relationship"
86
+ msgstr "Crea un menú de todas las categorías utilizando la relación hijo/padre"
87
+
88
+ #: src/Widget/Category.php:58
89
+ msgid "Advanced Sidebar Categories Menu"
90
+ msgstr "Menú Categorías Advanced Sidebar"
91
+
92
+ #. translators: Selected taxonomy single label
93
+ #: src/Widget/Category.php:123
94
+ #, php-format
95
+ msgid "Display the highest level parent %s"
96
+ msgstr "Mostrar el %s principal de nivel más alto"
97
+
98
+ #. translators: Selected taxonomy single label
99
+ #. translators: Selected post type single label
100
+ #: src/Widget/Category.php:132 src/Widget/Page.php:130
101
+ #, php-format
102
+ msgid "Display menu when there is only the parent %s"
103
+ msgstr "Mostrar menú cuando solo hay el elemento primario %s"
104
+
105
+ #. translators: Selected taxonomy plural label
106
+ #. translators: Selected post type plural label
107
+ #: src/Widget/Category.php:141 src/Widget/Page.php:140
108
+ #, php-format
109
+ msgid "Always display child %s"
110
+ msgstr "Muestre siempre %s secundarios"
111
+
112
+ #: src/Widget/Category.php:155 src/Widget/Page.php:161
113
+ msgid "- All -"
114
+ msgstr "- Todo -"
115
+
116
+ #. translators: {select html input}, {Selected post type plural label}
117
+ #: src/Widget/Category.php:170 src/Widget/Page.php:175
118
+ #, php-format
119
+ msgid "Display %1$s levels of child %2$s"
120
+ msgstr "Mostrar %1$s niveles de %2$s secundario"
121
+
122
+ #. translators: Selected taxonomy plural label
123
+ #: src/Widget/Category.php:200
124
+ #, php-format
125
+ msgid "Display %s on single posts"
126
+ msgstr "Mostrar %s en publicaciones individuales"
127
+
128
+ #. translators: Selected taxonomy single label
129
+ #: src/Widget/Category.php:210
130
+ #, php-format
131
+ msgid "Display each single post's %s"
132
+ msgstr "Muestra las %s de cada publicación"
133
+
134
+ #: src/Widget/Category.php:220
135
+ msgid "In a new widget"
136
+ msgstr "En un nuevo widget"
137
+
138
+ #: src/Widget/Category.php:223
139
+ msgid "In another list in the same widget"
140
+ msgstr "En otra lista en el mismo widget"
141
+
142
+ #. translators: Selected taxonomy plural label
143
+ #. translators: Selected post type plural label
144
+ #: src/Widget/Category.php:251 src/Widget/Page.php:245
145
+ #, php-format
146
+ msgid "%s to exclude (ids, comma separated)"
147
+ msgstr "%s para excluir (ids, separados por comas)"
148
+
149
+ #: src/Widget/Category.php:283 src/Widget/Page.php:276
150
+ msgid "Title"
151
+ msgstr "Título"
152
+
153
+ #: src/Widget/Page.php:48
154
+ msgid "Creates a menu of all the pages using the child/parent relationship"
155
+ msgstr "Crea un menú de todas las páginas utilizando la relación hijo/padre"
156
+
157
+ #: src/Widget/Page.php:54
158
+ msgid "Advanced Sidebar Pages Menu"
159
+ msgstr "Menú Páginas Advanced Sidebar"
160
+
161
+ #. translators: Selected post type single label
162
+ #: src/Widget/Page.php:119
163
+ #, php-format
164
+ msgid "Display highest level parent %s"
165
+ msgstr "Mostrar el %s principal de nivel más alto"
166
+
167
+ #: src/Widget/Page.php:202
168
+ msgid "Order by"
169
+ msgstr "Ordenar por"
170
+
171
+ #. Plugin Name of the plugin/theme
172
+ msgid "Advanced Sidebar Menu"
173
+ msgstr "Advanced Sidebar Menu"
174
+
175
+ #. Plugin URI of the plugin/theme
176
+ msgid "https://onpointplugins.com/advanced-sidebar-menu/"
177
+ msgstr "https://onpointplugins.com/advanced-sidebar-menu/"
178
+
179
+ #. Description of the plugin/theme
180
+ msgid ""
181
+ "Creates dynamic menus based on parent/child relationship of your pages or "
182
+ "categories."
183
+ msgstr ""
184
+ "Crea menús dinámicos basados en la relación padre/hijo de sus páginas o "
185
+ "categorías."
186
+
187
+ #. Author of the plugin/theme
188
+ msgid "OnPoint Plugins"
189
+ msgstr "OnPoint Plugins"
190
+
191
+ #. Author URI of the plugin/theme
192
+ msgid "https://onpointplugins.com"
193
+ msgstr "https://onpointplugins.com"
languages/advanced-sidebar-menu-fr_FR.mo ADDED
Binary file
languages/advanced-sidebar-menu-fr_FR.po ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
4
+ "Project-Id-Version: Advanced Sidebar Menu\n"
5
+ "POT-Creation-Date: 2021-01-20 11:16-0700\n"
6
+ "PO-Revision-Date: 2021-01-20 11:39-0700\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.4.2\n"
12
+ "X-Poedit-Basepath: ..\n"
13
+ "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
14
+ "X-Poedit-WPHeader: advanced-sidebar-menu.php\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
17
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
18
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
+ "Last-Translator: \n"
20
+ "Language: fr_FR\n"
21
+ "X-Poedit-SearchPath-0: .\n"
22
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
23
+
24
+ #: advanced-sidebar-menu.php:132
25
+ msgid "widget documentation"
26
+ msgstr "documentation widget"
27
+
28
+ #. translators: Link to PRO plugin {%1$s}[<a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">]{%2$s}[</a>]
29
+ #: src/Notice.php:54
30
+ #, php-format
31
+ msgctxt "{<a>}{</a>}"
32
+ msgid ""
33
+ "Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version %3$s"
34
+ "+. Please update or deactivate the PRO version."
35
+ msgstr ""
36
+ "Le menu Sidebar avancé nécessite %1$sAvanced Sidebar Menu PRO%2$s version "
37
+ "%3$s+. Veuillez mettre à jour ou désactiver la version PRO."
38
+
39
+ #: src/Notice.php:88
40
+ msgid "Advanced Sidebar Menu PRO"
41
+ msgstr "Advanced Sidebar Menu PRO"
42
+
43
+ #: src/Notice.php:92
44
+ msgid ""
45
+ "Styling options including borders, bullets, colors, backgrounds, size, and "
46
+ "font weight."
47
+ msgstr ""
48
+ "Options de style incluant les bordures, les balles, les couleurs, les "
49
+ "arrière-plans, la taille et le poids de la police."
50
+
51
+ #: src/Notice.php:93
52
+ msgid "Accordion menus."
53
+ msgstr "Menus accordéon."
54
+
55
+ #: src/Notice.php:94
56
+ msgid "Support for custom navigation menus from Appearance -> Menus."
57
+ msgstr "Prise en charge des menus de navigation personnalisés "
58
+
59
+ #: src/Notice.php:98
60
+ msgid "Select and display custom post types."
61
+ msgstr "Sélectionnez et affichez les types de postes personnalisés."
62
+
63
+ #: src/Notice.php:102
64
+ msgid "Select and display custom taxonomies."
65
+ msgstr "Sélectionnez et affichez des taxonomies personnalisées."
66
+
67
+ #: src/Notice.php:106
68
+ msgid "Priority support with access to members only support area."
69
+ msgstr "Soutien prioritaire avec accès aux membres uniquement zone de soutien."
70
+
71
+ #: src/Notice.php:112
72
+ msgid "So much more..."
73
+ msgstr "Tellement plus..."
74
+
75
+ #: src/Notice.php:121
76
+ msgid "Upgrade"
77
+ msgstr "Mise à jour"
78
+
79
+ #: src/Notice.php:137
80
+ msgid "Preview"
81
+ msgstr "Aperçu"
82
+
83
+ #: src/Widget/Category.php:52
84
+ msgid ""
85
+ "Creates a menu of all the categories using the child/parent relationship"
86
+ msgstr ""
87
+ "Crée un menu de toutes les catégories en utilisant la relation de l'enfant/"
88
+ "parent"
89
+
90
+ #: src/Widget/Category.php:58
91
+ msgid "Advanced Sidebar Categories Menu"
92
+ msgstr "Sidebar Catégories Menu Avancée"
93
+
94
+ #. translators: Selected taxonomy single label
95
+ #: src/Widget/Category.php:123
96
+ #, php-format
97
+ msgid "Display the highest level parent %s"
98
+ msgstr "Affichez les compétences parentales de haut niveau %s"
99
+
100
+ #. translators: Selected taxonomy single label
101
+ #. translators: Selected post type single label
102
+ #: src/Widget/Category.php:132 src/Widget/Page.php:130
103
+ #, php-format
104
+ msgid "Display menu when there is only the parent %s"
105
+ msgstr "Afficher le menu lorsqu’il n’y a que le parent %s"
106
+
107
+ #. translators: Selected taxonomy plural label
108
+ #. translators: Selected post type plural label
109
+ #: src/Widget/Category.php:141 src/Widget/Page.php:140
110
+ #, php-format
111
+ msgid "Always display child %s"
112
+ msgstr "Affichez toujours les enfants %s"
113
+
114
+ #: src/Widget/Category.php:155 src/Widget/Page.php:161
115
+ msgid "- All -"
116
+ msgstr "- Tout -"
117
+
118
+ #. translators: {select html input}, {Selected post type plural label}
119
+ #: src/Widget/Category.php:170 src/Widget/Page.php:175
120
+ #, php-format
121
+ msgid "Display %1$s levels of child %2$s"
122
+ msgstr "Afficher %1$s niveaux d'%2$s"
123
+
124
+ #. translators: Selected taxonomy plural label
125
+ #: src/Widget/Category.php:200
126
+ #, php-format
127
+ msgid "Display %s on single posts"
128
+ msgstr "Afficher %s sur les messages simples"
129
+
130
+ #. translators: Selected taxonomy single label
131
+ #: src/Widget/Category.php:210
132
+ #, php-format
133
+ msgid "Display each single post's %s"
134
+ msgstr "Affichez les %s"
135
+
136
+ #: src/Widget/Category.php:220
137
+ msgid "In a new widget"
138
+ msgstr "Dans un nouveau widget"
139
+
140
+ #: src/Widget/Category.php:223
141
+ msgid "In another list in the same widget"
142
+ msgstr "Dans une autre liste dans le même widget"
143
+
144
+ #. translators: Selected taxonomy plural label
145
+ #. translators: Selected post type plural label
146
+ #: src/Widget/Category.php:251 src/Widget/Page.php:245
147
+ #, php-format
148
+ msgid "%s to exclude (ids, comma separated)"
149
+ msgstr "%s exclure (ids, virgule séparée)"
150
+
151
+ #: src/Widget/Category.php:283 src/Widget/Page.php:276
152
+ msgid "Title"
153
+ msgstr "Titre"
154
+
155
+ #: src/Widget/Page.php:48
156
+ msgid "Creates a menu of all the pages using the child/parent relationship"
157
+ msgstr ""
158
+ "Crée un menu de toutes les pages en utilisant la relation enfant/parent"
159
+
160
+ #: src/Widget/Page.php:54
161
+ msgid "Advanced Sidebar Pages Menu"
162
+ msgstr "Advanced Sidebar Menu Des Pages"
163
+
164
+ #. translators: Selected post type single label
165
+ #: src/Widget/Page.php:119
166
+ #, php-format
167
+ msgid "Display highest level parent %s"
168
+ msgstr "Afficher les parents de haut niveau %s"
169
+
170
+ #: src/Widget/Page.php:202
171
+ msgid "Order by"
172
+ msgstr "Trier par"
173
+
174
+ #. Plugin Name of the plugin/theme
175
+ msgid "Advanced Sidebar Menu"
176
+ msgstr "Advanced Sidebar Menu"
177
+
178
+ #. Plugin URI of the plugin/theme
179
+ msgid "https://onpointplugins.com/advanced-sidebar-menu/"
180
+ msgstr "https://onpointplugins.com/advanced-sidebar-menu/"
181
+
182
+ #. Description of the plugin/theme
183
+ msgid ""
184
+ "Creates dynamic menus based on parent/child relationship of your pages or "
185
+ "categories."
186
+ msgstr ""
187
+ "Crée des menus dynamiques basés sur la relation parent/enfant de vos pages "
188
+ "ou catégories."
189
+
190
+ #. Author of the plugin/theme
191
+ msgid "OnPoint Plugins"
192
+ msgstr "OnPoint Plugins"
193
+
194
+ #. Author URI of the plugin/theme
195
+ msgid "https://onpointplugins.com"
196
+ msgstr "https://onpointplugins.com"
languages/advanced-sidebar-menu.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Advanced Sidebar Menu\n"
6
- "POT-Creation-Date: 2020-12-07 10:16-0700\n"
7
  "PO-Revision-Date: 2019-03-05 12:29-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -21,7 +21,7 @@ msgstr ""
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
- #: advanced-sidebar-menu.php:128
25
  msgid "widget documentation"
26
  msgstr ""
27
 
@@ -142,7 +142,7 @@ msgstr ""
142
  msgid "%s to exclude (ids, comma separated)"
143
  msgstr ""
144
 
145
- #: src/Widget/Category.php:285 src/Widget/Page.php:278
146
  msgid "Title"
147
  msgstr ""
148
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Advanced Sidebar Menu\n"
6
+ "POT-Creation-Date: 2021-01-20 11:16-0700\n"
7
  "PO-Revision-Date: 2019-03-05 12:29-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
+ #: advanced-sidebar-menu.php:132
25
  msgid "widget documentation"
26
  msgstr ""
27
 
142
  msgid "%s to exclude (ids, comma separated)"
143
  msgstr ""
144
 
145
+ #: src/Widget/Category.php:283 src/Widget/Page.php:276
146
  msgid "Title"
147
  msgstr ""
148
 
readme.txt CHANGED
@@ -4,9 +4,9 @@ Contributors: Mat Lipe, onpointplugins
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&lc=US&item_name=Advanced%20Sidebar%20Menu&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
5
  Tags: menus, sidebar menu, hierarchy, category menu, pages menu
6
  Requires at least: 5.0.0
7
- Tested up to: 5.6.0
8
  Requires PHP: 5.6.0
9
- Stable tag: 8.2.0
10
 
11
  == Description ==
12
 
@@ -78,9 +78,12 @@ Keeps the menu clean and usable. Only related items display so you don't have to
78
  * Option to display the top-level navigation menu items when there are no child items or not viewing a menu item.
79
  * Priority support with access to members only support area.
80
 
81
- <h3>Currently ships with the following languages</h3>
82
- * English (US)
 
 
83
  * German (de_DE)
 
84
 
85
  <h3>Developers</h3>
86
  Developer docs may be found <a target="_blank" href="https://onpointplugins.com/advanced-sidebar-menu/developer-docs/">here</a>.
@@ -152,14 +155,22 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
152
 
153
 
154
  == Changelog ==
 
 
 
 
 
 
 
 
155
  = 8.2.0 =
156
- * Improve widget labels, descriptions and styles.
157
  * Support blocked styling borders on all levels.
158
- * Improve Beaver Builder and Elementor styles.
159
- * Improve info panel.
160
 
161
  = 8.1.1 =
162
- * Improve readme.
163
  * Tested to WordPress 5.6.0.
164
 
165
  = 8.1.0 =
@@ -171,7 +182,7 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
171
  * Improved JavaScript structure.
172
 
173
  = 8.0.4 =
174
- * Improve styles when used with Beaver Builder.
175
  * Require WordPress version 5.0.0+.
176
 
177
  = 8.0.3 =
@@ -179,7 +190,7 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
179
  * Make debugging functionality more stable.
180
 
181
  = 8.0.2 =
182
- * Introduce new `advanced-sidebar-menu/menus/category/get-child-terms` filter
183
  * Support filtering the first level of categories.
184
  * Use `is_excluded` vs `is_first_level_category` in category view.
185
 
@@ -205,10 +216,10 @@ Major version update. See <a href="https://onpointplugins.com/advanced-sidebar-m
205
 
206
  = 7.7.0 =
207
  * Enable accordion previews when editing via Beaver Builder.
208
- * Greatly improve widget styles and UI when using Elementor.
209
  * Overall third party page builder improvements.
210
  * Move scripts and styles into new Scripts class.
211
- * Introduce a new Singleton trait.
212
 
213
  = 7.6.0 =
214
  * Elementor support for multiple widgets of the same type on the same page.
@@ -219,31 +230,6 @@ Major version update. See <a href="https://onpointplugins.com/advanced-sidebar-m
219
  * Convert "Always display child pages" to use our List_Pages structure and support all widget options.
220
  * Bump required PHP version to 5.4.4.
221
 
222
- = 7.4.0 =
223
- * Added support for Beaver Builder
224
-
225
- = 7.3.0 =
226
- * Greatly improve category widget performance
227
-
228
- = 7.2.0 =
229
- * New improved widget structure
230
-
231
- = 7.1.0 =
232
- * Support Pro Version 3.0.0
233
- * Add German translations
234
- * Begin converting code formatting to strict WordPress standards
235
-
236
- = 7.0.0 =
237
- * Restructure the codebase to a more modern PSR4 structure
238
- * Improve cache handling
239
- * Improve verbiage in the admin
240
- * Implement new actions and filters
241
- * Rebuild templates for improved stability and future changes
242
- * Improve performance
243
- * Kill conflicting backward compatibility with version 5
244
- * Open up more extendability possibilities
245
-
246
-
247
  == Upgrade Notice ==
248
  = 8.2.0 =
249
  Update to support PRO version 8.2.0
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&lc=US&item_name=Advanced%20Sidebar%20Menu&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
5
  Tags: menus, sidebar menu, hierarchy, category menu, pages menu
6
  Requires at least: 5.0.0
7
+ Tested up to: 5.6.2
8
  Requires PHP: 5.6.0
9
+ Stable tag: 8.3.0
10
 
11
  == Description ==
12
 
78
  * Option to display the top-level navigation menu items when there are no child items or not viewing a menu item.
79
  * Priority support with access to members only support area.
80
 
81
+ <h3>Translations</h3>
82
+ This plugin includes the following languages:
83
+ * English (en_US)
84
+ * French (fr_FR)
85
  * German (de_DE)
86
+ * Spanish (es_ES)
87
 
88
  <h3>Developers</h3>
89
  Developer docs may be found <a target="_blank" href="https://onpointplugins.com/advanced-sidebar-menu/developer-docs/">here</a>.
155
 
156
 
157
  == Changelog ==
158
+ = 8.3.0 =
159
+ * Improved plugin headers.
160
+ * Added translations for French (fr_FR).
161
+ * Added translations for Spanish (es_ES).
162
+ * Expose `Category::is_tax` method for public filters.
163
+ * Improved type casting and PHPStan static type checking.
164
+ * Fix tense in readme.txt words.
165
+
166
  = 8.2.0 =
167
+ * Improved widget labels, descriptions and styles.
168
  * Support blocked styling borders on all levels.
169
+ * Improved Beaver Builder and Elementor styles.
170
+ * Improved info panel.
171
 
172
  = 8.1.1 =
173
+ * Improved readme.
174
  * Tested to WordPress 5.6.0.
175
 
176
  = 8.1.0 =
182
  * Improved JavaScript structure.
183
 
184
  = 8.0.4 =
185
+ * Improved styles when used with Beaver Builder.
186
  * Require WordPress version 5.0.0+.
187
 
188
  = 8.0.3 =
190
  * Make debugging functionality more stable.
191
 
192
  = 8.0.2 =
193
+ * Introduced new `advanced-sidebar-menu/menus/category/get-child-terms` filter
194
  * Support filtering the first level of categories.
195
  * Use `is_excluded` vs `is_first_level_category` in category view.
196
 
216
 
217
  = 7.7.0 =
218
  * Enable accordion previews when editing via Beaver Builder.
219
+ * Greatly improved widget styles and UI when using Elementor.
220
  * Overall third party page builder improvements.
221
  * Move scripts and styles into new Scripts class.
222
+ * Introduced a new Singleton trait.
223
 
224
  = 7.6.0 =
225
  * Elementor support for multiple widgets of the same type on the same page.
230
  * Convert "Always display child pages" to use our List_Pages structure and support all widget options.
231
  * Bump required PHP version to 5.4.4.
232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  == Upgrade Notice ==
234
  = 8.2.0 =
235
  Update to support PRO version 8.2.0
src/Menus/Category.php CHANGED
@@ -70,7 +70,7 @@ class Category extends Menu_Abstract {
70
  switch ( $level ) {
71
  case self::LEVEL_PARENT:
72
  $args['hide_empty'] = 0;
73
- $args['include'] = trim( $this->get_top_parent_id() );
74
  break;
75
  case self::LEVEL_DISPLAY_ALL:
76
  $args['child_of'] = $this->get_top_parent_id();
@@ -184,7 +184,7 @@ class Category extends Menu_Abstract {
184
  * Get this menu's taxonomy.
185
  * Defaults to 'category'.
186
  *
187
- * @return int
188
  */
189
  public function get_taxonomy() {
190
  return apply_filters( 'advanced-sidebar-menu/menus/category/taxonomy', 'category', $this->args, $this->instance, $this );
@@ -194,7 +194,7 @@ class Category extends Menu_Abstract {
194
  /**
195
  * Get id of the highest level parent item.
196
  *
197
- * @return int
198
  */
199
  public function get_top_parent_id() {
200
  if ( empty( $this->top_level_term->term_id ) ) {
@@ -271,12 +271,11 @@ class Category extends Menu_Abstract {
271
 
272
 
273
  /**
274
- * Simplified way to verify if we are on a taxonomy
275
- * archive
276
  *
277
  * @return bool
278
  */
279
- protected function is_tax() {
280
  $taxonomy = $this->get_taxonomy();
281
  if ( 'category' === $taxonomy ) {
282
  if ( is_category() ) {
@@ -348,7 +347,7 @@ class Category extends Menu_Abstract {
348
  * If a category has children add the 'has_children' class
349
  * to the list item.
350
  *
351
- * @param [] $classes - List of classes added to category list item.
352
  * @param \WP_Term $category - Current category.
353
  *
354
  * @filter category_css_class 11 2
70
  switch ( $level ) {
71
  case self::LEVEL_PARENT:
72
  $args['hide_empty'] = 0;
73
+ $args['include'] = trim( (string) $this->get_top_parent_id() );
74
  break;
75
  case self::LEVEL_DISPLAY_ALL:
76
  $args['child_of'] = $this->get_top_parent_id();
184
  * Get this menu's taxonomy.
185
  * Defaults to 'category'.
186
  *
187
+ * @return string
188
  */
189
  public function get_taxonomy() {
190
  return apply_filters( 'advanced-sidebar-menu/menus/category/taxonomy', 'category', $this->args, $this->instance, $this );
194
  /**
195
  * Get id of the highest level parent item.
196
  *
197
+ * @return ?int
198
  */
199
  public function get_top_parent_id() {
200
  if ( empty( $this->top_level_term->term_id ) ) {
271
 
272
 
273
  /**
274
+ * Simplified way to verify if we are on a taxonomy archive.
 
275
  *
276
  * @return bool
277
  */
278
+ public function is_tax() {
279
  $taxonomy = $this->get_taxonomy();
280
  if ( 'category' === $taxonomy ) {
281
  if ( is_category() ) {
347
  * If a category has children add the 'has_children' class
348
  * to the list item.
349
  *
350
+ * @param array $classes - List of classes added to category list item.
351
  * @param \WP_Term $category - Current category.
352
  *
353
  * @filter category_css_class 11 2
src/Menus/Menu_Abstract.php CHANGED
@@ -269,7 +269,9 @@ abstract class Menu_Abstract {
269
  * @return static
270
  */
271
  public static function factory( array $widget_instance, array $widget_args ) {
 
272
  $menu = new static( $widget_instance, $widget_args );
 
273
  static::$current = $menu;
274
 
275
  return $menu;
269
  * @return static
270
  */
271
  public static function factory( array $widget_instance, array $widget_args ) {
272
+ /* @phpstan-ignore-next-line */
273
  $menu = new static( $widget_instance, $widget_args );
274
+ /* @phpstan-ignore-next-line */
275
  static::$current = $menu;
276
 
277
  return $menu;
src/Scripts.php CHANGED
@@ -39,7 +39,7 @@ class Scripts {
39
  public function admin_scripts() {
40
  wp_enqueue_script(
41
  'advanced-sidebar-menu-script',
42
- \trailingslashit( ADVANCED_SIDEBAR_MENU_URL ) . 'resources/js/advanced-sidebar-menu.js',
43
  [ 'jquery' ],
44
  ADVANCED_SIDEBAR_BASIC_VERSION,
45
  false
@@ -47,7 +47,7 @@ class Scripts {
47
 
48
  wp_enqueue_style(
49
  'advanced-sidebar-menu-style',
50
- \trailingslashit( ADVANCED_SIDEBAR_MENU_URL ) . 'resources/css/advanced-sidebar-menu.css',
51
  [],
52
  ADVANCED_SIDEBAR_BASIC_VERSION
53
  );
39
  public function admin_scripts() {
40
  wp_enqueue_script(
41
  'advanced-sidebar-menu-script',
42
+ trailingslashit( (string) ADVANCED_SIDEBAR_MENU_URL ) . 'resources/js/advanced-sidebar-menu.js',
43
  [ 'jquery' ],
44
  ADVANCED_SIDEBAR_BASIC_VERSION,
45
  false
47
 
48
  wp_enqueue_style(
49
  'advanced-sidebar-menu-style',
50
+ trailingslashit( (string) ADVANCED_SIDEBAR_MENU_URL ) . 'resources/css/advanced-sidebar-menu.css',
51
  [],
52
  ADVANCED_SIDEBAR_BASIC_VERSION
53
  );
src/Traits/Singleton.php CHANGED
@@ -68,6 +68,7 @@ trait Singleton {
68
  */
69
  public static function instance() {
70
  if ( ! is_a( static::$instance, __CLASS__ ) ) {
 
71
  static::$instance = new static();
72
  }
73
 
68
  */
69
  public static function instance() {
70
  if ( ! is_a( static::$instance, __CLASS__ ) ) {
71
+ /* @phpstan-ignore-next-line */
72
  static::$instance = new static();
73
  }
74
 
src/Widget/Category.php CHANGED
@@ -158,8 +158,8 @@ class Category extends Widget_Abstract {
158
  for ( $i = 1; $i < 6; $i ++ ) {
159
  ?>
160
  <option
161
- value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, (int) $instance[ self::LEVELS ] ); ?>>
162
- <?php echo esc_html( $i ); ?>
163
  </option>
164
  <?php
165
  }
@@ -273,8 +273,6 @@ class Category extends Widget_Abstract {
273
  * @param array $instance - Widget settings.
274
  *
275
  * @since 7.2.1
276
- *
277
- * @return void
278
  */
279
  public function form( $instance ) {
280
  $instance = $this->set_instance( $instance, self::$defaults );
@@ -303,6 +301,8 @@ class Category extends Widget_Abstract {
303
 
304
  <?php
305
  do_action( 'advanced-sidebar-menu/widget/category/after-form', $instance, $this );
 
 
306
  }
307
 
308
 
158
  for ( $i = 1; $i < 6; $i ++ ) {
159
  ?>
160
  <option
161
+ value="<?php echo esc_attr( (string) $i ); ?>" <?php selected( $i, (int) $instance[ self::LEVELS ] ); ?>>
162
+ <?php echo (int) $i; ?>
163
  </option>
164
  <?php
165
  }
273
  * @param array $instance - Widget settings.
274
  *
275
  * @since 7.2.1
 
 
276
  */
277
  public function form( $instance ) {
278
  $instance = $this->set_instance( $instance, self::$defaults );
301
 
302
  <?php
303
  do_action( 'advanced-sidebar-menu/widget/category/after-form', $instance, $this );
304
+
305
+ return '';
306
  }
307
 
308
 
src/Widget/Page.php CHANGED
@@ -163,7 +163,7 @@ class Page extends Widget_Abstract {
163
  <?php
164
  for ( $i = 1; $i < 10; $i ++ ) {
165
  ?>
166
- <option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, (int) $instance[ self::LEVELS ] ); ?>>
167
  <?php echo (int) $i; ?>
168
  </option>
169
  <?php
@@ -266,8 +266,6 @@ class Page extends Widget_Abstract {
266
  * @param array $instance - Widget settings.
267
  *
268
  * @since 7.2.1
269
- *
270
- * @return void
271
  */
272
  public function form( $instance ) {
273
  $instance = $this->set_instance( $instance, self::$defaults );
@@ -294,6 +292,8 @@ class Page extends Widget_Abstract {
294
  <div class="advanced-sidebar-menu-full-width"><!-- clear --></div>
295
  <?php
296
  do_action( 'advanced-sidebar-menu/widget/page/after-form', $instance, $this );
 
 
297
  }
298
 
299
 
163
  <?php
164
  for ( $i = 1; $i < 10; $i ++ ) {
165
  ?>
166
+ <option value="<?php echo esc_attr( (string) $i ); ?>" <?php selected( $i, (int) $instance[ self::LEVELS ] ); ?>>
167
  <?php echo (int) $i; ?>
168
  </option>
169
  <?php
266
  * @param array $instance - Widget settings.
267
  *
268
  * @since 7.2.1
 
 
269
  */
270
  public function form( $instance ) {
271
  $instance = $this->set_instance( $instance, self::$defaults );
292
  <div class="advanced-sidebar-menu-full-width"><!-- clear --></div>
293
  <?php
294
  do_action( 'advanced-sidebar-menu/widget/page/after-form', $instance, $this );
295
+
296
+ return '';
297
  }
298
 
299