amr shortcode any widget - Version 3.6

Version Description

Download this release

Release Info

Developer anmari
Plugin Icon wp plugin amr shortcode any widget
Version 3.6
Comparing to
See all releases

Code changes from version 3.5 to 3.6

amr-admin-form-html.php CHANGED
@@ -244,4 +244,3 @@ if (!class_exists('amr_saw_plugin_admin')) {
244
  }
245
  }
246
 
247
- ?>
244
  }
245
  }
246
 
 
amr-shortcode-any-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: amr shortcode any widget
4
  Plugin URI: http://webdesign.anmari.com/shortcode-any-widget/
5
  Description: Include any widget in a page for any theme. [do_widget widgetname ] or [do_widget "widget name" ] [do_widget id=widgetnamedashed-n ]or include a whole widget area [do_widget_area]. Please see <a href="https://wordpress.org/plugins/amr-shortcode-any-widget/faq/">FAQ</a>.
6
  Author: anmari
7
- Version: 3.5
8
  Author URI: http://webdesign.anmari.com
9
 
10
  */
@@ -384,5 +384,4 @@ function amr_add_action_links ( $links ) {
384
  '<a title="Click for a page of tips" href="' . admin_url( 'options-general.php?page=amr_saw' ) . '">HELP</a>';
385
  return array_merge( $links, $mylinks );
386
  }
387
-
388
  ?>
4
  Plugin URI: http://webdesign.anmari.com/shortcode-any-widget/
5
  Description: Include any widget in a page for any theme. [do_widget widgetname ] or [do_widget "widget name" ] [do_widget id=widgetnamedashed-n ]or include a whole widget area [do_widget_area]. Please see <a href="https://wordpress.org/plugins/amr-shortcode-any-widget/faq/">FAQ</a>.
6
  Author: anmari
7
+ Version: 3.6
8
  Author URI: http://webdesign.anmari.com
9
 
10
  */
384
  '<a title="Click for a page of tips" href="' . admin_url( 'options-general.php?page=amr_saw' ) . '">HELP</a>';
385
  return array_merge( $links, $mylinks );
386
  }
 
387
  ?>
languages/amr-shortcode-any-widget-en_AU.mo DELETED
Binary file
languages/{amr-shortcode-any-widget-en_AU.po → amr-shortcode-any-widget-id_ID.po} RENAMED
@@ -3,16 +3,16 @@ msgstr ""
3
  "Project-Id-Version: amr shortcode any widget v2.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2015-02-05 07:36:42+0000\n"
7
- "Last-Translator: anmari <anmari@anmari.com>\n"
8
- "Language-Team: \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: CSL v1.x\n"
14
- "X-Poedit-Language: English\n"
15
- "X-Poedit-Country: AUSTRALIA\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
  "X-Poedit-Basepath: ../\n"
@@ -21,98 +21,98 @@ msgstr ""
21
  "X-Textdomain-Support: yes"
22
 
23
  #: amr-admin-form-html.php:37
24
- #@ amr-shortcode-any-widget
25
  msgid "Settings"
26
- msgstr ""
27
 
28
  #: amr-admin-form-html.php:63
29
- #@ amr-shortcode-any-widget
30
  msgid "Drag the widgets you want to use to the shortcodes sidebar."
31
- msgstr ""
32
 
33
  #: amr-admin-form-html.php:67
34
- #@ amr-shortcode-any-widget
35
  msgid "Set the widgets parameters if there are any."
36
- msgstr ""
37
 
38
  #: amr-admin-form-html.php:70
39
- #@ amr-shortcode-any-widget
40
  msgid "You could test the widgets out in a displayable widget area (sidebar/footer), then drag them to the widgets_for_shortcodes sidebar."
41
- msgstr ""
42
 
43
  #: amr-admin-form-html.php:75
44
- #@ amr-shortcode-any-widget
45
  msgid "Go to widgets"
46
- msgstr ""
47
 
48
  #: amr-admin-form-html.php:81
49
- #@ amr-shortcode-any-widget
50
  msgid "To add a widget area - all widgets in the widget area:"
51
- msgstr ""
52
 
53
  #: amr-admin-form-html.php:89
54
- #@ amr-shortcode-any-widget
55
  msgid "Create a page with do_widget_area shortcode without the widget_area class"
56
- msgstr ""
57
 
58
  #: amr-admin-form-html.php:96
59
- #@ amr-shortcode-any-widget
60
  msgid "Create a page with do_widget_area shortcode"
61
- msgstr ""
62
 
63
  #: amr-admin-form-html.php:100
64
  #: amr-admin-form-html.php:117
65
- #@ amr-shortcode-any-widget
66
  msgid "Examples:"
67
- msgstr ""
68
 
69
  #: amr-admin-form-html.php:103
70
- #@ amr-shortcode-any-widget
71
  msgid "[do_widget_area] or [do_widget_area widget_area=sidebar-1]"
72
- msgstr ""
73
 
74
  #: amr-admin-form-html.php:106
75
- #@ amr-shortcode-any-widget
76
  msgid "NB: Using something like the twenty-fourteen theme? you might end up with white text on a white background. Tweak the widget classes or the html of the wrap or title. If that fails, adjust your css."
77
- msgstr ""
78
 
79
  #: amr-admin-form-html.php:112
80
- #@ amr-shortcode-any-widget
81
  msgid "To add a single widget to a page"
82
- msgstr ""
83
 
84
  #: amr-admin-form-html.php:116
85
- #@ amr-shortcode-any-widget
86
  msgid "Add the shortcode [do_widget widgetname] to a page."
87
- msgstr ""
88
 
89
  #: amr-admin-form-html.php:120
90
- #@ amr-shortcode-any-widget
91
  msgid "[do_widget \"tag cloud\"] or [do_widget id=widgetid]"
92
- msgstr ""
93
 
94
  #: amr-admin-form-html.php:126
95
- #@ amr-shortcode-any-widget
96
  msgid "Create a page with do_widget shortcode and remove widget_classes"
97
- msgstr ""
98
 
99
  #: amr-admin-form-html.php:133
100
- #@ amr-shortcode-any-widget
101
  msgid "Create a page with do_widget shortcode"
102
- msgstr ""
103
 
104
  #: amr-admin-form-html.php:174
105
- #@ amr-shortcode-any-widget
106
  msgid "If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the"
107
- msgstr ""
108
 
109
  #: amr-admin-form-html.php:174
110
- #@ amr-shortcode-any-widget
111
  msgid "Support forums"
112
- msgstr ""
113
 
114
  #: amr-shortcode-any-widget.php:306
115
- #@ amr-shortcode-any-widget
116
  msgid "Sidebar to hold widgets and their settings. These widgets will be used in a shortcode. This sidebars widgets should be saved with your theme settings now."
117
- msgstr "G'day - this is the sidebar to hold widgets for shotcode"
118
 
3
  "Project-Id-Version: amr shortcode any widget v2.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2017-04-03 07:36:42+0000\n"
7
+ "Last-Translator: Jordan Silaen <jordan.silaen@chameleonjohn.com>\n"
8
+ "Language-Team:ChameleonJohn.com \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: CSL v1.x\n"
14
+ "X-Poedit-Language: Indonesian\n"
15
+ "X-Poedit-Country: Indonesia\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
  "X-Poedit-Basepath: ../\n"
