From 64c5ea25c22ead3f52e06e94562965abfb70ee12 Mon Sep 17 00:00:00 2001 From: Stef Kariotidis Date: Sun, 20 Nov 2016 13:09:16 +0200 Subject: [PATCH] blog page as grid --- home.php | 19 ++++++++------ inc/customizer.php | 1 + loop-templates/content-grid.php | 44 +++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 8 deletions(-) create mode 100644 loop-templates/content-grid.php diff --git a/home.php b/home.php index 9f08b55..f258bc4 100644 --- a/home.php +++ b/home.php @@ -27,9 +27,8 @@ $posts_style = get_theme_mod( 'understrap_posts_index_style' ); - +
-
@@ -39,10 +38,14 @@ $posts_style = get_theme_mod( 'understrap_posts_index_style' ); -
+ - + diff --git a/inc/customizer.php b/inc/customizer.php index 2e1722e..67a167a 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -142,6 +142,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) { 'choices' => array( 'default' => __( 'Default', 'understrap' ), 'masonry' => __( 'Masonry', 'understrap' ), + 'grid' => __( 'Grid', 'understrap' ), ), 'priority' => '30', ) diff --git a/loop-templates/content-grid.php b/loop-templates/content-grid.php new file mode 100644 index 0000000..dbde89d --- /dev/null +++ b/loop-templates/content-grid.php @@ -0,0 +1,44 @@ + + +
+ + +
+ +
id="post-"> + ID ), '_wp_attachment_image_alt', true ); ?> + <?php echo esc_html( $alt ); ?> + +
+ +
+

+ + + + + + + +
+ +
+ +
+ + +
+ + +
+