Advanced Sidebar Menu - Version 4.7.0

Version Description

  • Added Internationalization (I18n) support
Download this release

Release Info

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

Code changes from version 4.6.1 to 4.7.0

advanced-sidebar-menu.php CHANGED
@@ -4,9 +4,9 @@ Plugin Name: Advanced Sidebar Menu
4
  Plugin URI: http://matlipe.com/advanced-sidebar-menu/
5
  Description: Creates dynamic menu based on child/parent relationship.
6
  Author: Mat Lipe
7
- Version: 4.6.1
8
  Author URI: http://matlipe.com
9
- Since: 11.15.13
10
  */
11
 
12
  define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '4.6.1' );
@@ -26,6 +26,12 @@ require( ADVANCED_SIDEBAR_WIDGETS_DIR.'init.php' );
26
  require( ADVANCED_SIDEBAR_DIR.'lib/advancedSidebarMenu.php' );
27
  $asm = new advancedSidebarMenu();
28
 
 
 
 
 
 
 
29
 
30
 
31
  #-- Bring in the JQuery
@@ -46,9 +52,9 @@ function advanced_sidebar_menu_pro_notice(){
46
  if( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) return;
47
  ?>
48
  <fieldset style="border: 1px solid black; border-radius: 10px; padding: 10px;">
49
- <legend style="font-size: 14px; font-weight: bold;">Want More Options?</legend>
50
  <p>
51
- <strong><big><a target="blank" href="http://matlipe.com/product/advanced-sidebar-menu-pro/">Go Pro!</a></big></strong>
52
  <p>
53
  </fieldset>
54
  <?php
4
  Plugin URI: http://matlipe.com/advanced-sidebar-menu/
5
  Description: Creates dynamic menu based on child/parent relationship.
6
  Author: Mat Lipe
7
+ Version: 4.7.0
8
  Author URI: http://matlipe.com
9
+ Since: 12.12.13
10
  */
11
 
12
  define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '4.6.1' );
26
  require( ADVANCED_SIDEBAR_DIR.'lib/advancedSidebarMenu.php' );
27
  $asm = new advancedSidebarMenu();
28
 
29
+ #-- Translate
30
+ add_action('plugins_loaded', array( $this,'advanced_sidebar_menu_translate') );
31
+ function advanced_sidebar_menu_translate(){
32
+ load_plugin_textdomain('advanced-sidebar-menu', false, 'advanced-sidebar-menu/languages');
33
+ }
34
+
35
 
36
 
37
  #-- Bring in the JQuery
52
  if( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) return;
53
  ?>
54
  <fieldset style="border: 1px solid black; border-radius: 10px; padding: 10px;">
55
+ <legend style="font-size: 14px; font-weight: bold;"><?php _e('Want More Options','advanced-sidebar-menu'); ?>?</legend>
56
  <p>
57
+ <strong><big><a target="blank" href="http://matlipe.com/product/advanced-sidebar-menu-pro/"><?php _e('Go Pro', 'advanced-sidebar-menu'); ?>!</a></big></strong>
58
  <p>
59
  </fieldset>
60
  <?php
