? advanced_forum.js Index: includes/advanced_forum_preprocess_forum_list.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/advanced_forum/includes/Attic/advanced_forum_preprocess_forum_list.inc,v retrieving revision 1.1.2.20 diff -u -p -r1.1.2.20 advanced_forum_preprocess_forum_list.inc --- includes/advanced_forum_preprocess_forum_list.inc 16 Jan 2011 06:45:26 -0000 1.1.2.20 +++ includes/advanced_forum_preprocess_forum_list.inc 18 Jan 2011 17:41:09 -0000 @@ -8,7 +8,12 @@ */ function _advanced_forum_preprocess_forum_list(&$variables) { - ctools_add_js("collapsible-div"); + $collapsible = variable_get('advanced_forum_collapsible_containers', 'toggle'); + if ($collapsible != 'none') { + drupal_add_js(drupal_get_path('module', 'advanced_forum') . '/advanced_forum.js','module'); + $settings['advanced_forum'] = array('modulePath' => drupal_get_path('module', 'advanced_forum'), 'effect' => $collapsible); + drupal_add_js($settings, 'setting'); + } advanced_forum_add_template_suggestions("forum-list", $variables['template_files']); // Determine if we want to use taxonomy image here so we don't need to keep Index: includes/settings.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/advanced_forum/includes/Attic/settings.inc,v retrieving revision 1.1.2.15 diff -u -p -r1.1.2.15 settings.inc --- includes/settings.inc 16 Nov 2010 15:55:07 -0000 1.1.2.15 +++ includes/settings.inc 18 Jan 2011 17:41:09 -0000 @@ -87,7 +87,18 @@ function advanced_forum_settings_page() '#default_value' => variable_get('advanced_forum_views_as_tabs', TRUE), '#description' => t('If checked, this will add a local task tab for "Active topics," "New posts," "My posts," and "Unanswered topics." If you don\'t know what this means, leave it unchecked. You must clear the cache before this will take effect.'), ); - + + $form['advanced_forum_general']['advanced_forum_collapsible_containers'] = array( + '#type' => 'select', + '#title' => t('Collapsible Forum Containers'), + '#options' => array ( + 'none' => t("None"), + 'toggle' => t("Toggle"), + 'fade' => t("Fade"), + ), + '#description' => t('Select whether or not to enable collapsible forum containers and what type of animation to use.'), + '#default_value' => variable_get('advanced_forum_collapsible_containers', 'toggle'), + ); /* Forum / topic list settings */ $form['advanced_forum_lists'] = array( Index: styles/naked/advanced_forum.naked.forum-list.tpl.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/advanced_forum/styles/naked/Attic/advanced_forum.naked.forum-list.tpl.php,v retrieving revision 1.1.2.11 diff -u -p -r1.1.2.11 advanced_forum.naked.forum-list.tpl.php --- styles/naked/advanced_forum.naked.forum-list.tpl.php 16 Jan 2011 06:35:48 -0000 1.1.2.11 +++ styles/naked/advanced_forum.naked.forum-list.tpl.php 18 Jan 2011 17:41:09 -0000 @@ -43,10 +43,10 @@ - +
- @@ -56,7 +56,7 @@ - + description): ?>
+ name; ?>
Index: styles/naked/advanced_forum.naked.structure.css =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/advanced_forum/styles/naked/Attic/advanced_forum.naked.structure.css,v retrieving revision 1.1.2.31 diff -u -p -r1.1.2.31 advanced_forum.naked.structure.css --- styles/naked/advanced_forum.naked.structure.css 15 Jan 2011 17:27:24 -0000 1.1.2.31 +++ styles/naked/advanced_forum.naked.structure.css 18 Jan 2011 17:41:09 -0000 @@ -111,25 +111,6 @@ th.forum-last-post { width: 20%; } -/* Collapsable containers */ -table.ctools-collapsible-container thead { - cursor: pointer; -} - -.ctools-toggle + table.ctools-collapsible-container th.forum-name a{ - background-image: url('images/container_collapse.png'); - background-repeat: no-repeat; - background-position: 3px center; - padding-left: 15px; -} - -.ctools-toggle-collapsed + table.ctools-collapsible-container th.forum-name a{ - background-image: url('images/container_expand.png'); - background-repeat: no-repeat; - background-position: 3px center; - padding-left: 15px; -} - /**** Topic listing ****/ /* Set column widths */