{"id":52944,"date":"2014-10-01T16:06:26","date_gmt":"2014-10-01T16:06:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/p5-embedder\/"},"modified":"2015-09-04T21:21:36","modified_gmt":"2015-09-04T21:21:36","slug":"p5-embedder","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/p5-embedder\/","author":14016297,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.0","stable_tag":"0.1.3","tested":"4.2.39","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"p5.js Embedder","header_author":"Lauren McCarthy","header_description":"","assets_banners_color":"","last_updated":"2015-09-04 21:21:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/lmccart\/p5.js\/wiki\/wordpress-embedder","header_author_uri":"http:\/\/lauren-mccarthy.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2091,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.1","0.1.2","0.1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[229,1731,128229,128228,14584],"plugin_category":[59],"plugin_contributors":[128230],"plugin_business_model":[],"class_list":["post-52944","plugin","type-plugin","status-closed","hentry","plugin_tags-javascript","plugin_tags-js","plugin_tags-p5","plugin_tags-p5-js","plugin_tags-teaching","plugin_category-utilities-and-tools","plugin_contributors-lmccart","plugin_committers-lmccart"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/p5-embedder.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>To include a p5 sketch:<\/h4>\n\n<ol>\n<li><p>Upload the sketch.js file to Media Library.<\/p><\/li>\n<li><p>While editing post, choose 'Add Media' and choose the uploaded JS file, it will\nadd a link in your post.<\/p><\/li>\n<li><p>Add class='p5-embed' to the link to specify it should be parsed as a p5 sketch.\n<a href='#'>your_filename<\/a><\/p><\/li>\n<li><p>If you would like to specify the height and width of the frame of your sketch, use\nthe data-height and data-width tags (you can specify one or both of these).\n<a href='#'>your_filename<\/a><\/p><\/li>\n<li><p>By default the sketch and code are displayed. If you would like to hide the code, \nuse the tag data-nocode='true'.\n<a href='#'>your_filename<\/a><\/p><\/li>\n<li><p>You can override the default font-size by adding data-fontsize=n, where n is the size\nof the font in pixels (for example, 10).<\/p><\/li>\n<\/ol>\n\n<h4>Including media<\/h4>\n\n<p>To include external files (for example, an image via loadImage) you will need to upload the files individually to wordpress and use the full blog url or the upload in the JS code.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Choose 'Plugins', 'Add New', 'Upload', and upload p5-embedder.zip.<\/li>\n<li>Activate the plugin. See Description for instructions for use in posts.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Fixed jquery link to work for 0.4.<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Fixed issue with wordpress 4.2.3 causing errors.<\/li>\n<\/ul>\n\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Updated to v0.4.9 of p5.js<\/li>\n<\/ul>","raw_excerpt":"To include a p5 sketch:","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52944","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=52944"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lmccart"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52944"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52944"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52944"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52944"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52944"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}