languages/advanced-sidebar-menu.pot ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 Advanced Sidebar Menu
2
+ # This file is distributed under the same license as the Advanced Sidebar Menu package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Advanced Sidebar Menu 4.7.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/advanced-sidebar-menu\n"
7
+ "POT-Creation-Date: 2013-12-12 17:08:18+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: advanced-sidebar-menu.php:55
16
+ msgid "Want More Options"
17
+ msgstr ""
18
+
19
+ #: advanced-sidebar-menu.php:57
20
+ msgid "Go Pro"
21
+ msgstr ""
22
+
23
+ #: widgets/category.widget.php:63 widgets/page.widget.php:56
24
+ msgid "Title"
25
+ msgstr ""
26
+
27
+ #: widgets/category.widget.php:68
28
+ msgid "Include Parent Category"
29
+ msgstr ""
30
+
31
+ #: widgets/category.widget.php:73 widgets/page.widget.php:65
32
+ msgid "Include Parent Even With No Children"
33
+ msgstr ""
34
+
35
+ #: widgets/category.widget.php:77
36
+ msgid "Use this plugins styling"
37
+ msgstr ""
38
+
39
+ #: widgets/category.widget.php:81
40
+ msgid "Display Categories on Single Posts"
41
+ msgstr ""
42
+
43
+ #: widgets/category.widget.php:92
44
+ msgid "Display Each Single Post's Category"
45
+ msgstr ""
46
+
47
+ #: widgets/category.widget.php:110
48
+ msgid "Categories to Exclude, Comma Separated"
49
+ msgstr ""
50
+
51
+ #: widgets/category.widget.php:114 widgets/page.widget.php:95
52
+ msgid "Legacy Mode: (use pre 4.0 structure and css)"
53
+ msgstr ""
54
+
55
+ #: widgets/category.widget.php:120
56
+ msgid "Always Display Child Categories"
57
+ msgstr ""
58
+
59
+ #: widgets/category.widget.php:131 widgets/page.widget.php:111
60
+ msgid "Levels to Display"
61
+ msgstr ""
62
+
63
+ #: widgets/page.widget.php:34
64
+ msgid "Creates a menu of all the pages using the child/parent relationship"
65
+ msgstr ""
66
+
67
+ #: widgets/page.widget.php:38
68
+ msgid "Advanced Sidebar Pages Menu"
69
+ msgstr ""
70
+
71
+ #: widgets/page.widget.php:60
72
+ msgid "Include Parent Page"
73
+ msgstr ""
74
+
75
+ #: widgets/page.widget.php:70
76
+ msgid "Order By"
77
+ msgstr ""
78
+
79
+ #: widgets/page.widget.php:88
80
+ msgid "Use this Plugin's Styling"
81
+ msgstr ""
82
+
83
+ #: widgets/page.widget.php:92
84
+ msgid "Pages to Exclude, Comma Separated"
85
+ msgstr ""
86
+
87
+ #: widgets/page.widget.php:100
88
+ msgid "Always Display Child Pages"
89
+ msgstr ""
90
+
91
+ #. Plugin Name of the plugin/theme
92
+ msgid "Advanced Sidebar Menu"
93
+ msgstr ""
94
+
95
+ #. Plugin URI of the plugin/theme
96
+ msgid "http://matlipe.com/advanced-sidebar-menu/"
97
+ msgstr ""
98
+
99
+ #. Description of the plugin/theme
100
+ msgid "Creates dynamic menu based on child/parent relationship."
101
+ msgstr ""
102
+
103
+ #. Author of the plugin/theme
104
+ msgid "Mat Lipe"
105
+ msgstr ""
106
+
107
+ #. Author URI of the plugin/theme
108
+ msgid "http://matlipe.com"
109
+ msgstr ""
readme.txt CHANGED
@@ -4,18 +4,19 @@ Contributors: Mat Lipe
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40lipeimagination%2einfo&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, heirchy, category menu, pages menu
6
  Requires at least: 3.1
7
- Tested up to: 3.7.1
8
- Stable tag: 4.6.1
9
 
10
  Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11
 
12
  == Description ==
13
- <h4>Now Supports Unlimited Levels of Pages</h4>
 
14
 
15
  Creates a widget for both page and categories that will display the current page/category and an child pages or categories.
16
  Keeps the menu clean and usable.
17
 
18
- <h5>Want More Options?</h5>
19
 
20
  <strong><big><a href="http://matlipe.com/product/advanced-sidebar-menu-pro/">Go Pro!</a></big></strong>
21
 
@@ -73,7 +74,12 @@ e.g.
73
  == Frequently Asked Questions ==
74
 
75
  Developer docs may be found here:
76
- <a href="http://matlipe.com/advanced-sidebar-menu/developer-docs/">http://matlipe.com/advanced-sidebar-menu/developer-docs/</a>
 
 
 
 
 
77
 
78
  = Version 4.0+ is not displaying the same as previous version of the plugin. How do I bring this back? =
79
 
@@ -124,6 +130,9 @@ I do offer preminum services for buiding custom add-ons for additional functiona
124
 
125
 
126
  == Changelog ==
 
 
 
127
  = 4.6.0 =
128
  * Added support for Pro Version
129
 
@@ -180,39 +189,6 @@ I do offer preminum services for buiding custom add-ons for additional functiona
180
  * Added the ability to edit "views" files through your child theme to edit output and css
181
  * Cleanedup the output
182
 
