| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_theme_admin.inc,v 1.8 2006/12/19 22:59:26 profix898 Exp $ |
// $Id: taxonomy_theme_admin.inc,v 1.8.2.1 2007/02/25 16:49:08 profix898 Exp $ |
| 3 |
|
|
| 4 |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_paths.inc'); |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_paths.inc'); |
| 5 |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_taxonomy.inc'); |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_taxonomy.inc'); |
| 79 |
foreach ($nodetypes as $type => $title) { |
foreach ($nodetypes as $type => $title) { |
| 80 |
$form['global']['alter_node_nodetypes']['table'][$type]['title'] = array('#value' => $title); |
$form['global']['alter_node_nodetypes']['table'][$type]['title'] = array('#value' => $title); |
| 81 |
$form['global']['alter_node_nodetypes']['table'][$type]['taxonomy_theme_alter_nodetype|'.$type] = array( |
$form['global']['alter_node_nodetypes']['table'][$type]['taxonomy_theme_alter_nodetype|'.$type] = array( |
| 82 |
'#type' => 'checkbox', |
'#type' => 'select', |
| 83 |
'#default_value' => variable_get('taxonomy_theme_alter_nodetype|'.$type, 1), |
'#default_value' => variable_get('taxonomy_theme_alter_nodetype|'.$type, 1), |
| 84 |
|
'#options' => array(1 => t('Yes'), 0 => t('No')), |
| 85 |
); |
); |
| 86 |
} |
} |
| 87 |
} |
} |
| 341 |
'#collapsed' => FALSE, |
'#collapsed' => FALSE, |
| 342 |
); |
); |
| 343 |
if (variable_get('taxonomy_theme_extended_enable', 0)) { |
if (variable_get('taxonomy_theme_extended_enable', 0)) { |
| 344 |
$form['taxonomy_theme_extended']['help'] = array('#value' => t('<p>To assign a theme for a particular path enter the path into according textarea.<br />Enter one path per line as Drupal paths (or path aliases). Character \'*\' is a wildcard.<br /><i>Adding \'node/6\' to the \'bluemarine\' field will assign bluemarine theme to node 6.</i></p>')); |
$form['taxonomy_theme_extended']['help'] = array('#value' => t('<p>To assign a theme for a particular path enter the path into according textarea.<br />Enter one path per line as Drupal paths (or path aliases). Character \'*\' is a wildcard for any string, character \'%\' is a wildcard for any nonempty string not containing a forward slash (\'/\'), and character \'#\' is a wildcard for any nonempty string consisting of digits only.<br /><i>Adding \'node/6\' to the \'bluemarine\' field will assign bluemarine theme to node 6.</i></p>')); |
| 345 |
$form['taxonomy_theme_extended']['theme_paths'] = array('#tree' => TRUE); |
$form['taxonomy_theme_extended']['theme_paths'] = array('#tree' => TRUE); |
| 346 |
$options_admin_themes = _taxonomy_theme_options(TRUE, FALSE); |
$options_admin_themes = _taxonomy_theme_options(TRUE, FALSE); |
| 347 |
foreach($options_admin_themes as $themex) { |
foreach($options_admin_themes as $themex) { |