{"id":42925,"date":"2016-04-01T14:37:16","date_gmt":"2016-04-01T14:37:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/rdp-pediapress-embed\/"},"modified":"2017-07-05T21:01:12","modified_gmt":"2017-07-05T21:01:12","slug":"rdp-pediapress-embed","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/rdp-pediapress-embed\/","author":3066702,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.5","stable_tag":"1.0.5","tested":"4.8.28","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"RDP PediaPress Embed","header_author":"Robert D Payne","header_description":"","assets_banners_color":"e4e5e5","last_updated":"2017-07-05 21:01:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/robert-d-payne.com\/","header_author_uri":"http:\/\/robert-d-payne.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1657,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1616445","resolution":"128x128","location":"assets","width":128,"height":128}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1616441","resolution":"1544x500","location":"assets","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1616437","resolution":"772x250","location":"assets","width":722,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5"],"block_files":[],"assets_screenshots":{"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1691466","resolution":"4","location":"plugin","width":875,"height":1055},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1691466","resolution":"3","location":"plugin","width":819,"height":406},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1691466","resolution":"5","location":"plugin","width":875,"height":854},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1691466","resolution":"1","location":"plugin","width":1140,"height":835},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1691466","resolution":"2","location":"plugin","width":1130,"height":875}},"screenshots":{"1":"Embedded PediaPress book page","2":"Gallery of PediaPress books","3":"Media button to launch shortcode embed helper form","4":"PediaPress book shortcode embed helper form","5":"PediaPress gallery shortcode embed helper form"}},"plugin_section":[],"plugin_tags":[52602,52599,52600,52601],"plugin_category":[],"plugin_contributors":[89223],"plugin_business_model":[],"class_list":["post-42925","plugin","type-plugin","status-publish","hentry","plugin_tags-free-lead-capture","plugin_tags-pediapress","plugin_tags-pediapress-embed","plugin_tags-pediapress-lead-capture","plugin_contributors-rpayne7264","plugin_committers-rpayne7264"],"banners":{"banner":"https:\/\/ps.w.org\/rdp-pediapress-embed\/assets\/banner-772x250.png?rev=1616437","banner_2x":"https:\/\/ps.w.org\/rdp-pediapress-embed\/assets\/banner-1544x500.png?rev=1616441","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/rdp-pediapress-embed\/assets\/icon-128x128.png?rev=1616445","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/rdp-pediapress-embed\/trunk\/screenshot-1.png?rev=1691466","caption":"Embedded PediaPress book page"},{"src":"https:\/\/ps.w.org\/rdp-pediapress-embed\/trunk\/screenshot-2.png?rev=1691466","caption":"Gallery of PediaPress books"},{"src":"https:\/\/ps.w.org\/rdp-pediapress-embed\/trunk\/screenshot-3.png?rev=1691466","caption":"Media button to launch shortcode embed helper form"},{"src":"https:\/\/ps.w.org\/rdp-pediapress-embed\/trunk\/screenshot-4.png?rev=1691466","caption":"PediaPress book shortcode embed helper form"},{"src":"https:\/\/ps.w.org\/rdp-pediapress-embed\/trunk\/screenshot-5.png?rev=1691466","caption":"PediaPress gallery shortcode embed helper form"}],"raw_content":"<!--section=description-->\n<p>RDP PediaPress Embed will pull content from PediaPress book pages and embed it in pages and posts.<\/p>\n\n<p>RDP PediaPress Embed also allows lead capture capabilities, utilizing free PediaPress ebooks as a bribe.\nThe default behavior is to display a pop-up light box, which will display whatever text, HTML, and\/or shortcode you desire.<\/p>\n\n<p>Your site will have an RSS feed for all books on the site, as well.<\/p>\n\n<h4>Known Issues<\/h4>\n\n<ul>\n<li>CSS clashes with Lightbox Plus Colorbox plug-in<\/li>\n<\/ul>\n\n<h4>Sponsor<\/h4>\n\n<p>This plug-in brought to you through the generous funding of <a href=\"http:\/\/www.limsinstitute.org\/\">Laboratory Informatics Institute, Inc.<\/a><\/p>\n\n<h3>Usage<\/h3>\n\n<h4>PediaPress Book<\/h4>\n\n<p>Use the shortcode [rdp-pediapress-embed] for embedding PediaPress book pages. The following arguments are accepted:<\/p>\n\n<ul>\n<li>url: (required) the web address of the PediaPress book that you want to embed on this page<\/li>\n<li>download_url: the web address to the ebook or the download page<\/li>\n<li>toc_show: 0 (zero) to hide table of contents (TOC) or 1 to show<\/li>\n<li>toc_links: Enabled \u00e2\u20ac\u201d TOC links are enabled; Logged-in \u00e2\u20ac\u201d TOC links are active only when a user is logged in; Disabled \u00e2\u20ac\u201d TOC links are completely disabled, all the time<\/li>\n<li>image_show: 0 (zero) to hide cover image or 1 to show <\/li>\n<li>title_show: 0 (zero) to hide book title or 1 to show <\/li>\n<li>full_title: 1 to display book titles as combination of Title and Subtitle or 0 (zero)<\/li>\n<li>subtitle_show: 0 (zero) to hide book sub-title  or 1 to show <\/li>\n<li>editor_show: 0 (zero) to hide book editor or 1 to show <\/li>\n<li>language_show: 0 (zero) to hide book language or 1 to show <\/li>\n<li>book_size_show: 0 (zero) to hide book size or 1 to show <\/li>\n<li>add_to_cart_show: 0 (zero) to hide Add-to-Cart button or 1 to show <\/li>\n<li>add_to_cart_text: text for Add-to-Cart button<\/li>\n<li>add_to_cart_size: size of the Add-to-Cart button - small, medium, large<\/li>\n<li>add_to_cart_color: color of the Add-to-Cart button - blue, creme, grey, orange, red<\/li>\n<li>cta_button_show: 0 (zero) to hide Call-to-Action button or 1 to show <\/li>\n<li>cta_button_text: text for Call-to-Action button<\/li>\n<li>cta_button_size: size of the Call-to-Action button - small, medium, large<\/li>\n<li>cta_button_color: color of the Call-to-Action button - blue, creme, grey, orange, red<\/li>\n<\/ul>\n\n<h4>Examples<\/h4>\n\n<p>Create a lead capture popup:<\/p>\n\n<p>[rdp-pediapress-embed url='https:\/\/pediapress.com\/books\/show\/f64f601dd8d018e8a3b1164d847dce\/' download_url='http:\/\/example.com\/pdf\/ebook.pdf'][gravityform id=\"1\" title=\"true\" description=\"true\"][\/rdp-pediapress-embed]<\/p>\n\n<p>Create a direct download button:<\/p>\n\n<p>[rdp-pediapress-embed url='https:\/\/pediapress.com\/books\/show\/f64f601dd8d018e8a3b1164d847dce\/' download_url='http:\/\/example.com\/pdf\/ebook.pdf']<\/p>\n\n<p>Default settings will create a book page with a Table of Contents (TOC) that has disabled links. To create a book page that requires visitors to be logged in for the TOC links to work, you would set the toc_links attribute to \"logged-in\":<\/p>\n\n<p>[rdp-pediapress-embed url='https:\/\/pediapress.com\/books\/show\/f64f601dd8d018e8a3b1164d847dce\/'  download_url='http:\/\/example.com\/pdf\/ebook.pdf' toc_links='logged-in']<\/p>\n\n<h4>PediaPress Gallery<\/h4>\n\n<p>Embedding a PediaPress gallery of books is implemented using the shortcode [rdp-pediapress-embed-gallery]. It accepts the following arguments:<\/p>\n\n<ul>\n<li>col: (required) number of columns to display per page<\/li>\n<li>num: (required) number of books to display per page<\/li>\n<li>size: accepted values - small, medium, large - dictate image and font size of gallery elements<\/li>\n<li>cat: comma separated list of category id numbers books must belong to<\/li>\n<li>tag: comma separated list of tag id numbers books must belong to<\/li>\n<li>sort_col: column name by which to sort books<\/li>\n<li>sort_dir: direction to sort books (ASC \/ DESC)<\/li>\n<li>full_title: 1 to display book titles as combination of Title and Subtitle or 0 (zero)<\/li>\n<li>image_show: 0 (zero) to hide cover images or 1 to show <\/li>\n<li>title_show: 0 (zero) to hide book titles or 1 to show <\/li>\n<li>subtitle_show: 0 (zero) to hide book sub-titles  or 1 to show <\/li>\n<li>editor_show: 0 (zero) to hide book editors or 1 to show <\/li>\n<li>language_show: 0 (zero) to hide book languages or 1 to show <\/li>\n<li>book_size_show: 0 (zero) to hide book sizes or 1 to show <\/li>\n<\/ul>\n\n<h4>Examples<\/h4>\n\n<p>[rdp-pediapress-embed-gallery col='3' num='3']<\/p>\n\n<p>[rdp-pediapress-embed-gallery col='2' num='10' cat='5' tag='7,8' sort_col='post_date' sort_dir='DESC']<\/p>\n\n<h3>External Scripts Included<\/h3>\n\n<ul>\n<li>jQuery ColorBox Plugin v1.3.20.2 under MIT License<\/li>\n<\/ul>\n\n<h3>Hook Reference:<\/h3>\n\n<h4>rdp_ppe_scripts_enqueued<\/h4>\n\n<ul>\n<li>Param: none<\/li>\n<li>Fires after enqueuing plug-in-specific scripts and styles<\/li>\n<\/ul>\n\n<h4>rdp_ppe_book_scripts_enqueued<\/h4>\n\n<ul>\n<li>Param 1: array containing shortcode attributes<\/li>\n<li>Param 2: null or string containing content of enclosed shortcode<\/li>\n<li>Fires after enqueuing book-specific scripts and styles<\/li>\n<\/ul>\n\n<h4>rdp_ppe_gallery_scripts_enqueued<\/h4>\n\n<ul>\n<li>Param 1: array containing shortcode attributes<\/li>\n<li>Param 2: null or string containing content of enclosed shortcode<\/li>\n<li>Fires after enqueuing gallery-specific scripts and styles<\/li>\n<\/ul>\n\n<h3>PHP Filter Reference:<\/h3>\n\n<h4>rdp_ppe_allow_shortcode<\/h4>\n\n<ul>\n<li>Param 1: boolean indicating if shortcode is allowed to execute - default: true<\/li>\n<li>Param 2: array containing shortcode attributes<\/li>\n<li>Param 3: null or string containing content of enclosed shortcode<\/li>\n<li>Return:  boolean indicating if shortcode is allowed to execute<\/li>\n<\/ul>\n\n<h4>rdp_ppe_book_main_content_classes<\/h4>\n\n<ul>\n<li>Param: String containing class names for the #rdp-ppe-main container when displaying a single book<\/li>\n<li>Return: class names for the #rdp-ppe-main container when displaying a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_before_meta_open<\/h4>\n\n<ul>\n<li>Param 1: array containing book content pieces<\/li>\n<li>Param 2: array containing shortcode attributes<\/li>\n<li>Return: string containing HTML \/ JavaScript \/ style block to inject before opening DIV of metadata section when displaying a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_after_meta_open<\/h4>\n\n<ul>\n<li>Param 1: array containing book content pieces<\/li>\n<li>Param 2: array containing shortcode attributes<\/li>\n<li>Return: string containing HTML \/ JavaScript \/ style block to inject after opening DIV of metadata section when displaying a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_book_atc_href<\/h4>\n\n<ul>\n<li>Param 1: string containing href value for Add-to-Cart button when displaying a single book<\/li>\n<li>Param 2: string containing URL to PediaPress.com book page<\/li>\n<li>Param 3: array containing book content pieces<\/li>\n<li>Param 4: array containing shortcode attributes<\/li>\n<li>Return: href value for Add-to-Cart button when displaying a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_atc_button<\/h4>\n\n<ul>\n<li>Param 1: string containing HTML for Add-to-Cart button<\/li>\n<li>Param 2: array containing book content pieces<\/li>\n<li>Param 3: array containing shortcode attributes<\/li>\n<li>Return: HTML for Add-to-Cart button<\/li>\n<\/ul>\n\n<h4>rdp_ppe_cta_button<\/h4>\n\n<ul>\n<li>Param 1: string containing HTML for Call-to-Action button<\/li>\n<li>Param 2: array containing book content pieces<\/li>\n<li>Param 3: array containing shortcode attributes<\/li>\n<li>Return: HTML for Call-to-Action button<\/li>\n<\/ul>\n\n<h4>rdp_ppe_before_meta_close<\/h4>\n\n<ul>\n<li>Param 1: array containing book content pieces<\/li>\n<li>Param 2: array containing shortcode attributes<\/li>\n<li>Return: string containing HTML \/ JavaScript \/ style block to inject before closing DIV of metadata section when displaying a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_after_meta_close<\/h4>\n\n<ul>\n<li>Param 1: array containing book content pieces<\/li>\n<li>Param 2: array containing shortcode attributes<\/li>\n<li>Return: string containing HTML \/ JavaScript \/ style block to inject after closing DIV of metadata section when displaying a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_toc<\/h4>\n\n<ul>\n<li>Param 1: string containing HTML for Table of Contents of a single book<\/li>\n<li>Param 2: array containing book content pieces<\/li>\n<li>Param 3: array containing shortcode attributes<\/li>\n<li>Return: HTML for Table of Contents of a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_render_book<\/h4>\n\n<ul>\n<li>Param 1: string containing HTML for a single book<\/li>\n<li>Param 2: array containing book content pieces<\/li>\n<li>Param 3: array containing shortcode attributes<\/li>\n<li>Return: HTML for a single book<\/li>\n<\/ul>\n\n<h4>rdp_ppe_gallery_item<\/h4>\n\n<ul>\n<li>Param 1: String containing HTML for a single gallery item<\/li>\n<li>Param 2: Array of input values for the gallery item<\/li>\n<li>Return: HTML for a single gallery item<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>From your WordPress dashboard<\/h4>\n\n<ol>\n<li>Visit 'Plugins &gt; Add New'<\/li>\n<li>Search for 'RDP PediaPress Embed'<\/li>\n<li>Click the Install Now link.<\/li>\n<li>Activate RDP PediaPress Embed once it is installed.<\/li>\n<\/ol>\n\n<h4>From WordPress.org<\/h4>\n\n<ol>\n<li>Download RDP PediaPress Embed zip file.<\/li>\n<li>Upload the 'rdp-pediapress-embed' directory from the zip file to your '\/wp-content\/plug-ins\/' directory, using your favorite method (ftp, sftp, scp, etc...)<\/li>\n<li>Activate RDP PediaPress Embed from your Plugins page.<\/li>\n<\/ol>\n\n<h4>After Activation - Go to 'Settings' &gt; 'RDP PPE' and:<\/h4>\n\n<ol>\n<li>Set configurations as desired.<\/li>\n<li>Click 'Save Changes' button.<\/li>\n<li>Go to 'Settings' &gt; 'Permalinks' and click the 'Save Changes' button so the custom RSS feed will work.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>refactored code to utilize subtitle as part of cover image file name<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>refactored code to use curl and tmp\/cookies.txt to satisfy PediaPress cookie capabilities check<\/li>\n<li>bug fix<\/li>\n<li>added rel=\"noindex, nofollow\" to TOC links<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Security update<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added shortcode to render RSS as gallery<\/li>\n<li>Update gallery code to handle books added as both posts and pages<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Update TOC link options<\/li>\n<li>Update shortcode pop-up script - removed validation check of download URL<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial RC<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><h4>From your WordPress dashboard<\/h4>\n\n<ol>\n<li>Visit 'Plugins &gt; Add New'<\/li>\n<li>Search for 'RDP PediaPress Embed'<\/li>\n<li>Click the Install Now link.<\/li>\n<li>Activate RDP PediaPress Embed once it is installed.<\/li>\n<\/ol>\n\n<h4>From WordPress.org<\/h4>\n\n<ol>\n<li>Download RDP PediaPress Embed zip file.<\/li>\n<li>Upload the 'rdp-pediapress-embed' directory from the zip file to your '\/wp-content\/plug-ins\/' directory, using your favorite method (ftp, sftp, scp, etc...)<\/li>\n<li>Activate RDP PediaPress Embed from your Plugins page.<\/li>\n<\/ol>\n\n<h4>After Activation - Go to 'Settings' &gt; 'RDP PPE' and:<\/h4>\n\n<ol>\n<li>Set configurations as desired.<\/li>\n<li>Click 'Save Changes' button.<\/li>\n<li>Go to 'Settings' &gt; 'Permalinks' and click the 'Save Changes' button so the custom RSS feed will work.<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"RDP PediaPress Embed lets you embed book content from PediaPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42925"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rpayne7264"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42925"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42925"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42925"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42925"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42925"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}