183
- = 2.1 =
184
- * Added default syling.
185
-
186
- = 2.0 =
187
- * Brought back the ability to exclude pages with support for excluding single pages from the menu.
188
- * Added the ability to display all levels of child pages always.
189
- * Added the option to select how many levels of pages to display when the "Always Display Child Pages" is selected
190
-
191
-
192
- = 1.4.5 =
193
- * Added compatibility for sites with non wp_ prefix tables
194
- * Removed All traces of Each menu level if no pages to list
195
- * Removed Error created by some search forms
196
-
197
- = 1.4.4 =
198
- * Cleaned up the way the plugin displays
199
- * Added class to match normal widgets
200
- * Removed the <div> completely when no menu present
201
-
202
-
203
- = 1.4 =
204
- * Removed Menu from pages with no children
205
- * Added a checkbox for including menu on page with no children
206
- * Removed ability to exclude items from menu
207
-
208
-
209
- = 1.2 =
210
- * Added support for the built in page ordering.
211
-
212
- = 1.1 =
213
- * Added support for separate css classes on each level of the menu.
214
-
215
-
216
 
217
  == Upgrade Notice ==
218
 
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40lipeimagination%2einfo&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, heirchy, category menu, pages menu
6
  Requires at least: 3.1
7
+ Tested up to: 3.8.0
8
+ Stable tag: 4.7.0
9
 
10
  Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11
 
12
  == Description ==
13
+
14
+ <h4>Now Supports Internationalization Text Domain 'advanced-sidebar-menu'</h4>
15
 
16
  Creates a widget for both page and categories that will display the current page/category and an child pages or categories.
17
  Keeps the menu clean and usable.
18
 
19
+ <h3>Want More Options and Better Support?</h3>
20
 
21
  <strong><big><a href="http://matlipe.com/product/advanced-sidebar-menu-pro/">Go Pro!</a></big></strong>
22
 
74
  == Frequently Asked Questions ==
75
 
76
  Developer docs may be found here:
77
+ <a href="http://matlipe.com/advanced-sidebar-menu/developer-docs/">http://matlipe.com/advanced-sidebar-menu/developer-docs/</a>
78
+
79
+ = What text domain do I use for translation and where is the .pot file? =
80
+
81
+ The .pot file may be found in the plugins' languages folder. Use the 'advanced-sidebar-menu' text domain.
82
+
83
 
84
  = Version 4.0+ is not displaying the same as previous version of the plugin. How do I bring this back? =
85
 
130
 
131
 
132
  == Changelog ==
133
+ = 4.7.0 =
134
+ * Added Internationalization (I18n) support
135
+
136
  = 4.6.0 =
137
  * Added support for Pro Version
138
 
189
  * Added the ability to edit "views" files through your child theme to edit output and css
190
  * Cleanedup the output
191
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
 
193
  == Upgrade Notice ==
194
 
widgets/category.widget.php CHANGED
@@ -5,7 +5,7 @@
5
  * Creates a Widget of parent Child Categories
6
  *
7
  * @author mat lipe
8
- * @since 11.15.13
9
  * @package Advanced Sidebar Menu
10
  *
11
  * @todo Clean this bad boy up. Still rookie code from years ago
@@ -60,25 +60,25 @@ class advanced_sidebar_menu_category extends WP_Widget {
60
  $instance = wp_parse_args($instance, $this->defaults);
61
 
62
  ?>
63
- <p> Title <br>
64
  <input id="<?php echo $this->get_field_name('title'); ?>"
65
- name="<?php echo $this->get_field_name('title'); ?>" size="50" type="text" value="<?php echo $instance['title']; ?>"/></p>
66
 
67
 
68
- <p> Include Parent Category <input id="<?php echo $this->get_field_name('include_parent'); ?>"
69
  name="<?php echo $this->get_field_name('include_parent'); ?>" type="checkbox" value="checked"
70
  <?php echo $instance['include_parent']; ?>/></p>
71
 
72
 
73
- <p> Include Parent Even With No Children <input id="<?php echo $this->get_field_name('include_childless_parent'); ?>"
74
  name="<?php echo $this->get_field_name('include_childless_parent'); ?>" type="checkbox" value="checked"
75
  <?php echo $instance['include_childless_parent']; ?>/></p>
76
 
77
- <p> Use this plugins styling <input id="<?php echo $this->get_field_name('css'); ?>"
78
  name="<?php echo $this->get_field_name('css'); ?>" type="checkbox" value="checked"
79
  <?php echo $instance['css']; ?>/></p>
80
 
81
- <p> Display Categories on Single Posts <input id="<?php echo $this->get_field_name('single'); ?>"
82
  name="<?php echo $this->get_field_name('single'); ?>" type="checkbox" value="checked"
83
  onclick="javascript:asm_reveal_element( 'new-widget-<?php echo $this->get_field_name('new_widget'); ?>' )"
84
  <?php echo $instance['single']; ?>/></p>
@@ -89,7 +89,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
89
  } else {
90
  echo 'display:none';
91
  } ?>">
