{"id":130807,"date":"2020-10-29T11:28:36","date_gmt":"2020-10-29T11:28:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/timber-editor\/"},"modified":"2020-12-16T12:02:28","modified_gmt":"2020-12-16T12:02:28","slug":"editor-for-timber","status":"publish","type":"plugin","link":"https:\/\/da.wordpress.org\/plugins\/editor-for-timber\/","author":17042666,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"5.5.18","requires":"5.5","requires_php":"7.4","requires_plugins":"","header_name":"Editor for Timber","header_author":"Daniel Weipert","header_description":"Admin Editor for Timber","assets_banners_color":"44cc94","last_updated":"2020-12-16 12:02:28","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/gitlab.com\/DRogueRonin\/wp-plugin-timber-editor","header_author_uri":"https:\/\/dweipert.de","rating":0,"author_block_rating":0,"active_installs":50,"downloads":1893,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":{"1.0.2":{"tag":"1.0.2","author":"drogueronin","date":"2020-12-16 12:02:28"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2411861,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2411861,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4516,17809,17808],"plugin_category":[43],"plugin_contributors":[192505],"plugin_business_model":[],"class_list":["post-130807","plugin","type-plugin","status-publish","hentry","plugin_tags-templates","plugin_tags-timber","plugin_tags-twig","plugin_category-customization","plugin_contributors-drogueronin","plugin_committers-drogueronin"],"banners":{"banner":"https:\/\/ps.w.org\/editor-for-timber\/assets\/banner-772x250.jpg?rev=2411861","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/editor-for-timber\/assets\/icon-128x128.png?rev=2411861","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<h3>Features<\/h3>\n\n<ul>\n<li>adds a metabox to configurable Post-Types to create and edit Twig templates<\/li>\n<li>adds Twig support to the WP Theme &amp; Plugin editors\n\n<ul>\n<li>you can even customize the CodeMirror theme<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>Plugin Dependencies<\/h3>\n\n<ul>\n<li>https:\/\/wordpress.org\/plugins\/timber-library\/<\/li>\n<li>https:\/\/wordpress.org\/plugins\/classic-editor\/<\/li>\n<\/ul>\n\n<h3>How to use the MetaBox Feature<\/h3>\n\n<p>The plugin uses the path defined in <code>Timber::$locations<\/code> as the templates path or falls back to the uploads folder if none is provided.<\/p>\n\n<p>Either adjust your <code>Timber::render('page.twig', $context)<\/code>-functions like this:<\/p>\n\n<pre><code>$filenames = [TimberEditor::getTemplateFilename(), 'page.twig'];\nTimber::render($filenames, $context);\n<\/code><\/pre>\n\n<p>like this<\/p>\n\n<pre><code>TimberEditor::render('page.twig', $context);\n# 'page.twig' serves as a fallback if the current posts's template doesn't exist\n<\/code><\/pre>\n\n<p>or like this<\/p>\n\n<pre><code>TimberEditor::renderPost('page.twig', $context);\n# renderPost() automatically adds ['post' =&gt; new Timber\\Post()] to the $context\n<\/code><\/pre>","raw_excerpt":"Page, Theme &amp; Plugin Editor Extension for Timber http:\/\/www.upstatement.com\/timber\/","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/130807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=130807"}],"author":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/drogueronin"}],"wp:attachment":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=130807"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=130807"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=130807"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=130807"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=130807"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=130807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}