Version Description
- Change text domain, update POT file.
Download this release
Release Info
Developer | studiopress |
Plugin | Genesis Simple Sidebars |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- Gruntfile.js +101 -0
- includes/admin.php +15 -13
- includes/inpost.php +3 -3
- includes/term.php +5 -5
- includes/views/edit.php +8 -8
- includes/views/main.php +15 -15
- languages/{ss-de_DE.mo → genesis-simple-sidebars-de_DE.mo} +0 -0
- languages/{ss-de_DE.po → genesis-simple-sidebars-de_DE.po} +0 -0
- languages/genesis-simple-sidebars.pot +175 -0
- languages/ss.po +0 -148
- package.json +37 -0
- plugin.php +4 -4
- readme.txt +31 -26
Gruntfile.js
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'use strict';
|
2 |
+
|
3 |
+
module.exports = function(grunt) {
|
4 |
+
|
5 |
+
// Load tasks
|
6 |
+
require('load-grunt-tasks')(grunt);
|
7 |
+
|
8 |
+
grunt.initConfig({
|
9 |
+
pkg: grunt.file.readJSON('package.json'),
|
10 |
+
|
11 |
+
|
12 |
+
// Dependencies
|
13 |
+
|
14 |
+
// PHP
|
15 |
+
|
16 |
+
// Lint .php files for syntax errors
|
17 |
+
phplint: {
|
18 |
+
all: [ '*.php', 'lib/**/*.php' ]
|
19 |
+
},
|
20 |
+
|
21 |
+
|
22 |
+
// I18n
|
23 |
+
|
24 |
+
// Add text domain as last argument of i18n functions
|
25 |
+
addtextdomain: {
|
26 |
+
php: {
|
27 |
+
options: {
|
28 |
+
updateDomains: true
|
29 |
+
},
|
30 |
+
target: {
|
31 |
+
files: {
|
32 |
+
src: [
|
33 |
+
'*.php',
|
34 |
+
'lib/**/*.php'
|
35 |
+
]
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
},
|
40 |
+
|
41 |
+
// Check text domain is last argument of i18n functions
|
42 |
+
checktextdomain: {
|
43 |
+
options: {
|
44 |
+
text_domain: '<%= pkg.name %>',
|
45 |
+
keywords: [
|
46 |
+
'__:1,2d',
|
47 |
+
'_e:1,2d',
|
48 |
+
'_x:1,2c,3d',
|
49 |
+
'_ex:1,2c,3d',
|
50 |
+
'_n:1,2,4d',
|
51 |
+
'_nx:1,2,4c,5d',
|
52 |
+
'_n_noop:1,2,3d',
|
53 |
+
'_nx_noop:1,2,3c,4d',
|
54 |
+
'esc_attr__:1,2d',
|
55 |
+
'esc_html__:1,2d',
|
56 |
+
'esc_attr_e:1,2d',
|
57 |
+
'esc_html_e:1,2d',
|
58 |
+
'esc_attr_x:1,2c,3d',
|
59 |
+
'esc_html_x:1,2c,3d'
|
60 |
+
]
|
61 |
+
},
|
62 |
+
files: {
|
63 |
+
expand: true,
|
64 |
+
src: [
|
65 |
+
'*.php',
|
66 |
+
'includes/**/*.php'
|
67 |
+
]
|
68 |
+
}
|
69 |
+
},
|
70 |
+
|
71 |
+
|
72 |
+
// Build language .pot file
|
73 |
+
makepot: {
|
74 |
+
plugin: {
|
75 |
+
options: {
|
76 |
+
domainPath: '/languages',
|
77 |
+
processPot: function( pot ) {
|
78 |
+
pot.headers['report-msgid-bugs-to'] = 'StudioPress <translations@studiopress.com>';
|
79 |
+
pot.headers['last-translator'] = 'StudioPress <translations@studiopress.com>';
|
80 |
+
pot.headers['language-team'] = 'English <translations@studiopress.com>';
|
81 |
+
pot.headers['plural-forms'] = 'nplurals=2; plural=n != 1;';
|
82 |
+
pot.headers['x-generator'] = 'grunt-wp-i18n 0.4.4';
|
83 |
+
pot.headers['x-poedit-basepath'] = '.';
|
84 |
+
pot.headers['x-poedit-language'] = 'English';
|
85 |
+
pot.headers['x-poedit-country'] = 'UNITED STATES';
|
86 |
+
pot.headers['x-poedit-sourcecharset'] = 'utf-8';
|
87 |
+
pot.headers['x-poedit-keywordslist'] = '__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;';
|
88 |
+
pot.headers['x-poedit-bookmarks'] = '';
|
89 |
+
pot.headers['x-poedit-searchpath-0'] = '.';
|
90 |
+
pot.headers['x-textdomain-support'] = 'yes';
|
91 |
+
return pot;
|
92 |
+
},
|
93 |
+
type: 'wp-plugin'
|
94 |
+
}
|
95 |
+
}
|
96 |
+
},
|
97 |
+
|
98 |
+
|
99 |
+
});
|
100 |
+
|
101 |
+
};
|
includes/admin.php
CHANGED
@@ -29,8 +29,8 @@ class Genesis_Simple_Sidebars_Admin extends Genesis_Admin_Basic {
|
|
29 |
$menu_ops = array(
|
30 |
'submenu' => array(
|
31 |
'parent_slug' => 'genesis',
|
32 |
-
'page_title' => __( 'Genesis - Simple Sidebars', '
|
33 |
-
'menu_title' => __( 'Simple Sidebars', '
|
34 |
)
|
35 |
);
|
36 |
|
@@ -104,8 +104,8 @@ class Genesis_Simple_Sidebars_Admin extends Genesis_Admin_Basic {
|
|
104 |
<?php if ( $is_editable ) : ?>
|
105 |
<br />
|
106 |
<div class="row-actions">
|
107 |
-
<span class="edit"><a href="<?php echo admin_url('admin.php?page=simple-sidebars&action=edit&id=' . esc_html( $id ) ); ?>"><?php _e('Edit', '
|
108 |
-
<span class="delete"><a class="delete-tag" href="<?php echo wp_nonce_url( admin_url( 'admin.php?page=simple-sidebars&action=delete&id=' . esc_html( $id ) ), 'simple-sidebars-action_delete-sidebar' ); ?>"><?php _e('Delete', '
|
109 |
</div>
|
110 |
<?php endif; ?>
|
111 |
|
@@ -170,17 +170,17 @@ class Genesis_Simple_Sidebars_Admin extends Genesis_Admin_Basic {
|
|
170 |
$pattern = '<div id="message" class="updated"><p><strong>%s</strong></p></div>';
|
171 |
|
172 |
if ( isset( $_REQUEST['created'] ) && 'true' === $_REQUEST['created'] ) {
|
173 |
-
printf( $pattern, __( 'New sidebar successfully created!', '
|
174 |
return;
|
175 |
}
|
176 |
|
177 |
if ( isset( $_REQUEST['edited'] ) && 'true' === $_REQUEST['edited'] ) {
|
178 |
-
printf( $pattern, __( 'Sidebar successfully edited!', '
|
179 |
return;
|
180 |
}
|
181 |
|
182 |
if ( isset( $_REQUEST['deleted'] ) && 'true' === $_REQUEST['deleted'] ) {
|
183 |
-
printf( $pattern, __( 'Sidebar successfully deleted.', '
|
184 |
return;
|
185 |
}
|
186 |
|
@@ -316,19 +316,19 @@ class Genesis_Simple_Sidebars_Admin extends Genesis_Admin_Basic {
|
|
316 |
switch( (int) $error ) {
|
317 |
|
318 |
case 1:
|
319 |
-
return __( 'Oops! Please choose a valid Name and ID for this sidebar', '
|
320 |
break;
|
321 |
case 2:
|
322 |
-
return __( 'Oops! That sidebar ID already exists', '
|
323 |
break;
|
324 |
case 3:
|
325 |
-
return __( 'Oops! You are trying to edit a sidebar that does not exist, or is not editable', '
|
326 |
break;
|
327 |
case 4:
|
328 |
-
return __( 'Oops! You are trying to delete a sidebar that does not exist, or cannot be deleted', '
|
329 |
break;
|
330 |
default:
|
331 |
-
return __( 'Oops! Something went wrong. Try again.', '
|
332 |
|
333 |
}
|
334 |
|
@@ -344,6 +344,8 @@ add_action( 'genesis_admin_menu', 'simplesidebars_settings_menu' );
|
|
344 |
*/
|
345 |
function simplesidebars_settings_menu() {
|
346 |
|
347 |
-
|
|
|
|
|
348 |
|
349 |
}
|
29 |
$menu_ops = array(
|
30 |
'submenu' => array(
|
31 |
'parent_slug' => 'genesis',
|
32 |
+
'page_title' => __( 'Genesis - Simple Sidebars', 'genesis-simple-sidebars' ),
|
33 |
+
'menu_title' => __( 'Simple Sidebars', 'genesis-simple-sidebars' )
|
34 |
)
|
35 |
);
|
36 |
|
104 |
<?php if ( $is_editable ) : ?>
|
105 |
<br />
|
106 |
<div class="row-actions">
|
107 |
+
<span class="edit"><a href="<?php echo admin_url('admin.php?page=simple-sidebars&action=edit&id=' . esc_html( $id ) ); ?>"><?php _e('Edit', 'genesis-simple-sidebars'); ?></a> | </span>
|
108 |
+
<span class="delete"><a class="delete-tag" href="<?php echo wp_nonce_url( admin_url( 'admin.php?page=simple-sidebars&action=delete&id=' . esc_html( $id ) ), 'simple-sidebars-action_delete-sidebar' ); ?>"><?php _e('Delete', 'genesis-simple-sidebars'); ?></a></span>
|
109 |
</div>
|
110 |
<?php endif; ?>
|
111 |
|
170 |
$pattern = '<div id="message" class="updated"><p><strong>%s</strong></p></div>';
|
171 |
|
172 |
if ( isset( $_REQUEST['created'] ) && 'true' === $_REQUEST['created'] ) {
|
173 |
+
printf( $pattern, __( 'New sidebar successfully created!', 'genesis-simple-sidebars' ) );
|
174 |
return;
|
175 |
}
|
176 |
|
177 |
if ( isset( $_REQUEST['edited'] ) && 'true' === $_REQUEST['edited'] ) {
|
178 |
+
printf( $pattern, __( 'Sidebar successfully edited!', 'genesis-simple-sidebars' ) );
|
179 |
return;
|
180 |
}
|
181 |
|
182 |
if ( isset( $_REQUEST['deleted'] ) && 'true' === $_REQUEST['deleted'] ) {
|
183 |
+
printf( $pattern, __( 'Sidebar successfully deleted.', 'genesis-simple-sidebars' ) );
|
184 |
return;
|
185 |
}
|
186 |
|
316 |
switch( (int) $error ) {
|
317 |
|
318 |
case 1:
|
319 |
+
return __( 'Oops! Please choose a valid Name and ID for this sidebar', 'genesis-simple-sidebars' );
|
320 |
break;
|
321 |
case 2:
|
322 |
+
return __( 'Oops! That sidebar ID already exists', 'genesis-simple-sidebars' );
|
323 |
break;
|
324 |
case 3:
|
325 |
+
return __( 'Oops! You are trying to edit a sidebar that does not exist, or is not editable', 'genesis-simple-sidebars' );
|
326 |
break;
|
327 |
case 4:
|
328 |
+
return __( 'Oops! You are trying to delete a sidebar that does not exist, or cannot be deleted', 'genesis-simple-sidebars' );
|
329 |
break;
|
330 |
default:
|
331 |
+
return __( 'Oops! Something went wrong. Try again.', 'genesis-simple-sidebars' );
|
332 |
|
333 |
}
|
334 |
|
344 |
*/
|
345 |
function simplesidebars_settings_menu() {
|
346 |
|
347 |
+
global $_genesis_simple_sidebars_admin;
|
348 |
+
|
349 |
+
$_genesis_simple_sidebars_admin = new Genesis_Simple_Sidebars_Admin;
|
350 |
|
351 |
}
|
includes/inpost.php
CHANGED
@@ -9,7 +9,7 @@ function ss_add_inpost_metabox() {
|
|
9 |
foreach ( (array) get_post_types( array( 'public' => true ) ) as $type ) {
|
10 |
|
11 |
if ( post_type_supports( $type, 'genesis-simple-sidebars' ) || $type == 'post' || $type == 'page' ) {
|
12 |
-
add_meta_box( 'ss_inpost_metabox', __( 'Sidebar Selection', '
|
13 |
}
|
14 |
|
15 |
}
|
@@ -32,7 +32,7 @@ function ss_inpost_metabox() {
|
|
32 |
<p>
|
33 |
<label class="howto" for="_ss_sidebar"><span><?php echo esc_attr( $wp_registered_sidebars['sidebar']['name'] ); ?><span></label>
|
34 |
<select name="_ss_sidebar" id="_ss_sidebar" style="width: 99%">
|
35 |
-
<option value=""><?php _e( 'Default', '
|
36 |
<?php
|
37 |
foreach ( (array) $_sidebars as $id => $info ) {
|
38 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, genesis_get_custom_field( '_ss_sidebar' ), false), esc_html( $info['name'] ) );
|
@@ -47,7 +47,7 @@ function ss_inpost_metabox() {
|
|
47 |
<p>
|
48 |
<label class="howto" for="_ss_sidebar_alt"><span><?php echo esc_attr( $wp_registered_sidebars['sidebar-alt']['name'] ); ?><span></label>
|
49 |
<select name="_ss_sidebar_alt" id="_ss_sidebar_alt" style="width: 99%">
|
50 |
-
<option value=""><?php _e( 'Default', '
|
51 |
<?php
|
52 |
foreach ( (array) $_sidebars as $id => $info ) {
|
53 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, genesis_get_custom_field( '_ss_sidebar_alt' ), false ), esc_html( $info['name'] ) );
|
9 |
foreach ( (array) get_post_types( array( 'public' => true ) ) as $type ) {
|
10 |
|
11 |
if ( post_type_supports( $type, 'genesis-simple-sidebars' ) || $type == 'post' || $type == 'page' ) {
|
12 |
+
add_meta_box( 'ss_inpost_metabox', __( 'Sidebar Selection', 'genesis-simple-sidebars' ), 'ss_inpost_metabox', $type, 'side', 'low' );
|
13 |
}
|
14 |
|
15 |
}
|
32 |
<p>
|
33 |
<label class="howto" for="_ss_sidebar"><span><?php echo esc_attr( $wp_registered_sidebars['sidebar']['name'] ); ?><span></label>
|
34 |
<select name="_ss_sidebar" id="_ss_sidebar" style="width: 99%">
|
35 |
+
<option value=""><?php _e( 'Default', 'genesis-simple-sidebars' ); ?></option>
|
36 |
<?php
|
37 |
foreach ( (array) $_sidebars as $id => $info ) {
|
38 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, genesis_get_custom_field( '_ss_sidebar' ), false), esc_html( $info['name'] ) );
|
47 |
<p>
|
48 |
<label class="howto" for="_ss_sidebar_alt"><span><?php echo esc_attr( $wp_registered_sidebars['sidebar-alt']['name'] ); ?><span></label>
|
49 |
<select name="_ss_sidebar_alt" id="_ss_sidebar_alt" style="width: 99%">
|
50 |
+
<option value=""><?php _e( 'Default', 'genesis-simple-sidebars' ); ?></option>
|
51 |
<?php
|
52 |
foreach ( (array) $_sidebars as $id => $info ) {
|
53 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, genesis_get_custom_field( '_ss_sidebar_alt' ), false ), esc_html( $info['name'] ) );
|
includes/term.php
CHANGED
@@ -27,14 +27,14 @@ function ss_term_sidebar($tag, $taxonomy) {
|
|
27 |
|
28 |
?>
|
29 |
|
30 |
-
<h3><?php _e( 'Sidebar Options', '
|
31 |
<table class="form-table">
|
32 |
|
33 |
<tr class="form-field">
|
34 |
-
<th scope="row" valign="top"><label for="genesis-meta[_ss_sidebar]"><?php _e( 'Primary Sidebar', '
|
35 |
<td>
|
36 |
<select name="genesis-meta[_ss_sidebar]" id="genesis-meta[_ss_sidebar]" style="padding-right: 10px;">
|
37 |
-
<option value=""><?php _e( 'Default', '
|
38 |
<?php
|
39 |
foreach ( (array) $_sidebars as $id => $info ) {
|
40 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, $tag->meta['_ss_sidebar'] , false), esc_html( $info['name'] ) );
|
@@ -48,10 +48,10 @@ function ss_term_sidebar($tag, $taxonomy) {
|
|
48 |
if ( ss_has_3_column_layouts() ) {
|
49 |
?>
|
50 |
<tr class="form-field">
|
51 |
-
<th scope="row" valign="top"><label for="genesis-meta[_ss_sidebar_alt]"><?php _e( 'Secondary Sidebar', '
|
52 |
<td>
|
53 |
<select name="genesis-meta[_ss_sidebar_alt]" id="genesis-meta[_ss_sidebar_alt]" style="padding-right: 10px;">
|
54 |
-
<option value=""><?php _e( 'Default', '
|
55 |
<?php
|
56 |
foreach ( (array) $_sidebars as $id => $info ) {
|
57 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, $tag->meta['_ss_sidebar_alt'] , false), esc_html( $info['name'] ) );
|
27 |
|
28 |
?>
|
29 |
|
30 |
+
<h3><?php _e( 'Sidebar Options', 'genesis-simple-sidebars' ); ?></h3>
|
31 |
<table class="form-table">
|
32 |
|
33 |
<tr class="form-field">
|
34 |
+
<th scope="row" valign="top"><label for="genesis-meta[_ss_sidebar]"><?php _e( 'Primary Sidebar', 'genesis-simple-sidebars' ); ?></label></th>
|
35 |
<td>
|
36 |
<select name="genesis-meta[_ss_sidebar]" id="genesis-meta[_ss_sidebar]" style="padding-right: 10px;">
|
37 |
+
<option value=""><?php _e( 'Default', 'genesis-simple-sidebars' ); ?></option>
|
38 |
<?php
|
39 |
foreach ( (array) $_sidebars as $id => $info ) {
|
40 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, $tag->meta['_ss_sidebar'] , false), esc_html( $info['name'] ) );
|
48 |
if ( ss_has_3_column_layouts() ) {
|
49 |
?>
|
50 |
<tr class="form-field">
|
51 |
+
<th scope="row" valign="top"><label for="genesis-meta[_ss_sidebar_alt]"><?php _e( 'Secondary Sidebar', 'genesis-simple-sidebars' ); ?></label></th>
|
52 |
<td>
|
53 |
<select name="genesis-meta[_ss_sidebar_alt]" id="genesis-meta[_ss_sidebar_alt]" style="padding-right: 10px;">
|
54 |
+
<option value=""><?php _e( 'Default', 'genesis-simple-sidebars' ); ?></option>
|
55 |
<?php
|
56 |
foreach ( (array) $_sidebars as $id => $info ) {
|
57 |
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, $tag->meta['_ss_sidebar_alt'] , false), esc_html( $info['name'] ) );
|
includes/views/edit.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
if ( array_key_exists( $_REQUEST['id'], (array) $_sidebars ) ) {
|
3 |
$_sidebar = stripslashes_deep( $_sidebars[$_REQUEST['id']] );
|
4 |
} else {
|
5 |
-
wp_die( __( 'Nice try, partner. But that sidebar doesn\'t exist. Click back and try again.', '
|
6 |
}
|
7 |
|
8 |
screen_icon( 'themes' ); ?>
|
9 |
-
<h2><?php _e( 'Edit Sidebar', '
|
10 |
|
11 |
<form method="post" action="<?php echo admin_url( 'admin.php?page=simple-sidebars&action=edit' ); ?>">
|
12 |
<?php wp_nonce_field( 'simple-sidebars-action_edit-sidebar' ); ?>
|
@@ -14,26 +14,26 @@ screen_icon( 'themes' ); ?>
|
|
14 |
<table class="form-table">
|
15 |
|
16 |
<tr class="form-field">
|
17 |
-
<th scope="row" valign="top"><label for="edit_sidebar[name]"><?php _e( 'Name', '
|
18 |
<td><input name="edit_sidebar[name]" id="edit_sidebar[name]" type="text" value="<?php echo esc_html( $_sidebar['name'] ); ?>" size="40" />
|
19 |
-
<p class="description"><?php _e( 'A recognizable name for your new sidebar widget area', '
|
20 |
</tr>
|
21 |
|
22 |
<tr class="form-field">
|
23 |
-
<th scope="row" valign="top"><label for="edit_sidebar[id]"><?php _e( 'ID', '
|
24 |
<td>
|
25 |
<input type="text" value="<?php echo esc_html( $_REQUEST['id'] ); ?>" size="40" disabled="disabled" />
|
26 |
<input name="edit_sidebar[id]" id="edit_sidebar[id]" type="hidden" value="<?php echo esc_html( $_REQUEST['id'] ); ?>" size="40" />
|
27 |
-
<p class="description"><?php _e( 'The unique ID is used to register the sidebar widget area (cannot be changed)', '
|
28 |
</tr>
|
29 |
|
30 |
<tr class="form-field">
|
31 |
-
<th scope="row" valign="top"><label for="edit_sidebar[description]"><?php _e( 'Description', '
|
32 |
<td><textarea name="edit_sidebar[description]" id="edit_sidebar[description]" rows="3" cols="50" style="width: 97%;"><?php echo esc_html( $_sidebar['description'] ); ?></textarea></td>
|
33 |
</tr>
|
34 |
|
35 |
</table>
|
36 |
|
37 |
-
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _e( 'Update', '
|
38 |
|
39 |
</form>
|
2 |
if ( array_key_exists( $_REQUEST['id'], (array) $_sidebars ) ) {
|
3 |
$_sidebar = stripslashes_deep( $_sidebars[$_REQUEST['id']] );
|
4 |
} else {
|
5 |
+
wp_die( __( 'Nice try, partner. But that sidebar doesn\'t exist. Click back and try again.', 'genesis-simple-sidebars' ) );
|
6 |
}
|
7 |
|
8 |
screen_icon( 'themes' ); ?>
|
9 |
+
<h2><?php _e( 'Edit Sidebar', 'genesis-simple-sidebars' ); ?></h2>
|
10 |
|
11 |
<form method="post" action="<?php echo admin_url( 'admin.php?page=simple-sidebars&action=edit' ); ?>">
|
12 |
<?php wp_nonce_field( 'simple-sidebars-action_edit-sidebar' ); ?>
|
14 |
<table class="form-table">
|
15 |
|
16 |
<tr class="form-field">
|
17 |
+
<th scope="row" valign="top"><label for="edit_sidebar[name]"><?php _e( 'Name', 'genesis-simple-sidebars' ); ?></label></th>
|
18 |
<td><input name="edit_sidebar[name]" id="edit_sidebar[name]" type="text" value="<?php echo esc_html( $_sidebar['name'] ); ?>" size="40" />
|
19 |
+
<p class="description"><?php _e( 'A recognizable name for your new sidebar widget area', 'genesis-simple-sidebars' ); ?></p></td>
|
20 |
</tr>
|
21 |
|
22 |
<tr class="form-field">
|
23 |
+
<th scope="row" valign="top"><label for="edit_sidebar[id]"><?php _e( 'ID', 'genesis-simple-sidebars' ); ?></label></th>
|
24 |
<td>
|
25 |
<input type="text" value="<?php echo esc_html( $_REQUEST['id'] ); ?>" size="40" disabled="disabled" />
|
26 |
<input name="edit_sidebar[id]" id="edit_sidebar[id]" type="hidden" value="<?php echo esc_html( $_REQUEST['id'] ); ?>" size="40" />
|
27 |
+
<p class="description"><?php _e( 'The unique ID is used to register the sidebar widget area (cannot be changed)', 'genesis-simple-sidebars' ); ?></p></td>
|
28 |
</tr>
|
29 |
|
30 |
<tr class="form-field">
|
31 |
+
<th scope="row" valign="top"><label for="edit_sidebar[description]"><?php _e( 'Description', 'genesis-simple-sidebars' ); ?></label></th>
|
32 |
<td><textarea name="edit_sidebar[description]" id="edit_sidebar[description]" rows="3" cols="50" style="width: 97%;"><?php echo esc_html( $_sidebar['description'] ); ?></textarea></td>
|
33 |
</tr>
|
34 |
|
35 |
</table>
|
36 |
|
37 |
+
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _e( 'Update', 'genesis-simple-sidebars' ); ?>" /></p>
|
38 |
|
39 |
</form>
|
includes/views/main.php
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
<?php screen_icon( 'themes' ); ?>
|
2 |
-
<h2><?php _e( 'Genesis - Simple Sidebars', '
|
3 |
|
4 |
<div id="col-container">
|
5 |
|
6 |
<div id="col-right">
|
7 |
<div class="col-wrap">
|
8 |
|
9 |
-
<h3><?php _e( 'Current Sidebars', '
|
10 |
<table class="widefat tag fixed" cellspacing="0">
|
11 |
<thead>
|
12 |
<tr>
|
13 |
-
<th scope="col" id="name" class="manage-column column-name"><?php _e( 'Name', '
|
14 |
-
<th scope="col" class="manage-column column-slug"><?php _e( 'ID', '
|
15 |
-
<th scope="col" id="description" class="manage-column column-description"><?php _e( 'Description', '
|
16 |
</tr>
|
17 |
</thead>
|
18 |
|
19 |
<tfoot>
|
20 |
<tr>
|
21 |
-
<th scope="col" class="manage-column column-name"><?php _e( 'Name', '
|
22 |
-
<th scope="col" class="manage-column column-slug"><?php _e( 'ID', '
|
23 |
-
<th scope="col" class="manage-column column-description"><?php _e( 'Description', '
|
24 |
</tr>
|
25 |
</tfoot>
|
26 |
|
@@ -39,29 +39,29 @@
|
|
39 |
|
40 |
|
41 |
<div class="form-wrap">
|
42 |
-
<h3><?php _e( 'Add New Sidebar', '
|
43 |
|
44 |
<form method="post" action="<?php echo admin_url( 'admin.php?page=simple-sidebars&action=create' ); ?>">
|
45 |
<?php wp_nonce_field( 'simple-sidebars-action_create-sidebar' ); ?>
|
46 |
|
47 |
<div class="form-field form-required">
|
48 |
-
<label for="sidebar-name"><?php _e( 'Name', '
|
49 |
<input name="new_sidebar[name]" id="sidebar-name" type="text" value="" size="40" aria-required="true" />
|
50 |
-
<p><?php _e( 'A recognizable name for your new sidebar widget area', '
|
51 |
</div>
|
52 |
|
53 |
<div class="form-field">
|
54 |
-
<label for="sidebar-id"><?php _e( 'ID', '
|
55 |
<input name="new_sidebar[id]" id="sidebar-id" type="text" value="" size="40" />
|
56 |
-
<p><?php _e( 'The unique ID is used to register the sidebar widget area', '
|
57 |
</div>
|
58 |
|
59 |
<div class="form-field">
|
60 |
-
<label for="sidebar-description"><?php _e( 'Description', '
|
61 |
<textarea name="new_sidebar[description]" id="sidebar-description" rows="5" cols="40"></textarea>
|
62 |
</div>
|
63 |
|
64 |
-
<p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php _e( 'Add New Sidebar', '
|
65 |
</form></div>
|
66 |
|
67 |
</div>
|
1 |
<?php screen_icon( 'themes' ); ?>
|
2 |
+
<h2><?php _e( 'Genesis - Simple Sidebars', 'genesis-simple-sidebars' ); ?></h2>
|
3 |
|
4 |
<div id="col-container">
|
5 |
|
6 |
<div id="col-right">
|
7 |
<div class="col-wrap">
|
8 |
|
9 |
+
<h3><?php _e( 'Current Sidebars', 'genesis-simple-sidebars' ); ?></h3>
|
10 |
<table class="widefat tag fixed" cellspacing="0">
|
11 |
<thead>
|
12 |
<tr>
|
13 |
+
<th scope="col" id="name" class="manage-column column-name"><?php _e( 'Name', 'genesis-simple-sidebars' ); ?></th>
|
14 |
+
<th scope="col" class="manage-column column-slug"><?php _e( 'ID', 'genesis-simple-sidebars' ); ?></th>
|
15 |
+
<th scope="col" id="description" class="manage-column column-description"><?php _e( 'Description', 'genesis-simple-sidebars' ); ?></th>
|
16 |
</tr>
|
17 |
</thead>
|
18 |
|
19 |
<tfoot>
|
20 |
<tr>
|
21 |
+
<th scope="col" class="manage-column column-name"><?php _e( 'Name', 'genesis-simple-sidebars' ); ?></th>
|
22 |
+
<th scope="col" class="manage-column column-slug"><?php _e( 'ID', 'genesis-simple-sidebars' ); ?></th>
|
23 |
+
<th scope="col" class="manage-column column-description"><?php _e( 'Description', 'genesis-simple-sidebars' ); ?></th>
|
24 |
</tr>
|
25 |
</tfoot>
|
26 |
|
39 |
|
40 |
|
41 |
<div class="form-wrap">
|
42 |
+
<h3><?php _e( 'Add New Sidebar', 'genesis-simple-sidebars' ); ?></h3>
|
43 |
|
44 |
<form method="post" action="<?php echo admin_url( 'admin.php?page=simple-sidebars&action=create' ); ?>">
|
45 |
<?php wp_nonce_field( 'simple-sidebars-action_create-sidebar' ); ?>
|
46 |
|
47 |
<div class="form-field form-required">
|
48 |
+
<label for="sidebar-name"><?php _e( 'Name', 'genesis-simple-sidebars' ); ?></label>
|
49 |
<input name="new_sidebar[name]" id="sidebar-name" type="text" value="" size="40" aria-required="true" />
|
50 |
+
<p><?php _e( 'A recognizable name for your new sidebar widget area', 'genesis-simple-sidebars' ); ?></p>
|
51 |
</div>
|
52 |
|
53 |
<div class="form-field">
|
54 |
+
<label for="sidebar-id"><?php _e( 'ID', 'genesis-simple-sidebars' ); ?></label>
|
55 |
<input name="new_sidebar[id]" id="sidebar-id" type="text" value="" size="40" />
|
56 |
+
<p><?php _e( 'The unique ID is used to register the sidebar widget area', 'genesis-simple-sidebars' ); ?></p>
|
57 |
</div>
|
58 |
|
59 |
<div class="form-field">
|
60 |
+
<label for="sidebar-description"><?php _e( 'Description', 'genesis-simple-sidebars' ); ?></label>
|
61 |
<textarea name="new_sidebar[description]" id="sidebar-description" rows="5" cols="40"></textarea>
|
62 |
</div>
|
63 |
|
64 |
+
<p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php _e( 'Add New Sidebar', 'genesis-simple-sidebars' ); ?>" /></p>
|
65 |
</form></div>
|
66 |
|
67 |
</div>
|
languages/{ss-de_DE.mo → genesis-simple-sidebars-de_DE.mo}
RENAMED
File without changes
|
languages/{ss-de_DE.po → genesis-simple-sidebars-de_DE.po}
RENAMED
File without changes
|
languages/genesis-simple-sidebars.pot
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2015 Nathan Rice
|
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.0.2\n"
|
6 |
+
"Report-Msgid-Bugs-To: StudioPress <translations@studiopress.com>\n"
|
7 |
+
"POT-Creation-Date: 2015-09-29 20:53:32+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: 2015-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"
|
15 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
+
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-Language: English\n"
|
18 |
+
"X-Poedit-Country: UNITED STATES\n"
|
19 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
20 |
+
"X-Poedit-KeywordsList: "
|
21 |
+
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
|
22 |
+
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
23 |
+
"X-Poedit-Bookmarks: \n"
|
24 |
+
"X-Poedit-SearchPath-0: .\n"
|
25 |
+
"X-Textdomain-Support: yes\n"
|
26 |
+
|
27 |
+
#: includes/admin.php:32 includes/views/main.php:2
|
28 |
+
msgid "Genesis - Simple Sidebars"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: includes/admin.php:33
|
32 |
+
msgid "Simple Sidebars"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: includes/admin.php:107
|
36 |
+
msgid "Edit"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: includes/admin.php:108
|
40 |
+
msgid "Delete"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: includes/admin.php:173
|
44 |
+
msgid "New sidebar successfully created!"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: includes/admin.php:178
|
48 |
+
msgid "Sidebar successfully edited!"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: includes/admin.php:183
|
52 |
+
msgid "Sidebar successfully deleted."
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: includes/admin.php:319
|
56 |
+
msgid "Oops! Please choose a valid Name and ID for this sidebar"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: includes/admin.php:322
|
60 |
+
msgid "Oops! That sidebar ID already exists"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: includes/admin.php:325
|
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:328
|
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:331
|
76 |
+
msgid "Oops! Something went wrong. Try again."
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: includes/inpost.php:12
|
80 |
+
msgid "Sidebar Selection"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: includes/inpost.php:35 includes/inpost.php:50 includes/term.php:37
|
84 |
+
#: includes/term.php:54
|
85 |
+
msgid "Default"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: includes/term.php:30
|
89 |
+
msgid "Sidebar Options"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: includes/term.php:34
|
93 |
+
msgid "Primary Sidebar"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: includes/term.php:51
|
97 |
+
msgid "Secondary Sidebar"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: includes/views/edit.php:5
|
101 |
+
msgid "Nice try, partner. But that sidebar doesn't exist. Click back and try again."
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: includes/views/edit.php:9
|
105 |
+
msgid "Edit Sidebar"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: includes/views/edit.php:17 includes/views/main.php:13
|
109 |
+
#: includes/views/main.php:21 includes/views/main.php:48
|
110 |
+
msgid "Name"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: includes/views/edit.php:19 includes/views/main.php:50
|
114 |
+
msgid "A recognizable name for your new sidebar widget area"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: includes/views/edit.php:23 includes/views/main.php:14
|
118 |
+
#: includes/views/main.php:22 includes/views/main.php:54
|
119 |
+
msgid "ID"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: includes/views/edit.php:27
|
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:31 includes/views/main.php:15
|
129 |
+
#: includes/views/main.php:23 includes/views/main.php:60
|
130 |
+
msgid "Description"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: includes/views/edit.php:37
|
134 |
+
msgid "Update"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: includes/views/main.php:9
|
138 |
+
msgid "Current Sidebars"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: includes/views/main.php:42 includes/views/main.php:64
|
142 |
+
msgid "Add New Sidebar"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: includes/views/main.php:56
|
146 |
+
msgid "The unique ID is used to register the sidebar widget area"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: plugin.php:48
|
150 |
+
msgid ""
|
151 |
+
"Sorry, you cannot run Simple Sidebars without WordPress %s and <a "
|
152 |
+
"href=\"%s\">Genesis %s</a>, or greater."
|
153 |
+
msgstr ""
|
154 |
+
|
155 |
+
#. Plugin Name of the plugin/theme
|
156 |
+
msgid "Genesis Simple Sidebars"
|
157 |
+
msgstr ""
|
158 |
+
|
159 |
+
#. Plugin URI of the plugin/theme
|
160 |
+
msgid "http://www.studiopress.com/plugins/simple-sidebars"
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#. Description of the plugin/theme
|
164 |
+
msgid ""
|
165 |
+
"Genesis Simple Sidebars allows you to easily create and use new sidebar "
|
166 |
+
"widget areas."
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#. Author of the plugin/theme
|
170 |
+
msgid "Nathan Rice"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#. Author URI of the plugin/theme
|
174 |
+
msgid "http://www.nathanrice.net/"
|
175 |
+
msgstr ""
|
languages/ss.po
DELETED
@@ -1,148 +0,0 @@
|
|
1 |
-
# SOME DESCRIPTIVE TITLE.
|
2 |
-
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
-
# This file is distributed under the same license as the PACKAGE package.
|
4 |
-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
-
#
|
6 |
-
#, fuzzy
|
7 |
-
msgid ""
|
8 |
-
msgstr ""
|
9 |
-
"Project-Id-Version: PACKAGE VERSION\n"
|
10 |
-
"Report-Msgid-Bugs-To: \n"
|
11 |
-
"POT-Creation-Date: 2011-08-06 21:23-0300\n"
|
12 |
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
-
"MIME-Version: 1.0\n"
|
16 |
-
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
-
"Content-Transfer-Encoding: 8bit\n"
|
18 |
-
|
19 |
-
#: admin.php:17
|
20 |
-
msgid "Simple Sidebars"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: admin.php:66
|
24 |
-
msgid ""
|
25 |
-
"Nice try, partner. But that sidebar doesn't exist. Click back and try again."
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: admin.php:72
|
29 |
-
msgid "Edit Sidebar"
|
30 |
-
msgstr ""
|
31 |
-
|
32 |
-
#: admin.php:79 admin.php:117 admin.php:125 admin.php:152
|
33 |
-
msgid "Name"
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: admin.php:81 admin.php:154
|
37 |
-
msgid "A recognizable name for your new sidebar widget area"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: admin.php:85 admin.php:118 admin.php:126 admin.php:158
|
41 |
-
msgid "ID"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: admin.php:89
|
45 |
-
msgid ""
|
46 |
-
"The unique ID is used to register the sidebar widget area (cannot be changed)"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: admin.php:93 admin.php:119 admin.php:127 admin.php:164
|
50 |
-
msgid "Description"
|
51 |
-
msgstr ""
|
52 |
-
|
53 |
-
#: admin.php:99
|
54 |
-
msgid "Update"
|
55 |
-
msgstr ""
|
56 |
-
|
57 |
-
#: admin.php:106
|
58 |
-
msgid "Genesis - Simple Sidebars"
|
59 |
-
msgstr ""
|
60 |
-
|
61 |
-
#: admin.php:113
|
62 |
-
msgid "Current Sidebars"
|
63 |
-
msgstr ""
|
64 |
-
|
65 |
-
#: admin.php:146 admin.php:168
|
66 |
-
msgid "Add New Sidebar"
|
67 |
-
msgstr ""
|
68 |
-
|
69 |
-
#: admin.php:160
|
70 |
-
msgid "The unique ID is used to register the sidebar widget area"
|
71 |
-
msgstr ""
|
72 |
-
|
73 |
-
#: functions.php:28
|
74 |
-
msgid "Edit"
|
75 |
-
msgstr ""
|
76 |
-
|
77 |
-
#: functions.php:29
|
78 |
-
msgid "Delete"
|
79 |
-
msgstr ""
|
80 |
-
|
81 |
-
#: functions.php:137
|
82 |
-
msgid "Oops! Please choose a valid Name and ID for this sidebar"
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: functions.php:140
|
86 |
-
msgid "Oops! That sidebar ID already exists"
|
87 |
-
msgstr ""
|
88 |
-
|
89 |
-
#: functions.php:143
|
90 |
-
msgid ""
|
91 |
-
"Oops! You are trying to edit a sidebar that does not exist, or is not "
|
92 |
-
"editable"
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: functions.php:146
|
96 |
-
msgid ""
|
97 |
-
"Oops! You are trying to delete a sidebar that does not exist, or cannot be "
|
98 |
-
"deleted"
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: functions.php:149
|
102 |
-
msgid "Oops! Something went wrong. Try again."
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: functions.php:165
|
106 |
-
msgid "New sidebar successfully created!"
|
107 |
-
msgstr ""
|
108 |
-
|
109 |
-
#: functions.php:170
|
110 |
-
msgid "Sidebar successfully edited!"
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: functions.php:175
|
114 |
-
msgid "Sidebar successfully deleted."
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: inpost.php:10
|
118 |
-
msgid "Sidebar Selection"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: inpost.php:22 term.php:29
|
122 |
-
msgid "Primary Sidebar"
|
123 |
-
msgstr ""
|
124 |
-
|
125 |
-
#: inpost.php:24 inpost.php:36 term.php:32 term.php:46
|
126 |
-
msgid "Default"
|
127 |
-
msgstr ""
|
128 |
-
|
129 |
-
#: inpost.php:34 term.php:43
|
130 |
-
msgid "Secondary Sidebar"
|
131 |
-
msgstr ""
|
132 |
-
|
133 |
-
#: plugin.php:21
|
134 |
-
#, php-format
|
135 |
-
msgid ""
|
136 |
-
"Sorry, you can't activate unless you have installed <a href=\"%s\">Genesis</"
|
137 |
-
"a>"
|
138 |
-
msgstr ""
|
139 |
-
|
140 |
-
#: plugin.php:26
|
141 |
-
#, php-format
|
142 |
-
msgid ""
|
143 |
-
"Sorry, you cannot activate without <a href=\"%s\">Genesis %s</a> or greater"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: term.php:25
|
147 |
-
msgid "Sidebar Options"
|
148 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "genesis-simple-sidebars",
|
3 |
+
"description": "Development files for the Genesis Simple Sidebars plugin.",
|
4 |
+
"repository": {
|
5 |
+
"type": "git",
|
6 |
+
"url": "https://github.com/copyblogger/genesis-simple-sidebars"
|
7 |
+
},
|
8 |
+
"dependencies": {},
|
9 |
+
"devDependencies": {
|
10 |
+
"grunt": "^0.4.5",
|
11 |
+
"grunt-autoprefixer": "^0.8.1",
|
12 |
+
"grunt-checktextdomain": "^0.1.1",
|
13 |
+
"grunt-contrib-cssmin": "^0.10.0",
|
14 |
+
"grunt-contrib-imagemin": "^0.7.1",
|
15 |
+
"grunt-contrib-jshint": "^0.10.0",
|
16 |
+
"grunt-contrib-uglify": "^0.5.0",
|
17 |
+
"grunt-contrib-watch": "^0.6.1",
|
18 |
+
"grunt-csscomb": "~2.0.1",
|
19 |
+
"grunt-jsbeautifier": "^0.2.7",
|
20 |
+
"grunt-jsvalidate": "^0.2.2",
|
21 |
+
"grunt-phplint": "0.0.5",
|
22 |
+
"grunt-styledocco": "^0.1.4",
|
23 |
+
"grunt-wp-i18n": "^0.4.7",
|
24 |
+
"load-grunt-tasks": "^0.6.0"
|
25 |
+
},
|
26 |
+
"plugin": {
|
27 |
+
"name": "Genesis Simple Sidebars",
|
28 |
+
"uri": "https://github.com/copyblogger/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.0.2",
|
33 |
+
"license": "GPL-2.0+",
|
34 |
+
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
+
"textdomain": "genesis-simple-sidebars"
|
36 |
+
}
|
37 |
+
}
|
plugin.php
CHANGED
@@ -6,10 +6,10 @@ Description: Genesis Simple Sidebars allows you to easily create and use new sid
|
|
6 |
Author: Nathan Rice
|
7 |
Author URI: http://www.nathanrice.net/
|
8 |
|
9 |
-
Text Domain:
|
10 |
Domain Path: /languages/
|
11 |
|
12 |
-
Version: 2.0.
|
13 |
|
14 |
License: GNU General Public License v2.0 (or later)
|
15 |
License URI: http://www.opensource.org/licenses/gpl-license.php
|
@@ -45,7 +45,7 @@ function ss_activation_check() {
|
|
45 |
function ss_deactivate( $genesis_version = '1.8.0', $wp_version = '3.3' ) {
|
46 |
|
47 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
48 |
-
wp_die( sprintf( __( 'Sorry, you cannot run Simple Sidebars without WordPress %s and <a href="%s">Genesis %s</a>, or greater.', '
|
49 |
|
50 |
}
|
51 |
|
@@ -64,7 +64,7 @@ function ss_genesis_init() {
|
|
64 |
add_action( 'admin_init', 'ss_deactivate', 10, 0 );
|
65 |
|
66 |
//* Load translations
|
67 |
-
load_plugin_textdomain( '
|
68 |
|
69 |
//* required hooks
|
70 |
add_action( 'get_header', 'ss_sidebars_init' );
|
6 |
Author: Nathan Rice
|
7 |
Author URI: http://www.nathanrice.net/
|
8 |
|
9 |
+
Text Domain: genesis-simple-sidebars
|
10 |
Domain Path: /languages/
|
11 |
|
12 |
+
Version: 2.0.2
|
13 |
|
14 |
License: GNU General Public License v2.0 (or later)
|
15 |
License URI: http://www.opensource.org/licenses/gpl-license.php
|
45 |
function ss_deactivate( $genesis_version = '1.8.0', $wp_version = '3.3' ) {
|
46 |
|
47 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
48 |
+
wp_die( sprintf( __( 'Sorry, you cannot run Simple Sidebars without WordPress %s and <a href="%s">Genesis %s</a>, or greater.', 'genesis-simple-sidebars' ), $wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $genesis_version ) );
|
49 |
|
50 |
}
|
51 |
|
64 |
add_action( 'admin_init', 'ss_deactivate', 10, 0 );
|
65 |
|
66 |
//* Load translations
|
67 |
+
load_plugin_textdomain( 'genesis-simple-sidebars', false, 'genesis-simple-sidebars/languages' );
|
68 |
|
69 |
//* required hooks
|
70 |
add_action( 'get_header', 'ss_sidebars_init' );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
-
Contributors: nathanrice, wpmuguru
|
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: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.0.
|
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,37 +37,42 @@ Not in the way you're probably thinking. The markup surrounding the widget area
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
-
= 0.
|
41 |
-
*
|
42 |
|
43 |
-
= 0.
|
44 |
-
*
|
45 |
-
*
|
46 |
-
*
|
47 |
-
* Bump to pre-release 0.9 branch
|
48 |
|
49 |
-
= 0.
|
50 |
-
*
|
|
|
51 |
|
52 |
-
= 0.
|
53 |
-
*
|
54 |
-
*
|
55 |
-
* bug fix to prevent invalid sidebar creation
|
56 |
|
57 |
= 0.9.2.1 =
|
58 |
* Restore default tag/category support
|
59 |
* Default custom taxonomy support to on for public taxonomies
|
60 |
* Remove secondary selection when no 3 column layouts are enabled
|
61 |
|
62 |
-
=
|
63 |
-
*
|
64 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
= 2.0.0 =
|
67 |
-
* Compatibility with Genesis 2.0
|
68 |
-
* Standards
|
69 |
|
70 |
-
= 2.0.1 =
|
71 |
-
* Genesis 2.0.1 compatibility with term meta keys
|
72 |
-
* Use actual sidebar name, instead of hard coded names
|
73 |
-
* Fix incorrect textdomain
|
1 |
=== Plugin Name ===
|
2 |
+
Contributors: nathanrice, wpmuguru, studiopress
|
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: 3.6
|
6 |
+
Tested up to: 4.3.1
|
7 |
+
Stable tag: 2.0.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 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 2.0.2 =
|
41 |
+
* Change text domain, update POT file.
|
42 |
|
43 |
+
= 2.0.1 =
|
44 |
+
* Genesis 2.0.1 compatibility with term meta keys
|
45 |
+
* Use actual sidebar name, instead of hard coded names
|
46 |
+
* Fix incorrect textdomain
|
|
|
47 |
|
48 |
+
= 2.0.0 =
|
49 |
+
* Compatibility with Genesis 2.0
|
50 |
+
* Standards
|
51 |
|
52 |
+
= 1.0.0 =
|
53 |
+
* Reorganize theme files
|
54 |
+
* Standards
|
|
|
55 |
|
56 |
= 0.9.2.1 =
|
57 |
* Restore default tag/category support
|
58 |
* Default custom taxonomy support to on for public taxonomies
|
59 |
* Remove secondary selection when no 3 column layouts are enabled
|
60 |
|
61 |
+
= 0.9.2 =
|
62 |
+
* Added support for custom taxonomies
|
63 |
+
* Added translation support
|
64 |
+
* bug fix to prevent invalid sidebar creation
|
65 |
+
|
66 |
+
= 0.9.1 =
|
67 |
+
* Added support for custom post types
|
68 |
+
|
69 |
+
= 0.9 =
|
70 |
+
* Fixed "is not array" errors reported by users
|
71 |
+
* Added nonce verification for security purposes
|
72 |
+
* Added error and success messages
|
73 |
+
* Bump to pre-release 0.9 branch
|
74 |
+
|
75 |
+
= 0.1 =
|
76 |
+
* Initial Alpha Release
|
77 |
|
|
|
|
|
|
|
78 |
|
|
|
|
|
|
|
|