@@ -94,6 +94,13 @@ '#default_value' => variable_get('tagadelic_levels', 6), '#description' => t('The number of levels between the least popular tags and the most popular ones. Different levels will be assigned a different class to be themed in tagadelic.css'), ); + $options2 = array('off' => t('off'), 'on' => t('on')); + $form['tagadelic_alias'] = array( + '#type' => 'radios', + '#title' => t('Use Path Alias'), + '#options' => $options2, + '#default_value' => variable_get('tagadelic_alias', 'off'), + '#description' => t('Determines whether to use path aliases.'), ); return system_settings_form($form); } @@ -287,8 +294,14 @@ * @ingroup themable */ function theme_tagadelic_weighted($terms) { - foreach ($terms as $term) { - $output .= l($term->name, taxonomy_term_path($term), array('class'=>"tagadelic level$term->weight")) ." \n"; + if (variable_get('tagadelic_alias')=='on'){ + foreach ($terms as $term) { + $output .= l($term->name, drupal_get_path_alias(taxonomy_term_path($term)), array('class'=>"tagadelic level$term->weight")) ." \n"; + } + } else { + foreach ($terms as $term) { + $output .= l($term->name, taxonomy_term_path($term), array('class'=>"tagadelic level$term->weight")) ." \n"; + } } return $output; }