{"id":2115,"date":"2007-04-18T18:58:18","date_gmt":"2007-04-18T18:58:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/enzymes\/"},"modified":"2010-06-27T13:27:01","modified_gmt":"2010-06-27T13:27:01","slug":"enzymes","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/enzymes\/","author":153160,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.3","stable_tag":"2.3","tested":"3.0.5","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Enzymes","header_author":"Andrea Ercolino","header_description":"","assets_banners_color":"","last_updated":"2010-06-27 13:27:01","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/noteslog.com\/","header_plugin_uri":"http:\/\/noteslog.com\/enzymes\/","header_author_uri":"http:\/\/noteslog.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3988,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2","1.3","2.0","2.1","2.2","2.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2010,27433,27435,5069,27434],"plugin_category":[],"plugin_contributors":[82335],"plugin_business_model":[],"class_list":["post-2115","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-fields","plugin_tags-enzymes","plugin_tags-inclusion","plugin_tags-properties","plugin_tags-transclusion","plugin_contributors-aercolino","plugin_committers-aercolino"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/enzymes.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>While editing the content (the visual editor is supported), Enzymes let's you retrieve properties and custom fields of posts, pages, and authors, and have them appear right there (transclusion).<\/p>\n\n<p>If you want something to appear elsewhere, outside the content, you can use Enzymes directly from WordPress theme files.<\/p>\n\n<p>You can also format and modify any transcluded content on the fly, using reusable code snippets stored inside files or custom fields.<\/p>\n\n<p>Enzymes makes it very easy to re-use parts of your content around your blog, just by referencing it.<\/p>\n\n<p>Here are two little samples, whose preconditions are these:\n* you have a post with the slug <code>postcard-from-barcelona<\/code>, with a custom field with the key <code>report<\/code> and the value <code>warm and sunny (Feb, 2008)<\/code>\n* in the post with the id 1 you have a custom field with the key marker and the value <code>return '&lt;span style=\"background-color:' . $this-&gt;substrate . ';\"&gt;' . $this-&gt;pathway . '&lt;\/span&gt;';<\/code><\/p>\n\n<h4>Simple transclusion: a custom field of a post is made appear in another post<\/h4>\n\n<blockquote>The weather in Barcelona was always {[ @postcard-from-barcelona.report ]} and we stayed outdoor most of the day.<\/blockquote>\n\n<p>is sent to the browser as<\/p>\n\n<blockquote>The weather in Barcelona was always warm and sunny (Feb, 2008) and we stayed outdoor most of the day.<\/blockquote>\n\n<h4>Simple evaluation: a custom field is transcluded and highlighed with a yellow marker<\/h4>\n\n<blockquote>The weather in Barcelona was always {[ @postcard-from-barcelona.report | 1.marker( =yellow= ) ]} and we stayed outdoor most of the day.<\/blockquote>\n\n<p>is sent to the browser as<\/p>\n\n<blockquote>The weather in Barcelona was always &lt;span style=\"background-color:yellow;\"&gt;warm and sunny (Feb, 2008)&lt;\/span&gt; and we stayed outdoor most of the day.<\/blockquote>\n\n<h4>Enzymes Manual<\/h4>\n\n<p>I've set up a page with <a href=\"http:\/\/noteslog.com\/enzymes\/\" title=\"manual and examples\">all you need to know about Enzymes<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy to your plugins folder<\/li>\n<li>Activate Enzymes<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>none<\/p>","raw_excerpt":"Retrieve properties and custom fields of posts, pages, and authors, right into the visual editor of posts and pages, and everywhere else.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2115"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/aercolino"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2115"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2115"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2115"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2115"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2115"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}