{"id":72793,"date":"2017-08-06T20:24:32","date_gmt":"2017-08-06T20:24:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/blade-engine\/"},"modified":"2017-08-06T20:32:01","modified_gmt":"2017-08-06T20:32:01","slug":"wp-blade-engine","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/wp-blade-engine\/","author":14420497,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"4.8.28","requires":"4.8","requires_php":"","requires_plugins":"","header_name":"Blade Engine","header_author":"Lars-","header_description":"Adds a Blade render engine to use in your theme","assets_banners_color":"323232","last_updated":"2017-08-06 20:32:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/www.ljpc.nl","rating":0,"author_block_rating":0,"active_installs":20,"downloads":1922,"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":"1709215","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1709215","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1709215","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1709215","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[12762,144743,4298,12763,8909],"plugin_category":[],"plugin_contributors":[144741],"plugin_business_model":[],"class_list":["post-72793","plugin","type-plugin","status-publish","hentry","plugin_tags-blade","plugin_tags-blade-render-engine","plugin_tags-engine","plugin_tags-laravel","plugin_tags-render","plugin_contributors-lars-2","plugin_committers-lars-2"],"banners":{"banner":"https:\/\/ps.w.org\/wp-blade-engine\/assets\/banner-772x250.png?rev=1709215","banner_2x":"https:\/\/ps.w.org\/wp-blade-engine\/assets\/banner-1544x500.png?rev=1709215","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-blade-engine\/assets\/icon-128x128.png?rev=1709215","icon_2x":"https:\/\/ps.w.org\/wp-blade-engine\/assets\/icon-256x256.png?rev=1709215","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds and loads philo\/laravel-blade to your Wordpress installation.\nIt loads two functions, which enable you to use the Blade render engine in your templates which make your themes better readable.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>The plugin adds two functions:\n- render_blade_view (void, echoes the content)\n- get_rendered_blade_view (string)<\/p>\n\n<p>Both functions take the same parameters:\n1. view (required, string)\n2. attributes (optional, array)<\/p>\n\n<p>When installed, the plugin creates a \"views\" folder in your theme directory. This is where you put your blade templates (with the .blade.php extension).\nThe \"views\" folder may contain subfolders.<\/p>\n\n<h3>Example<\/h3>\n\n<p>wp-contents\/themes\/your-theme\/views\/components\/article.blade.php:\n    <code>blade\n@if($show_text)\n{{ $text }}\n@endif<\/code><\/p>\n\n<p>wp-contents\/themes\/your-theme\/functions.php:\n    <code>php\n&lt;?php\nrender_blade_view('components.article', [\n    'show_text' =&gt; true,\n    'text' =&gt; 'Hello World!',\n]);<\/code><\/p>\n\n<p>When ran on any page, it will output \"Hello World!\"<\/p>\n\n<h3>Blade<\/h3>\n\n<p>Blade is a template engine which is mainly used by Laravel. More information here: https:\/\/laravel.com\/docs\/5.1\/blade\nThis plugin supports all the directives which are available in Laravel 5.1.<\/p>\n\n<h3>License<\/h3>\n\n<p>This file is part of Blade Engine.<\/p>\n\n<p>Blade Engine is free software: you can redistribute it and\/or modify it under the terms of the GNU General Public License as published\nby the Free Software Foundation.<\/p>\n\n<p>Blade Engine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<\/p>\n\n<p>Get a copy of the GNU General Public License in <a href=\"http:\/\/www.gnu.org\/licenses\/\">http:\/\/www.gnu.org\/licenses\/<\/a>.<\/p>\n\n<!--section=installation-->\n<ul>\n<li>Upload plugin files to your plugins folder, or install using WordPress built-in Add New Plugin installer;<\/li>\n<li>Activate the plugin;<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ul>\n<li>Upload plugin files to your plugins folder, or install using WordPress built-in Add New Plugin installer;<\/li>\n<li>Activate the plugin;<\/li>\n<\/ul><\/dd>\n\n<\/dl>","raw_excerpt":"Adds Blade functionality to your theme","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/72793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=72793"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lars-2"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=72793"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=72793"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=72793"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=72793"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=72793"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=72793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}