21
  "X-Textdomain-Support: yes"
22
 
23
  #: amr-admin-form-html.php:37
24
+ #
25
  msgid "Settings"
26
+ msgstr "pengaturan"
27
 
28
  #: amr-admin-form-html.php:63
29
+ #
30
  msgid "Drag the widgets you want to use to the shortcodes sidebar."
31
+ msgstr "Tarik widget yang ingin Anda gunakan ke shortcode sidebar."
32
 
33
  #: amr-admin-form-html.php:67
34
+ #
35
  msgid "Set the widgets parameters if there are any."
36
+ msgstr "Mengatur parameter widget jika ada."
37
 
38
  #: amr-admin-form-html.php:70
39
+ #
40
  msgid "You could test the widgets out in a displayable widget area (sidebar/footer), then drag them to the widgets_for_shortcodes sidebar."
41
+ msgstr "Anda bisa menguji widget di area widget dapat ditampilkan (sidebar / footer), kemudian menyeret mereka ke widgets_for_shortcodes sidebar."
42
 
43
  #: amr-admin-form-html.php:75
44
+ #
45
  msgid "Go to widgets"
46
+ msgstr "Pergi ke widget"
47
 
48
  #: amr-admin-form-html.php:81
49
+ #
50
  msgid "To add a widget area - all widgets in the widget area:"
51
+ msgstr "Untuk menambahkan area widget - widget semua di daerah widget:"
52
 
53
  #: amr-admin-form-html.php:89
54
+ #
55
  msgid "Create a page with do_widget_area shortcode without the widget_area class"
56
+ msgstr "Buat halaman dengan do_widget_area shortcode tanpa kelas widget_area"
57
 
58
  #: amr-admin-form-html.php:96
59
+ #
60
  msgid "Create a page with do_widget_area shortcode"
61
+ msgstr "Buat halaman dengan do_widget_area shortcode"
62
 
63
  #: amr-admin-form-html.php:100
64
  #: amr-admin-form-html.php:117
65
+ #
66
  msgid "Examples:"
67
+ msgstr "contoh:"
68
 
69
  #: amr-admin-form-html.php:103
70
+ #
71
  msgid "[do_widget_area] or [do_widget_area widget_area=sidebar-1]"
72
+ msgstr "[Do_widget_area] atau [do_widget_area widget_area = sidebar-1]"
73
 
74
  #: amr-admin-form-html.php:106
75
+ #
76
  msgid "NB: Using something like the twenty-fourteen theme? you might end up with white text on a white background. Tweak the widget classes or the html of the wrap or title. If that fails, adjust your css."
77
+ msgstr "NB: Menggunakan sesuatu seperti 20-14 tema? Anda mungkin berakhir dengan teks putih pada latar belakang putih. Tweak kelas widget atau html dari bungkus atau judul. Jika itu gagal, menyesuaikan css Anda."
78
 
79
  #: amr-admin-form-html.php:112
80
+ #
81
  msgid "To add a single widget to a page"
82
+ msgstr "Untuk menambahkan widget tunggal ke halaman"
83
 
84
  #: amr-admin-form-html.php:116
85
+ #
86
  msgid "Add the shortcode [do_widget widgetname] to a page."
87
+ msgstr "Tambahkan shortcode [do_widget widgetname] ke halaman."
88
 
89
  #: amr-admin-form-html.php:120
90
+ #
91
  msgid "[do_widget \"tag cloud\"] or [do_widget id=widgetid]"
92
+ msgstr "[Do_widget \ "tag cloud \"] atau [do_widget id = widgetid]"
93
 
94
  #: amr-admin-form-html.php:126
95
+ #
96
  msgid "Create a page with do_widget shortcode and remove widget_classes"
97
+ msgstr "Buat halaman dengan do_widget shortcode dan menghapus widget_classes"
98
 
99
  #: amr-admin-form-html.php:133
100
+ #
101
  msgid "Create a page with do_widget shortcode"
102
+ msgstr "Buat halaman dengan do_widget shortcode"
103
 
104
  #: amr-admin-form-html.php:174
105
+ #
106
  msgid "If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the"
107
+ msgstr "Jika Anda memiliki masalah dengan plugin ini atau ide-ide yang baik untuk perbaikan atau fitur baru, silakan berbicara tentang mereka dalam"
108
 
109
  #: amr-admin-form-html.php:174
110
+ #
111
  msgid "Support forums"
112
+ msgstr "forum dukungan"
113
 
114
  #: amr-shortcode-any-widget.php:306
115
+ #
116
  msgid "Sidebar to hold widgets and their settings. These widgets will be used in a shortcode. This sidebars widgets should be saved with your theme settings now."
117
+ msgstr "Sidebar untuk menahan widget dan pengaturan mereka. Widget ini akan digunakan dalam shortcode. Ini sidebars widget harus disimpan dengan pengaturan tema Anda sekarang."
118
 
languages/amr-shortcode-any-widget-sr_RS.mo CHANGED
Binary file
languages/amr-shortcode-any-widget.pot CHANGED
@@ -1,112 +1,132 @@
1
- # Copyright (C) 2015 amr shortcode any widget
2
- # This file is distributed under the same license as the amr shortcode any widget package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: amr shortcode any widget 2.3\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/amr-shortcode-any-"
7
  "widget\n"
8
- "POT-Creation-Date: 2015-02-05 06:56:45+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
15
 
16
  #: amr-admin-form-html.php:37
17
  msgid "Settings"
18
  msgstr ""
19
 
20
  #: amr-admin-form-html.php:63
21
- msgid "Drag the widgets you want to use to the shortcodes sidebar."
22
  msgstr ""
23
 
24
- #: amr-admin-form-html.php:67
25
- msgid "Set the widgets parameters if there are any."
26
  msgstr ""
27
 
28
- #: amr-admin-form-html.php:70
29
- msgid ""
30
- "You could test the widgets out in a displayable widget area (sidebar/"
31
- "footer), then drag them to the widgets_for_shortcodes sidebar."
 
 
32
  msgstr ""
33
 
34
  #: amr-admin-form-html.php:75
35
- msgid "Go to widgets"
36
  msgstr ""
37
 
38
- #: amr-admin-form-html.php:81
39
- msgid "To add a widget area - all widgets in the widget area:"
40
  msgstr ""
41
 
42
- #: amr-admin-form-html.php:89
43
- msgid ""
44
- "Create a page with do_widget_area shortcode without the widget_area class"
45
  msgstr ""
46
 
47
- #: amr-admin-form-html.php:96
48
- msgid "Create a page with do_widget_area shortcode"
49
  msgstr ""
50
 
51
- #: amr-admin-form-html.php:100 amr-admin-form-html.php:117
52
- msgid "Examples:"
53
  msgstr ""
54
 
55
- #: amr-admin-form-html.php:103
56
- msgid "[do_widget_area] or [do_widget_area widget_area=sidebar-1]"
57
  msgstr ""
58
 
59
- #: amr-admin-form-html.php:106
60
- msgid ""
61
- "NB: Using something like the twenty-fourteen theme? you might end up with "
62
- "white text on a white background. Tweak the widget classes or the html of "
63
- "the wrap or title. If that fails, adjust your css."
64
  msgstr ""
