Skip to content

Commit

Permalink
First round of changes based on feedback from @GaryJones
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 10, 2016
1 parent ef5fd34 commit 5496f25
Show file tree
Hide file tree
Showing 20 changed files with 80 additions and 1,155 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ This site is generated using [Jekyll](http://jekyllrb.com/) on [GitHub Pages](ht

The site uses the following external resources:

* [Octicons](https://github.com/github/octicons/) by [GitHub](https://github.com/github/), licensed under the [MIT license](http://choosealicense.com/licenses/mit/).
* [Syntax highlighter styles](https://github.com/mojombo/tpw/blob/master/css/syntax.css) by [Tom Preston-Werner](http://tom.preston-werner.com/), also licensed under the MIT license.
* [jQuery](http://jquery.com/) by the [jQuery Foundation](https://jquery.org/team/), also licensed under the MIT license.
* [Marked](https://github.com/chjj/marked) by [Christopher Jeffrey](https://twitter.com/_chjj), also licensed under the MIT license.
Expand Down
23 changes: 12 additions & 11 deletions _includes/generator-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@
<input type="hidden" name="tgmpa_generate" value="1" />

<section class="tgmpa-form-primary">
<label for="tgmpa-flavor">I'm going to use TGMPA in a:<span class="required">*</span></label>
<fieldset>
<input type="radio" id="tgmpa-flavor-theme" name="tgmpa-flavor" value="parent-theme" required />
<legend>I'm going to use TGMPA in a:<span class="required" title="Mandatory">*</span></legend>

<input type="radio" id="tgmpa-flavor-theme" name="tgmpa-flavor" value="parent-theme" required="required" aria-required="true" />
<label for="tgmpa-flavor-theme">Theme</label>
<br />
<input type="radio" id="tgmpa-flavor-child-theme" name="tgmpa-flavor" value="child-theme" required />
<input type="radio" id="tgmpa-flavor-child-theme" name="tgmpa-flavor" value="child-theme" required="required" aria-required="true" />
<label for="tgmpa-flavor-child-theme">Child Theme</label>
<br />
<input type="radio" id="tgmpa-flavor-plugin" name="tgmpa-flavor" value="plugin" required />
<input type="radio" id="tgmpa-flavor-plugin" name="tgmpa-flavor" value="plugin" required="required" aria-required="true" />
<label for="tgmpa-flavor-plugin">Plugin</label>
</fieldset>
</section>

<section class="tgmpa-form-secondary">
<fieldset>
<label for="tgmpa-text-domain">Text Domain:<span class="required">*</span></label>
<input type="text" id="tgmpa-text-domain" name="tgmpa-text-domain" placeholder="text-domain" value="" pattern="[A-Za-z0-9_-]+" title="Allowed characters: alphanumeric and dashes" autofocus required />
<label for="tgmpa-text-domain">Text Domain:<span class="required" title="Mandatory">*</span></label>
<input type="text" id="tgmpa-text-domain" name="tgmpa-text-domain" placeholder="text-domain" value="" pattern="[A-Za-z0-9_-]+" title="Allowed characters: alphanumeric and dashes" autofocus="autofocus" required="required" aria-required="true" />
</fieldset>

<fieldset>
Expand All @@ -33,9 +34,9 @@
<input type="text" id="tgmpa-name" name="tgmpa-name" placeholder="Theme or Plugin Name" value="" pattern="[A-Za-z0-9 _-]+" title="Allowed characters: alphanumeric, space, underscores and dashes" />
</fieldset>

<fieldset id="tgmpa-form-wporg">
<fieldset id="tgmpa-form-wporg" aria-live="polite" aria-hidden="true">
<input type="checkbox" id="tgmpa-wporg" name="tgmpa_wporg" value="1">
<label for="tgmpa-wporg">Do you intend to distribute the theme via wp.org ?</label>
<label for="tgmpa-wporg">Do you intend to distribute the theme via wordpress.org ?</label>
</fieldset>
</section>

Expand All @@ -45,17 +46,17 @@
</div>

<div id="spinner"></div>
<div class="generator-feedback">
<div class="generator-feedback" aria-live="polite" aria-hidden="true">
<p id="generator-feedback"></p>
<p id="report-generator-error">Please try again. If the error persists, please open a <a href="https://github.com/TGMPA/TGM-Plugin-Activation/issues">bug report</a> quoting the error message.</p>
<p id="report-generator-error" aria-live="polite" aria-hidden="true">Please try again. If the error persists, please open a <a href="https://github.com/TGMPA/TGM-Plugin-Activation/issues">bug report</a> quoting the error message.</p>
</div>
</section>
</form>

<div class="generator-notes">
<ul>
<li>This generator works on Firefox, Chrome, Opera &ge; 15 and IE &ge; 10 (but NOT in compatibility view).</li>
<li>No data is saved by us, all the processing is done via javascript in the browser.</li>
<li>No data is saved by us, all the processing is done via JavaSscript in the browser.</li>
</ul>
</div>

Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2>
<div class="download">
<p class="download-icon">
<a href="{{ '/download/' | prepend: site.tgmpa.url }}" title="Download the latest release">
<span class="mega-octicon octicon-cloud-download"></span>
<span>Download the latest release</span>
</a>
</p>
<p class="version">
Expand Down
4 changes: 2 additions & 2 deletions _posts/2016-01-15-custom-tgmpa-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ And then when TGMPA is updated, you have to do it all over again.

Well, no more. We've heard you and we've worked hard to make this easier for you.

So today, we are releasing an _**Custom TGMPA Generator**_. You can find it on the [Download] page.
So today, we are releasing a _**Custom TGMPA Generator**_. You can find it on the [Download] page.

Just tell the form the _text-domain_ of your theme or plugin, what sort of WordPress add-on you will be including TGMPA in and, if it's a theme, whether you intend to publish it on wordpress.org and we'll generate a custom download of the current version of TGMPA for you with all the relevant code already adjusted.
Just fill out the form with the _text-domain_ of your theme or plugin, what sort of WordPress add-on you will be including TGMPA in and, if it's a theme, whether you intend to publish it on wordpress.org and we'll generate a custom download of the current version of TGMPA for you with all the relevant code already adjusted.

We hope you like it. As this is a first release, there may of course still be some bugs. If you find one, please [report] it to us and we'll try and fix it as soon as possible.

Expand Down
9 changes: 0 additions & 9 deletions css/octicons/LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion css/octicons/README.md

This file was deleted.

Binary file removed css/octicons/octicons-local.ttf
Binary file not shown.
224 changes: 0 additions & 224 deletions css/octicons/octicons.css

This file was deleted.

Binary file removed css/octicons/octicons.eot
Binary file not shown.
Loading

0 comments on commit 5496f25

Please sign in to comment.