-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from TGMPA/feature/custom-tgmpa-generator
Add a Custom TGMPA Generator to the website.
- Loading branch information
Showing
24 changed files
with
877 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{::options parse_block_html="false" entity_output="as_input" /} | ||
<div class="tgmpa-generator-form"> | ||
<form id="generator-form" method="POST"> | ||
<input type="hidden" name="tgmpa_generate" value="1" /> | ||
|
||
<section class="tgmpa-form-primary"> | ||
<fieldset> | ||
<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="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="required" aria-required="true" /> | ||
<label for="tgmpa-flavor-plugin">Plugin</label> | ||
</fieldset> | ||
|
||
<fieldset id="tgmpa-form-publish" aria-live="polite" aria-hidden="true"> | ||
<legend>I intend to distribute the theme via:</legend> | ||
|
||
<input type="radio" id="tgmpa-publish-wporg" name="tgmpa-publish" value="wporg" /> | ||
<label for="tgmpa-publish-wporg">WordPress.org</label> | ||
<br /> | ||
<input type="radio" id="tgmpa-publish-themeforest" name="tgmpa-publish" value="themeforest" /> | ||
<label for="tgmpa-publish-themeforest">ThemeForest</label> | ||
<br /> | ||
<input type="radio" id="tgmpa-publish-other" name="tgmpa-publish" value="other" /> | ||
<label for="tgmpa-publish-other">Some other way</label> | ||
</fieldset> | ||
</section> | ||
|
||
<section class="tgmpa-form-secondary"> | ||
<fieldset> | ||
<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> | ||
<label for="tgmpa-prefix">Function Prefix:</label> | ||
<input type="text" id="tgmpa-prefix" name="tgmpa-prefix" placeholder="function_prefix" value="" pattern="[A-Za-z0-9_]+" title="Allowed characters: alphanumeric and dashes" /> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<label for="tgmpa-name">Name:</label> | ||
<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> | ||
|
||
</section> | ||
|
||
<section class="tgmpa-form-ternary"> | ||
<div class="generator-form-submit"> | ||
<input type="submit" class="tgmpa-form-submit" name="tgmpa_generate_submit" value="Generate" /> | ||
</div> | ||
|
||
<div id="spinner"></div> | ||
<div class="generator-feedback" aria-live="polite" aria-hidden="true"> | ||
<p id="generator-feedback"></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 ≥ 15 and IE ≥ 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> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
{::options parse_block_html="true" entity_output="as_char" /} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: Custom TGMPA Generator | ||
author: jrfnl | ||
anchor: custom-tgmpa-generator | ||
category: News | ||
tags: ['website', 'generator', 'themecheck'] | ||
--- | ||
|
||
### Custom TGMPA Generator released | ||
|
||
If you are a theme designer and publish themes on wordpress.org, you may have come across feedback from the Theme Check plugin and/or the Theme Review team along the lines of _"You are only allowed to use add_theme_page(), please remove the call to add_submenu_page()."_ or _"You are only supposed to use one text-domain."_. | ||
|
||
So you go and do a search-and-replace and then get users reporting fatal errors because the search and replace also replaced some strings which shouldn't have been changed. | ||
|
||
And then when TGMPA is updated, you have to do it all over again. | ||
|
||
<p class="align-right"> | ||
![screenshot-1]({{ '/images/screenshots/tgmpa-generator-medium.png' | prepend: site.tgmpa.url }}) | ||
</p> | ||
|
||
Well, no more. We've heard you and we've worked hard to make this easier for you. | ||
|
||
So today, we are releasing a _**Custom TGMPA Generator**_. You can find it on the [Download] page. | ||
|
||
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, the publication channel you'll be using 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. | ||
|
||
Enjoy! | ||
|
||
Oh and don't forget that [our survey] is still open, so if you haven't given your opinion yet, go and [do so now]! | ||
|
||
|
||
|
||
[Download]: {{ '/download/' | prepend: site.tgmpa.url }} | ||
[report]: {{ '/issues' | prepend: site.tgmpa.github }} | ||
[our survey]: {{ '/2016/01/11/tgmpa-survey/' | prepend: site.tgmpa.github }} | ||
[do so now]: http://goo.gl/forms/Fq1gbY9vCW |
Oops, something went wrong.