You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin allows the use of NPR's [Pym.js](http://blog.apps.npr.org/pym.js/) responsive iframe script on WordPress sites, through the use of shortcodes and Gutenberg block.
3
+
This plugin allows the use of NPR's [Pym.js](http://blog.apps.npr.org/pym.js/) responsive iframe script on WordPress sites, through the use of shortcodes and Gutenberg blocks.
4
4
5
5
For detailed examples, ➡️ [read the docs!](./docs/) ⬅️
Copy file name to clipboardExpand all lines: inc/class-pymsrc-output.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
/**
3
3
* The class and related methods for tracking which pymsrc tags will be output upon the page
4
4
*
5
-
* @package pym-shortcode
5
+
* @package pym-embeds
6
6
*/
7
7
8
8
/**
@@ -129,13 +129,13 @@ public function warning_message_debug() {
129
129
/**
130
130
* Output a thing in the footer that shows up in the browser console, to assist in debugging
131
131
*
132
-
* This has to support IE 9 because Pym supports IE 9, but `console.log` and `console.error` aren't available in IE 9 unless the dev tools are open. Thus, the check `window.console`.
132
+
* This has to support IE 9 because Pym.js supports IE 9, but `console.log` and `console.error` aren't available in IE 9 unless the dev tools are open. Thus, the check `window.console`.
wp_json_encode( __( 'Hi Pym user! It looks like your post has multiple values for pymsrc for the blocks and shortcodes in use on this page. This may be causing problems for your Pym embeds. For more details, see https://github.com/INN/pym-shortcode/tree/master/docs#ive-set-a-different-pymsrc-option-but-now-im-seeing-a-message-in-the-console', 'pym_shortcode' ) ),
138
+
wp_json_encode( __( 'Hi Pym.js user! It looks like your post has multiple values for pymsrc for the blocks and shortcodes in use on this page. This may be causing problems for your Pym.js embeds. For more details, see https://github.com/INN/pym-shortcode/tree/master/docs#ive-set-a-different-pymsrc-option-but-now-im-seeing-a-message-in-the-console', 'pym_shortcode' ) ),
Copy file name to clipboardExpand all lines: inc/info-page.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
* The informational page for this plugin.
4
4
*
5
5
* This is available to everyone who can edit posts, because they'll need this info if they're creating new child pages for embed using the shortcode or plugin.
help: __('The Pym block will automatically generate an ID for the parent element and use that to initiate the Pym embed. If your child page\'s code requires its parent to have a specific element ID, set that here.'),
144
+
help: __('The Pym.js block will automatically generate an ID for the parent element and use that to initiate the Pym.js embed. If your child page\'s code requires its parent to have a specific element ID, set that here.'),
A WordPress solution to embed iframes that are responsive horizontally and vertically using the NPR Visuals Team's pym.js.
12
+
A WordPress solution to embed iframes that are responsive horizontally and vertically using the NPR Visuals Team's `Pym.js`.
13
13
14
14
== Description ==
15
15
16
-
Pym Shortcode will resize an iframe responsively depending on the height of its content and the width of its container. The plugin uses [Pym.js](http://blog.apps.npr.org/pym.js/), developed by the NPR Visuals Team, to allow embedded content in WordPress posts and pages using a simple shortcode.
16
+
Pym.js Embeds provides shortcode and Gutenberg block wrappers for embedding responsive iframes using [Pym.js](http://blog.apps.npr.org/pym.js/), developed by the NPR Visuals Team. Embedded content resizes vertically to match its container's width.
17
17
18
18
== Installation ==
19
19
20
-
1. In the WordPress Dashboard go to **Plugins**, then click the **Add Plugins** button and search the WordPress Plugins Directory for Pym Shortcode. Alternatively, you can download the zip file from this Github repo and upload it manually to your WordPress site.
20
+
1. In the WordPress Dashboard go to **Plugins**, then click the **Add Plugins** button and search the WordPress Plugins Directory for Pym.js Embeds. Alternatively, you can download the zip file from this Github repo and upload it manually to your WordPress site.
21
21
2. Activate the plugin through the 'Plugins' screen in WordPress
22
22
3. In **Settings > Pym.js Embed Settings**, decide whether you'd like to change the plugin's behavior to use a non-default source URL for `Pym.js`, and whether you'd like to prevent post authors from setting embed-specific URLs for `Pym.js`
23
23
4. Begin embedding content!
@@ -32,17 +32,17 @@ Embeddable table from NPR:
32
32
33
33

34
34
35
-
Pym Shortcode in a WordPress post:
35
+
Pym.js Shortcode in a WordPress post:
36
36
37
-

37
+

38
38
39
-
Desktop view of the WordPress post with the NPR embed using Pym Shortcode:
39
+
Desktop view of the WordPress post with the NPR embed using Pym.js Shortcode:
40
40
41
-

41
+

42
42
43
-
Mobile view of the WordPress post with the NPR embed using Pym Shortcode:
43
+
Mobile view of the WordPress post with the NPR embed using Pym.js Shortcode:
44
44
45
-

45
+

46
46
47
47
== Changelog ==
48
48
@@ -54,7 +54,8 @@ Following the practice begun at plugin version 1.1.2 of [having the plugin versi
54
54
55
55
New features:
56
56
57
-
* Adds a "Pym Embed" block for use in Gutenberg. [PR #34](https://github.com/INN/pym-shortcode/pull/34) for issue [#28](https://github.com/INN/pym-shortcode/issues/28).
57
+
* Plugin renamed from "Pym Shortcode" to "Pym.js Embeds".
58
+
* Adds a "Pym.js Embed" block for use in Gutenberg. [PR #34](https://github.com/INN/pym-shortcode/pull/34) for issue [#28](https://github.com/INN/pym-shortcode/issues/28).
58
59
* If a block is created using this plugin and Gutenberg, and Gutenberg is then disabled, the block will show a link to the embedded graphic.
59
60
* Through the settings page, you can now serve pym.js using your newsroom's CDN or NPR's CDN! [PR #45]() for [issue #31](https://github.com/INN/pym-shortcode/issues/31).
60
61
* Adds a settings page, available to those with the `manage_options` capability, with the following options:
@@ -77,7 +78,7 @@ Changes:
77
78
78
79
= 1.3.2 =
79
80
80
-
* *RECOMMENDED UPDATE* : Pym users, NPR has released an update that closes a potential security hole. We recommend everyone update to 1.3.2.
81
+
* *RECOMMENDED UPDATE* : Pym.js users, NPR has released an update that closes a potential security hole. We recommend everyone update to 1.3.2.
81
82
* Update to pym.js version 1.3.2: https://github.com/nprapps/pym.js/releases/tag/v1.3.2 (Changelog at https://github.com/nprapps/pym.js/blob/v1.3.2/CHANGELOG)
82
83
83
84
= 1.3.1 =
@@ -118,11 +119,7 @@ Changes:
118
119
119
120
* First release of the plugin
120
121
121
-
== Upgrade Notice ==
122
-
123
-
No updates at this time.
124
-
125
-
== Pym Resources from NPR ==
122
+
== Pym.js Resources from NPR ==
126
123
127
124
You may also want to look at NPR's Pym.js resources:
0 commit comments