You are here:\n\n"; } function phptemplate_xml_icon($url) { $dir = base_path() . path_to_theme() . '/images/rss.png'; if ($image = theme('image', $dir, t('XML feed'), t('XML feed'))) { return '
'. $image .'
'; } } function _word_split($text) { global $democratica_word_length; return preg_replace('/([^ ]{'. $democratica_word_length .'})(?=[^ ])/u', '\1-', $text[0]); } function word_split($text, $max_char = 15) { global $democratica_word_length; $democratica_word_length = $max_char; return substr(preg_replace_callback('/>[^<]+'. $text .'<'), 1, -1); } function phptemplate_comment_thread_min($comment, $threshold, $pid = 0) { if (comment_visible($comment, $threshold)) { $output = "
\n"; $output .= theme('comment_view', $comment, '', 0); $output .= "
\n"; } return $output; } function phptemplate_comment_thread_max($comment, $threshold, $level = 0) { $output = ''; if ($comment->depth) { $output .= "
\n"; } $output .= theme('comment_view', $comment, theme('links', module_invoke_all('link', 'comment', $comment, 0)), comment_visible($comment, $threshold)); if ($comment->depth) { $output .= "
\n"; } return $output; } function phptemplate_status_messages() { if ($data = drupal_get_messages()) { $output = ''; foreach ($data as $type => $messages) { $output .= "
\n"; $output .= " \n"; $output .= "
\n"; } return $output; } } function phptemplate_aggregator_page_item($item) { static $last; $date = date('Ymd', $item->timestamp); if ($date != $last) { $last = $date; $output .= '

'. date('F j, Y', $item->timestamp) ."

\n"; } $output .= "
\n"; $output .= "

link\">$item->title

\n"; if ($item->ftitle && $item->fid) { $output .= '
Source: '. l($item->ftitle, "aggregator/sources/$item->fid") .' @ '. date('H:i', $item->timestamp) ."\n
\n"; } $output .= "
\n"; if ($item->description) { $output .= "
$item->description
\n"; } $result = db_query('SELECT c.title, c.cid FROM {aggregator_category_item} ci LEFT JOIN {aggregator_category} c ON ci.cid = c.cid WHERE ci.iid = %d ORDER BY c.title', $item->iid); $categories = array(); while ($category = db_fetch_object($result)) { $categories[] = l($category->title, 'aggregator/categories/'. $category->cid); } if ($categories) { $output .= '
'. t('Categories') .': '. implode(', ', $categories) ."
\n"; } $output .= "
\n"; $output .= "
\n"; return $output; } /* function phptemplate_menu_item($mid) { $menu = menu_get_menu(); $link_mid = $mid; while ($menu['items'][$link_mid]['type'] & MENU_LINKS_TO_PARENT) { $link_mid = $menu['items'][$link_mid]['pid']; } $class = array(); $local_tasks = menu_get_local_tasks(); if (menu_in_active_trail($mid)) { $class = array('class' => 'current'); } return l($menu['items'][$mid]['title'], $menu['items'][$link_mid]['path'], array_key_exists('description', $menu['items'][$mid]) ? array_merge($class, array("title" => $menu['items'][$mid]['description'])) : $class); } function phptemplate_menu_local_task($mid, $active) { $local_tasks = menu_get_local_tasks(); $pid = menu_get_active_nontask_item(); $menu = menu_get_menu(); if ($active) { if ($menu['items'][$mid]['children'][0] == menu_get_active_item()) { $output = '
  • '. $menu['items'][$mid]['title'] .''; } else { $output = '
  • '. theme('menu_item', $mid) ."
  • \n"; } foreach ($local_tasks[$pid]['children'] as $mid) { if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children']) > 1) { $output .= "\n"; } } $output .= "\n"; return $output; } else { if (menu_in_active_trail($mid)) { return '
  • '. $menu['items'][$mid]['title'] ."
  • \n"; } else { return '
  • '. theme('menu_item', $mid) ."
  • \n"; } } } function phptemplate_menu_local_tasks() { $local_tasks = menu_get_local_tasks(); $pid = menu_get_active_nontask_item(); $output = ''; if (count($local_tasks[$pid]['children'])) { $output .= "
    \n"; $output .= " \n"; $output .= "
    \n"; } return $output; } */ ?>