From: Steve Sutton Date: Thu, 3 Mar 2016 15:41:12 +0000 (-0500) Subject: Add image size for blocks and remove old widget area X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d76717a5d9c072de1eae20abc03d20aaa5a17288;p=web%2FGruntInit%2FglmTheme.git Add image size for blocks and remove old widget area Side widget area not used so removed. Adding block image size for the blocks --- diff --git a/root/functions.php b/root/functions.php index 1c2e5b9..d3c7fd5 100644 --- a/root/functions.php +++ b/root/functions.php @@ -11,16 +11,6 @@ if (!function_exists('glm_quicksite_widget_init')) { function glm_quicksite_widget_init() { - register_sidebar(array( - 'name' => __('Right Sidebar'), - 'id' => 'sidebar-r', - 'description' => __('Appears in Right Sidebar') - )); - //register_sidebar(array( - // 'name' => __('Footer'), - // 'id' => 'sidebar-f', - // 'description' => __('Appears in Footer Area') - //)); register_sidebar(array( 'name' => __('Slideshow'), 'id' => 'slideshow', @@ -122,6 +112,11 @@ function mytheme_init() { add_action('init', 'mytheme_init', 10); +function wpse_setup_theme() { + add_image_size('glm-block-image', 290, 190,true); +} + +add_action( 'after_setup_theme', 'wpse_setup_theme' ); function mytheme_search_loop() { while ( have_posts() ) : the_post(); ?> diff --git a/root/parts/glm-blocks.php b/root/parts/glm-blocks.php index e8b8594..8f92ed5 100644 --- a/root/parts/glm-blocks.php +++ b/root/parts/glm-blocks.php @@ -6,7 +6,7 @@ url):?> externalUrl){echo ' target="_blank"';}?>> - thumbnail;?> + ID, 'glm-block-image');?> url):?>