From 8d56d8732bf87b2c38113be1ce8387cc91f00a4a Mon Sep 17 00:00:00 2001 From: Niels Lange Date: Fri, 20 Mar 2020 19:07:34 +0700 Subject: [PATCH 1/2] #67: Add second footer widget section --- footer.php | 12 +++++++++++- functions.php | 18 +++++++++++++++--- style.css | 13 +++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) diff --git a/footer.php b/footer.php index 141eba4..a6497d2 100644 --- a/footer.php +++ b/footer.php @@ -39,7 +39,17 @@ diff --git a/functions.php b/functions.php index 24258f7..873cf97 100644 --- a/functions.php +++ b/functions.php @@ -144,9 +144,21 @@ function smntcs_retro_sidebars() { register_sidebar( array( - 'id' => 'footer-sidebar', - 'name' => __( 'Footer Sidebar', 'smntcs-retro' ), - 'description' => __( 'Add widgets to the footer sidebar.', 'smntcs-retro' ), + 'id' => 'footer-sidebar-left', + 'name' => __( 'Footer Sidebar Left', 'smntcs-retro' ), + 'description' => __( 'Add widgets to the footer sidebar left.', 'smntcs-retro' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ) + ); + + register_sidebar( + array( + 'id' => 'footer-sidebar-right', + 'name' => __( 'Footer Sidebar Right', 'smntcs-retro' ), + 'description' => __( 'Add widgets to the footer sidebar right.', 'smntcs-retro' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', diff --git a/style.css b/style.css index 7bbfb3d..1d3f7a5 100644 --- a/style.css +++ b/style.css @@ -383,6 +383,19 @@ article p:first-of-type { margin-bottom: 1em; } +@media screen and (min-width: 580px) { + + #footer-widget-wrapper { + display: flex; + } + + #footer-widget-wrapper-left, + #footer-widget-wrapper-right { + padding-right: 2em; + } +} + #footer-credits-wrapper { margin-bottom: 1em; } + From f798f939d70ec02a0ba7dd362ecefb28435e7028 Mon Sep 17 00:00:00 2001 From: Niels Lange Date: Fri, 20 Mar 2020 19:17:29 +0700 Subject: [PATCH 2/2] #67: Fix Travis issue --- README.txt | 3 +++ footer.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 5f67b3f..12fc0e3 100644 --- a/README.txt +++ b/README.txt @@ -41,6 +41,9 @@ SMNTCS Retro bundles the following third-party resources: == Changelog == +=== 1.4 (2020.03.20) === +* [Add second footer widget section](https://github.com/nielslange/smntcs-retro/issues/67) + === 1.3 (2020.03.15) === * [Add 404 page](https://github.com/nielslange/smntcs-retro/issues/63) * [Add menu level limitation to README.txt](https://github.com/nielslange/smntcs-retro/issues/57) diff --git a/footer.php b/footer.php index a6497d2..9f0c9f6 100644 --- a/footer.php +++ b/footer.php @@ -48,7 +48,7 @@