module; $classes[] = $vars['zebra']; $vars['edit_links_array'] = array(); $vars['edit_links'] = ''; if (user_access('administer blocks')) { include_once './' . drupal_get_path('theme', 'mothership') . '/template/template.block-editing.php'; zen_mothership_preprocess_block_editing($vars, $hook); $classes[] = 'with-block-editing'; } // Render block classes. $vars['classes'] = implode(' ', $classes); //dsm($vars['template_files']); } /* ===================================== views * ------------------------------------- */ function mothership_preprocess_views_view_list(&$vars){ mothership_preprocess_views_view_unformatted($vars); } function mothership_preprocess_views_view_unformatted(&$vars) { $view = $vars['view']; $rows = $vars['rows']; $vars['classes'] = array(); // Set up striping values. // foreach ($rows as $id => $row) { // $vars['classes'][$id] = 'views-row-' . ($id + 1); // $vars['classes'][$id] .= ' views-row-' . ($id % 2 ? 'even' : 'odd'); // if ($id == 0) { // $vars['classes'][$id] .= ' first'; // } // } // $vars['classes'][$id] .= ' last'; } function mothership_content_view_multiple_field($items, $field, $values) { $output = ''; foreach ($items as $item) { if (!empty($item) || $item == '0') { $output .= '
'. $item .'
'; } } return $output; } /* ===================================== Breadcrumb * ------------------------------------- */ /* function mothership_preprocess(&$variables, $hook) { //Make active page title in breadcrumbs if(!empty($variables['breadcrumb'])) $variables['breadcrumb'] = ''; } */ /*changes the home title to the sitename*/ /* function mothership_breadcrumb($breadcrumb) { GLOBAL $base_path; if (strip_tags($breadcrumb[0]) == "Home") { $breadcrumb[0] =''.variable_get(site_name,'').''; } if (!empty($breadcrumb)) { return '
  • '. implode('/
  • ', $breadcrumb) .'
  • '; } } */