65
 
66
- #: amr-admin-form-html.php:112
67
- msgid "To add a single widget to a page"
68
  msgstr ""
69
 
70
- #: amr-admin-form-html.php:116
71
- msgid "Add the shortcode [do_widget widgetname] to a page."
72
  msgstr ""
73
 
74
- #: amr-admin-form-html.php:120
75
- msgid "[do_widget \"tag cloud\"] or [do_widget id=widgetid]"
 
76
  msgstr ""
77
 
78
- #: amr-admin-form-html.php:126
79
- msgid "Create a page with do_widget shortcode and remove widget_classes"
80
  msgstr ""
81
 
82
- #: amr-admin-form-html.php:133
83
- msgid "Create a page with do_widget shortcode"
84
  msgstr ""
85
 
86
- #: amr-admin-form-html.php:174
 
 
 
 
 
 
 
87
  msgid ""
88
  "If you have any problems with this plugin or good ideas for improvements or "
89
  "new features, please talk about them in the"
90
  msgstr ""
91
 
92
- #: amr-admin-form-html.php:174
93
  msgid "Support forums"
94
  msgstr ""
95
 
96
- #. Plugin Name of the plugin/theme
97
- msgid "amr shortcode any widget"
98
  msgstr ""
99
 
100
- #. Plugin URI of the plugin/theme
101
- msgid "http://webdesign.anmari.com/shortcode-any-widget/"
 
 
 
 
 
 
 
102
  msgstr ""
103
 
104
  #. Description of the plugin/theme
105
  msgid ""
106
  "Include any widget in a page for any theme. [do_widget widgetname ] or "
107
- "[do_widget \"widget name\" ] or include a whole widget area "
108
- "[do_widget_area]. If upgrading see changelog. Can be very powerful eg: with "
109
- "queryposts widget it can become a templater."
 
 
 
 
 
110
  msgstr ""
111
 
112
  #. Author of the plugin/theme
1
+ #, fuzzy
 
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: amr shortcode any widget 3.3\n"
5
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/amr-shortcode-any-"
6
  "widget\n"
7
+ "POT-Creation-Date: 2017-04-18 13:56+0000\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: YEAR-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: \n"
15
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n"
16
+ "X-Generator: Loco - https://localise.biz/"
17
 
18
  #: amr-admin-form-html.php:37
19
  msgid "Settings"
20
  msgstr ""
21
 
22
  #: amr-admin-form-html.php:63
23
+ msgid "Test your widget in a normal sidebar first."
24
  msgstr ""
25
 
26
+ #: amr-admin-form-html.php:65
27
+ msgid "Go to widgets"
28
  msgstr ""
29
 
30
+ #: amr-admin-form-html.php:68
31
+ msgid "Drag the widgets you want to use to the shortcodes sidebar."
32
+ msgstr ""
33
+
34
+ #: amr-admin-form-html.php:71
35
+ msgid "Add a do_widget or do_widget_area shortcode to a page."
36
  msgstr ""
37
 
38
  #: amr-admin-form-html.php:75
39
+ msgid "Create a page with example do_widget shortcode"
40
  msgstr ""
41
 
42
+ #: amr-admin-form-html.php:82
43
+ msgid "To add a single widget to a page"
44
  msgstr ""
45
 
46
+ #: amr-admin-form-html.php:86
47
+ msgid "Add the shortcode [do_widget widgetname] to a page:"
 
48
  msgstr ""
49
 
50
+ #: amr-admin-form-html.php:93
51
+ msgid "[do_widget \"tag cloud\"] or [do_widget id=widgetid]"
52
  msgstr ""
53
 
54
+ #: amr-admin-form-html.php:102
55
+ msgid "More advanced options:"
56
  msgstr ""
57
 
58
+ #: amr-admin-form-html.php:111
59
+ msgid "To change the style, change the html:"
60
  msgstr ""
61
 
62
+ #: amr-admin-form-html.php:151
63
+ msgid "To add multiple instances of the same widget:"
 
 
 
64
  msgstr ""
65
 
66
+ #: amr-admin-form-html.php:161
67
+ msgid "To add a widget area - all widgets in the widget area:"
68
  msgstr ""
69
 
70
+ #: amr-admin-form-html.php:169
71
+ msgid "Create a page with do_widget_area shortcode"
72
  msgstr ""
73
 
74
+ #: amr-admin-form-html.php:177
75
+ msgid ""
76
+ "Create a page with do_widget_area shortcode without the widget_area class"
77
  msgstr ""
78
 
79
+ #: amr-admin-form-html.php:181
80
+ msgid "Examples:"
81
  msgstr ""
82
 
83
+ #: amr-admin-form-html.php:184
84
+ msgid "[do_widget_area] or [do_widget_area widget_area=sidebar-1]"
85
  msgstr ""
86
 
87
+ #: amr-admin-form-html.php:187
88
+ msgid ""
89
+ "NB: Using something like the twenty-fourteen theme? you might end up with "
90
+ "white text on a white background. Tweak the widget classes or the html of "
91
+ "the wrap or title. If that fails, adjust your css."
92
+ msgstr ""
93
+
94
+ #: amr-admin-form-html.php:199
95
  msgid ""
96
  "If you have any problems with this plugin or good ideas for improvements or "
97
  "new features, please talk about them in the"
98
  msgstr ""
99
 
100
+ #: amr-admin-form-html.php:199
101
  msgid "Support forums"
102
  msgstr ""
103
 
104
+ #: amr-shortcode-any-widget.php:330
105
+ msgid "Widgets for Shortcodes"
106
  msgstr ""
107
 
108
+ #: amr-shortcode-any-widget.php:332
109
+ msgid ""
110
+ "Sidebar to hold widgets and their settings. These widgets will be used in a "
111
+ "shortcode. This sidebars widgets should be saved with your theme settings "
112
+ "now."
113
+ msgstr ""
114
+
115
+ #. Plugin Name of the plugin/theme
116
+ msgid "amr shortcode any widget"
117
  msgstr ""
118
 
119
  #. Description of the plugin/theme
120
  msgid ""
121
  "Include any widget in a page for any theme. [do_widget widgetname ] or "
122
+ "[do_widget \"widget name\" ] [do_widget id=widgetnamedashed-n ]or include a "
123
+ "whole widget area [do_widget_area]. Please read: <a href=\"https://wordpress."
124
+ "org/plugins/amr-shortcode-any-widget/installation/\">Installation</a> and <a "
125
+ "href=\"https://wordpress.org/plugins/amr-shortcode-any-widget/faq/\">FAQ</a>."
126
+ msgstr ""
127
+
128
+ #. Plugin URI of the plugin/theme
129
+ msgid "http://webdesign.anmari.com/shortcode-any-widget/"
130
  msgstr ""
131
 
132
  #. Author of the plugin/theme
