| 1 |
<?php |
<?php |
| 2 |
// $Id: syndication.module,v 1.58.2.8 2009/03/23 19:56:01 aaron1234nz Exp $ |
// $Id: syndication.module,v 1.58.2.9 2009/04/03 23:41:14 aaron1234nz Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 197 |
$items = syndication_taxonomy_build_list_items($index = 0, $tree); |
$items = syndication_taxonomy_build_list_items($index = 0, $tree); |
| 198 |
if ($items) { |
if ($items) { |
| 199 |
$col_num = $vocab_number % $syndication_columns; |
$col_num = $vocab_number % $syndication_columns; |
| 200 |
$columns[$col_num] .= theme('item_list', $items, $vocab->name); |
$columns[$col_num] .= theme('item_list', $items, t($vocab->name)); |
| 201 |
$vocab_number++; |
$vocab_number++; |
| 202 |
} |
} |
| 203 |
} |
} |
| 225 |
else { |
else { |
| 226 |
$term_path = "taxonomy/term/{$term->tid}/0/feed"; |
$term_path = "taxonomy/term/{$term->tid}/0/feed"; |
| 227 |
} |
} |
| 228 |
$term_link = l($term->name, $term_path, array('title' => $term->description)); |
$term_link = l(t($term->name), $term_path, array('title' => $term->description)); |
| 229 |
if ($term->depth) { |
if ($term->depth) { |
| 230 |
$prefix = str_repeat('--', $term->depth) .' '; |
$prefix = str_repeat('--', $term->depth) .' '; |
| 231 |
} |
} |
| 264 |
$current_depth = $tree[$index]->depth; |
$current_depth = $tree[$index]->depth; |
| 265 |
$form['categories'][$vocab->name] = array( |
$form['categories'][$vocab->name] = array( |
| 266 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 267 |
'#title' => $vocab->name, |
'#title' => t($vocab->name), |
| 268 |
'#collapsible' => TRUE, |
'#collapsible' => TRUE, |
| 269 |
'#collapsed' => FALSE, |
'#collapsed' => FALSE, |
| 270 |
); |
); |
| 272 |
$term = $tree[$index]; |
$term = $tree[$index]; |
| 273 |
$count = taxonomy_term_count_nodes($term->tid); |
$count = taxonomy_term_count_nodes($term->tid); |
| 274 |
if ($count || $show_unused_terms) { |
if ($count || $show_unused_terms) { |
| 275 |
$options[$term->tid] = $term->name; |
$options[$term->tid] = t($term->name); |
| 276 |
$index++; |
$index++; |
| 277 |
} |
} |
| 278 |
else { |
else { |
| 439 |
//taxonomy |
//taxonomy |
| 440 |
if (module_exists('taxonomy')) { |
if (module_exists('taxonomy')) { |
| 441 |
foreach (taxonomy_get_vocabularies() as $vid => $vocab) { |
foreach (taxonomy_get_vocabularies() as $vid => $vocab) { |
| 442 |
$options[$vid] = $vocab->name; |
$options[$vid] = t($vocab->name); |
| 443 |
} |
} |
| 444 |
$form['syndication_vocabularies'] = array( |
$form['syndication_vocabularies'] = array( |
| 445 |
'#type' => 'checkboxes', |
'#type' => 'checkboxes', |
| 461 |
$options = array(); |
$options = array(); |
| 462 |
$views = _syndication_return_views_rss_feeds(); |
$views = _syndication_return_views_rss_feeds(); |
| 463 |
foreach ($views as $view) { |
foreach ($views as $view) { |
| 464 |
$options[$view->name] = $view->display_title; |
$options[$view->name] = t($view->display_title); |
| 465 |
} |
} |
| 466 |
$form['syndication_views'] = array( |
$form['syndication_views'] = array( |
| 467 |
'#type' => 'checkboxes', |
'#type' => 'checkboxes', |