Index: s5_textfield.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/s5/s5_textfield.module,v retrieving revision 1.1.4.7 diff -u -p -r1.1.4.7 s5_textfield.module --- s5_textfield.module 21 Oct 2009 17:05:30 -0000 1.1.4.7 +++ s5_textfield.module 8 Feb 2010 20:17:38 -0000 @@ -61,6 +61,13 @@ function s5_textfield_settings_form() { '#options' => drupal_map_assoc($themes), '#description' => t('Choose your theme from this list. You can also add more themes to S5.'), ); + $form['s5_textfield_override_files'] = array( + '#type' => 'radios', + '#title' => t('Use ALL Theme Files'), + '#default_value' => variable_get('s5_textfield_override_files', 0), + '#options' => array(t('No'), t('Yes')), + '#description' => t('By default, S5 uses only the selected theme\'s "slides.css" stylesheet, leaving print styles and Javascript functionality under the S5 "default" theme\'s control. Override this behavior here to use ALL of your theme\'s files.'), + ); $form['s5_textfield_slide_separator'] = array( '#type' => 'textfield', '#title' => t('Slide Separator'), @@ -225,6 +232,11 @@ function theme_s5_textfield_export($vari extract($variables); $path = drupal_get_path('module', 's5_textfield'); $theme = variable_get('s5_textfield_theme', 'faucet'); + $override = variable_get('s5_textfield_override_files', 0); + $theme_override = "default"; + if ($override) { + $theme_override = $theme; + } //$slideString = implode('',$slides); echo << - - - - + + + + {$title}