languages/amr_shortcode_any_widget_id_ID.mo ADDED
Binary file
readme.txt CHANGED
@@ -1,275 +1,279 @@
1
- === amr shortcode any widget ===
2
- Contributors: anmari
3
- Tags: shortcode, widget, page, templates, page template, widget_area, sidebar
4
- Tested up to: 4.8 alpha
5
- Version: 3.5
6
- Stable tag: trunk
7
-
8
- == Description ==
9
- Insert a widget or multiple widgets or a entire widget area (sidebar) into a page using a shortcode.
10
-
11
- Set up your widget first in a normal sidebar. Check it works.
12
- THEN Drag your chosen widgets to the sidebar called "widgets for shortcode".
13
-
14
- Add the do_widget shortcode to the page where you would like the widget to appear (or the do_widget_area)
15
-
16
- Please see detailed info on shortcodes and parameters under the installation tab (depending what the plugin directory developers have most recently done, this may be under the FAQ, or at the very least under the readme.)
17
-
18
- Using a widget more than once?
19
-
20
- Reference a specific widget instance from the do_widget shortcode, or the chosen sidebar from the do_widget_area shortcode. Eg: [do_widget id=widget-n]
21
-
22
- For example: You could use the query posts widget in the page to create a archive within a page, or the rss widget to list feed content from other sites. For more details see [anmari.com](http://webdesign.anmari.com/category/plugins/shortcode-any-widget/)
23
-
24
- The plugins default action is that it will magically find the settings for your themes sidebar and use the sidebar html to control the widgets output. In most cases this means the widget will be styled as per the rest of your theme. If that does not look good, parameters exist to try override this behaviour.
25
-
26
- EG: in twenty-fourteen theme widget text ends up being white on white! widget_classes=none fixes that. Eg: [do_widget widget_classes=none yourwidget]
27
-
28
- Changed your theme and worried about losing the sidebar settings ?
29
-
30
- No problem, the plugin will save and restore the widgets_for_shortcode settings. On display it will then pick up the new themes sidebar settings.
31
-
32
- **Note:**
33
-
34
- PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and please read https://wordpress.org/plugins/amr-shortcode-any-widget/installation/ and https://wordpress.org/plugins/amr-shortcode-any-widget/faq/ and/or see the settings page. To see a list of your widgets in their sidebars, add ?do_widget_debug to the page with the do_widget shortcode.
35
-
36
- == Installation ==
37
-
38
- 1. Test your chosen widget in a normal sidebar or widget area first.
39
- 2. Then activate this plugin
40
- 3. Go to Appearance > widgets and find the " widgets for shortcode" sidebar or widget area
41
- 4. Drag your chosen widget from your normal sidebar to the shortcodes sidebar. Save.
42
- 5. Now go to a page and enter a do_widget shortcode The shortcode any widget settings page has some helpful (hopefully) examples and links.
43
-
44
- * [do_widget widgetname] eg: [do_widget calendar]
45
- * [do_widget "widget name"]. eg: [do_widget "tag cloud"]
46
- * [do_widget id=widgetid] . eg: [do_widget id=tag-cloud-3]
47
-
48
- * [do_widget_area] (will use the "widgets in shortcodes" widget area / sidebar
49
- * [do_widget_area sidebarid] or [do_widget_area widget_area=sidebarid] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.
50
-
51
- **[do_widget ...] Parameters:**
52
-
53
- * *nameofwidget* or name="*nameofwidget*" This is NOT the title of the widget. THis is the name that you see in the widgets menu page even when unassigned to a sidebar. For existing users , you can also use just the name of the widget without name=. It must be the first parameter then. You can only do this with the name, not the id.
54
- * id=*wordpress assigned id of widget*. Examples: id=meta-3, id=tag-cloud-9 etc
55
- * title=false to hide the widgets title OR to override your themes first sidebar html settings for widget titles, use title=*htmltag* where *htmltag* is one of h1,h2,h3,h4,h5,header,strong,em.
56
- * wrap=*htmltag* where *htmltag* is one of div,p,main,aside,section. This will override your themes first sidebar widget wrapping html.
57
- * widget_classes=none This will remove the class "widget" from the wrapping html and the class "widget_title" from the title html. This may be enough to remove any unwanted css caused by your theme.
58
- * class=*yourclassname* By default the plugin will add a class of amr-widget to the wrapping html. You can use this to add any special css. Add css either by editing your themes stylesheet if it is a custom theme, or using something like the wordpress custom css plugin.
59
- * sidebar="*sidebarname*" will default to widgets_for_shortcode sidebar. Only use if you want to re-use a widget already being used in another sidebar. THis is theme dependent and WILL break if you change themes. Safer to use the widget_id.
60
-
61
- **[do_widget_area ...] Parameters:**
62
-
63
- * widget_area=*yourwidgetarea* defaults to 'widgets_for_shortcodes' if nothing entered
64
- * widget_area_class=none /* option to remove theme styling by removing the widget_area class from the sidebar html */
65
- * widget_classes=none /* option to remove the widget class from the widget wrappinghtml
66
- * class=*yourclassname* default is amr_widget_area. This will affect the widget area NOT the individual widgets. At the moment can only remove the widget classes, not replace them when using do_widget_area.
67
-
68
- Advanced users WARNING: using do_widget_area with a widget area other than the shortcode one means that if you changes themes and the new theme has different sidebars, then this shortcode with a named widget area will not work.
69
-
70
- See the settings page for links to help your create the shortcodes in a page.
71
-
72
- The plugin has been tested with most standard widgets (rss feeds, tag cloud, pages, meta, search, and of course my own plugins widgets - upcoming events list, calendar and user lists.
73
-
74
- If you use a widget more than once for different reasons, you may need to use the widget id to isolate which widget instance and it's settings to use. ie: [do_widget id=categories-6] . If you just use the name, it will display all widgets in the shortcode sidebar with that name (all instances).
75
-
76
-
77
- **If you liked this plugin, you might also like my other plugins:**
78
-
79
- * [icalevents.com](http://icalevents.com) - a ics compliant events plugin fully integrated with wordpress, so it will work with many other plugins (seo, maps, social)
80
- * [wpusersplugin.com](http://wpusersplugin.com) - a suite of plugins to help with membership sites. Major plugin is [amr users](http://wordpress.org/extend/plugins/amr-users/)
81
-
82
- == Frequently Asked Questions ==
83
-
84
- PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and PLEASE read the installation instructions (?is the plugin directory showing them!?) and the settings page before asking any questions.
85
-
86
- **Widget help, the widget is doing this, when it should do that**
87
-
88
- Please get the widget working first in a normal sidebar without this plugin and ask for support on the widgets forum it is does not work in a normal sidebar.
89
-
90
- **How to identify widget**
91
-
92
- To identify your widget in the shortcode, use the NAME or the ID.
93
-
94
- The name is the generic NAME like "tag cloud".
95
-
96
- The id is how wordpress identifies the instance of the widget. The id is visible at the bottom of the widget settings box.
97
-
98
- **Styling, your theme, css, overriding**
99
-
100
- Yes anything could happen wrt the appearance.(There are tens of 1000s of themes and widgets. Multiply out the possible combinations. Add in css specifity, inheritance and cascading rules. Consider you are moving the widget out of the sidebar where the the theme and widget plugin expect it to be. ) The effects are very dependent on how your theme has specified the css that may apply to widgets and sidebars/widget areas.
101
-
102
- It may work beautifully and have the content looking like it belongs with your theme.
103
-
104
- This plugin tries to help encourage that 'belonging' look. If it fails then it offers ways to switch the html and/or the classes being generated.
105
-
106
-
107
- Examples:
108
- * you may have undesired effects applying that do not work in the main content area
109
- * You may have desired effects not applying because the css is specific to a themes sidebar and does not apply to the html in a page.
110
-
111
- The plugin can help a bit - Via the plugin you can do the following to affect styling:
112
-
113
- * Remove the general wordpress 'widget' class from the widgets wrapping html and the 'widget_title' from the title html. ([do_widget *widgetname* widget_classes=none]
114
-
115
- * Change the 'wrap' html and the title html with parameters wrap=div title=h3. See the settings page.
116
-
117
- * Apply an existing class in your theme. Use [do_widget *widgetname* class=*yourclass*].
118
-
119
- * Use the additional class 'amr-widget' provided to specify alternate css in your themes stylesheet or with something like wordpress custom css.
120
-
121
- One of the new features is as a default setting is that the plugin will try have your current themes first sidebar styling apply to the widgets inserted into a page via the shortcode.
122
-
123
- Many folks requested this, insisting that absolutely this is what should be happening and why didn't it? Well..This could be great - Imagine: a plugin that can pick up the theme styling and change it as your theme changes.
124
-
125
- The success of this depends very much on how your theme specifies it's css. Does it always use classes ? - more css will apply. Does it lock the css down by sidebar-id: that css will not apply.
126
-
127
- It also depends on what the original widget plugin does with css and js. It may have done something thinking that the widget will always be inside a sidebar and not anticipated being in a page. This the shortcde-any-widget plugin has no control over.
128
-
129
- For example: An unwanted effect could be white text on a white background as in the twenty fourteen theme.
130
-
131
- **If you have an undesired styling effect with the default settings:**
132
-
133
- You need to learn the joys of the 'inspect element' tools in various browsers or browser web developer, firebug add-ons, so you can see what css is applying to what html. Then you can either change some of the html or override or change the css.
134
-
135
- Options if you don't like the default result:
136
-
137
- Use the 'amr-widget' class that has been added to the widget wrapping html to override any css.
138
-
139
- eg:
140
- .amr-widget [
141
- color: #000000;
142
- }
143
-
144
- Tap into a class you already have in your theme:
145
-
146
- [do_widget class=yourclass]
147
-
148
- Change the html that the shortcode-any-widget plugin will use.
149
-
150
- eg: don't like the h3.widget-title styling ? change the title html to h2 in the shotcode parameters
151
-
152
- [do_widget title=h2]
153
-
154
- eg: don't like the 'aside' wrapping html styling? change the wrapping html:
155
-
156
- [do_widget wrap=div]
157
-
158
- If you only using widget, maybe inserting the whole sidebar or widgertarea would give an interesting effect. Sidebar background css may apply.
159
-
160
- [do_widget_area]
161
-
162
- == Changelog ==
163
- = Version 3.5 =
164
- * Adds info showing you on which pages, posts etc you are using a do_widget or do_widget_area shortcode, just in case you forget.
165
-
166
- = Version 3.4 =
167
- * Retested on wordpres 4.7 and 4.8 alpha and forcing update because of plugin directory needs trigger temporarily to show the installation instructions
168
-
169
- = Version 3.3 =
170
- * Retested on wordpres 4.5 and 4.5.1-alpha
171
- * Re-instated the saving of widgets in the shortcode sidebar on theme switch and the reloading of these saved widgets when theme is reactivated (Was commented out for awhile back in 2014, but appears to be working well and very useful when you changing a theme but maybe forgotten about this page that has widget on it - yeah that could be bad !
172
-
173
- = Version 3.2 =
174
- * tweaked some error messages and handle situation better where there are no widgets or possibly empty sidebars.
175
-
176
- = Version 3.1 =
177
- * added code for the widget-id to appear in the widget settings window.
178
- * removed lots of the 'debug' as it will hopefully no longer be needed.
179
- * most error messages will now be returned in the shortcode, not echoed at top of page.
180
- * the do_widget_debug lists less, but hopefully more usefully a list of the do_widget and do_widget_area options based on your sidebars and the widgets in them.
181
-
182
- = Version 3 =
183
- * added code to not output anything if in admin (eg: in edit/save mode) in case something has forced application of content filters when saving (and not all widget stuff is active, so errors are output.
184
- * prefixed unprefixed function names to avoid conflicts
185
-
186
- = Version 2.9 =
187
- * in debug help, the link to the installation page help was not properly setup. Fixed.
188
-
189
- = Version 2.8 =
190
- * Tested on 4.3.1
191
- * No real functional change.
192
- * Tweaked debug info to look a little prettier. Also some error messages will not show unless you haev requested debug (?do_widiet_debug) to try to avoid the message that some genesis theme users are experiencing. I have not been able to recreate this with the genesis theme myself - it might be a plugin that they are using.
193
-
194
-
195
- = Version 2.6 =
196
- * Tested on 4.2
197
- * Removed from admin settings area the use of add_query_arg (unnecessary)
198
- * Added esc_url to widget id 'debug' oage just in case (it is only accessed by logged in admin, but lets be safe and keep everyone happy if the see the add_query_arg and remove_query_arg
199
-
200
- = Version 2.5 =
201
- * Tested on 4.1.1, Linked to the settings help page from the plugin action menu.
202
- * Changed the readme a bit to try further aid understanding and reduce support issues
203
- * Updated some screenshots.
204
-
205
- = Version 2.4 =
206
- * Tested on 4.1, Cleaned up the readme, Lang file for info page - most texts.
207
-
208
- = Version 2.3 =
209
- * Fixed some widget area class options that were not working.
210
- * Added a widget area debug option to make it easier to find how your theme has stored it's widget area / sidebar ids. They are not always easy to find.
211
- * Tested on 3.9.1
212
- * Updated readme
213
-
214
- = Version 2.2 =
215
- * Attempt to add more styling control.
216
- * Add widget_classes=none to reverse out widget type class. NOte to totally override wordpress widget
217
- * Add widget_area_class=none
218
-
219
- = Version 2.1 =
220
- * Bug Fix - last sidebar registered by theme was being overwritten by the attempt to copy the themes sidebar arguments so that cleverly (hopefully) the shortcode widgets would pick up the same styling. Fixed now. Now it really does pickup the first sidebars styling - with devasting consquence in twenty-fourteen theme - yes white text on white background is not fun to read. But on other themes it works a treat.
221
-
222
-
223
- = Version 2 =
224
- * Shortcode widget id changed so that wordpress will save the shortcode settings per theme.
225
- * Added Code to auto upgrade, but just in case please check your widgets page. Look at the inactive widgets if the widgets are not in your widgets for shortcodes sidebar.
226
- * Logic added on theme switching to save shortcode widget settings and restore them after the theme switch, so you can play with themes and not have to set up your widgets again. WP kept putting them into an 'inactive sidebar'.
227
- * Added, as requested by a few of you, the ability to add a class and control the html around the widget without having to enter html around the shortcode has been added. See the settings page for instructions.
228
- * Added the ability to specify what html should be used for the title and the widget wrap, so that you can more easily either match your theme or get away from your thesmes widget styling.
229
- * Added ability to insert a whole widget area into the page. The default will be the "widgets for shortcode" sidebar/widget area. You can specify others. Note Specifying other widget areas may be theme dependent, ie: switch and you'll lose that page.
230
- * Added classes amr-widget and amr-widget-area so one can target the widgets in the page to adjust css.
231
-
232
- = Version 1.8 =
233
- * Whoops - had renamed the main file and forgot to delete it from the svn. Forcing a version number change to ensure files get cleaned up for everyone
234
-
235
- = Version 1.7 =
236
- * Change: Changed so that debugs and debug prompt will only show to a logged in administrator.
237
-
238
- = Version 1.6 =
239
- * Add: added a settings page to help people out (not really settings)
240
- * Fix: changed a clashing function name
241
-
242
- = Version 1.5 =
243
- * Fixed: a small bug which caused a warning if you had not saved the widgets in your shortcode sidebar
244
-
245
- = Version 1.4 =
246
- * Updated readme - made very detailed steps and added some screen shots.
247
- * Tested on wp 3.3.1 and fixed some notices when bad parameters entered.
248
-
249
- = Version 1.3 =
250
- * Added debug link and retested. Added readme.
251
-
252
- = 1.12 =
253
- * Changed dummy shortcode sidebar so it appears after the theme sidebars to avoid taking over their widgets (this happened in numbered sidebars) PLEASE note if you have upgraded, you may appear to have "lost" your widgets due to this sidebar change. You have not - they will be in your "inactive widgets" - please drag them to the new sidebar. You may also find that you have 2 versions of the plugin, with slightly different folder names. This will allow you to go back to the previous one to check what you had there if you need to. Deactivate the old one and activate the new one. Move your widgets back in. Test then Delete the old one. In one theme it also appeared that somehow due to this change, one of the sidebar widgets "moved" down to another sidebar. I think that this may have had something to do with the fact that sidebars can be numbered or named, so please check all your sidebars before continuing. As always make sure thath you know how to restore from a backup before doing any upgrades of any kind.
254
- * Tested in 2.9.2, can still use either the widget name "Categories" or id=categories-6. Note widget must have been created in the dummy shortcode sidebar.
255
-
256
- = 1.1 =
257
-
258
- * Allow for lowercase use of widget names for the those challenged by attention to detail!
259
- * Cleaned up debug mode to make it easier for people to identify which instance of a widget they are using. Add &do_widget_debug to url string.
260
-
261
- = 1.0 =
262
- * Launch of the plugin
263
-
264
- == Screenshots ==
265
-
266
- 1. setting up widgets in the widgets for shortcode sidebar. The widget's user interface (UI) is used to provide a UI for the do_widget shortcode.
267
- 2. add shortcode for widgets in a page (must be in the widgets for shortcode sidebar)
268
- 3. widgets in a page
269
- 4. with the default widget class and with widget_classes=none
270
- two rss feed widgets in shortcode sidebar - both will show if just name used
271
- 5. The widget id is now visible in the widget window
272
- 6. After clicking on debug message - scroll down till you see the shortcodes sidebar - the widgets and their ids will be listed. Find the id of the widget you want.
273
- 7. Shortcode parameters to remove widget-classes in theme like the twenty-fourteen theme (avoid white text on white background)
274
- 8. Example of multiple rss widgets in twenty-fourteen theme
 
 
 
 
275
 
1
+ === amr shortcode any widget ===
2
+ Contributors: anmari
3
+ Tags: shortcode, widget, page, templates, page template, widget_area, sidebar
4
+ Tested up to: 5.0 alpha
5
+ Version: 3.6
6
+ Stable tag: trunk
7
+
8
+ == Description ==
9
+ Insert a widget or multiple widgets or a entire widget area (sidebar) into a page using a shortcode.
10
+
11
+ Set up your widget first in a normal sidebar. Check it works.
12
+ THEN Drag your chosen widgets to the sidebar called "widgets for shortcode".
13
+
14
+ Add the do_widget shortcode to the page where you would like the widget to appear (or the do_widget_area)
15
+
16
+ Please see detailed info on shortcodes and parameters under the installation tab (depending what the plugin directory developers have most recently done, this may be under the FAQ, or at the very least under the readme.)
17
+
18
+ Using a widget more than once?
19
+
20
+ Reference a specific widget instance from the do_widget shortcode, or the chosen sidebar from the do_widget_area shortcode. Eg: [do_widget id=widget-n]
21
+
22
+ For example: You could use the query posts widget in the page to create a archive within a page, or the rss widget to list feed content from other sites. For more details see [anmari.com](http://webdesign.anmari.com/category/plugins/shortcode-any-widget/)
23
+
24
+ The plugins default action is that it will magically find the settings for your themes sidebar and use the sidebar html to control the widgets output. In most cases this means the widget will be styled as per the rest of your theme. If that does not look good, parameters exist to try override this behaviour.
25
+
26
+ EG: in twenty-fourteen theme widget text ends up being white on white! widget_classes=none fixes that. Eg: [do_widget widget_classes=none yourwidget]
27
+
28
+ Changed your theme and worried about losing the sidebar settings ?
29
+
30
+ No problem, the plugin will save and restore the widgets_for_shortcode settings. On display it will then pick up the new themes sidebar settings.
31
+
32
+ **Note:**
33
+
34
+ PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and please read https://wordpress.org/plugins/amr-shortcode-any-widget/installation/ and https://wordpress.org/plugins/amr-shortcode-any-widget/faq/ and/or see the settings page. To see a list of your widgets in their sidebars, add ?do_widget_debug to the page with the do_widget shortcode.
35
+
36
+ == Installation ==
37
+
38
+ 1. Test your chosen widget in a normal sidebar or widget area first.
39
+ 2. Then activate this plugin
40
+ 3. Go to Appearance > widgets and find the " widgets for shortcode" sidebar or widget area
41
+ 4. Drag your chosen widget from your normal sidebar to the shortcodes sidebar. Save.
42
+ 5. Now go to a page and enter a do_widget shortcode The shortcode any widget settings page has some helpful (hopefully) examples and links.
43
+
44
+ * [do_widget widgetname] eg: [do_widget calendar]
45
+ * [do_widget "widget name"]. eg: [do_widget "tag cloud"]
46
+ * [do_widget id=widgetid] . eg: [do_widget id=tag-cloud-3]
47
+
48
+ * [do_widget_area] (will use the "widgets in shortcodes" widget area / sidebar
49
+ * [do_widget_area sidebarid] or [do_widget_area widget_area=sidebarid] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.
50
+
51
+ **[do_widget ...] Parameters:**
52
+
53
+ * *nameofwidget* or name="*nameofwidget*" This is NOT the title of the widget. THis is the name that you see in the widgets menu page even when unassigned to a sidebar. For existing users , you can also use just the name of the widget without name=. It must be the first parameter then. You can only do this with the name, not the id.
54
+ * id=*wordpress assigned id of widget*. Examples: id=meta-3, id=tag-cloud-9 etc
55
+ * title=false to hide the widgets title OR to override your themes first sidebar html settings for widget titles, use title=*htmltag* where *htmltag* is one of h1,h2,h3,h4,h5,header,strong,em.
56
+ * wrap=*htmltag* where *htmltag* is one of div,p,main,aside,section. This will override your themes first sidebar widget wrapping html.
57
+ * widget_classes=none This will remove the class "widget" from the wrapping html and the class "widget_title" from the title html. This may be enough to remove any unwanted css caused by your theme.
58
+ * class=*yourclassname* By default the plugin will add a class of amr-widget to the wrapping html. You can use this to add any special css. Add css either by editing your themes stylesheet if it is a custom theme, or using something like the wordpress custom css plugin.
59
+ * sidebar="*sidebarname*" will default to widgets_for_shortcode sidebar. Only use if you want to re-use a widget already being used in another sidebar. THis is theme dependent and WILL break if you change themes. Safer to use the widget_id.
60
+
61
+ **[do_widget_area ...] Parameters:**
62
+
63
+ * widget_area=*yourwidgetarea* defaults to 'widgets_for_shortcodes' if nothing entered
64
+ * widget_area_class=none /* option to remove theme styling by removing the widget_area class from the sidebar html */
65
+ * widget_classes=none /* option to remove the widget class from the widget wrappinghtml
66
+ * class=*yourclassname* default is amr_widget_area. This will affect the widget area NOT the individual widgets. At the moment can only remove the widget classes, not replace them when using do_widget_area.
67
+
68
+ Advanced users WARNING: using do_widget_area with a widget area other than the shortcode one means that if you changes themes and the new theme has different sidebars, then this shortcode with a named widget area will not work.
69
+
70
+ See the settings page for links to help your create the shortcodes in a page.
71
+
72
+ The plugin has been tested with most standard widgets (rss feeds, tag cloud, pages, meta, search, and of course my own plugins widgets - upcoming events list, calendar and user lists.
73
+
74
+ If you use a widget more than once for different reasons, you may need to use the widget id to isolate which widget instance and it's settings to use. ie: [do_widget id=categories-6] . If you just use the name, it will display all widgets in the shortcode sidebar with that name (all instances).
75
+
76
+
77
+ **If you liked this plugin, you might also like my other plugins:**
78
+
79
+ * [icalevents.com](http://icalevents.com) - a ics compliant events plugin fully integrated with wordpress, so it will work with many other plugins (seo, maps, social)
80
+ * [wpusersplugin.com](http://wpusersplugin.com) - a suite of plugins to help with membership sites. Major plugin is [amr users](http://wordpress.org/extend/plugins/amr-users/)
81
+
82
+ == Frequently Asked Questions ==
83
+
84
+ PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and PLEASE read the installation instructions (?is the plugin directory showing them!?) and the settings page before asking any questions.
85
+
86
+ **Widget help, the widget is doing this, when it should do that**
87
+
88
+ Please get the widget working first in a normal sidebar without this plugin and ask for support on the widgets forum it is does not work in a normal sidebar.
89
+
90
+ **How to identify widget**
91
+
92
+ To identify your widget in the shortcode, use the NAME or the ID.
93
+
94
+ The name is the generic NAME like "tag cloud".
95
+
96
+ The id is how wordpress identifies the instance of the widget. The id is visible at the bottom of the widget settings box.
97
+
98
+ **Styling, your theme, css, overriding**
99
+
100
+ Yes anything could happen wrt the appearance.(There are tens of 1000s of themes and widgets. Multiply out the possible combinations. Add in css specifity, inheritance and cascading rules. Consider you are moving the widget out of the sidebar where the the theme and widget plugin expect it to be. ) The effects are very dependent on how your theme has specified the css that may apply to widgets and sidebars/widget areas.
101
+
102
+ It may work beautifully and have the content looking like it belongs with your theme.
103
+
104
+ This plugin tries to help encourage that 'belonging' look. If it fails then it offers ways to switch the html and/or the classes being generated.
105
+
106
+
107
+ Examples:
108
+ * you may have undesired effects applying that do not work in the main content area
109
+ * You may have desired effects not applying because the css is specific to a themes sidebar and does not apply to the html in a page.
110
+
111
+ The plugin can help a bit - Via the plugin you can do the following to affect styling:
112
+
113
+ * Remove the general wordpress 'widget' class from the widgets wrapping html and the 'widget_title' from the title html. ([do_widget *widgetname* widget_classes=none]
114
+
115
+ * Change the 'wrap' html and the title html with parameters wrap=div title=h3. See the settings page.
116
+
117
+ * Apply an existing class in your theme. Use [do_widget *widgetname* class=*yourclass*].
118
+
119
+ * Use the additional class 'amr-widget' provided to specify alternate css in your themes stylesheet or with something like wordpress custom css.
120
+
121
+ One of the new features is as a default setting is that the plugin will try have your current themes first sidebar styling apply to the widgets inserted into a page via the shortcode.
122
+
123
+ Many folks requested this, insisting that absolutely this is what should be happening and why didn't it? Well..This could be great - Imagine: a plugin that can pick up the theme styling and change it as your theme changes.
124
+
125
+ The success of this depends very much on how your theme specifies it's css. Does it always use classes ? - more css will apply. Does it lock the css down by sidebar-id: that css will not apply.
126
+
127
+ It also depends on what the original widget plugin does with css and js. It may have done something thinking that the widget will always be inside a sidebar and not anticipated being in a page. This the shortcde-any-widget plugin has no control over.
128
+
129
+ For example: An unwanted effect could be white text on a white background as in the twenty fourteen theme.
130
+
131
+ **If you have an undesired styling effect with the default settings:**
132
+
133
+ You need to learn the joys of the 'inspect element' tools in various browsers or browser web developer, firebug add-ons, so you can see what css is applying to what html. Then you can either change some of the html or override or change the css.
134
+
135
+ Options if you don't like the default result:
136
+
137
+ Use the 'amr-widget' class that has been added to the widget wrapping html to override any css.
138
+
139
+ eg:
140
+ .amr-widget [
141
+ color: #000000;
142
+ }
143
+
144
+ Tap into a class you already have in your theme:
145
+
146
+ [do_widget class=yourclass]
147
+
148
+ Change the html that the shortcode-any-widget plugin will use.
149
+
150
+ eg: don't like the h3.widget-title styling ? change the title html to h2 in the shotcode parameters
151
+
152
+ [do_widget title=h2]
153
+
154
+ eg: don't like the 'aside' wrapping html styling? change the wrapping html:
155
+
156
+ [do_widget wrap=div]
157
+
158
+ If you only using widget, maybe inserting the whole sidebar or widgertarea would give an interesting effect. Sidebar background css may apply.
159
+
160
+ [do_widget_area]
161
+
162
+ == Changelog ==
163
+ = Version 3.6 =
164
+ * Basically forcing an update in the hope that the third party php7compatibility checker sort itself out. It's complaining about mixed line endings, but they're not.
165
+ * Added indonesian translation provided by Jordan Silaen.
166
+
167
+ = Version 3.5 =
168
+ * Adds info showing you on which pages, posts etc you are using a do_widget or do_widget_area shortcode, just in case you forget.
169
+
170
+ = Version 3.4 =
171
+ * Retested on wordpres 4.7 and 4.8 alpha and forcing update because of plugin directory needs trigger temporarily to show the installation instructions
172
+
173
+ = Version 3.3 =
174
+ * Retested on wordpres 4.5 and 4.5.1-alpha
175
+ * Re-instated the saving of widgets in the shortcode sidebar on theme switch and the reloading of these saved widgets when theme is reactivated (Was commented out for awhile back in 2014, but appears to be working well and very useful when you changing a theme but maybe forgotten about this page that has widget on it - yeah that could be bad !
176
+
177
+ = Version 3.2 =
178
+ * tweaked some error messages and handle situation better where there are no widgets or possibly empty sidebars.
179
+
180
+ = Version 3.1 =
181
+ * added code for the widget-id to appear in the widget settings window.
182
+ * removed lots of the 'debug' as it will hopefully no longer be needed.
183
+ * most error messages will now be returned in the shortcode, not echoed at top of page.
184
+ * the do_widget_debug lists less, but hopefully more usefully a list of the do_widget and do_widget_area options based on your sidebars and the widgets in them.
185
+
186
+ = Version 3 =
187
+ * added code to not output anything if in admin (eg: in edit/save mode) in case something has forced application of content filters when saving (and not all widget stuff is active, so errors are output.
188
+ * prefixed unprefixed function names to avoid conflicts
189
+
190
+ = Version 2.9 =
191
+ * in debug help, the link to the installation page help was not properly setup. Fixed.
192
+
193
+ = Version 2.8 =
194
+ * Tested on 4.3.1
195
+ * No real functional change.
196
+ * Tweaked debug info to look a little prettier. Also some error messages will not show unless you haev requested debug (?do_widiet_debug) to try to avoid the message that some genesis theme users are experiencing. I have not been able to recreate this with the genesis theme myself - it might be a plugin that they are using.
197
+
198
+
199
+ = Version 2.6 =
200
+ * Tested on 4.2
201
+ * Removed from admin settings area the use of add_query_arg (unnecessary)
202
+ * Added esc_url to widget id 'debug' oage just in case (it is only accessed by logged in admin, but lets be safe and keep everyone happy if the see the add_query_arg and remove_query_arg
203
+
204
+ = Version 2.5 =
205
+ * Tested on 4.1.1, Linked to the settings help page from the plugin action menu.
206
+ * Changed the readme a bit to try further aid understanding and reduce support issues
207
+ * Updated some screenshots.
208
+
209
+ = Version 2.4 =
210
+ * Tested on 4.1, Cleaned up the readme, Lang file for info page - most texts.
211
+
212
+ = Version 2.3 =
213
+ * Fixed some widget area class options that were not working.
214
+ * Added a widget area debug option to make it easier to find how your theme has stored it's widget area / sidebar ids. They are not always easy to find.
215
+ * Tested on 3.9.1
216
+ * Updated readme
217
+
218
+ = Version 2.2 =
219
+ * Attempt to add more styling control.
220
+ * Add widget_classes=none to reverse out widget type class. NOte to totally override wordpress widget
221
+ * Add widget_area_class=none
222
+
223
+ = Version 2.1 =
224
+ * Bug Fix - last sidebar registered by theme was being overwritten by the attempt to copy the themes sidebar arguments so that cleverly (hopefully) the shortcode widgets would pick up the same styling. Fixed now. Now it really does pickup the first sidebars styling - with devasting consquence in twenty-fourteen theme - yes white text on white background is not fun to read. But on other themes it works a treat.
225
+
226
+
227
+ = Version 2 =
228
+ * Shortcode widget id changed so that wordpress will save the shortcode settings per theme.
229
+ * Added Code to auto upgrade, but just in case please check your widgets page. Look at the inactive widgets if the widgets are not in your widgets for shortcodes sidebar.
230
+ * Logic added on theme switching to save shortcode widget settings and restore them after the theme switch, so you can play with themes and not have to set up your widgets again. WP kept putting them into an 'inactive sidebar'.
231
+ * Added, as requested by a few of you, the ability to add a class and control the html around the widget without having to enter html around the shortcode has been added. See the settings page for instructions.
232
+ * Added the ability to specify what html should be used for the title and the widget wrap, so that you can more easily either match your theme or get away from your thesmes widget styling.
233
+ * Added ability to insert a whole widget area into the page. The default will be the "widgets for shortcode" sidebar/widget area. You can specify others. Note Specifying other widget areas may be theme dependent, ie: switch and you'll lose that page.
234
+ * Added classes amr-widget and amr-widget-area so one can target the widgets in the page to adjust css.
235
+
236
+ = Version 1.8 =
237
+ * Whoops - had renamed the main file and forgot to delete it from the svn. Forcing a version number change to ensure files get cleaned up for everyone
238
+
239
+ = Version 1.7 =
240
+ * Change: Changed so that debugs and debug prompt will only show to a logged in administrator.
241
+
242
+ = Version 1.6 =
243
+ * Add: added a settings page to help people out (not really settings)
244
+ * Fix: changed a clashing function name
245
+
246
+ = Version 1.5 =
247
+ * Fixed: a small bug which caused a warning if you had not saved the widgets in your shortcode sidebar
248
+
249
+ = Version 1.4 =
250
+ * Updated readme - made very detailed steps and added some screen shots.
251
+ * Tested on wp 3.3.1 and fixed some notices when bad parameters entered.
252
+
253
+ = Version 1.3 =
254
+ * Added debug link and retested. Added readme.
255
+
256
+ = 1.12 =
257
+ * Changed dummy shortcode sidebar so it appears after the theme sidebars to avoid taking over their widgets (this happened in numbered sidebars) PLEASE note if you have upgraded, you may appear to have "lost" your widgets due to this sidebar change. You have not - they will be in your "inactive widgets" - please drag them to the new sidebar. You may also find that you have 2 versions of the plugin, with slightly different folder names. This will allow you to go back to the previous one to check what you had there if you need to. Deactivate the old one and activate the new one. Move your widgets back in. Test then Delete the old one. In one theme it also appeared that somehow due to this change, one of the sidebar widgets "moved" down to another sidebar. I think that this may have had something to do with the fact that sidebars can be numbered or named, so please check all your sidebars before continuing. As always make sure thath you know how to restore from a backup before doing any upgrades of any kind.
258
+ * Tested in 2.9.2, can still use either the widget name "Categories" or id=categories-6. Note widget must have been created in the dummy shortcode sidebar.
259
+
260
+ = 1.1 =
261
+
262
+ * Allow for lowercase use of widget names for the those challenged by attention to detail!
263
+ * Cleaned up debug mode to make it easier for people to identify which instance of a widget they are using. Add &do_widget_debug to url string.
264
+
265
+ = 1.0 =
266
+ * Launch of the plugin
267
+
268
+ == Screenshots ==
269
+
270
+ 1. setting up widgets in the widgets for shortcode sidebar. The widget's user interface (UI) is used to provide a UI for the do_widget shortcode.
271
+ 2. add shortcode for widgets in a page (must be in the widgets for shortcode sidebar)
272
+ 3. widgets in a page
273
+ 4. with the default widget class and with widget_classes=none
274
+ two rss feed widgets in shortcode sidebar - both will show if just name used
275
+ 5. The widget id is now visible in the widget window
276
+ 6. After clicking on debug message - scroll down till you see the shortcodes sidebar - the widgets and their ids will be listed. Find the id of the widget you want.
277
+ 7. Shortcode parameters to remove widget-classes in theme like the twenty-fourteen theme (avoid white text on white background)
278
+ 8. Example of multiple rss widgets in twenty-fourteen theme
279