92
- <p>Display Each Single Post's Category
93
  <select id="<?php echo $this->get_field_name('new_widget'); ?>"
94
  name="<?php echo $this->get_field_name('new_widget'); ?>">
95
  <?php
@@ -107,17 +107,17 @@ class advanced_sidebar_menu_category extends WP_Widget {
107
 
108
 
109
 
110
- <p> Categories to Exclude, Comma Separated:<input id="<?php echo $this->get_field_name('exclude'); ?>"
111
- name="<?php echo $this->get_field_name('exclude'); ?>" type="text" value="<?php echo $instance['exclude']; ?>"/></p>
112
 
113
 
114
- <p> Legacy Mode: (use pre 4.0 structure and css) <input id="<?php echo $this->get_field_name('legacy_mode'); ?>"
115
  name="<?php echo $this->get_field_name('legacy_mode'); ?>" type="checkbox" value="checked"
116
  <?php echo $instance['legacy_mode']; ?>/>
117
  </p>
118
 
119
 
120
- <p> Always Display Child Categories <input id="<?php echo $this->get_field_name('display_all'); ?>"
121
  name="<?php echo $this->get_field_name('display_all'); ?>" type="checkbox" value="checked"
122
  onclick="javascript:asm_reveal_element( 'levels-<?php echo $this->get_field_name('levels'); ?>' )"
123
  <?php echo $instance['display_all']; ?>/></p>
@@ -128,7 +128,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
128
  } else {
129
  echo 'display:none';
130
  } ?>">
131
- <p> Levels to Display <select id="<?php echo $this->get_field_name('levels'); ?>"
132
  name="<?php echo $this->get_field_name('levels'); ?>">
133
  <?php
134
  for( $i= 1; $i<6; $i++ ){
5
  * Creates a Widget of parent Child Categories
6
  *
7
  * @author mat lipe
8
+ * @since 12.12.13
9
  * @package Advanced Sidebar Menu
10
  *
11
  * @todo Clean this bad boy up. Still rookie code from years ago
60
  $instance = wp_parse_args($instance, $this->defaults);
61
 
62
  ?>
63
+ <p> <?php _e('Title','advanced-sidebar-menu'); ?> <br>
64
  <input id="<?php echo $this->get_field_name('title'); ?>"
65
+ name="<?php echo $this->get_field_name('title'); ?>" class="widefat" type="text" value="<?php echo $instance['title']; ?>"/></p>
66
 
67
 
68
+ <p> <?php _e( 'Include Parent Category','advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('include_parent'); ?>"
69
  name="<?php echo $this->get_field_name('include_parent'); ?>" type="checkbox" value="checked"
70
  <?php echo $instance['include_parent']; ?>/></p>
71
 
72
 
73
+ <p> <?php _e( 'Include Parent Even With No Children','advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('include_childless_parent'); ?>"
74
  name="<?php echo $this->get_field_name('include_childless_parent'); ?>" type="checkbox" value="checked"
75
  <?php echo $instance['include_childless_parent']; ?>/></p>
76
 
77
+ <p> <?php _e('Use this plugins styling','advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('css'); ?>"
78
  name="<?php echo $this->get_field_name('css'); ?>" type="checkbox" value="checked"
79
  <?php echo $instance['css']; ?>/></p>
80
 
81
+ <p> <?php _e( 'Display Categories on Single Posts','advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('single'); ?>"
82
  name="<?php echo $this->get_field_name('single'); ?>" type="checkbox" value="checked"
83
  onclick="javascript:asm_reveal_element( 'new-widget-<?php echo $this->get_field_name('new_widget'); ?>' )"
84
  <?php echo $instance['single']; ?>/></p>
89
  } else {
90
  echo 'display:none';
91
  } ?>">
92
+ <p><?php _e("Display Each Single Post's Category",'advanced-sidebar-menu'); ?>
93
  <select id="<?php echo $this->get_field_name('new_widget'); ?>"
94
  name="<?php echo $this->get_field_name('new_widget'); ?>">
95
  <?php
107
 
108
 
109
 
110
+ <p> <?php _e( "Categories to Exclude, Comma Separated", 'advanced-sidebar-menu'); ?>:<input id="<?php echo $this->get_field_name('exclude'); ?>"
111
+ name="<?php echo $this->get_field_name('exclude'); ?>" type="text" class="widefat" value="<?php echo $instance['exclude']; ?>"/></p>
112
 
113
 
114
+ <p> <?php _e( "Legacy Mode: (use pre 4.0 structure and css)",'advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('legacy_mode'); ?>"
115
  name="<?php echo $this->get_field_name('legacy_mode'); ?>" type="checkbox" value="checked"
116
  <?php echo $instance['legacy_mode']; ?>/>
117
  </p>
118
 
119
 
120
+ <p> <?php _e("Always Display Child Categories",'advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('display_all'); ?>"
121
  name="<?php echo $this->get_field_name('display_all'); ?>" type="checkbox" value="checked"
122
  onclick="javascript:asm_reveal_element( 'levels-<?php echo $this->get_field_name('levels'); ?>' )"
123
  <?php echo $instance['display_all']; ?>/></p>
128
  } else {
129
  echo 'display:none';
130
  } ?>">
131
+ <p> <?php _e( "Levels to Display",'advanced-sidebar-menu'); ?> <select id="<?php echo $this->get_field_name('levels'); ?>"
132
  name="<?php echo $this->get_field_name('levels'); ?>">
133
  <?php
134
  for( $i= 1; $i<6; $i++ ){
widgets/page.widget.php CHANGED
@@ -2,8 +2,8 @@
2
  /**
3
  * Creates a Widget of parent Child Pages
4
  *
5
- * @author mat lipe
6
- * @since 11.4.13
7
  * @package Advanced Sidebar Menu
8
  *
9
  */
@@ -31,11 +31,11 @@ class advanced_sidebar_menu_page extends WP_Widget {
31
  */
32
  function __construct() {
33
  /* Widget settings. */
34
- $widget_ops = array( 'classname' => 'advanced-sidebar-menu', 'description' => 'Creates a menu of all the pages using the child/parent relationship' );
35
  $control_ops = array( 'width' => 290 );
36
 
37
  /* Create the widget. */
38
- $this->WP_Widget( 'advanced_sidebar_menu', 'Advanced Sidebar Pages Menu', $widget_ops, $control_ops);
39
  }
40
 
41
 
@@ -53,21 +53,21 @@ class advanced_sidebar_menu_page extends WP_Widget {
53
  $instance = wp_parse_args($instance, $this->defaults);
54
 
55
  ?>
56
- <p> Title <br>
57
  <input id="<?php echo $this->get_field_id('title'); ?>"
58
- name="<?php echo $this->get_field_name('title'); ?>" size="50" type="text" value="<?php echo $instance['title']; ?>"/></p>
59
 
60
- <p> Include Parent Page: <input id="<?php echo $this->get_field_id('include_parent'); ?>"
61
  name="<?php echo $this->get_field_name('include_parent'); ?>" type="checkbox" value="checked"
62
  <?php echo $instance['include_parent']; ?>/></p>
63
 
64
 
65
- <p> Include Parent Even With No Children: <input id="<?php echo $this->get_field_id('include_childless_parent'); ?>"
66
  name="<?php echo $this->get_field_name('include_childless_parent'); ?>" type="checkbox" value="checked"
67
  <?php echo $instance['include_childless_parent']; ?>/>
68
  </p>
69
 
70
- <p> Order By: <select id="<?php echo $this->get_field_id('order_by'); ?>"
71
  name="<?php echo $this->get_field_name('order_by'); ?>">
72
  <?php
73
 
@@ -85,18 +85,19 @@ class advanced_sidebar_menu_page extends WP_Widget {
85
  </select>
86
  </p>
87
 
88
- <p> Use this Plugin's Styling: <input id="<?php echo $this->get_field_id('css'); ?>"
89
  name="<?php echo $this->get_field_name('css'); ?>" type="checkbox" value="checked"
90
  <?php echo $instance['css']; ?>/></p>
91
 
92
- <p> Pages to Exclude, Comma Separated: <input id="<?php echo $this->get_field_id('exclude'); ?>"
93
- name="<?php echo $this->get_field_name('exclude'); ?>" type="text" value="<?php echo $instance['exclude']; ?>"/></p>
94
- <p> Legacy Mode: (use pre 4.0 structure and css) <input id="<?php echo $this->get_field_name('legacy_mode'); ?>"
 
95
  name="<?php echo $this->get_field_name('legacy_mode'); ?>" type="checkbox" value="checked"
96
  <?php echo $instance['legacy_mode']; ?>/>
97
  </p>
98
 
99
- <p> Always Display Child Pages: <input id="<?php echo $this->get_field_id('display_all'); ?>"
100
  name="<?php echo $this->get_field_name('display_all'); ?>" type="checkbox" value="checked"
101
  onclick="javascript:asm_reveal_element( 'levels-<?php echo $this->get_field_id('levels'); ?>' )"
102
  <?php echo $instance['display_all']; ?>/></p>
@@ -107,7 +108,7 @@ class advanced_sidebar_menu_page extends WP_Widget {
107
  } else {
108
  echo 'display:none';
109
  } ?>">
110
- <p> Levels to Display: <select id="<?php echo $this->get_field_id('levels'); ?>"
111
  name="<?php echo $this->get_field_name('levels'); ?>">
112
  <?php
113
  for( $i= 1; $i<6; $i++ ){
2
  /**
3
  * Creates a Widget of parent Child Pages
4
  *
5
+ * @author mat lipe <mat@matlipe.com>
6
+ * @since 12.12.13
7
  * @package Advanced Sidebar Menu
8
  *
9
  */
31
  */
32
  function __construct() {
33
  /* Widget settings. */
34
+ $widget_ops = array( 'classname' => 'advanced-sidebar-menu', 'description' => __('Creates a menu of all the pages using the child/parent relationship', 'advanced-sidebar-menu') );
35
  $control_ops = array( 'width' => 290 );
36
 
37
  /* Create the widget. */
38
+ $this->WP_Widget( 'advanced_sidebar_menu', __('Advanced Sidebar Pages Menu','advanced-sidebar-menu'), $widget_ops, $control_ops);
39
  }
40
 
41
 
53
  $instance = wp_parse_args($instance, $this->defaults);
54
 
55
  ?>
56
+ <p> <?php _e('Title','advanced-sidebar-menu'); ?> <br>
57
  <input id="<?php echo $this->get_field_id('title'); ?>"
58
+ name="<?php echo $this->get_field_name('title'); ?>" class="widefat" type="text" value="<?php echo $instance['title']; ?>"/></p>
59
 
60
+ <p> <?php _e('Include Parent Page','advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('include_parent'); ?>"
61
  name="<?php echo $this->get_field_name('include_parent'); ?>" type="checkbox" value="checked"
62
  <?php echo $instance['include_parent']; ?>/></p>
63
 
64
 
65
+ <p> <?php _e('Include Parent Even With No Children','advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('include_childless_parent'); ?>"
66
  name="<?php echo $this->get_field_name('include_childless_parent'); ?>" type="checkbox" value="checked"
67
  <?php echo $instance['include_childless_parent']; ?>/>
68
  </p>
69
 
70
+ <p> <?php _e( 'Order By','advanced-sidebar-menu'); ?>: <select id="<?php echo $this->get_field_id('order_by'); ?>"
71
  name="<?php echo $this->get_field_name('order_by'); ?>">
72
  <?php
73
 
85
  </select>
86
  </p>
87
 
88
+ <p> <?php _e("Use this Plugin's Styling",'advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('css'); ?>"
89
  name="<?php echo $this->get_field_name('css'); ?>" type="checkbox" value="checked"
90
  <?php echo $instance['css']; ?>/></p>
91
 
92
+ <p> <?php _e( "Pages to Exclude, Comma Separated",'advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('exclude'); ?>"
93
+ name="<?php echo $this->get_field_name('exclude'); ?>" class="widefat" type="text" value="<?php echo $instance['exclude']; ?>"/></p>
94
+
95
+ <p> <?php _e( "Legacy Mode: (use pre 4.0 structure and css)",'advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('legacy_mode'); ?>"
96
  name="<?php echo $this->get_field_name('legacy_mode'); ?>" type="checkbox" value="checked"
97
  <?php echo $instance['legacy_mode']; ?>/>
98
  </p>
99
 
100
+ <p> <?php _e( "Always Display Child Pages", 'advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('display_all'); ?>"
101
  name="<?php echo $this->get_field_name('display_all'); ?>" type="checkbox" value="checked"
102
  onclick="javascript:asm_reveal_element( 'levels-<?php echo $this->get_field_id('levels'); ?>' )"
103
  <?php echo $instance['display_all']; ?>/></p>
108
  } else {
109
  echo 'display:none';
110
  } ?>">
111
+ <p> <?php _e("Levels to Display",'advanced-sidebar-menu'); ?>: <select id="<?php echo $this->get_field_id('levels'); ?>"
112
  name="<?php echo $this->get_field_name('levels'); ?>">
113
  <?php
114
  for( $i= 1; $i<6; $i++ ){