Version Description
- Allow sidebars to show in the WordPress Posts page.
Download this release
Release Info
Developer | nathanrice |
Plugin | Genesis Simple Sidebars |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- genesis-simple-sidebars.php +1 -1
- includes/class-genesis-simple-sidebars-core.php +6 -4
- languages/genesis-simple-sidebars.pot +72 -48
- package.json +1 -1
- plugin.php +3 -3
- readme.txt +5 -2
genesis-simple-sidebars.php
CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
define( 'GENESIS_SIMPLE_SIDEBARS_SETTINGS_FIELD', 'genesis_simple_sidebars_settings' );
|
17 |
-
define( 'GENESIS_SIMPLE_SIDEBARS_VERSION', '2.2.
|
18 |
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
19 |
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
20 |
|
14 |
}
|
15 |
|
16 |
define( 'GENESIS_SIMPLE_SIDEBARS_SETTINGS_FIELD', 'genesis_simple_sidebars_settings' );
|
17 |
+
define( 'GENESIS_SIMPLE_SIDEBARS_VERSION', '2.2.1' );
|
18 |
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
19 |
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
20 |
|
includes/class-genesis-simple-sidebars-core.php
CHANGED
@@ -95,12 +95,14 @@ class Genesis_Simple_Sidebars_Core {
|
|
95 |
|
96 |
$sidebars = array();
|
97 |
|
98 |
-
if ( is_singular() ) {
|
|
|
|
|
99 |
|
100 |
$sidebars = array(
|
101 |
-
'sidebar' => genesis_get_custom_field( '_ss_sidebar' ),
|
102 |
-
'sidebar-alt' => genesis_get_custom_field( '_ss_sidebar_alt' ),
|
103 |
-
'header-right' => genesis_get_custom_field( '_ss_header' ),
|
104 |
);
|
105 |
|
106 |
}
|
95 |
|
96 |
$sidebars = array();
|
97 |
|
98 |
+
if ( is_singular() || is_home() && isset( get_queried_object()->ID ) ) {
|
99 |
+
|
100 |
+
$post_id = get_queried_object()->ID;
|
101 |
|
102 |
$sidebars = array(
|
103 |
+
'sidebar' => genesis_get_custom_field( '_ss_sidebar', $post_id ),
|
104 |
+
'sidebar-alt' => genesis_get_custom_field( '_ss_sidebar_alt', $post_id ),
|
105 |
+
'header-right' => genesis_get_custom_field( '_ss_header', $post_id ),
|
106 |
);
|
107 |
|
108 |
}
|
languages/genesis-simple-sidebars.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the GNU General Public License v2.0 (or later).
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Genesis Simple Sidebars 2.
|
6 |
"Report-Msgid-Bugs-To: StudioPress <translations@studiopress.com>\n"
|
7 |
-
"POT-Creation-Date:
|
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:
|
12 |
"Last-Translator: StudioPress <translations@studiopress.com>\n"
|
13 |
"Language-Team: English <translations@studiopress.com>\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.4.4\n"
|
@@ -24,132 +24,156 @@ msgstr ""
|
|
24 |
"X-Poedit-SearchPath-0: .\n"
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
|
27 |
-
#: includes/admin.php:
|
|
|
28 |
msgid "Genesis - Simple Sidebars"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: includes/admin.php:
|
32 |
msgid "Simple Sidebars"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: includes/admin.php:
|
36 |
msgid "Edit"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: includes/admin.php:
|
40 |
msgid "Delete"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/admin.php:
|
44 |
msgid "New sidebar successfully created!"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/admin.php:
|
48 |
msgid "Sidebar successfully edited!"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: includes/admin.php:
|
52 |
msgid "Sidebar successfully deleted."
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: includes/admin.php:
|
56 |
-
msgid "Oops! Please choose a valid Name
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: includes/admin.php:
|
60 |
msgid "Oops! That sidebar ID already exists"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/admin.php:
|
64 |
msgid ""
|
65 |
"Oops! You are trying to edit a sidebar that does not exist, or is not "
|
66 |
"editable"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: includes/admin.php:
|
70 |
msgid ""
|
71 |
"Oops! You are trying to delete a sidebar that does not exist, or cannot be "
|
72 |
"deleted"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: includes/admin.php:
|
76 |
msgid "Oops! Something went wrong. Try again."
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/
|
80 |
msgid "Sidebar Selection"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: includes/
|
84 |
-
|
85 |
-
msgid "Default"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: includes/
|
89 |
-
msgid "
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/
|
97 |
-
msgid "
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/views/edit.php:
|
101 |
msgid "Nice try, partner. But that sidebar doesn't exist. Click back and try again."
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: includes/views/edit.php:
|
105 |
msgid "Edit Sidebar"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: includes/views/edit.php:
|
109 |
-
#: includes/views/main.php:
|
110 |
msgid "Name"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: includes/views/edit.php:
|
114 |
msgid "A recognizable name for your new sidebar widget area"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: includes/views/edit.php:
|
118 |
-
#: includes/views/main.php:
|
119 |
msgid "ID"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: includes/views/edit.php:
|
123 |
msgid ""
|
124 |
"The unique ID is used to register the sidebar widget area (cannot be "
|
125 |
"changed)"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/views/edit.php:
|
129 |
-
#: includes/views/main.php:
|
130 |
msgid "Description"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: includes/views/edit.php:
|
134 |
msgid "Update"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: includes/views/main.php:
|
138 |
msgid "Current Sidebars"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: includes/views/main.php:
|
142 |
msgid "Add New Sidebar"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: includes/views/main.php:
|
146 |
msgid "The unique ID is used to register the sidebar widget area"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#:
|
150 |
-
|
151 |
-
|
152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
msgstr ""
|
154 |
|
155 |
#. Plugin Name of the plugin/theme
|
@@ -157,7 +181,7 @@ msgid "Genesis Simple Sidebars"
|
|
157 |
msgstr ""
|
158 |
|
159 |
#. Plugin URI of the plugin/theme
|
160 |
-
msgid "
|
161 |
msgstr ""
|
162 |
|
163 |
#. Description of the plugin/theme
|
@@ -167,9 +191,9 @@ msgid ""
|
|
167 |
msgstr ""
|
168 |
|
169 |
#. Author of the plugin/theme
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
#. Author URI of the plugin/theme
|
174 |
-
msgid "
|
175 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 StudioPress
|
2 |
# This file is distributed under the GNU General Public License v2.0 (or later).
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Genesis Simple Sidebars 2.2.1\n"
|
6 |
"Report-Msgid-Bugs-To: StudioPress <translations@studiopress.com>\n"
|
7 |
+
"POT-Creation-Date: 2019-07-05 14:42:22+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: StudioPress <translations@studiopress.com>\n"
|
13 |
"Language-Team: English <translations@studiopress.com>\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.4.4\n"
|
24 |
"X-Poedit-SearchPath-0: .\n"
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
|
27 |
+
#: includes/class-genesis-simple-sidebars-admin.php:54
|
28 |
+
#: includes/views/admin-main.php:10
|
29 |
msgid "Genesis - Simple Sidebars"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: includes/class-genesis-simple-sidebars-admin.php:55
|
33 |
msgid "Simple Sidebars"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: includes/class-genesis-simple-sidebars-admin.php:133
|
37 |
msgid "Edit"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: includes/class-genesis-simple-sidebars-admin.php:134
|
41 |
msgid "Delete"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: includes/class-genesis-simple-sidebars-admin.php:203
|
45 |
msgid "New sidebar successfully created!"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: includes/class-genesis-simple-sidebars-admin.php:208
|
49 |
msgid "Sidebar successfully edited!"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: includes/class-genesis-simple-sidebars-admin.php:213
|
53 |
msgid "Sidebar successfully deleted."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: includes/class-genesis-simple-sidebars-admin.php:362
|
57 |
+
msgid "Oops! Please choose a valid Name for this sidebar"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: includes/class-genesis-simple-sidebars-admin.php:364
|
61 |
msgid "Oops! That sidebar ID already exists"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: includes/class-genesis-simple-sidebars-admin.php:366
|
65 |
msgid ""
|
66 |
"Oops! You are trying to edit a sidebar that does not exist, or is not "
|
67 |
"editable"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: includes/class-genesis-simple-sidebars-admin.php:368
|
71 |
msgid ""
|
72 |
"Oops! You are trying to delete a sidebar that does not exist, or cannot be "
|
73 |
"deleted"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: includes/class-genesis-simple-sidebars-admin.php:370
|
77 |
msgid "Oops! Something went wrong. Try again."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: includes/class-genesis-simple-sidebars-entry.php:33
|
81 |
msgid "Sidebar Selection"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: includes/class-genesis-simple-sidebars.php:99
|
85 |
+
msgid "upgrade to"
|
|
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: includes/class-genesis-simple-sidebars.php:99
|
89 |
+
msgid "install and activate"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/class-genesis-simple-sidebars.php:102
|
93 |
+
#. translators: %1$s is WordPress minimum version, %2$s is Genesis minimum
|
94 |
+
#. version, %3$s is action and %4$s is link.
|
95 |
+
msgid ""
|
96 |
+
"Genesis Simple Sidebars requires WordPress %1$s and Genesis %2$s, or "
|
97 |
+
"greater. Please %3$s the latest version of <a href=\"%4$s\" "
|
98 |
+
"target=\"_blank\">Genesis</a> to use this plugin."
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/deprecated.php:68
|
102 |
+
msgid "dynamic_sidebar() with sidebars_widget filter"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/views/admin-edit.php:14
|
106 |
msgid "Nice try, partner. But that sidebar doesn't exist. Click back and try again."
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/views/admin-edit.php:18
|
110 |
msgid "Edit Sidebar"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: includes/views/admin-edit.php:26 includes/views/admin-main.php:21
|
114 |
+
#: includes/views/admin-main.php:29 includes/views/admin-main.php:56
|
115 |
msgid "Name"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: includes/views/admin-edit.php:28 includes/views/admin-main.php:58
|
119 |
msgid "A recognizable name for your new sidebar widget area"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: includes/views/admin-edit.php:32 includes/views/admin-main.php:22
|
123 |
+
#: includes/views/admin-main.php:30 includes/views/admin-main.php:62
|
124 |
msgid "ID"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: includes/views/admin-edit.php:37
|
128 |
msgid ""
|
129 |
"The unique ID is used to register the sidebar widget area (cannot be "
|
130 |
"changed)"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/views/admin-edit.php:41 includes/views/admin-main.php:23
|
134 |
+
#: includes/views/admin-main.php:31 includes/views/admin-main.php:68
|
135 |
msgid "Description"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: includes/views/admin-edit.php:47
|
139 |
msgid "Update"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: includes/views/admin-main.php:17
|
143 |
msgid "Current Sidebars"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: includes/views/admin-main.php:50 includes/views/admin-main.php:72
|
147 |
msgid "Add New Sidebar"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: includes/views/admin-main.php:64
|
151 |
msgid "The unique ID is used to register the sidebar widget area"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: includes/views/entry-metabox-content.php:16
|
155 |
+
#: includes/views/entry-metabox-content.php:32
|
156 |
+
#: includes/views/entry-metabox-content.php:48
|
157 |
+
#: includes/views/term-edit-sidebar-form.php:19
|
158 |
+
#: includes/views/term-edit-sidebar-form.php:34
|
159 |
+
#: includes/views/term-edit-sidebar-form.php:49
|
160 |
+
msgid "Default"
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#: includes/views/term-edit-sidebar-form.php:11
|
164 |
+
msgid "Sidebar Options"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: includes/views/term-edit-sidebar-form.php:16
|
168 |
+
msgid "Header Right"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: includes/views/term-edit-sidebar-form.php:31
|
172 |
+
msgid "Primary Sidebar"
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: includes/views/term-edit-sidebar-form.php:46
|
176 |
+
msgid "Secondary Sidebar"
|
177 |
msgstr ""
|
178 |
|
179 |
#. Plugin Name of the plugin/theme
|
181 |
msgstr ""
|
182 |
|
183 |
#. Plugin URI of the plugin/theme
|
184 |
+
msgid "https://github.com/studiopress/genesis-simple-sidebars"
|
185 |
msgstr ""
|
186 |
|
187 |
#. Description of the plugin/theme
|
191 |
msgstr ""
|
192 |
|
193 |
#. Author of the plugin/theme
|
194 |
+
msgid "StudioPress"
|
195 |
msgstr ""
|
196 |
|
197 |
#. Author URI of the plugin/theme
|
198 |
+
msgid "https://www.studiopress.com/"
|
199 |
msgstr ""
|
package.json
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
"description": "Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
-
"version": "2.
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "genesis-simple-sidebars"
|
29 |
"description": "Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
+
"version": "2.2.1",
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "genesis-simple-sidebars"
|
plugin.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Genesis Simple Sidebars
|
4 |
-
* Plugin URI: https://github.com/
|
5 |
* Description: Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.
|
6 |
-
* Version: 2.2.
|
7 |
* Author: StudioPress
|
8 |
-
* Author URI:
|
9 |
* License: GNU General Public License v2.0 (or later)
|
10 |
* License URI: https://www.opensource.org/licenses/gpl-license.php
|
11 |
*
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Genesis Simple Sidebars
|
4 |
+
* Plugin URI: https://github.com/studiopress/genesis-simple-sidebars
|
5 |
* Description: Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.
|
6 |
+
* Version: 2.2.1
|
7 |
* Author: StudioPress
|
8 |
+
* Author URI: https://www.studiopress.com/
|
9 |
* License: GNU General Public License v2.0 (or later)
|
10 |
* License URI: https://www.opensource.org/licenses/gpl-license.php
|
11 |
*
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: nathanrice, wpmuguru, marksabbath
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
4 |
Tags: hooks, genesis, genesiswp, studiopress
|
5 |
Requires at least: 4.7.3
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.2.
|
8 |
|
9 |
This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Framework on a per post, per page, or per tag/category archive basis.
|
10 |
|
@@ -37,6 +37,9 @@ Not in the way you're probably thinking. The markup surrounding the widget area
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
40 |
= 2.2.0 =
|
41 |
* Fixed coding standards errors.
|
42 |
* Introduced coding standards validation.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
4 |
Tags: hooks, genesis, genesiswp, studiopress
|
5 |
Requires at least: 4.7.3
|
6 |
+
Tested up to: 5.2.2
|
7 |
+
Stable tag: 2.2.1
|
8 |
|
9 |
This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Framework on a per post, per page, or per tag/category archive basis.
|
10 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 2.2.1 =
|
41 |
+
* Allow sidebars to show in the WordPress Posts page.
|
42 |
+
|
43 |
= 2.2.0 =
|
44 |
* Fixed coding standards errors.
|
45 |
* Introduced coding standards validation.
|