Skip to content

Commit b84a68b

Browse files
committed
Merge branch 'master' of github.com:INN/pym-shortcode
2 parents ae87577 + a866614 commit b84a68b

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

docs/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pym.js Embeds provides shortcode and Gutenberg block wrappers for embedding resp
55
Contents:
66

77
1. [Plugin Installation](#plugin-installation)
8-
2. [The Pym.js Shortcode](#the-pym-shortcode)
8+
2. [The Pym.js Shortcode](#the-pymjs-shortcode)
99
3. [The Pym.js Block](#the-pym-block)
1010
4. [Embed Options](#embed-options)
1111
1. [src: the only required argument](#src-the-child-url-required-argument)

inc/info-page.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
function register_options_page() {
1818
add_submenu_page(
1919
'tools.php',
20-
__( 'Pym.js Embeds Plugin Information', 'pym-shortcode' ), // title of page
21-
__( 'Pym.js Embeds Info', 'pym-shortcode' ), // menu text
20+
__( 'Pym.js Embeds Plugin Information', 'pym-embeds' ), // title of page
21+
__( 'Pym.js Embeds Info', 'pym-embeds' ), // menu text
2222
'edit_posts', // capability required
2323
'pym-embeds-info', // menu slug
2424
__NAMESPACE__ . '\options_page_callback' // callback for options page display
@@ -40,12 +40,12 @@ function options_page_callback() {
4040

4141
printf(
4242
'<p>%1$s</p>',
43-
wp_kses_post( __( 'For information on how to use the block and shortcode provided by the Pym.js Embeds plugin, read the plugin\'s documentation <a href="https://github.com/INN/pym-shortcode/tree/master/docs">on GitHub</a>.', 'pym-shortcode' ) )
43+
wp_kses_post( __( 'For information on how to use the block and shortcode provided by the Pym.js Embeds plugin, read the plugin\'s documentation <a href="https://github.com/INN/pym-shortcode/tree/master/docs">on GitHub</a>.', 'pym-embeds' ) )
4444
);
4545

4646
printf(
4747
'<label for="local_url">%1$s</label>',
48-
esc_html__( 'The URL for the copy of Pym.js hosted on this site is:', 'pym-shortcode' )
48+
esc_html__( 'The URL for the copy of Pym.js hosted on this site is:', 'pym-embeds' )
4949
);
5050

5151
// copying how qz.com does their share links

inc/settings-page.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function settings_page() {
5656
function register_options_page() {
5757
add_submenu_page(
5858
'options-general.php',
59-
__( 'Pym.js Embeds Plugin Settings', 'pym-shortcode' ), // title of page
60-
__( 'Pym.js Embeds Settings', 'pym-shortcode' ), // menu text
59+
__( 'Pym.js Embeds Plugin Settings', 'pym-embeds' ), // title of page
60+
__( 'Pym.js Embeds Settings', 'pym-embeds' ), // menu text
6161
'manage_options', // capability required
6262
settings_page(), // menu slug
6363
__NAMESPACE__ . '\options_page_callback' // callback for options page display.
@@ -74,7 +74,7 @@ function register_options_page() {
7474
function options_page_callback() {
7575
// check capabilities.
7676
if ( ! current_user_can( 'manage_options' ) ) {
77-
wp_die( esc_html__( 'You do not have sufficient permissions to access the Pym.js Embeds plugin\'s settings.', 'pym-shortcode' ) );
77+
wp_die( esc_html__( 'You do not have sufficient permissions to access the Pym.js Embeds plugin\'s settings.', 'pym-embeds' ) );
7878
return;
7979
}
8080

@@ -90,7 +90,7 @@ function options_page_callback() {
9090
<?php
9191
settings_fields( option_group() );
9292
do_settings_sections( settings_section() );
93-
submit_button( esc_html__( 'Save settings', 'pym-shortcode' ) );
93+
submit_button( esc_html__( 'Save settings', 'pym-embeds' ) );
9494
?>
9595
</form>
9696
<?php
@@ -112,14 +112,14 @@ function admin_init() {
112112

113113
add_settings_section(
114114
settings_section(),
115-
__( 'Pym.js Source Settings', 'pym-shortcode' ),
115+
__( 'Pym.js Source Settings', 'pym-embeds' ),
116116
__NAMESPACE__ . '\pym_settings_section_callback',
117117
settings_page()
118118
);
119119

120120
add_settings_field(
121121
'default_pymsrc',
122-
__( 'Default pymsrc', 'pym-shortcode' ),
122+
__( 'Default pymsrc', 'pym-embeds' ),
123123
__NAMESPACE__ . '\field_default_pymsrc',
124124
settings_page(), // menu slug of this page.
125125
settings_section(), // settings section slug.
@@ -130,7 +130,7 @@ function admin_init() {
130130

131131
add_settings_field(
132132
'override_pymsrc',
133-
__( 'Override pymsrc', 'pym-shortcode' ),
133+
__( 'Override pymsrc', 'pym-embeds' ),
134134
__NAMESPACE__ . '\field_override_pymsrc',
135135
settings_page(), // menu slug of this page.
136136
settings_section(), // settings section slug.
@@ -151,7 +151,7 @@ function admin_init() {
151151
function pym_settings_section_callback( $args ) {
152152
printf(
153153
'<p>%1$s</p>',
154-
__( 'The Pym.js JavaScript library can be provided from many sources. By default, shortcodes and blocks will use a copy of Pym.js hosted on your website to power embeds. For more information about changing the Pym.js source URL, referred to as \'pymsrc\', please <a href="https://github.com/INN/pym-shortcode/blob/master/docs/readme.md">read this plugin\'s documentation</a>.', 'pym-shortcode' )
154+
__( 'The Pym.js JavaScript library can be provided from many sources. By default, shortcodes and blocks will use a copy of Pym.js hosted on your website to power embeds. For more information about changing the Pym.js source URL, referred to as \'pymsrc\', please <a href="https://github.com/INN/pym-shortcode/blob/master/docs/readme.md">read this plugin\'s documentation</a>.', 'pym-embeds' )
155155
);
156156
}
157157

@@ -204,14 +204,14 @@ function field_default_pymsrc( $args ) {
204204
printf(
205205
'<label for="%1$s" style="display:block;clear:both; margin-top:0.5em;">%2$s</label>',
206206
esc_attr( $id ),
207-
wp_kses_post( __( 'This URL is where Pym.js will be loaded from for all embeds that do not set a pymsrc in the shortcode attributes or block settings. NPR and the Pym.js Embed plugin maintainers recommend that you use the NPR-provided CDN for this purpose: <code>https://pym.nprapps.org/pym.v1.min.js</code>', 'pym-shortcode' ) )
207+
wp_kses_post( __( 'This URL is where Pym.js will be loaded from for all embeds that do not set a pymsrc in the shortcode attributes or block settings. NPR and the Pym.js Embed plugin maintainers recommend that you use the NPR-provided CDN for this purpose: <code>https://pym.nprapps.org/pym.v1.min.js</code>', 'pym-embeds' ) )
208208
);
209209
printf(
210210
'<label for="%1$s" style="display:block;clear:both; margin-top:0.5em;">%2$s</label>',
211211
esc_attr( $id ),
212212
sprintf(
213213
// translators: %1$s is a bare URL.
214-
wp_kses_post( __( 'If no pymsrc URL is set here, then the plugin-provided copy of Pym.js will be used as the default: <code>%1$s</code>', 'pym-shortcode' ) ),
214+
wp_kses_post( __( 'If no pymsrc URL is set here, then the plugin-provided copy of Pym.js will be used as the default: <code>%1$s</code>', 'pym-embeds' ) ),
215215
esc_html( pym_pymsrc_local_url() )
216216
)
217217
);
@@ -237,6 +237,6 @@ function field_override_pymsrc( $args ) {
237237
printf(
238238
'<label for="%1$s" style="display:block;clear:both; margin-top:0.5em;">%2$s</label>',
239239
esc_attr( $id ),
240-
esc_html__( 'Checking this box means that every Pym.js embed will use the default pymsrc URL, ignoring the pymsrc URL set in the embed\'s shortcode attributes or block settings. We recommend that you check this box after setting the default pymsrc URL to the CDN-provided copy of the library.', 'pym-shortcode' )
240+
esc_html__( 'Checking this box means that every Pym.js embed will use the default pymsrc URL, ignoring the pymsrc URL set in the embed\'s shortcode attributes or block settings. We recommend that you check this box after setting the default pymsrc URL to the CDN-provided copy of the library.', 'pym-embeds' )
241241
);
242242
}

pym-shortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Author URI: http://nerds.inn.org/
99
License: GPL Version 2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html
11-
Text Domain: pym_shortcode
11+
Text Domain: pym-embeds
1212
*/
1313

1414
// If this file is called directly, abort.

0 commit comments

Comments
 (0)