# HG changeset patch # User casties # Date 1403258831 -7200 # Node ID d9767b5e93787dbdfc47e55135ca002954f2df5a # Parent 65b7937bab7be966ed1b5329eb89fc376486e585 remove backup files diff -r 65b7937bab7b -r d9767b5e9378 template.php~ --- a/template.php~ Fri Jun 20 09:39:25 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,181 +0,0 @@ -' . t('You are here') . ''; - - $output .= ''; - return $output; - } -} - -/** - * Override or insert variables into the maintenance page template. - */ -function mpiwg_preprocess_maintenance_page(&$vars) { - // While markup for normal pages is split into page.tpl.php and html.tpl.php, - // the markup for the maintenance page is all in the single - // maintenance-page.tpl.php template. So, to have what's done in - // mpiwg_preprocess_html() also happen on the maintenance page, it has to be - // called here. - mpiwg_preprocess_html($vars); -} - -/** - * Override or insert variables into the html template. - */ -function mpiwg_preprocess_html(&$vars) { - // Toggle fixed or fluid width. - if (theme_get_setting('mpiwg_width') == 'fluid') { - $vars['classes_array'][] = 'fluid-width'; - } - // Add conditional CSS for IE6. - drupal_add_css(path_to_theme() . '/fix-ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lt IE 7', '!IE' => FALSE), 'preprocess' => FALSE)); -} - -/** - * Override or insert variables into the html template. - */ -function mpiwg_process_html(&$vars) { - // Hook into color.module - if (module_exists('color')) { - _color_html_alter($vars); - } -} - -/** - * Override or insert variables into the page template. - */ -function mpiwg_preprocess_page(&$vars) { - // Move secondary tabs into a separate variable. - $vars['tabs2'] = array( - '#theme' => 'menu_local_tasks', - '#secondary' => $vars['tabs']['#secondary'], - ); - unset($vars['tabs']['#secondary']); - - if (isset($vars['main_menu'])) { - $vars['primary_nav'] = theme('links__system__main_menu', array( - 'links' => $vars['main_menu'], - 'attributes' => array( - 'class' => array('links', 'inline', 'main-menu'), - ), - 'heading' => array( - 'text' => t('Main menu'), - 'level' => 'h2', - 'class' => array('element-invisible'), - ) - )); - } - else { - $vars['primary_nav'] = FALSE; - } - if (isset($vars['secondary_menu'])) { - $vars['secondary_nav'] = theme('links__system_secondary_menu', array( - 'links' => $vars['secondary_menu'], - 'attributes' => array( - 'class' => array('links', 'inline', 'secondary-menu'), - ), - 'heading' => array( - 'text' => t('Secondary menu'), - 'level' => 'h2', - 'class' => array('element-invisible'), - ) - )); - } - else { - $vars['secondary_nav'] = FALSE; - } - - // Prepare header. - $site_fields = array(); - if (!empty($vars['site_name'])) { - $site_fields[] = $vars['site_name']; - } - if (!empty($vars['site_slogan'])) { - $site_fields[] = $vars['site_slogan']; - } - $vars['site_title'] = implode(' ', $site_fields); - if (!empty($site_fields)) { - $site_fields[0] = '' . $site_fields[0] . ''; - } - $vars['site_html'] = implode(' ', $site_fields); - - // Set a variable for the site name title and logo alt attributes text. - $slogan_text = $vars['site_slogan']; - $site_name_text = $vars['site_name']; - $vars['site_name_and_slogan'] = $site_name_text . ' ' . $slogan_text; -} - -/** - * Override or insert variables into the node template. - */ -function mpiwg_preprocess_node(&$vars) { - $vars['submitted'] = $vars['date'] . ' — ' . $vars['name']; -} - -/** - * Override or insert variables into the comment template. - */ -function mpiwg_preprocess_comment(&$vars) { - $vars['submitted'] = $vars['created'] . ' — ' . $vars['author']; -} - -/** - * Override or insert variables into the block template. - */ -function mpiwg_preprocess_block(&$vars) { - $vars['title_attributes_array']['class'][] = 'title'; - //$vars['classes_array'][] = 'clearfix'; - $vars['classes_array']= array('MPIWG_block'); -} - -/** - * Override or insert variables into the page template. - */ -function mpiwg_process_page(&$vars) { - // Hook into color.module - if (module_exists('color')) { - _color_page_alter($vars); - } -} - -/** - * Override or insert variables into the region template. - */ -function mpiwg_preprocess_region(&$vars) { - if ($vars['region'] == 'header') { - $vars['classes_array'][] = 'clearfix'; - } -} - -function mpiwg_links__system__main_menu($variables) { - - $html = " \n"; - - - return $html; -} \ No newline at end of file diff -r 65b7937bab7b -r d9767b5e9378 theme-settings.php~ --- a/theme-settings.php~ Fri Jun 20 09:39:25 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ - 'textfield', - '#title' => t('Link behind Logo'), - - '#default_value' => theme_get_setting('mpiwg_logo_link'), - '#description' => t('Specify the link behing the logo.'), - // Place this above the color scheme options. - '#weight' => -2, - ); -}