From 234e2822bf21224a474cac8bc3f31d66f6247def Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 11 May 2015 11:36:36 -0400 Subject: [PATCH] Adding post content editor to blocks This will let blocks to have links --- glm-blocks.php | 2 +- models/block.php | 2 +- views/front/showBlocks.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 + -- 2.17.1