Advanced Sidebar Menu - Version 8.1.0

Version Description

  • Restructure widget info panels.
  • Introduced new advanced-sidebar-menu/widget/page/before-columns action.
  • Introduced new advanced-sidebar-menu/widget/category/before-columns action.
  • Improved PHPCS exclusion declarations.
  • Improved CSS structure.
  • Improved JavaScript structure.
Download this release

Release Info

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

Code changes from version 8.0.4 to 8.1.0

advanced-sidebar-menu.php CHANGED
@@ -4,7 +4,7 @@
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.0.4
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  *
@@ -15,7 +15,7 @@ if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
15
  return;
16
  }
17
 
18
- define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '8.0.4' );
19
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.0.0' );
20
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
21
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
@@ -27,6 +27,7 @@ use Advanced_Sidebar_Menu\List_Pages;
27
  use Advanced_Sidebar_Menu\Menus\Category;
28
  use Advanced_Sidebar_Menu\Menus\Menu_Abstract;
29
  use Advanced_Sidebar_Menu\Menus\Page;
 
30
  use Advanced_Sidebar_Menu\Scripts;
31
  use Advanced_Sidebar_Menu\Traits\Memoize;
32
  use Advanced_Sidebar_Menu\Traits\Singleton;
@@ -44,10 +45,10 @@ function advanced_sidebar_menu_load() {
44
  Core::init();
45
  Cache::init();
46
  Debug::init();
 
47
  Scripts::init();
48
 
49
- if ( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) && version_compare( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION, ADVANCED_SIDEBAR_MENU_PRO_VERSION, '>' ) ) {
50
- add_action( 'admin_notices', 'advanced_sidebar_menu_pro_version_warning' );
51
  remove_action( 'plugins_loaded', 'advanced_sidebar_menu_pro_init', 11 );
52
  }
53
  }
@@ -74,6 +75,7 @@ function advanced_sidebar_menu_autoload( $class ) {
74
  Core::class => 'Core.php',
75
  Debug::class => 'Debug.php',
76
  List_Pages::class => 'List_Pages.php',
 
77
  Scripts::class => 'Scripts.php',
78
 
79
  // Menus.
@@ -106,8 +108,6 @@ function advanced_sidebar_menu_translate() {
106
  load_plugin_textdomain( 'advanced-sidebar-menu', false, 'advanced-sidebar-menu/languages' );
107
  }
108
 
109
- add_action( 'advanced-sidebar-menu/widget/category/right-column', 'advanced_sidebar_menu_upgrade_notice', 1, 2 );
110
- add_action( 'advanced-sidebar-menu/widget/page/right-column', 'advanced_sidebar_menu_upgrade_notice', 1, 2 );
111
  add_action( 'advanced-sidebar-menu/widget/page/after-form', 'advanced_sidebar_menu_widget_docs', 99, 2 );
112
  add_action( 'advanced-sidebar-menu/widget/category/after-form', 'advanced_sidebar_menu_widget_docs', 99, 2 );
113
 
@@ -118,7 +118,7 @@ add_action( 'advanced-sidebar-menu/widget/category/after-form', 'advanced_sideba
118
  * @param WP_Widget $widget - Current widget.
119
  */
120
  function advanced_sidebar_menu_widget_docs( $instance, WP_Widget $widget ) {
121
- $anchor = \Advanced_Sidebar_Menu\Widget\Category::NAME === $widget->id_base ? 'categories-menu' : 'pages-menu';
122
  ?>
123
  <p style="text-align: right">
124
  <a
@@ -130,84 +130,3 @@ function advanced_sidebar_menu_widget_docs( $instance, WP_Widget $widget ) {
130
  </p>
131
  <?php
132
  }
133
-
134
- /**
135
- * Notify widget users about the PRO options
136
- *
137
- * @param array $instance - widget instance.
138
- * @param WP_Widget $widget - widget class.
139
- *
140
- * @return void
141
- */
142
- function advanced_sidebar_menu_upgrade_notice( array $instance, WP_Widget $widget ) {
143
- if ( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) {
144
- if ( version_compare( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION, ADVANCED_SIDEBAR_MENU_PRO_VERSION, '>' ) ) {
145
- ?>
146
- <div class="advanced-sidebar-menu-column-box" style="border-color: red">
147
- <?php advanced_sidebar_menu_pro_version_warning( true ); ?>
148
- </div>
149
- <?php
150
- }
151
-
152
- return;
153
- }
154
- ?>
155
- <div class="advanced-sidebar-menu-column-box">
156
- <h3><?php esc_html_e( 'Advanced Sidebar Menu PRO!', 'advanced-sidebar-menu' ); ?></h3>
157
- <p>
158
- <strong>
159
- <?php
160
- /* translators: {<a>}{</a>} links to https://onpointplugins.com/product/advanced-sidebar-menu-pro/ */
161
- printf( esc_html_x( 'Upgrade to %1$sAdvanced Sidebar Menu PRO%2$s for these features and so much more!', '{<a>}{</a>}', 'advanced-sidebar-menu' ), '<a target="blank" href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">', '</a>' );
162
- ?>
163
- </strong>
164
- <ol style="list-style: disc">
165
- <li><?php esc_html_e( 'Priority support, including access to Members Only Support Area.', 'advanced-sidebar-menu' ); ?></li>
166
- <li><?php esc_html_e( 'Accordion menu support.', 'advanced-sidebar-menu' ); ?></li>
167
- <li><?php esc_html_e( 'Click and drag menu styling including bullets, colors, sizes, block styles, borders, and border colors.', 'advanced-sidebar-menu' ); ?></li>
168
- <?php
169
- if ( \Advanced_Sidebar_Menu\Widget\Page::NAME === $widget->id_base ) {
170
- ?>
171
- <li><?php esc_html_e( "Ability to customize each page's link text.", 'advanced-sidebar-menu' ); ?></li>
172
- <li><?php esc_html_e( 'Ability to exclude a page from all menus using a simple checkbox.', 'advanced-sidebar-menu' ); ?></li>
173
- <li><?php esc_html_e( 'Number of levels of pages to show when always displayed child pages is not checked.', 'advanced-sidebar-menu' ); ?></li>
174
- <li><?php esc_html_e( 'Ability to select and display custom post types.', 'advanced-sidebar-menu' ); ?></li>
175
- <li><?php esc_html_e( 'Option to display the current page’s parents, grandparents, and children only, as well as siblings options.', 'advanced-sidebar-menu' ); ?></li>
176
- <?php
177
- } else {
178
- ?>
179
- <li><?php esc_html_e( 'Link ordering for the category widget.', 'advanced-sidebar-menu' ); ?></li>
180
- <li><?php esc_html_e( 'Ability to select and display custom taxonomies.', 'advanced-sidebar-menu' ); ?></li>
181
- <li><?php esc_html_e( 'Ability to display assigned posts or custom post types under categories.', 'advanced-sidebar-menu' ); ?></li>
182
- <?php
183
- }
184
- ?>
185
- <li><?php esc_html_e( 'Ability to display the widgets everywhere the sidebar displays.', 'advanced-sidebar-menu' ); ?></li>
186
- <li><?php esc_html_e( 'Support for custom navigation menus from Appearance -> Menus.', 'advanced-sidebar-menu' ); ?></li>
187
- </ol>
188
- <p>
189
- </div>
190
- <?php
191
- }
192
-
193
- /**
194
- * Display a warning if we don't have the required PRO version installed.
195
- *
196
- * @param bool $no_banner - Display as "message" banner.
197
- *
198
- * @since 8.0.0
199
- *
200
- * @return void
201
- */
202
- function advanced_sidebar_menu_pro_version_warning( $no_banner = false ) {
203
- ?>
204
- <div class="<?php echo true === $no_banner ? '' : 'error'; ?>">
205
- <p>
206
- <?php
207
- /* translators: {%1$s}[<a>]{%2$s}[</a>] https://wordpress.org/plugins/advanced-sidebar-menu/ */ //phpcs:disable
208
- printf( esc_html_x( 'Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version %3$s+. Please update or deactivate the PRO version.', '{<a>}{</a>}', 'advanced-sidebar-menu' ), '<a target="_blank" rel="noreferrer noopener" href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">', '</a>', esc_attr( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION ) );
209
- ?>
210
- </p>
211
- </div>
212
- <?php
213
- }
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.1.0
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  *
15
  return;
16
  }
17
 
18
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '8.1.0' );
19
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.0.0' );
20
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
21
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
27
  use Advanced_Sidebar_Menu\Menus\Category;
28
  use Advanced_Sidebar_Menu\Menus\Menu_Abstract;
29
  use Advanced_Sidebar_Menu\Menus\Page;
30
+ use Advanced_Sidebar_Menu\Notice;
31
  use Advanced_Sidebar_Menu\Scripts;
32
  use Advanced_Sidebar_Menu\Traits\Memoize;
33
  use Advanced_Sidebar_Menu\Traits\Singleton;
45
  Core::init();
46
  Cache::init();
47
  Debug::init();
48
+ Notice::init();
49
  Scripts::init();
50
 
51
+ if ( Notice::instance()->is_conflicting_pro_version() ) {
 
52
  remove_action( 'plugins_loaded', 'advanced_sidebar_menu_pro_init', 11 );
53
  }
54
  }
75
  Core::class => 'Core.php',
76
  Debug::class => 'Debug.php',
77
  List_Pages::class => 'List_Pages.php',
78
+ Notice::class => 'Notice.php',
79
  Scripts::class => 'Scripts.php',
80
 
81
  // Menus.
108
  load_plugin_textdomain( 'advanced-sidebar-menu', false, 'advanced-sidebar-menu/languages' );
109
  }
110
 
 
 
111
  add_action( 'advanced-sidebar-menu/widget/page/after-form', 'advanced_sidebar_menu_widget_docs', 99, 2 );
112
  add_action( 'advanced-sidebar-menu/widget/category/after-form', 'advanced_sidebar_menu_widget_docs', 99, 2 );
113
 
118
  * @param WP_Widget $widget - Current widget.
119
  */
120
  function advanced_sidebar_menu_widget_docs( $instance, WP_Widget $widget ) {
121
+ $anchor = Widget_Category::NAME === $widget->id_base ? 'categories-menu' : 'pages-menu';
122
  ?>
123
  <p style="text-align: right">
124
  <a
130
  </p>
131
  <?php
132
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/advanced-sidebar-menu-de_DE.mo CHANGED
Binary file
languages/advanced-sidebar-menu-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Advanced Sidebar Menu\n"
4
- "POT-Creation-Date: 2020-07-10 21:16-0600\n"
5
- "PO-Revision-Date: 2020-07-10 21:16-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: de\n"
@@ -10,7 +10,7 @@ msgstr ""
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.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
16
  "X-Poedit-WPHeader: advanced-sidebar-menu.php\n"
@@ -21,109 +21,67 @@ msgstr ""
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
- #: advanced-sidebar-menu.php:126
25
  msgid "widget documentation"
26
  msgstr "widget-dokumentation"
27
 
28
- #: advanced-sidebar-menu.php:146
29
- msgid "Advanced Sidebar Menu PRO!"
30
- msgstr "Advanced Sidebar Menu PRO!"
31
-
32
- #. translators: {<a>}{</a>} links to https://onpointplugins.com/product/advanced-sidebar-menu-pro/
33
- #: advanced-sidebar-menu.php:151
34
  #, php-format
35
  msgctxt "{<a>}{</a>}"
36
  msgid ""
37
- "Upgrade to %1$sAdvanced Sidebar Menu PRO%2$s for these features and so much "
38
- "more!"
39
- msgstr ""
40
- "Upgrade auf %1$sAdvanced Sidebar Menu PRO%2$s für diese Funktionen und "
41
- "vieles mehr!"
42
-
43
- #: advanced-sidebar-menu.php:155
44
- msgid "Priority support, including access to Members Only Support Area."
45
- msgstr ""
46
- "Prioritätsunterstützung, einschließlich Zugang zum Supportbereich für "
47
- "Mitglieder."
48
-
49
- #: advanced-sidebar-menu.php:156
50
- msgid "Accordion menu support."
51
- msgstr "Akkordeon-Menü-Unterstützung."
52
-
53
- #: advanced-sidebar-menu.php:157
54
- msgid ""
55
- "Click and drag menu styling including bullets, colors, sizes, block styles, "
56
- "borders, and border colors."
57
  msgstr ""
58
- "Klicken und ziehen Sie das Menü-Styling, einschließlich Aufzählungszeichen, "
59
- "Farben, Größen, Blockstile, Rahmen und Rahmenfarben."
60
-
61
- #: advanced-sidebar-menu.php:161
62
- msgid "Ability to customize each page's link text."
63
- msgstr "Möglichkeit, den Linktext jeder Seite anzupassen."
64
 
65
- #: advanced-sidebar-menu.php:162
66
- msgid "Ability to exclude a page from all menus using a simple checkbox."
67
- msgstr ""
68
- "Möglichkeit, eine Seite mit einem einfachen Kontrollkästchen aus allen Menüs "
69
- "auszuschließen."
70
 
71
- #: advanced-sidebar-menu.php:163
72
  msgid ""
73
- "Number of levels of pages to show when always displayed child pages is not "
74
- "checked."
75
  msgstr ""
76
- "Anzahl der Seitenebenen, die angezeigt werden sollen, wenn immer "
77
- "untergeordnete Seiten angezeigt werden, ist nicht aktiviert."
78
 
79
- #: advanced-sidebar-menu.php:164
80
- msgid "Ability to select and display custom post types."
81
- msgstr ""
82
- "Möglichkeit, benutzerdefinierte Beitragstypen auszuwählen und anzuzeigen."
83
 
84
- #: advanced-sidebar-menu.php:165
85
- msgid ""
86
- "Option to display the current page’s parents, grandparents, and children "
87
- "only, as well as siblings options."
88
  msgstr ""
89
- "Option, um die Eltern, Großeltern und Kinder der aktuellen Seite anzuzeigen, "
90
- "sowie Geschwisteroptionen."
91
 
92
- #: advanced-sidebar-menu.php:169
93
- msgid "Link ordering for the category widget."
94
- msgstr "Verknüpfungsreihenfolge für das Kategorie-Widget."
95
 
96
- #: advanced-sidebar-menu.php:170
97
- msgid "Ability to select and display custom taxonomies."
98
- msgstr "Möglichkeit, benutzerdefinierte Taxonomien auszuwählen und anzuzeigen."
99
 
100
- #: advanced-sidebar-menu.php:171
101
- msgid ""
102
- "Ability to display assigned posts or custom post types under categories."
103
  msgstr ""
104
- "Fähigkeit, zugewiesene Beiträge oder benutzerdefinierte Posttypen unter "
105
- "Kategorien anzuzeigen."
106
 
107
- #: advanced-sidebar-menu.php:175
108
- msgid "Ability to display the widgets everywhere the sidebar displays."
109
- msgstr "Die Fähigkeit, die Widgets überall in der Sidebar-Anzeige anzuzeigen."
110
 
111
- #: advanced-sidebar-menu.php:176
112
- msgid "Support for custom navigation menus from Appearance -> Menus."
113
- msgstr ""
114
- "Unterstützung für kundenspezifische Navigationsmenüs von Appearance-> Menü."
115
 
116
- #. translators: {%1$s}[<a>]{%2$s}[</a>] https://wordpress.org/plugins/advanced-sidebar-menu/
117
- #. phpcs:disable
118
- #: advanced-sidebar-menu.php:196
119
- #, php-format
120
- msgctxt "{<a>}{</a>}"
121
- msgid ""
122
- "Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version %3$s"
123
- "+. Please update or deactivate the PRO version."
124
- msgstr ""
125
- "Das Advanced Sidebar Menu erfordert %1$s sAdvanced Sidebar Menu PRO%2$s es "
126
- "Version %3$s+. Bitte aktualisieren oder deaktivieren Sie die PRO-Version."
127
 
128
  #: src/Widget/Category.php:52
129
  msgid ""
@@ -136,43 +94,43 @@ msgstr ""
136
  msgid "Advanced Sidebar Categories Menu"
137
  msgstr "Advanced Sidebar Kategorien-Menü"
138
 
139
- #: src/Widget/Category.php:93
140
  msgid "Display the highest level parent category"
141
  msgstr "Anzeige der übergeordneten Kategorie der höchsten Ebene"
142
 
143
- #: src/Widget/Category.php:99
144
  msgid "Display menu when there is only the parent category"
145
  msgstr "Menü \"Anzeige\" wird nur die übergeordnete Kategorie"
146
 
147
- #: src/Widget/Category.php:105
148
  msgid "Always display child categories"
149
  msgstr "Immer untergeordnete Kategorien anzeigen"
150
 
151
- #: src/Widget/Category.php:111
152
  msgid "Levels of child categories to display"
153
  msgstr "Niveau der Kinderkategorien zu zeigen"
154
 
155
- #: src/Widget/Category.php:153
156
  msgid "Display categories on single posts"
157
  msgstr "Kategorien auf einzelne Beiträge anzeigen"
158
 
159
- #: src/Widget/Category.php:160
160
  msgid "Display each single post's category"
161
  msgstr "Zeigen Sie die einzelnen Kategorien der einzelnen Posts an"
162
 
163
- #: src/Widget/Category.php:167
164
  msgid "In a new widget"
165
  msgstr "In einem neuen Widget"
166
 
167
- #: src/Widget/Category.php:170
168
  msgid "In another list in the same widget"
169
  msgstr "In einer anderen Liste im selben Widget"
170
 
171
- #: src/Widget/Category.php:196
172
  msgid "Categories to exclude (ids), comma separated"
173
  msgstr "Kategorien ausschließen (Ids), durch Kommata getrennt"
174
 
175
- #: src/Widget/Category.php:229 src/Widget/Page.php:234
176
  msgid "Title"
177
  msgstr "Titel"
178
 
@@ -186,31 +144,31 @@ msgstr ""
186
  msgid "Advanced Sidebar Pages Menu"
187
  msgstr "Advanced Sidebar Seitenmenü"
188
 
189
- #: src/Widget/Page.php:89
190
  msgid "Display highest level parent page"
191
  msgstr "Zeigt die oberste Seite der obersten Ebene an"
192
 
193
- #: src/Widget/Page.php:97
194
  msgid "Display menu when there is only the parent page"
195
  msgstr "Menü \"Anzeige\" wird nur die übergeordnete Seite"
196
 
197
- #: src/Widget/Page.php:104
198
  msgid "Always display child pages"
199
  msgstr "Immer untergeordnete Seiten anzeigen"
200
 
201
- #: src/Widget/Page.php:117
202
  msgid "Maximum level of child pages to display"
203
  msgstr "Maximale Höhe der zu zeigestellenden Kinderseiten"
204
 
205
- #: src/Widget/Page.php:123
206
  msgid " - All - "
207
  msgstr " Alle "
208
 
209
- #: src/Widget/Page.php:161
210
  msgid "Order by"
211
  msgstr "Sortieren nach"
212
 
213
- #: src/Widget/Page.php:202
214
  msgid "Pages to exclude (ids), comma separated"
215
  msgstr "Auszuschließende Seiten (IDs), durch Kommas getrennt"
216
 
@@ -232,12 +190,63 @@ msgstr ""
232
 
233
  #. Author of the plugin/theme
234
  msgid "OnPoint Plugins"
235
- msgstr ""
236
 
237
  #. Author URI of the plugin/theme
238
  msgid "https://onpointplugins.com"
239
  msgstr "https://onpointplugins.com"
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  #~ msgid "Checkout Advanced Sidebar Menu Pro!"
242
  #~ msgstr "Kasse Advanced Sidebar Menu Pro!"
243
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Advanced Sidebar Menu\n"
4
+ "POT-Creation-Date: 2020-10-26 10:17-0600\n"
5
+ "PO-Revision-Date: 2020-10-26 10:18-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: de\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.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
16
  "X-Poedit-WPHeader: advanced-sidebar-menu.php\n"
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 "widget-dokumentation"
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
+ "Das Advanced Sidebar Menu erfordert %1$s sAdvanced Sidebar Menu PRO%2$s es "
37
+ "Version %3$s+. Bitte aktualisieren oder deaktivieren Sie die PRO-Version."
 
 
 
 
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
+ "Stylingoptionen wie Rahmen, Aufzählungszeichen, Farben, Hintergründe, Größe "
49
+ "und Schriftstärke."
50
 
51
+ #: src/Notice.php:93
52
+ msgid "Accordion menus."
53
+ msgstr "Akkordeon-Menüs."
 
54
 
55
+ #: src/Notice.php:94
56
+ msgid "Support for custom navigation menus from Appearance -> Menus."
 
 
57
  msgstr ""
58
+ "Unterstützung für kundenspezifische Navigationsmenüs von Appearance-> Menü."
 
59
 
60
+ #: src/Notice.php:98
61
+ msgid "Select and display custom post types."
62
+ msgstr "Wählen Sie benutzerdefinierte Posttypen aus und zeigen Sie sie an."
63
 
64
+ #: src/Notice.php:102
65
+ msgid "Select and display custom taxonomies."
66
+ msgstr "Wählen Sie benutzerdefinierte Taxonomien aus und zeigen Sie sie an."
67
 
68
+ #: src/Notice.php:106
69
+ msgid "Priority support with access to members only support area."
 
70
  msgstr ""
71
+ "Prioritätsunterstützung, einschließlich Zugang zum Supportbereich für "
72
+ "Mitglieder."
73
 
74
+ #: src/Notice.php:112
75
+ msgid "So much more..."
76
+ msgstr "So viel mehr..."
77
 
78
+ #: src/Notice.php:121
79
+ msgid "Upgrade"
80
+ msgstr "Aktualisierung"
 
81
 
82
+ #: src/Notice.php:131 src/Notice.php:137
83
+ msgid "Preview"
84
+ msgstr "Vorschau"
 
 
 
 
 
 
 
 
85
 
86
  #: src/Widget/Category.php:52
87
  msgid ""
94
  msgid "Advanced Sidebar Categories Menu"
95
  msgstr "Advanced Sidebar Kategorien-Menü"
96
 
97
+ #: src/Widget/Category.php:99
98
  msgid "Display the highest level parent category"
99
  msgstr "Anzeige der übergeordneten Kategorie der höchsten Ebene"
100
 
101
+ #: src/Widget/Category.php:105
102
  msgid "Display menu when there is only the parent category"
103
  msgstr "Menü \"Anzeige\" wird nur die übergeordnete Kategorie"
104
 
105
+ #: src/Widget/Category.php:111
106
  msgid "Always display child categories"
107
  msgstr "Immer untergeordnete Kategorien anzeigen"
108
 
109
+ #: src/Widget/Category.php:117
110
  msgid "Levels of child categories to display"
111
  msgstr "Niveau der Kinderkategorien zu zeigen"
112
 
113
+ #: src/Widget/Category.php:159
114
  msgid "Display categories on single posts"
115
  msgstr "Kategorien auf einzelne Beiträge anzeigen"
116
 
117
+ #: src/Widget/Category.php:166
118
  msgid "Display each single post's category"
119
  msgstr "Zeigen Sie die einzelnen Kategorien der einzelnen Posts an"
120
 
121
+ #: src/Widget/Category.php:173
122
  msgid "In a new widget"
123
  msgstr "In einem neuen Widget"
124
 
125
+ #: src/Widget/Category.php:176
126
  msgid "In another list in the same widget"
127
  msgstr "In einer anderen Liste im selben Widget"
128
 
129
+ #: src/Widget/Category.php:202
130
  msgid "Categories to exclude (ids), comma separated"
131
  msgstr "Kategorien ausschließen (Ids), durch Kommata getrennt"
132
 
133
+ #: src/Widget/Category.php:235 src/Widget/Page.php:240
134
  msgid "Title"
135
  msgstr "Titel"
136
 
144
  msgid "Advanced Sidebar Pages Menu"
145
  msgstr "Advanced Sidebar Seitenmenü"
146
 
147
+ #: src/Widget/Page.php:95
148
  msgid "Display highest level parent page"
149
  msgstr "Zeigt die oberste Seite der obersten Ebene an"
150
 
151
+ #: src/Widget/Page.php:103
152
  msgid "Display menu when there is only the parent page"
153
  msgstr "Menü \"Anzeige\" wird nur die übergeordnete Seite"
154
 
155
+ #: src/Widget/Page.php:110
156
  msgid "Always display child pages"
157
  msgstr "Immer untergeordnete Seiten anzeigen"
158
 
159
+ #: src/Widget/Page.php:123
160
  msgid "Maximum level of child pages to display"
161
  msgstr "Maximale Höhe der zu zeigestellenden Kinderseiten"
162
 
163
+ #: src/Widget/Page.php:129
164
  msgid " - All - "
165
  msgstr " Alle "
166
 
167
+ #: src/Widget/Page.php:167
168
  msgid "Order by"
169
  msgstr "Sortieren nach"
170
 
171
+ #: src/Widget/Page.php:208
172
  msgid "Pages to exclude (ids), comma separated"
173
  msgstr "Auszuschließende Seiten (IDs), durch Kommas getrennt"
174
 
190
 
191
  #. Author of the plugin/theme
192
  msgid "OnPoint Plugins"
193
+ msgstr "OnPoint Plugins"
194
 
195
  #. Author URI of the plugin/theme
196
  msgid "https://onpointplugins.com"
197
  msgstr "https://onpointplugins.com"
198
 
199
+ #, php-format
200
+ #~ msgctxt "{<a>}{</a>}"
201
+ #~ msgid ""
202
+ #~ "Upgrade to %1$sAdvanced Sidebar Menu PRO%2$s for these features and so "
203
+ #~ "much more!"
204
+ #~ msgstr ""
205
+ #~ "Upgrade auf %1$sAdvanced Sidebar Menu PRO%2$s für diese Funktionen und "
206
+ #~ "vieles mehr!"
207
+
208
+ #~ msgid ""
209
+ #~ "Click and drag menu styling including bullets, colors, sizes, block "
210
+ #~ "styles, borders, and border colors."
211
+ #~ msgstr ""
212
+ #~ "Klicken und ziehen Sie das Menü-Styling, einschließlich "
213
+ #~ "Aufzählungszeichen, Farben, Größen, Blockstile, Rahmen und Rahmenfarben."
214
+
215
+ #~ msgid "Ability to customize each page's link text."
216
+ #~ msgstr "Möglichkeit, den Linktext jeder Seite anzupassen."
217
+
218
+ #~ msgid "Ability to exclude a page from all menus using a simple checkbox."
219
+ #~ msgstr ""
220
+ #~ "Möglichkeit, eine Seite mit einem einfachen Kontrollkästchen aus allen "
221
+ #~ "Menüs auszuschließen."
222
+
223
+ #~ msgid ""
224
+ #~ "Number of levels of pages to show when always displayed child pages is "
225
+ #~ "not checked."
226
+ #~ msgstr ""
227
+ #~ "Anzahl der Seitenebenen, die angezeigt werden sollen, wenn immer "
228
+ #~ "untergeordnete Seiten angezeigt werden, ist nicht aktiviert."
229
+
230
+ #~ msgid ""
231
+ #~ "Option to display the current page’s parents, grandparents, and children "
232
+ #~ "only, as well as siblings options."
233
+ #~ msgstr ""
234
+ #~ "Option, um die Eltern, Großeltern und Kinder der aktuellen Seite "
235
+ #~ "anzuzeigen, sowie Geschwisteroptionen."
236
+
237
+ #~ msgid "Link ordering for the category widget."
238
+ #~ msgstr "Verknüpfungsreihenfolge für das Kategorie-Widget."
239
+
240
+ #~ msgid ""
241
+ #~ "Ability to display assigned posts or custom post types under categories."
242
+ #~ msgstr ""
243
+ #~ "Fähigkeit, zugewiesene Beiträge oder benutzerdefinierte Posttypen unter "
244
+ #~ "Kategorien anzuzeigen."
245
+
246
+ #~ msgid "Ability to display the widgets everywhere the sidebar displays."
247
+ #~ msgstr ""
248
+ #~ "Die Fähigkeit, die Widgets überall in der Sidebar-Anzeige anzuzeigen."
249
+
250
  #~ msgid "Checkout Advanced Sidebar Menu Pro!"
251
  #~ msgstr "Kasse Advanced Sidebar Menu Pro!"
252
 
languages/advanced-sidebar-menu.pot CHANGED
@@ -3,14 +3,14 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Advanced Sidebar Menu\n"
6
- "POT-Creation-Date: 2020-07-10 21:16-0600\n"
7
  "PO-Revision-Date: 2019-03-05 12:29-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
16
  "X-Poedit-WPHeader: advanced-sidebar-menu.php\n"
@@ -21,90 +21,59 @@ msgstr ""
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
- #: advanced-sidebar-menu.php:126
25
  msgid "widget documentation"
26
  msgstr ""
27
 
28
- #: advanced-sidebar-menu.php:146
29
- msgid "Advanced Sidebar Menu PRO!"
30
- msgstr ""
31
-
32
- #. translators: {<a>}{</a>} links to https://onpointplugins.com/product/advanced-sidebar-menu-pro/
33
- #: advanced-sidebar-menu.php:151
34
  #, php-format
35
  msgctxt "{<a>}{</a>}"
36
  msgid ""
37
- "Upgrade to %1$sAdvanced Sidebar Menu PRO%2$s for these features and so much "
38
- "more!"
39
- msgstr ""
40
-
41
- #: advanced-sidebar-menu.php:155
42
- msgid "Priority support, including access to Members Only Support Area."
43
- msgstr ""
44
-
45
- #: advanced-sidebar-menu.php:156
46
- msgid "Accordion menu support."
47
- msgstr ""
48
-
49
- #: advanced-sidebar-menu.php:157
50
- msgid ""
51
- "Click and drag menu styling including bullets, colors, sizes, block styles, "
52
- "borders, and border colors."
53
- msgstr ""
54
-
55
- #: advanced-sidebar-menu.php:161
56
- msgid "Ability to customize each page's link text."
57
  msgstr ""
58
 
59
- #: advanced-sidebar-menu.php:162
60
- msgid "Ability to exclude a page from all menus using a simple checkbox."
61
  msgstr ""
62
 
63
- #: advanced-sidebar-menu.php:163
64
  msgid ""
65
- "Number of levels of pages to show when always displayed child pages is not "
66
- "checked."
67
  msgstr ""
68
 
69
- #: advanced-sidebar-menu.php:164
70
- msgid "Ability to select and display custom post types."
71
  msgstr ""
72
 
73
- #: advanced-sidebar-menu.php:165
74
- msgid ""
75
- "Option to display the current page’s parents, grandparents, and children "
76
- "only, as well as siblings options."
77
  msgstr ""
78
 
79
- #: advanced-sidebar-menu.php:169
80
- msgid "Link ordering for the category widget."
81
  msgstr ""
82
 
83
- #: advanced-sidebar-menu.php:170
84
- msgid "Ability to select and display custom taxonomies."
85
  msgstr ""
86
 
87
- #: advanced-sidebar-menu.php:171
88
- msgid ""
89
- "Ability to display assigned posts or custom post types under categories."
90
  msgstr ""
91
 
92
- #: advanced-sidebar-menu.php:175
93
- msgid "Ability to display the widgets everywhere the sidebar displays."
94
  msgstr ""
95
 
96
- #: advanced-sidebar-menu.php:176
97
- msgid "Support for custom navigation menus from Appearance -> Menus."
98
  msgstr ""
99
 
100
- #. translators: {%1$s}[<a>]{%2$s}[</a>] https://wordpress.org/plugins/advanced-sidebar-menu/
101
- #. phpcs:disable
102
- #: advanced-sidebar-menu.php:196
103
- #, php-format
104
- msgctxt "{<a>}{</a>}"
105
- msgid ""
106
- "Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version "
107
- "%3$s+. Please update or deactivate the PRO version."
108
  msgstr ""
109
 
110
  #: src/Widget/Category.php:52
@@ -116,43 +85,43 @@ msgstr ""
116
  msgid "Advanced Sidebar Categories Menu"
117
  msgstr ""
118
 
119
- #: src/Widget/Category.php:93
120
  msgid "Display the highest level parent category"
121
  msgstr ""
122
 
123
- #: src/Widget/Category.php:99
124
  msgid "Display menu when there is only the parent category"
125
  msgstr ""
126
 
127
- #: src/Widget/Category.php:105
128
  msgid "Always display child categories"
129
  msgstr ""
130
 
131
- #: src/Widget/Category.php:111
132
  msgid "Levels of child categories to display"
133
  msgstr ""
134
 
135
- #: src/Widget/Category.php:153
136
  msgid "Display categories on single posts"
137
  msgstr ""
138
 
139
- #: src/Widget/Category.php:160
140
  msgid "Display each single post's category"
141
  msgstr ""
142
 
143
- #: src/Widget/Category.php:167
144
  msgid "In a new widget"
145
  msgstr ""
146
 
147
- #: src/Widget/Category.php:170
148
  msgid "In another list in the same widget"
149
  msgstr ""
150
 
151
- #: src/Widget/Category.php:196
152
  msgid "Categories to exclude (ids), comma separated"
153
  msgstr ""
154
 
155
- #: src/Widget/Category.php:229 src/Widget/Page.php:234
156
  msgid "Title"
157
  msgstr ""
158
 
@@ -164,31 +133,31 @@ msgstr ""
164
  msgid "Advanced Sidebar Pages Menu"
165
  msgstr ""
166
 
167
- #: src/Widget/Page.php:89
168
  msgid "Display highest level parent page"
169
  msgstr ""
170
 
171
- #: src/Widget/Page.php:97
172
  msgid "Display menu when there is only the parent page"
173
  msgstr ""
174
 
175
- #: src/Widget/Page.php:104
176
  msgid "Always display child pages"
177
  msgstr ""
178
 
179
- #: src/Widget/Page.php:117
180
  msgid "Maximum level of child pages to display"
181
  msgstr ""
182
 
183
- #: src/Widget/Page.php:123
184
  msgid " - All - "
185
  msgstr ""
186
 
187
- #: src/Widget/Page.php:161
188
  msgid "Order by"
189
  msgstr ""
190
 
191
- #: src/Widget/Page.php:202
192
  msgid "Pages to exclude (ids), comma separated"
193
  msgstr ""
194
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Advanced Sidebar Menu\n"
6
+ "POT-Creation-Date: 2020-10-26 10:17-0600\n"
7
  "PO-Revision-Date: 2019-03-05 12:29-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 2.4.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
16
  "X-Poedit-WPHeader: advanced-sidebar-menu.php\n"
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
 
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 "
34
+ "%3$s+. Please update or deactivate the PRO version."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  msgstr ""
36
 
37
+ #: src/Notice.php:88
38
+ msgid "Advanced Sidebar Menu PRO"
39
  msgstr ""
40
 
41
+ #: src/Notice.php:92
42
  msgid ""
43
+ "Styling options including borders, bullets, colors, backgrounds, size, and "
44
+ "font weight."
45
  msgstr ""
46
 
47
+ #: src/Notice.php:93
48
+ msgid "Accordion menus."
49
  msgstr ""
50
 
51
+ #: src/Notice.php:94
52
+ msgid "Support for custom navigation menus from Appearance -> Menus."
 
 
53
  msgstr ""
54
 
55
+ #: src/Notice.php:98
56
+ msgid "Select and display custom post types."
57
  msgstr ""
58
 
59
+ #: src/Notice.php:102
60
+ msgid "Select and display custom taxonomies."
61
  msgstr ""
62
 
63
+ #: src/Notice.php:106
64
+ msgid "Priority support with access to members only support area."
 
65
  msgstr ""
66
 
67
+ #: src/Notice.php:112
68
+ msgid "So much more..."
69
  msgstr ""
70
 
71
+ #: src/Notice.php:121
72
+ msgid "Upgrade"
73
  msgstr ""
74
 
75
+ #: src/Notice.php:131 src/Notice.php:137
76
+ msgid "Preview"
 
 
 
 
 
 
77
  msgstr ""
78
 
79
  #: src/Widget/Category.php:52
85
  msgid "Advanced Sidebar Categories Menu"
86
  msgstr ""
87
 
88
+ #: src/Widget/Category.php:99
89
  msgid "Display the highest level parent category"
90
  msgstr ""
91
 
92
+ #: src/Widget/Category.php:105
93
  msgid "Display menu when there is only the parent category"
94
  msgstr ""
95
 
96
+ #: src/Widget/Category.php:111
97
  msgid "Always display child categories"
98
  msgstr ""
99
 
100
+ #: src/Widget/Category.php:117
101
  msgid "Levels of child categories to display"
102
  msgstr ""
103
 
104
+ #: src/Widget/Category.php:159
105
  msgid "Display categories on single posts"
106
  msgstr ""
107
 
108
+ #: src/Widget/Category.php:166
109
  msgid "Display each single post's category"
110
  msgstr ""
111
 
112
+ #: src/Widget/Category.php:173
113
  msgid "In a new widget"
114
  msgstr ""
115
 
116
+ #: src/Widget/Category.php:176
117
  msgid "In another list in the same widget"
118
  msgstr ""
119
 
120
+ #: src/Widget/Category.php:202
121
  msgid "Categories to exclude (ids), comma separated"
122
  msgstr ""
123
 
124
+ #: src/Widget/Category.php:235 src/Widget/Page.php:240
125
  msgid "Title"
126
  msgstr ""
127
 
133
  msgid "Advanced Sidebar Pages Menu"
134
  msgstr ""
135
 
136
+ #: src/Widget/Page.php:95
137
  msgid "Display highest level parent page"
138
  msgstr ""
139
 
140
+ #: src/Widget/Page.php:103
141
  msgid "Display menu when there is only the parent page"
142
  msgstr ""
143
 
144
+ #: src/Widget/Page.php:110
145
  msgid "Always display child pages"
146
  msgstr ""
147
 
148
+ #: src/Widget/Page.php:123
149
  msgid "Maximum level of child pages to display"
150
  msgstr ""
151
 
152
+ #: src/Widget/Page.php:129
153
  msgid " - All - "
154
  msgstr ""
155
 
156
+ #: src/Widget/Page.php:167
157
  msgid "Order by"
158
  msgstr ""
159
 
160
+ #: src/Widget/Page.php:208
161
  msgid "Pages to exclude (ids), comma separated"
162
  msgstr ""
163
 
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.5.1
8
  Requires PHP: 5.6.0
9
- Stable tag: 8.0.4
10
 
11
  == Description ==
12
 
@@ -34,7 +34,6 @@ Keeps the menu clean and usable. Only related items display so you don't have to
34
  * Display the highest level parent page
35
  * Display menu when there is only the parent page
36
  * Order pages by (date, title, page order)
37
- * Use built in styling (very plain styling, for more advanced styling <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>)
38
  * Exclude pages
39
  * Always display child Pages
40
  * Number of levels of child pages to display when always display child pages is checked
@@ -43,14 +42,13 @@ Keeps the menu clean and usable. Only related items display so you don't have to
43
  * Add a title to the widget
44
  * Display the highest level parent category
45
  * Display menu when there is only the parent category
46
- * Use built in styling (very plain styling, for more advanced styling <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>)
47
  * Display categories on single posts
48
  * Display each single post's category in a new widget or in same list
49
  * Exclude categories
50
  * Always display child categories
51
  * Levels of Categories to display when always display child categories is checked
52
 
53
- <h3>Pro Features</h3>
54
  * Priority support.
55
  * Ability to customize each page's link text.
56
  * Click and drag styling for page, category, and navigation menu widgets.
@@ -120,13 +118,13 @@ The widgets in this plugin are smart enough to not show up on pages or categorie
120
  The most common causes for this confusion come from one of these reasons:
121
  1. The incorrect widget was selected (there are different widgets for categories or pages).
122
  2. "Display the highest level parent page" or "Display the highest level parent category" is not checked.
123
- 3. The widget is currently not being viewed on a Page (for the pages' widget) or Category (for the categories' widget).
124
 
125
  = How do I change the styling of the current page? =
126
 
127
  You may add css to your theme's style.css to change the way the menu looks
128
 
129
- For Instance This would remove the dot and change the color
130
  <code>
131
  .advanced-sidebar-menu li.current_page_item a {
132
  color: black;
@@ -137,7 +135,7 @@ For Instance This would remove the dot and change the color
137
  }
138
  </code>
139
 
140
- To style your menu without using any code <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>
141
 
142
  = How do you get the categories to display on single post pages? =
143
 
@@ -155,6 +153,14 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
155
 
156
 
157
  == Changelog ==
 
 
 
 
 
 
 
 
158
  = 8.0.4 =
159
  * Improve styles when used with Beaver Builder.
160
  * Require WordPress version 5.0.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.0
8
  Requires PHP: 5.6.0
9
+ Stable tag: 8.1.0
10
 
11
  == Description ==
12
 
34
  * Display the highest level parent page
35
  * Display menu when there is only the parent page
36
  * Order pages by (date, title, page order)
 
37
  * Exclude pages
38
  * Always display child Pages
39
  * Number of levels of child pages to display when always display child pages is checked
42
  * Add a title to the widget
43
  * Display the highest level parent category
44
  * Display menu when there is only the parent category
 
45
  * Display categories on single posts
46
  * Display each single post's category in a new widget or in same list
47
  * Exclude categories
48
  * Always display child categories
49
  * Levels of Categories to display when always display child categories is checked
50
 
51
+ <h3>PRO Features</h3>
52
  * Priority support.
53
  * Ability to customize each page's link text.
54
  * Click and drag styling for page, category, and navigation menu widgets.
118
  The most common causes for this confusion come from one of these reasons:
119
  1. The incorrect widget was selected (there are different widgets for categories or pages).
120
  2. "Display the highest level parent page" or "Display the highest level parent category" is not checked.
121
+ 3. The widget is currently not being viewed on a page (for the pages widget) or category (for the categories widget).
122
 
123
  = How do I change the styling of the current page? =
124
 
125
  You may add css to your theme's style.css to change the way the menu looks
126
 
127
+ For Instance This would remove the dot and change the color
128
  <code>
129
  .advanced-sidebar-menu li.current_page_item a {
130
  color: black;
135
  }
136
  </code>
137
 
138
+ To style your menu without using any code <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">upgrade to PRO</a>.
139
 
140
  = How do you get the categories to display on single post pages? =
141
 
153
 
154
 
155
  == Changelog ==
156
+ = 8.1.0 =
157
+ * Restructure widget info panels.
158
+ * Introduced new `advanced-sidebar-menu/widget/page/before-columns` action.
159
+ * Introduced new `advanced-sidebar-menu/widget/category/before-columns` action.
160
+ * Improved PHPCS exclusion declarations.
161
+ * Improved CSS structure.
162
+ * Improved JavaScript structure.
163
+
164
  = 8.0.4 =
165
  * Improve styles when used with Beaver Builder.
166
  * Require WordPress version 5.0.0+.
resources/css/advanced-sidebar-menu.css CHANGED
@@ -3,7 +3,6 @@
3
  width: 49%;
4
  }
5
 
6
-
7
  .advanced-sidebar-menu-column-right {
8
  margin-left: 2%;
9
  }
@@ -20,6 +19,39 @@
20
  clear: both;
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  @media all and ( max-width: 620px ) {
24
  .advanced-sidebar-menu-column {
25
  width: 100%;
@@ -30,6 +62,16 @@
30
  }
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
33
  /** Elementor specific styles **/
34
  .elementor-control-content .advanced-sidebar-menu-column {
35
  width: 100%;
3
  width: 49%;
4
  }
5
 
 
6
  .advanced-sidebar-menu-column-right {
7
  margin-left: 2%;
8
  }
19
  clear: both;
20
  }
21
 
22
+ .advanced-sidebar-menu-close-icon {
23
+ transition: all 300ms linear;
24
+ position: absolute;
25
+ font-size: 40px;
26
+ top: 130px;
27
+ right: 50px;
28
+ cursor: pointer;
29
+ display: none;
30
+ }
31
+
32
+ .advanced-sidebar-menu-close-icon:hover {
33
+ color: #000;
34
+ }
35
+
36
+ .advanced-sidebar-menu-preview-image {
37
+ transition: width 300ms linear;
38
+ background: #fff;
39
+ width: 0;
40
+ }
41
+
42
+ .advanced-sidebar-menu-preview-wrap {
43
+ height: 0;
44
+ }
45
+
46
+ .advanced-sidebar-menu-open .advanced-sidebar-menu-preview-wrap {
47
+ height: auto;
48
+ }
49
+
50
+ .advanced-sidebar-menu-open .advanced-sidebar-menu-column-box,
51
+ .advanced-sidebar-menu-open .widget-control-actions {
52
+ display: none;
53
+ }
54
+
55
  @media all and ( max-width: 620px ) {
56
  .advanced-sidebar-menu-column {
57
  width: 100%;
62
  }
63
  }
64
 
65
+ @media all and ( max-width: 1024px ) {
66
+ .advanced-sidebar-desktop-only {
67
+ display: none !important;
68
+ }
69
+
70
+ .advanced-sidebar-menu-open .advanced-sidebar-menu-column-box {
71
+ display: inherit;
72
+ }
73
+ }
74
+
75
  /** Elementor specific styles **/
76
  .elementor-control-content .advanced-sidebar-menu-column {
77
  width: 100%;
resources/img/category-widget-min-1x.png ADDED
Binary file
resources/img/category-widget-min.png ADDED
Binary file
resources/img/category-widget.png ADDED
Binary file
resources/img/navigation-widget-min.png ADDED
Binary file
resources/img/navigation-widget.png ADDED
Binary file
resources/img/pages-widget-min-1x.png ADDED
Binary file
resources/img/pages-widget-min.png ADDED
Binary file
resources/img/pages-widget.png ADDED
Binary file
resources/img/widget-color-selections-min.png ADDED
Binary file
resources/img/widget-color-selections.png ADDED
Binary file
resources/js/advanced-sidebar-menu.js CHANGED
@@ -28,6 +28,7 @@ var advanced_sidebar_menu = {
28
  * @since 7.4.5
29
  */
30
  init: function () {
 
31
  this.show_hide_elements();
32
  jQuery(document).trigger('advanced-sidebar-menu/init');
33
  },
@@ -68,5 +69,32 @@ var advanced_sidebar_menu = {
68
  el.show();
69
  }
70
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
  };
28
  * @since 7.4.5
29
  */
30
  init: function () {
31
+ this.handlePreviews();
32
  this.show_hide_elements();
33
  jQuery(document).trigger('advanced-sidebar-menu/init');
34
  },
69
  el.show();
70
  }
71
  });
72
+ },
73
+
74
+ /**
75
+ * Display the preview image and close icon when the "Preview"
76
+ * button is clicked.
77
+ *
78
+ * Adds a class to the wrap which allows hiding the existing options
79
+ * to prevent inconistant margin requirements.
80
+ *
81
+ * @since 8.1.0
82
+ */
83
+ handlePreviews: function () {
84
+ jQuery( '[data-js="advanced-sidebar-menu/pro/preview/trigger"]' ).on( 'click', function( ev ) {
85
+ ev.preventDefault();
86
+ var el = jQuery( '[data-js="' + jQuery( this ).data( 'target' ) + '"]' );
87
+ var form = el.parents( 'form' );
88
+ form.addClass( 'advanced-sidebar-menu-open' );
89
+ var close = el.find( '.advanced-sidebar-menu-close-icon' );
90
+ var img = el.find( 'img' );
91
+ img.css( 'width', '100%' );
92
+ close.css( 'display', 'block' );
93
+ close.on( 'click', function() {
94
+ img.css( 'width', 0 );
95
+ close.css( 'display', 'none' );
96
+ form.removeClass( 'advanced-sidebar-menu-open' );
97
+ } );
98
+ });
99
  }
100
  };
src/Notice.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Advanced_Sidebar_Menu;
4
+
5
+ use Advanced_Sidebar_Menu\Traits\Singleton;
6
+ use Advanced_Sidebar_Menu\Widget\Category;
7
+ use Advanced_Sidebar_Menu\Widget\Page as Widget_Page;
8
+
9
+ /**
10
+ * Various notice handling for the admin and widgets.
11
+ *
12
+ * @author OnPoint Plugins
13
+ * @since 8.1.0
14
+ */
15
+ class Notice {
16
+ use Singleton;
17
+
18
+ /**
19
+ * Actions and filters.
20
+ */
21
+ public function hook() {
22
+ add_action( 'advanced-sidebar-menu/widget/page/before-columns', [ $this, 'preview' ], 1, 2 );
23
+ add_action( 'advanced-sidebar-menu/widget/category/before-columns', [ $this, 'preview' ], 1, 2 );
24
+ add_action( 'advanced-sidebar-menu/widget/category/right-column', [ $this, 'info_panel' ], 1, 2 );
25
+ add_action( 'advanced-sidebar-menu/widget/page/right-column', [ $this, 'info_panel' ], 1, 2 );
26
+
27
+ if ( $this->is_conflicting_pro_version() ) {
28
+ add_action( 'all_admin_notices', [ $this, 'pro_version_warning' ] );
29
+ }
30
+ }
31
+
32
+
33
+ /**
34
+ * Is PRO active but an unsupported version?
35
+ *
36
+ * @return bool
37
+ */
38
+ public function is_conflicting_pro_version() {
39
+ return defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) && version_compare( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION, ADVANCED_SIDEBAR_MENU_PRO_VERSION, '>' );
40
+ }
41
+
42
+
43
+ /**
44
+ * Display a warning if we don't have the required PRO version installed.
45
+ *
46
+ * @param bool $no_banner - Display as "message" banner.
47
+ */
48
+ public function pro_version_warning( $no_banner = false ) {
49
+ ?>
50
+ <div class="<?php echo true === $no_banner ? '' : 'error'; ?>">
51
+ <p>
52
+ <?php
53
+ /* translators: Link to PRO plugin {%1$s}[<a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">]{%2$s}[</a>] */
54
+ printf( esc_html_x( 'Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version %3$s+. Please update or deactivate the PRO version.', '{<a>}{</a>}', 'advanced-sidebar-menu' ), '<a target="_blank" rel="noreferrer noopener" href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">', '</a>', esc_attr( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION ) );
55
+ ?>
56
+ </p>
57
+ </div>
58
+ <?php
59
+ }
60
+
61
+
62
+ /**
63
+ * Notify widget users about the PRO options
64
+ *
65
+ * @param array $instance - widget instance.
66
+ * @param \WP_Widget $widget - widget class.
67
+ *
68
+ * @return void
69
+ */
70
+ public function info_panel( array $instance, \WP_Widget $widget ) {
71
+ if ( $this->is_conflicting_pro_version() ) {
72
+ ?>
73
+ <div class="advanced-sidebar-menu-column-box" style="border-color: red">
74
+ <?php static::instance()->pro_version_warning( true ); ?>
75
+ </div>
76
+ <?php
77
+ }
78
+ if ( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) {
79
+ return;
80
+ }
81
+
82
+ ?>
83
+ <div class="advanced-sidebar-menu-column-box">
84
+ <h3 style="margin: 0 0 0 3px;">
85
+ <a
86
+ href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/"
87
+ style="text-decoration: none; color: inherit;">
88
+ <?php esc_html_e( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' ); ?>
89
+ </a>
90
+ </h3>
91
+ <ol style="list-style: disc;">
92
+ <li><?php esc_html_e( 'Styling options including borders, bullets, colors, backgrounds, size, and font weight.', 'advanced-sidebar-menu' ); ?></li>
93
+ <li><?php esc_html_e( 'Accordion menus.', 'advanced-sidebar-menu' ); ?></li>
94
+ <li><?php esc_html_e( 'Support for custom navigation menus from Appearance -> Menus.', 'advanced-sidebar-menu' ); ?></li>
95
+ <?php
96
+ if ( Widget_Page::NAME === $widget->id_base ) {
97
+ ?>
98
+ <li><?php esc_html_e( 'Select and display custom post types.', 'advanced-sidebar-menu' ); ?></li>
99
+ <?php
100
+ } else {
101
+ ?>
102
+ <li><?php esc_html_e( 'Select and display custom taxonomies.', 'advanced-sidebar-menu' ); ?></li>
103
+ <?php
104
+ }
105
+ ?>
106
+ <li><?php esc_html_e( 'Priority support with access to members only support area.', 'advanced-sidebar-menu' ); ?></li>
107
+ <li>
108
+ <a
109
+ href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/"
110
+ target="_blank"
111
+ style="text-decoration: none;">
112
+ <?php esc_html_e( 'So much more...', 'advanced-sidebar-menu' ); ?>
113
+ </a>
114
+ </li>
115
+ </ol>
116
+ <a
117
+ class="button-primary"
118
+ style="width:100%; text-align: center; margin: 15px 0 15px 0;"
119
+ href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1"
120
+ target="_blank">
121
+ <?php esc_html_e( 'Upgrade', 'advanced-sidebar-menu' ); ?>
122
+ </a>
123
+ <div
124
+ data-js="advanced-sidebar-menu/pro/preview/trigger"
125
+ data-target="advanced-sidebar-menu/pro/preview/<?php echo esc_attr( $widget->id ); ?>"
126
+ class="advanced-sidebar-desktop-only">
127
+ <?php
128
+ if ( Widget_Page::NAME === $widget->id_base ) {
129
+ ?>
130
+ <button class="button-secondary" style="width:100%; text-align: center; margin: 0 0 23px 0;">
131
+ <?php esc_html_e( 'Preview', 'advanced-sidebar-menu' ); ?>
132
+ </button>
133
+ <?php
134
+ } else {
135
+ ?>
136
+ <button class="button-secondary" style="width:100%; text-align: center; margin: 0 0 14px 0;">
137
+ <?php esc_html_e( 'Preview', 'advanced-sidebar-menu' ); ?>
138
+ </button>
139
+ <?php
140
+ }
141
+ ?>
142
+ </div>
143
+ </div>
144
+ <?php
145
+ }
146
+
147
+
148
+ /**
149
+ * Display a preview image which covers the widget when the "Preview"
150
+ * button is clicked.
151
+ *
152
+ * @param array $instance - Widgets settings.
153
+ * @param \WP_Widget $widget - Widget class.
154
+ */
155
+ public function preview( array $instance, \WP_Widget $widget ) {
156
+ $src = 'pages-widget-min.png';
157
+ if ( Category::NAME === $widget->id_base ) {
158
+ $src = 'category-widget-min.png';
159
+ }
160
+ ?>
161
+ <div
162
+ data-js="advanced-sidebar-menu/pro/preview/<?php echo esc_attr( $widget->id ); ?>"
163
+ class="advanced-sidebar-desktop-only advanced-sidebar-menu-full-width advanced-sidebar-menu-preview-wrap">
164
+ <div class="dashicons dashicons-no-alt advanced-sidebar-menu-close-icon"></div>
165
+ <img
166
+ class="advanced-sidebar-menu-preview-image"
167
+ src="<?php echo esc_url( ADVANCED_SIDEBAR_MENU_URL . 'resources/img/' . $src ); ?>"
168
+ srcset="<?php echo esc_url( ADVANCED_SIDEBAR_MENU_URL . 'resources/img/' . str_replace( '.png', '-1x.png', $src ) ); ?> 1x, <?php echo esc_url( ADVANCED_SIDEBAR_MENU_URL . 'resources/img/' . $src ); ?> 2x"
169
+ alt="PRO version widget options" />
170
+ </div>
171
+ <?php
172
+ }
173
+
174
+ }
src/Walkers/Page_Walker.php CHANGED
@@ -6,8 +6,15 @@ namespace Advanced_Sidebar_Menu\Walkers;
6
  * This walker's only purpose is to allow us to close our menus only when needed.
7
  */
8
  class Page_Walker extends \Walker_Page {
9
- //phpcs:disable
10
- function end_el( &$output, $page, $depth = 0, $args = [] ) {
 
 
 
 
 
 
 
11
  /** Do Nothing */
12
  }
13
  }
6
  * This walker's only purpose is to allow us to close our menus only when needed.
7
  */
8
  class Page_Walker extends \Walker_Page {
9
+ /**
10
+ * Allow us to close our menus at the appropriate times.
11
+ *
12
+ * @param string $output - Full output of el.
13
+ * @param \WP_Post $page - Current page.
14
+ * @param int $depth - Depth of menu.
15
+ * @param array $args - Any arguments.
16
+ */
17
+ public function end_el( &$output, $page, $depth = 0, $args = [] ) {
18
  /** Do Nothing */
19
  }
20
  }
src/Widget/Category.php CHANGED
@@ -241,7 +241,7 @@ class Category extends Widget_Abstract {
241
  type="text"
242
  value="<?php echo esc_attr( $instance[ self::TITLE ] ); ?>" />
243
  </p>
244
-
245
  <div class="advanced-sidebar-menu-column">
246
  <?php do_action( 'advanced-sidebar-menu/widget/category/left-column', $instance, $this ); ?>
247
  </div>
241
  type="text"
242
  value="<?php echo esc_attr( $instance[ self::TITLE ] ); ?>" />
243
  </p>
244
+ <?php do_action( 'advanced-sidebar-menu/widget/category/before-columns', $instance, $this ); ?>
245
  <div class="advanced-sidebar-menu-column">
246
  <?php do_action( 'advanced-sidebar-menu/widget/category/left-column', $instance, $this ); ?>
247
  </div>
src/Widget/Page.php CHANGED
@@ -246,6 +246,7 @@ class Page extends Widget_Abstract {
246
  type="text"
247
  value="<?php echo esc_attr( $instance[ self::TITLE ] ); ?>" />
248
  </p>
 
249
  <div class="advanced-sidebar-menu-column advanced-sidebar-menu-column-left">
250
  <?php do_action( 'advanced-sidebar-menu/widget/page/left-column', $instance, $this ); ?>
251
  </div>
246
  type="text"
247
  value="<?php echo esc_attr( $instance[ self::TITLE ] ); ?>" />
248
  </p>
249
+ <?php do_action( 'advanced-sidebar-menu/widget/page/before-columns', $instance, $this ); ?>
250
  <div class="advanced-sidebar-menu-column advanced-sidebar-menu-column-left">
251
  <?php do_action( 'advanced-sidebar-menu/widget/page/left-column', $instance, $this ); ?>
252
  </div>