Commit a80718a4 authored by Eric Bremner's avatar Eric Bremner
Browse files

Branding: Fixing spacing in header.

parent 22a27317
......@@ -98,7 +98,7 @@
padding: 0;
margin: 0;
position: relative;
top: 10px;
}
.uw-homepage-banners-figure h2 {
......
......@@ -41,7 +41,6 @@ function uw_virtual_site_homepage_image_field_widget_process($element, &$form_st
* Placing homepage banners on the virtual site homepage.
*/
function uw_virtual_site_homepage_page_alter(&$page) {
global $base_path;
// Setting the variables to be used in homepage banners.
......@@ -181,7 +180,12 @@ function uw_virtual_site_homepage_page_alter(&$page) {
// If there is credentials in the virutal site homepage settings, add it to the header.
if(isset($page['uw-virtual-site-homepage']['field_uw_credentials'])) {
$page['header_second']['boxes_site_info']['content']['#markup'] = preg_replace('/<p>(.*)<a(.*)<\/a>/s', '<h2>' . $page['uw-virtual-site-homepage']['field_uw_credentials'][0]['#markup'] . '</h2>', $page['header_second']['boxes_site_info']['content']['#markup']);
if(isset($page['header_second']['boxes_site_info']['content']['#markup'])) {
$page['header_second']['boxes_site_info']['content']['#markup'] = preg_replace('/<p>(.*)<a(.*)<\/a>/s', '<h2>' . $page['uw-virtual-site-homepage']['field_uw_credentials'][0]['#markup'] . '</h2>', $page['header_second']['boxes_site_info']['content']['#markup']);
}
else if($page['header_second'][boxes_site_info]['#markup']) {
$page['header_second'][boxes_site_info]['#markup'] = preg_replace('/<p>(.*)<a(.*)<\/a>/s', '<h2>' . $page['uw-virtual-site-homepage']['field_uw_credentials'][0]['#markup'] . '</h2>', $page['header_second'][boxes_site_info]['#markup']);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment