'.t('You are here').''. implode(' / ', $breadcrumb) .'

'; } } //overrides taxonomy term page function function marinelli_taxonomy_term_page($tids, $result) { drupal_add_css(drupal_get_path('module', 'taxonomy') .'/taxonomy.css'); $output = ''; // Only display the description if we have a single term, to avoid clutter and confusion. if (count($tids) == 1) { $term = taxonomy_get_term($tids[0]); $description = $term->description; // Check that a description is set. if (!empty($description)) { $output .= '

'; $output .= filter_xss_admin($description); $output .= '

'; } } $output .= taxonomy_render_nodes($result); return $output; } function marinelli_admin_page($blocks) { $stripe = 0; $container = array(); foreach ($blocks as $block) { if ($block_output = theme('admin_block', $block)) { if (empty($block['position'])) { // perform automatic striping. $block['position'] = ++$stripe % 2 ? 'left' : 'right'; } if (!isset($container[$block['position']])) { $container[$block['position']] = ''; } $container[$block['position']] .= $block_output; } } $output = '
'; $output .= ''; foreach ($container as $id => $data) { $output .= '
'; $output .= $data; $output .= '
'; } $output .= '
'; return $output; } function marinelli_admin_block_content($content) { if (!$content) { return ''; } if (system_admin_compact_mode()) { $output = ''; } else { $output = '
'; foreach ($content as $item) { $output .= '
'. l($item['title'], $item['href'], $item['localized_options']) .'
'; $output .= '
'. $item['description'] .'
'; } $output .= '
'; } return $output; } function marinelli_system_admin_by_module($menu_items) { // admin by module page $stripe = 0; $output = ''; $container = array('left' => '', 'right' => ''); $flip = array('left' => 'right', 'right' => 'left'); $position = 'left'; // Iterate over all modules foreach ($menu_items as $module => $block) { list($description, $items) = $block; // Output links if (count($items)) { $block = array(); $block['title'] = $module; $block['content'] = theme('item_list', $items); $block['description'] = t($description); if ($block_output = theme('admin_block', $block)) { if (!isset($block['position'])) { // Perform automatic striping. $block['position'] = $position; $position = $flip[$position]; } $container[$block['position']] .= $block_output; } } } $output = '
'; foreach ($container as $id => $data) { $output .= '
'; $output .= $data; $output .= '
'; } $output .= '
'; return $output; } function phptemplate_get_primary_links() { return menu_tree(variable_get('menu_primary_links_source', 'primary-links')); } // retrieve custom theme settings $preload = theme_get_setting('cssPreload'); // print the js file if we choose css image preload if($preload == '1'){ drupal_add_js(drupal_get_path('theme','marinelli').'/js/preloadCssImages.jQuery_v5.js'); // load the javascript drupal_add_js('$(document).ready(function(){ $.preloadCssImages(); }); ','inline'); } $valore = theme_get_setting('menutype'); // if we choose dropdown if($valore == '1'){ drupal_add_js(drupal_get_path('theme','marinelli').'/js/jquery.hoverIntent.minified.js'); // load the javascript drupal_add_js(drupal_get_path('theme','marinelli').'/js/marinellidropdown.js'); // load the javascript drupal_add_css(drupal_get_path('theme','marinelli').'/dropdown.css'); // load the css }