From: Steve Sutton Date: Mon, 11 May 2015 15:36:36 +0000 (-0400) Subject: Adding post content editor to blocks X-Git-Tag: v1.2.0~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=234e2822bf21224a474cac8bc3f31d66f6247def;p=WP-Plugins%2Fglm-blocks.git Adding post content editor to blocks This will let blocks to have links --- diff --git a/glm-blocks.php b/glm-blocks.php index 24fd69a..ca4c89d 100644 --- a/glm-blocks.php +++ b/glm-blocks.php @@ -1,7 +1,7 @@ Author URI: http://www.gaslightmedia.com diff --git a/models/block.php b/models/block.php index 144cbc0..efaebf3 100644 --- a/models/block.php +++ b/models/block.php @@ -88,7 +88,7 @@ class glm_models_block 'show_in_nav_menus' => false, 'can_export' => true, 'menu_position' => 5, - 'supports' => array('thumbnail', 'title', 'excerpt', 'page-attributes'), + 'supports' => array('thumbnail', 'title', 'editor', 'excerpt', 'page-attributes'), 'has_archive' => false, 'menu_icon' => 'dashicons-exerpt-view', 'capability_type' => 'page', diff --git a/views/front/showBlocks.php b/views/front/showBlocks.php index b3e7c9a..aee1ce1 100644 --- a/views/front/showBlocks.php +++ b/views/front/showBlocks.php @@ -15,7 +15,7 @@ url):?> -

post_excerpt;?>

+

post_content . $block->post_excerpt;?>

- \ No newline at end of file +