summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zen-internals/zen.drush.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/zen-internals/zen.drush.inc b/zen-internals/zen.drush.inc
index b112fba..6736e45 100644
--- a/zen-internals/zen.drush.inc
+++ b/zen-internals/zen.drush.inc
@@ -20,8 +20,8 @@ function zen_drush_command() {
'name' => 'A name for your theme.',
'machine-name' => '[a-z, 0-9] A machine-readable name for your theme.',
'description' => 'A description of your theme.',
+ 'without-rtl' => 'Remove all RTL stylesheets.',
// @TODO: Add these options:
- // 'without-rtl' => 'Whether to remove all RTL stylesheets.',
// 'layout' => '[fixed,fluid,960gs] Choose the page layout method.',
),
'examples' => array(
@@ -83,6 +83,15 @@ function drush_zen($name = NULL, $machine_name = NULL) {
drush_op('zen_file_str_replace', $subtheme_path . '/theme-settings.php', 'STARTERKIT', $machine_name);
drush_op('zen_file_str_replace', $subtheme_path . '/template.php', 'STARTERKIT', $machine_name);
+ // Remove all RTL stylesheets.
+ if ($without_rtl = drush_get_option('without-rtl')) {
+ foreach (array('forms', 'html-reset', 'ie6', 'layout-fixed', 'layout-liquid', 'messages', 'navigation', 'pages', 'tabs') as $file) {
+ // Remove the RTL stylesheet.
+ drush_op('unlink', $subtheme_path . '/css/' . $file . '-rtl.css');
+ drush_op('zen_file_str_replace', $subtheme_path . '/css/' . $file . '.css', ' /* LTR */', '');
+ }
+ }
+
// Notify user of the newly created theme.
drush_print(dt('Starter kit for "!name" created in: !path', array(
'!name' => $name,