amr shortcode any widget - Version 2.4

Version Description

Download this release

Release Info

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

Code changes from version 2.3 to 2.4

amr-admin-form-html.php CHANGED
@@ -34,7 +34,7 @@ if (!class_exists('amr_saw_plugin_admin')) {
34
  if( empty($this_plugin) )
35
  $this_plugin = $this->filename;
36
  if ( $file == $this_plugin ) {
37
- $settings_link = '<a href="' . $this->plugin_options_url() . '">' . __('Settings') . '</a>';
38
  array_unshift( $links, $settings_link );
39
  }
40
  return $links;
@@ -60,25 +60,25 @@ if (!class_exists('amr_saw_plugin_admin')) {
60
  echo '<h3><a href="http://wordpress.org/plugins/amr-shortcode-any-widget/">More detailed instructions at the wordpress plugin page.</a></h3>';
61
  echo '<ul>';
62
  echo '<li>';
63
- _e('Drag the widgets you want to use to the shortcodes sidebar.');
64
 
65
  echo '</li>';
66
  echo '<li>';
67
- _e('Set the widgets parameters if there are any.');
68
  echo '</li>';
69
  echo '<li>';
70
- _e('You could test the widgets out in a displayable widget area (sidebar/footer), then drag them to the widgets_for_shortcodes sidebar.');
71
 
72
  echo '</li>';
73
  echo '<li>';
74
  echo '<a title="Go to widget area" href="'.get_admin_url('','widgets.php').'"> ';
75
- _e('Go to widgets');
76
  echo '</a>';
77
  echo '</li>';
78
  echo '</ul>';
79
 
80
  echo '<h2>';
81
- _e('To add a widget area - all widgets in the widget area:');
82
 
83
  echo '</h2>';
84
  echo '<ul>';
@@ -86,51 +86,51 @@ if (!class_exists('amr_saw_plugin_admin')) {
86
  echo '<a title="Create a page" href="'
87
  .add_query_arg('content','[do_widget_area]', get_admin_url('','post-new.php?post_type=page'))
88
  .'"> ';
89
- _e('Create a page with do_widget_area shortcode without the widget_area class');
90
  echo '</a> Hoping to avoid theme styling.';
91
  echo '</li>';
92
  echo '<li>';
93
  echo '<a title="Create a page" href="'
94
  .add_query_arg('content','[do_widget_area widget_area_class=none]', get_admin_url('','post-new.php?post_type=page'))
95
  .'"> ';
96
- _e('Create a page with do_widget_area shortcode');
97
  echo '</a> Hoping to use theme styling.';
98
  echo '</li>';
99
  echo '<li>';
100
- _e('Examples:');
101
  echo '</li>';
102
  echo '<li>';
103
- _e('[do_widget_area] or [do_widget_area widget_area=sidebar-1]');
104
  echo '</li>';
105
  echo '<li>';
106
- _e('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.');
107
  echo '</li>';
108
  echo '</ul>';
109
  echo '<br />';
110
 
111
  echo '<h2>';
112
- _e('To add a single widget to a page');
113
  echo '</h2>';
114
  echo '<ul>';
115
  echo '<li>';
116
- _e('Add the shortcode [do_widget widgetname] to a page.');
117
- _e('Examples:');
118
  echo '</li>';
119
  echo '<li>';
120
- _e('[do_widget "tag cloud"] or [do_widget id=widgetid]');
121
  echo '</li>';
122
  echo '<li>';
123
  echo '<a title="Create a page" href="'
124
  .add_query_arg('content','[do_widget Archives widget_classes=none]', get_admin_url('','post-new.php?post_type=page'))
125
  .'"> ';
126
- _e('Create a page with do_widget shortcode and remove widget_classes');
127
  echo '</a>';
128
  echo '</li>';
129
  echo '<li>';
130
  echo '<a title="Create a page" href="'
131
  .add_query_arg('content','[do_widget Archives]', get_admin_url('','post-new.php?post_type=page'))
132
  .'"> ';
133
- _e('Create a page with do_widget shortcode');
134
  echo '</a>';
135
  echo '</li>';
136
  echo '<li>';
@@ -171,7 +171,7 @@ if (!class_exists('amr_saw_plugin_admin')) {
171
  * Info box with link to the support forums.
172
  */
173
  function plugin_support() {
174
- $content = '<p>'.__('If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the','amrplugin').' <a href="http://wordpress.org/tags/'.$this->hook.'">'.__("Support forums",'amrplugin').'</a>.</p>';
175
  $this->postbox($this->hook.'support', 'Need support?', $content);
176
  }
177
 
34
  if( empty($this_plugin) )
35
  $this_plugin = $this->filename;
36
  if ( $file == $this_plugin ) {
37
+ $settings_link = '<a href="' . $this->plugin_options_url() . '">' . __('Settings', 'amr-shortcode-any-widget') . '</a>';
38
  array_unshift( $links, $settings_link );
39
  }
40
  return $links;
60
  echo '<h3><a href="http://wordpress.org/plugins/amr-shortcode-any-widget/">More detailed instructions at the wordpress plugin page.</a></h3>';
61
  echo '<ul>';
62
  echo '<li>';
63
+ _e('Drag the widgets you want to use to the shortcodes sidebar.', 'amr-shortcode-any-widget');
64
 
65
  echo '</li>';
66
  echo '<li>';
67
+ _e('Set the widgets parameters if there are any.', 'amr-shortcode-any-widget');
68
  echo '</li>';
69
  echo '<li>';
70
+ _e('You could test the widgets out in a displayable widget area (sidebar/footer), then drag them to the widgets_for_shortcodes sidebar.', 'amr-shortcode-any-widget');
71
 
72
  echo '</li>';
73
  echo '<li>';
74
  echo '<a title="Go to widget area" href="'.get_admin_url('','widgets.php').'"> ';
75
+ _e('Go to widgets', 'amr-shortcode-any-widget');
76
  echo '</a>';
77
  echo '</li>';
78
  echo '</ul>';
79
 
80
  echo '<h2>';
81
+ _e('To add a widget area - all widgets in the widget area:', 'amr-shortcode-any-widget');
82
 
83
  echo '</h2>';
84
  echo '<ul>';
86
  echo '<a title="Create a page" href="'
87
  .add_query_arg('content','[do_widget_area]', get_admin_url('','post-new.php?post_type=page'))
88
  .'"> ';
89
+ _e('Create a page with do_widget_area shortcode without the widget_area class', 'amr-shortcode-any-widget');
90
  echo '</a> Hoping to avoid theme styling.';
91
  echo '</li>';
92
  echo '<li>';
93
  echo '<a title="Create a page" href="'
94
  .add_query_arg('content','[do_widget_area widget_area_class=none]', get_admin_url('','post-new.php?post_type=page'))
95
  .'"> ';
96
+ _e('Create a page with do_widget_area shortcode', 'amr-shortcode-any-widget');
97
  echo '</a> Hoping to use theme styling.';
98
  echo '</li>';
99
  echo '<li>';
100
+ _e('Examples:', 'amr-shortcode-any-widget');
101
  echo '</li>';
102
  echo '<li>';
103
+ _e('[do_widget_area] or [do_widget_area widget_area=sidebar-1]', 'amr-shortcode-any-widget');
104
  echo '</li>';
105
  echo '<li>';
106
+ _e('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.', 'amr-shortcode-any-widget');
107
  echo '</li>';
108
  echo '</ul>';
109
  echo '<br />';
110
 
111
  echo '<h2>';
112
+ _e('To add a single widget to a page', 'amr-shortcode-any-widget');
113
  echo '</h2>';
114
  echo '<ul>';
115
  echo '<li>';
116
+ _e('Add the shortcode [do_widget widgetname] to a page.', 'amr-shortcode-any-widget');
117
+ _e('Examples:', 'amr-shortcode-any-widget');
118
  echo '</li>';
119
  echo '<li>';
120
+ _e('[do_widget "tag cloud"] or [do_widget id=widgetid]', 'amr-shortcode-any-widget');
121
  echo '</li>';
122
  echo '<li>';
123
  echo '<a title="Create a page" href="'
124
  .add_query_arg('content','[do_widget Archives widget_classes=none]', get_admin_url('','post-new.php?post_type=page'))
125
  .'"> ';
126
+ _e('Create a page with do_widget shortcode and remove widget_classes', 'amr-shortcode-any-widget');
127
  echo '</a>';
128
  echo '</li>';
129
  echo '<li>';
130
  echo '<a title="Create a page" href="'
131
  .add_query_arg('content','[do_widget Archives]', get_admin_url('','post-new.php?post_type=page'))
132
  .'"> ';
133
+ _e('Create a page with do_widget shortcode', 'amr-shortcode-any-widget');
134
  echo '</a>';
135
  echo '</li>';
136
  echo '<li>';
171
  * Info box with link to the support forums.
172
  */
173
  function plugin_support() {
174
+ $content = '<p>'.__('If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the','amr-shortcode-any-widget').' <a href="http://wordpress.org/tags/'.$this->hook.'">'.__("Support forums",'amr-shortcode-any-widget').'</a>.</p>';
175
  $this->postbox($this->hook.'support', 'Need support?', $content);
176
  }
177
 
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" ] or include a whole widget area [do_widget_area]. If upgrading see changelog. Can be very powerful eg: with queryposts widget it can become a templater.
6
  Author: anmari
7
- Version: 2.3
8
  Author URI: http://webdesign.anmari.com
9
 
10
  */
@@ -303,7 +303,7 @@ if ( function_exists('register_sidebar') ) { // maybe later, get the first mai
303
  $args = array(
304
  'name' =>'Widgets for Shortcodes',
305
  'id' => 'widgets_for_shortcodes', // hope to avoid losing widgets
306
- 'description' => '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.',
307
  'before_widget' => '<aside'.' id="%1$s" class="%2$s ">', // 201402 to match twentyfourteen theme
308
  'after_widget' => '</aside>',
309
  'before_title' => '<h1 class="widget-title" >', // 201402 maybe dont use widget class - we are in content here not in a widget area but others want the widget styling. ?
@@ -339,5 +339,10 @@ add_shortcode('do_widget', 'do_widget');
339
  add_shortcode('do_widget_area', 'do_widget_area'); // just dump the whole widget area - to get same styling
340
 
341
  //require_once(ABSPATH . 'wp-includes/widgets.php'); // *** do we really need this here?
342
-
 
 
 
 
 
343
  ?>
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" ] or include a whole widget area [do_widget_area]. If upgrading see changelog. Can be very powerful eg: with queryposts widget it can become a templater.
6
  Author: anmari
7
+ Version: 2.4
8
  Author URI: http://webdesign.anmari.com
9
 
10
  */
303
  $args = array(
304
  'name' =>'Widgets for Shortcodes',
305
  'id' => 'widgets_for_shortcodes', // hope to avoid losing widgets
306
+ 'description' => __('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.','amr-shortcode-any-widget'),
307
  'before_widget' => '<aside'.' id="%1$s" class="%2$s ">', // 201402 to match twentyfourteen theme
308
  'after_widget' => '</aside>',
309
  'before_title' => '<h1 class="widget-title" >', // 201402 maybe dont use widget class - we are in content here not in a widget area but others want the widget styling. ?
339
  add_shortcode('do_widget_area', 'do_widget_area'); // just dump the whole widget area - to get same styling
340
 
341
  //require_once(ABSPATH . 'wp-includes/widgets.php'); // *** do we really need this here?
342
+ function amr_saw_load_text() {
343
+ // wp (see l10n.php) will check wp-content/languages/plugins if nothing found in plugin dir
344
+ $result = load_plugin_textdomain( 'amr-shortcode-any-widget', false,
345
+ dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
346
+ }
347
+ add_action('plugins_loaded' , 'amr_saw_load_text' );
348
  ?>
languages/amr-shortcode-any-widget-en_AU.mo ADDED
Binary file
languages/amr-shortcode-any-widget-en_AU.po ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ 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"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
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
+
languages/amr-shortcode-any-widget-sr_RS.mo ADDED
Binary file
languages/amr-shortcode-any-widget-sr_RS.po ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: amr shortcode any widget v2.4\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/amr-shortcode-any-widget\n"
5
+ "POT-Creation-Date: 2014-09-10 04:32:05+00:00\n"
6
+ "PO-Revision-Date: 2015-02-05 07:22:13+0000\n"
7
+ "Last-Translator: Borisa Djuraskovic <borisad@webhostinghub.com>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: Poedit 1.5.7\n"
14
+ "X-Poedit-Language: \n"
15
+ "X-Poedit-Country: \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"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: amr-admin-form-html.php:37
24
+ #@ amr-shortcode-any-widget
25
+ msgid "Settings"
26
+ msgstr "Podešavanja"
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 "Prevucite widget-e koje želite da koristite u shortcode bočni meni. "
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 "Podesite parametre widget-a ako ih ima."
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 "Možete da testirate widget-e u widget oblasti za prikazivanje (bočni meni/podnožje), a zatim ih prevucite u widgets_for_shortcodes bočni meni. "
42
+
43
+ #: amr-admin-form-html.php:75
44
+ #@ amr-shortcode-any-widget
45
+ msgid "Go to widgets"
46
+ msgstr "Idite na widget-e"
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 "Da biste sve widget-e dodali u widget oblast:"
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 "Kreirajte stranicu uz shortcode do_widget_area, ali bez widget_area klase"
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 "Kreirajte stranicu uz do_widget_area shortcode"
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 "Primeri:"
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 "[do_widget_area] ili [do_widget_area widget_area=sidebar-1]"
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 "Zapamtite: Koristite li nešto poput 2014 teme? Možete završiti sa belim tekstom na beloj pozadini. Uzmite klase widget-a ili html sa preloma ili iz naslova. Ako to ne uspe, prilagodite svoj css."
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 "Da biste dodali pojedinačni widget stranici"
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 "Dodajte shortcode [do_widget widgetname] stranici."
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 "[do_widget \"tag cloud\"] ili [do_widget id=widgetid]"
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 "Kreirajte stranicu uz pomoć do_widget shortcode i remove widget_classes"
98
+
99
+ #: amr-admin-form-html.php:133
100
+ #@ amr-shortcode-any-widget
101
+ msgid "Create a page with do_widget shortcode"
102
+ msgstr "Kreirajte stranicu koristeći do_widget shortcode"
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 "Ako imate bilo kakvih problema s ovim plugin-om ili dobre ideje za poboljšanja, odnosno, nove funkcionalnosti, pričajte o njima na"
108
+
109
+ #: amr-admin-form-html.php:174
110
+ #@ amr-shortcode-any-widget
111
+ msgid "Support forums"
112
+ msgstr "Forumima za podršku"
113
+
languages/amr-shortcode-any-widget.pot ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
113
+ msgid "anmari"
114
+ msgstr ""
115
+
116
+ #. Author URI of the plugin/theme
117
+ msgid "http://webdesign.anmari.com"
118
+ msgstr ""
readme.txt CHANGED
@@ -2,31 +2,31 @@
2
  Contributors: anmari
3
  Tags: shortcode, widget, page, templates, page template, widget_area, sidebar
4
  Tested up to: 4.0
5
- Version: 2.3
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
- The Widget settings are specified in a specially created sidebar called "widgets for shortcode". This means you have the full widget settings avaiabled just like you normally setup a widget.. Setup the widget first in a normal sidebar, then drag it into the widgets sidebar. These settings will be saved even if you change your theme. The widgets for shortcode sidebar will remember it self and recreate itself if you change themes.
12
 
13
- You can reference a specific widget instance from the do_widget shortcode, or the chosen sidebar from the do_widget_area shortcode.
14
 
15
  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/)
16
 
17
- The plugins default action is that it will magically find the settings for your themes first sidebar and use them to control the widget's output. In most cases this would mean that the widget will be styled as per the rest of your theme.
18
-
19
- If that does not look good, parameters exist to override this behaviour.
20
 
21
  Change your theme? 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. Check this still looks nice please! in some themes you may ned up with white text on a white background and will then have to override or change css.
22
 
23
- **Instructions:**
 
 
24
 
25
- 1. Test your chosen widget works in a normal sidebar or widget area first.
26
- 2. Then Activate this plugin
27
  3. Go to Appearance > widgets and find the " widgets for shortcode" sidebar or widget area
28
- 4. Drag your chosen widgets from to the shortcodes sidebar. Save.
29
- 5. Go the shortcode any widget settings. Click on one of the create page links to help you setup the shortcode.
30
  6. OR go to an existing page and enter a shortcode:
31
 
32
  [do_widget widgetname] eg: [do_widget calendar]
@@ -35,12 +35,13 @@ Change your theme? No problem, the plugin will save and restore the widgets_for_
35
 
36
  [do_widget_area] (will use the "widgets in shortcodes" widget area / sidebar
37
  [do_widget_area sidebarname] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.
38
-
39
- 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 widgete area will not work. Go that ?
40
-
41
  7. If the plugin cannot work out what you want and you are logged in as an administrator, it will show a debug prompt to you, the logged in admin only.
42
  Click on the link 'Try debug'. It will produce a bunch of info. Look for the id of your widget in the shortcodes sidebar (you may have to scroll through a lot of debug info). Try using the widget id - ie [do_widget id=somename-n]. Examples are tag-cloud-3, meta-2 etc. Sometimes the widget name that wordpress calls it internally is not the same as what you see on the screen and you will need the 'debug' to find the id.
43
 
 
 
 
44
  **[do_widget ...] Parameters:**
45
 
46
  * *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 bethe first parameter then.
@@ -57,7 +58,8 @@ Click on the link 'Try debug'. It will produce a bunch of info. Look for the id
57
  * widget_area_class=none /* option to remove theme styling by removing the widget_area class from the sidebar html */
58
  * widget_classes=none /* option to remove the widget class from the widget wrappinghtml
59
  * 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.
60
-
 
61
 
62
  See the settings page for links to help your create the shortcodes in a page.
63
 
@@ -68,6 +70,8 @@ The plugin has been tested with most standard widgets (rss feeds, tag cloud, pag
68
 
69
  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).
70
 
 
 
71
  If you liked this plugin, you might also like my other plugins:
72
  [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)
73
  [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/)
@@ -76,7 +80,7 @@ If you liked this plugin, you might also like my other plugins:
76
 
77
  **Widget help, the widget is doing this, when it should do that**
78
 
79
- Please see
80
  http://wordpress.org/support/topic/widget-help-settings-functioning-etc?replies=1
81
 
82
 
@@ -124,10 +128,14 @@ You may have undesired effects applying that do not work in the main content are
124
  You may have desired effects not applying because the css is specific to a themes sidebar.
125
 
126
  Via the plugin you can do the following to affect styling:
127
- * 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]
128
- * Hardcode away from your themes html for widgets and widget title. EG: if your theme uses aside and h2, you could specify: [do_widget *widgetname* widget_classes=none wrap=div title=h3]. By default the plugin will use whatever your first sidebar uses. This will change if you change themes, but only if you have NOT overridden the html with wrap and title.
129
- * Apply an existing class in your theme. Use [do_widget *widgetname* class=*yourclass*].
130
- * Use the addition class 'amr-widget' provided to specify alternate css in your themes stylesheet or with something like wordpress custom css.
 
 
 
 
131
 
132
  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.
133
 
@@ -139,7 +147,7 @@ It also depends on what the original widget plugin does with css and js. It may
139
 
140
  For example: An unwanted effect could be white text on a white background as in the twenty fourteen theme.
141
 
142
- If you have an undesired effect with the default setings:
143
 
144
  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.
145
 
@@ -174,6 +182,9 @@ More info on background: http://wordpress.org/support/topic/your-theme-your-side
174
 
175
 
176
  == Changelog ==
 
 
 
177
  = Version 2.3 =
178
  * Fixed some widget area class options that were not working.
179
  * 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.
@@ -230,20 +241,7 @@ More info on background: http://wordpress.org/support/topic/your-theme-your-side
230
  = 1.0 =
231
  * Launch of the plugin
232
 
233
- == Installation ==
234
-
235
- 0. Activate plugin
236
- 1. Goto Appearance > widgets and find "shortcode" sidebar
237
- 1. Drag chosen widgets to shortcodes sidebar. Save. (note the names)
238
- 2. Add [do_widget widgetname] in a page or post or [do_widget_area]
239
- 3. If it fails, it will offer a debug prompt to logged-in admin, click on the debug prompt and look for the id of your widget, use that.
240
- 4. To force a debug anyway without waiting for an error, then be logged in as admin and on the page where you have a [do_widget something] shortcode, add ?do_widget_debug=1 to the url , hit enter and look for the list of widget ids that are in the widgets_for_shortcode sidebar.
241
 
242
- Or can use [do_widget widgetname] within the text in the page and save. If the widget name has a space in it, use [do_widget "widget name"].
243
-
244
- If you use a widget more than once for different shortcodes, you can use the widget id to isolate which widget instance (and of course associated settings to use). ie: [do_widget id=categories-6]
245
- For detailed instructions on shortcodes and their parameters, see the [home page](http://wordpress.org/plugins/amr-shortcode-any-widget/)
246
-
247
 
248
 
249
  == Screenshots ==
2
  Contributors: anmari
3
  Tags: shortcode, widget, page, templates, page template, widget_area, sidebar
4
  Tested up to: 4.0
5
+ Version: 2.4
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. THEN Drag your chosen widgets to the sidebar called "widgets for shortcode". These settings will be saved even if you change your theme. The widgets for shortcode sidebar will recreate itself if you change themes.
12
 
13
+ If you need more control, you can reference a specific widget instance from the do_widget shortcode, or the chosen sidebar from the do_widget_area shortcode.
14
 
15
  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/)
16
 
17
+ The plugins default action is that it will magically find the settings for your themes first sidebar and use them to control the widget's output. In most cases this would mean that the widget will be styled as per the rest of your theme. If that does not look good, parameters exist to override this behaviour.
 
 
18
 
19
  Change your theme? 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. Check this still looks nice please! in some themes you may ned up with white text on a white background and will then have to override or change css.
20
 
21
+ Please read https://wordpress.org/plugins/amr-shortcode-any-widget/installation/ before asking any questions.
22
+
23
+ == Installation ==
24
 
25
+ 1. Test your chosen widget works in a normal sidebar or widget area first. Make sure it works.
26
+ 2. THEN Activate this plugin
27
  3. Go to Appearance > widgets and find the " widgets for shortcode" sidebar or widget area
28
+ 4. Drag your chosen widgets from your normal sidebar to the shortcodes sidebar. Save.
29
+ 5. Either Go the shortcode any widget settings. Click on one of the create page links to help you setup the shortcode in a new page.
30
  6. OR go to an existing page and enter a shortcode:
31
 
32
  [do_widget widgetname] eg: [do_widget calendar]
35
 
36
  [do_widget_area] (will use the "widgets in shortcodes" widget area / sidebar
37
  [do_widget_area sidebarname] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.
38
+
 
 
39
  7. If the plugin cannot work out what you want and you are logged in as an administrator, it will show a debug prompt to you, the logged in admin only.
40
  Click on the link 'Try debug'. It will produce a bunch of info. Look for the id of your widget in the shortcodes sidebar (you may have to scroll through a lot of debug info). Try using the widget id - ie [do_widget id=somename-n]. Examples are tag-cloud-3, meta-2 etc. Sometimes the widget name that wordpress calls it internally is not the same as what you see on the screen and you will need the 'debug' to find the id.
41
 
42
+ **STOP - Do not read any further until you have got the basics working.**
43
+
44
+
45
  **[do_widget ...] Parameters:**
46
 
47
  * *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 bethe first parameter then.
58
  * widget_area_class=none /* option to remove theme styling by removing the widget_area class from the sidebar html */
59
  * widget_classes=none /* option to remove the widget class from the widget wrappinghtml
60
  * 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.
61
+
62
+ 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. Got that ?
63
 
64
  See the settings page for links to help your create the shortcodes in a page.
65
 
70
 
71
  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).
72
 
73
+ See also [home page](http://wordpress.org/plugins/amr-shortcode-any-widget/)
74
+
75
  If you liked this plugin, you might also like my other plugins:
76
  [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)
77
  [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/)
80
 
81
  **Widget help, the widget is doing this, when it should do that**
82
 
83
+ There are 1000's of widgets. I cannot help you with these. Please get it working first in a normal sidebar without this plugin. Please see
84
  http://wordpress.org/support/topic/widget-help-settings-functioning-etc?replies=1
85
 
86
 
128
  You may have desired effects not applying because the css is specific to a themes sidebar.
129
 
130
  Via the plugin you can do the following to affect styling:
131
+
132
+ * 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]
133
+
134
+ * Hardcode away from your themes html for widgets and widget title. EG: if your theme uses aside and h2, you could specify: [do_widget *widgetname* widget_classes=none wrap=div title=h3]. By default the plugin will use whatever your first sidebar uses. This will change if you change themes, but only if you have NOT overridden the html with wrap and title.
135
+
136
+ * Apply an existing class in your theme. Use [do_widget *widgetname* class=*yourclass*].
137
+
138
+ * Use the additional class 'amr-widget' provided to specify alternate css in your themes stylesheet or with something like wordpress custom css.
139
 
140
  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.
141
 
147
 
148
  For example: An unwanted effect could be white text on a white background as in the twenty fourteen theme.
149
 
150
+ ** If you have an undesired styling effect with the default settings: **
151
 
152
  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.
153
 
182
 
183
 
184
  == Changelog ==
185
+ = Version 2.4 =
186
+ * Tested on 4.1, Cleaned up the readme, Lang file for info page - most texts.
187
+
188
  = Version 2.3 =
189
  * Fixed some widget area class options that were not working.
190
  * 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.
241
  = 1.0 =
242
  * Launch of the plugin
243
 
 
 
 
 
 
 
 
 
244
 
 
 
 
 
 
245
 
246
 
247
  == Screenshots ==