From 81b91247c5aa209c96d75bfe122b4b4cd49f9228 Mon Sep 17 00:00:00 2001 From: Angela McMahon Date: Fri, 2 Jun 2017 08:59:33 -0500 Subject: [PATCH 1/2] INTERIM-44 Made footer more consistent with rest of university --- .../footer_fourth.tpl.php | 10 ++-- .../footer_third.tpl.php | 8 +--- theme-settings.php | 48 ++++++++++++++++--- 3 files changed, 51 insertions(+), 15 deletions(-) diff --git a/templates/default_region_content_blocks/footer_fourth.tpl.php b/templates/default_region_content_blocks/footer_fourth.tpl.php index 7b62240..2c88b18 100644 --- a/templates/default_region_content_blocks/footer_fourth.tpl.php +++ b/templates/default_region_content_blocks/footer_fourth.tpl.php @@ -1,8 +1,12 @@ +

Copyright © , Iowa State University of Science and Technology. All rights reserved.

\ No newline at end of file + diff --git a/templates/default_region_content_blocks/footer_third.tpl.php b/templates/default_region_content_blocks/footer_third.tpl.php index 2c88b18..d76692d 100644 --- a/templates/default_region_content_blocks/footer_third.tpl.php +++ b/templates/default_region_content_blocks/footer_third.tpl.php @@ -1,12 +1,8 @@ -

Copyright © , Iowa State University of Science and Technology. All rights reserved.

diff --git a/theme-settings.php b/theme-settings.php index 632db09..72e6642 100644 --- a/theme-settings.php +++ b/theme-settings.php @@ -255,13 +255,49 @@ function suitcase_interim_config_form_submit($form, &$form_state) { menu_save($menu); - $item = array( - 'link_title' => 'Facebook', - 'link_path' => 'https://www.facebook.com/', - 'menu_name' => 'menu-social', + $links = array( + array( + 'link_title' => 'Facebook', + 'link_path' => 'https://www.facebook.com/', + 'menu_name' => 'menu-social', + 'weight' => 0, + ), + array( + 'link_title' => 'Twitter', + 'link_path' => 'https://www.twitter.com/', + 'menu_name' => 'menu-social', + 'weight' => 1, + ), + array( + 'link_title' => 'Instagram', + 'link_path' => 'https://www.instagram.com/', + 'menu_name' => 'menu-social', + 'weight' => 2, + ), + array( + 'link_title' => 'Youtube', + 'link_path' => 'https://www.youtube.com/', + 'menu_name' => 'menu-social', + 'weight' => 3, + ), + array( + 'link_title' => 'RSS', + 'link_path' => 'https://en.wikipedia.org/wiki/rss', + 'menu_name' => 'menu-social', + 'weight' => 4, + ), ); - menu_link_save($item); + $item = ''; + foreach ($links as $link) { + $item = array( + 'link_path' => $link['link_path'], + 'link_title' => $link['link_title'], + 'menu_name' => $link['menu_name'], + 'weight' => $link['weight'], + ); + menu_link_save($item); + } db_insert('block')->fields(array( 'module' => 'menu', @@ -269,7 +305,7 @@ function suitcase_interim_config_form_submit($form, &$form_state) { 'theme' => 'suitcase_interim', 'status' => 1, 'weight' => '-28', - 'region' => 'footer_fourth', + 'region' => 'footer_third', 'visibility' => BLOCK_VISIBILITY_NOTLISTED, 'pages' => '', 'title' => '', From d1d1314b8e3fa7a469e3005b9b2d6f537855d197 Mon Sep 17 00:00:00 2001 From: Angela McMahon Date: Fri, 2 Jun 2017 12:00:40 -0500 Subject: [PATCH 2/2] INTERIM-44 Added line break in copyright date --- templates/default_region_content_blocks/footer_fourth.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default_region_content_blocks/footer_fourth.tpl.php b/templates/default_region_content_blocks/footer_fourth.tpl.php index 2c88b18..6b95fbc 100644 --- a/templates/default_region_content_blocks/footer_fourth.tpl.php +++ b/templates/default_region_content_blocks/footer_fourth.tpl.php @@ -1,4 +1,4 @@ -

Copyright © , Iowa State University of Science and Technology. All rights reserved.

+

Copyright ©
Iowa State University of Science and Technology. All rights reserved.