Skip to content

Commit

Permalink
Merge pull request #119 from isubit/INTERIM-44
Browse files Browse the repository at this point in the history
INTERIM-44  Made footer more consistent with rest of university
  • Loading branch information
njbooher authored Jun 5, 2017
2 parents cd924c4 + d1d1314 commit 41e5ee7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 15 deletions.
10 changes: 7 additions & 3 deletions templates/default_region_content_blocks/footer_fourth.tpl.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<p>Copyright &copy; <?php (module_exists('token_filter')) ? print('[current-date:custom:Y]') : print date('Y'); ?> <br /> Iowa State University of Science and Technology. All rights reserved.</p>
<ul class="menu">
<li class="first leaf">
<a href="<?php print $GLOBALS['base_url']; ?>/site-index"><i class="fa fa-list-ul" aria-hidden="true"></i>Site Index</a>
<a href="http://www.policy.iastate.edu/policy/discrimination">Non-discrimination Policy</a>
</li>
<li class="leaf">
<a href="http://www.policy.iastate.edu/electronicprivacy">Privacy Policy</a>
</li>
<li class="last leaf">
<a href="<?php print $GLOBALS['base_url']; ?>/sitemap" title="Display a site map with RSS feeds."><i class="fa fa-sitemap" aria-hidden="true"></i>Site map</a>
<a href="http://digitalaccess.iastate.edu">Digital Access &amp; Accessibility</a>
</li>
</ul>
</ul>
8 changes: 2 additions & 6 deletions templates/default_region_content_blocks/footer_third.tpl.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<p>Copyright &copy; <?php (module_exists('token_filter')) ? print('[current-date:custom:Y]') : print date('Y'); ?>, Iowa State University of Science and Technology. All rights reserved.</p>
<ul class="menu">
<li class="first leaf">
<a href="http://www.policy.iastate.edu/policy/discrimination">Non-discrimination Policy</a>
</li>
<li class="leaf">
<a href="http://www.policy.iastate.edu/electronicprivacy">Privacy Policy</a>
<a href="<?php print $GLOBALS['base_url']; ?>/site-index"><i class="fa fa-list-ul" aria-hidden="true"></i>Site Index</a>
</li>
<li class="last leaf">
<a href="http://digitalaccess.iastate.edu">Digital Access &amp; Accessibility</a>
<a href="<?php print $GLOBALS['base_url']; ?>/sitemap" title="Display a site map with RSS feeds."><i class="fa fa-sitemap" aria-hidden="true"></i>Site map</a>
</li>
</ul>
48 changes: 42 additions & 6 deletions theme-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,21 +255,57 @@ 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',
'delta' => 'menu-social',
'theme' => 'suitcase_interim',
'status' => 1,
'weight' => '-28',
'region' => 'footer_fourth',
'region' => 'footer_third',
'visibility' => BLOCK_VISIBILITY_NOTLISTED,
'pages' => '',
'title' => '<none>',
Expand Down

0 comments on commit 41e5ee7

Please sign in to comment.