Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to change theme file headers #1811

Merged
merged 2 commits into from
Jan 15, 2017

Conversation

retlehs
Copy link
Sponsor Member

@retlehs retlehs commented Jan 15, 2017

now allow for style.css / theme headers to be customized upon creation of a sage project:

image

since we're requiring composer and it's the recommended way to create a new sage project, we've got a lot of options.

(such as allowing users to remove bootstrap on project creation (#1810))

follow up PRs will include the ability to change theme slug, add font awesome, and possibly more.

@swalkinshaw
Copy link
Member

We should a flag to skip all of these ideally. Even just a global skip, not specific to each set of questions.

@swalkinshaw
Copy link
Member

Seems like --no-interaction should cover it 👍

$theme_headers['description'] = $io->ask('<info>Theme Description [<comment>'.$theme_headers_default['description'].'</comment>]:</info> ', $theme_headers_default['description']);
$theme_headers['version'] = $io->ask('<info>Theme Version [<comment>'.$theme_headers_default['version'].'</comment>]:</info> ', $theme_headers_default['version']);
$theme_headers['author'] = $io->ask('<info>Theme Author [<comment>'.$theme_headers_default['author'].'</comment>]:</info> ', $theme_headers_default['author']);
$theme_headers['author_uri'] = $io->ask('<info>Theme Author URI [<comment>'.$theme_headers_default['author_uri'].'</comment>]:</info> ', $theme_headers_default['author_uri']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$theme_headers = [
  'name'        => $io->ask('<info>Theme Name [<comment>'.$theme_headers_default['name'].'</comment>]:</info> ', $theme_headers_default['name']),
  'uri'         => $io->ask('<info>Theme URI [<comment>'.$theme_headers_default['uri'].'</comment>]:</info> ', $theme_headers_default['uri']),
  'description' => $io->ask('<info>Theme Description [<comment>'.$theme_headers_default['description'].'</comment>]:</info> ', $theme_headers_default['description']),
  'version'     => $io->ask('<info>Theme Version [<comment>'.$theme_headers_default['version'].'</comment>]:</info> ', $theme_headers_default['version']),
  'author'      => $io->ask('<info>Theme Author [<comment>'.$theme_headers_default['author'].'</comment>]:</info> ', $theme_headers_default['author']),
  'author_uri'  => $io->ask('<info>Theme Author URI [<comment>'.$theme_headers_default['author_uri'].'</comment>]:</info> ', $theme_headers_default['author_uri'])
];

More direct?

@retlehs retlehs force-pushed the option-to-change-theme-file-headers branch from 0a16d7f to 6496698 Compare January 15, 2017 19:34
@retlehs retlehs force-pushed the option-to-change-theme-file-headers branch from 6496698 to c2c43df Compare January 15, 2017 19:41
@retlehs retlehs merged commit 1826102 into beta2 Jan 15, 2017
@retlehs retlehs deleted the option-to-change-theme-file-headers branch January 15, 2017 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants