Skip to content

Commit

Permalink
Fix display of translators on support page
Browse files Browse the repository at this point in the history
Also add a small list of FAQ
  • Loading branch information
johngodley committed May 27, 2017
1 parent 6bb6f6d commit 2e3a998
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 15 deletions.
9 changes: 9 additions & 0 deletions admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,12 @@ table.items table.edit th {
margin-top: 15px;
width: 100%;
}

ul.translators {
list-style-type: disc;
margin-left: 30px;
}

ul.translators li {
line-height: 1em;
}
2 changes: 1 addition & 1 deletion redirection-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ function locales() {
$start = strpos( $readme, 'Redirection is available in' );
$end = strpos( $readme, '==', $start );
if ( $start !== false && $end !== false ) {
if ( preg_match_all( '/^\* (.*?) by (.*?)/m', substr( $readme, $start, $end ), $matches ) > 0 ) {
if ( preg_match_all( '/^\* (.*? by .*)/m', substr( $readme, $start, $end ), $matches ) > 0 ) {
$locales = $matches[1];
}
}
Expand Down
11 changes: 0 additions & 11 deletions view/annoy.php

This file was deleted.

23 changes: 20 additions & 3 deletions view/support.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="Redirection - Individual">
<input type="hidden" name="amount" value="16.00">
<input type="hidden" name="amount" value="20.00">
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
Expand All @@ -33,7 +33,7 @@
<input type="image" style="border: none" src="<?php echo plugins_url( '/images/donate.gif', REDIRECTION_FILE ); ?>" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/>
</form>

<p><strong>$16</strong><br/><?php _e( 'Individual<br/>Donation', 'redirection' ); ?></p>
<p><strong>$20</strong><br/><?php _e( 'Individual<br/>Donation', 'redirection' ); ?></p>
</li>
<li>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
Expand All @@ -57,9 +57,26 @@
</li>
</ul>

<h3 style="clear: both"><?php _e( 'Help! Frequently Asked Questions', 'redirection' )?></h3>

<ul>
<li>
<h3>I deleted a redirection, why is it still redirecting?</h3>
<p>Your browser will cache redirections. If you have deleted a redirection and your browser is still performing the redirection then <a href="http://www.refreshyourcache.com/en/home/">clear your browser cache</a>.</p>
</li>
<li>
<h3>Can I open a redirect in a new tab?</h3>
<p>It's not possible to do this on the server. Instead you will need to add <code>target="blank"</code> to your link.</p>
</li>
<li>
<h3>Something isn't working!</h3>
<p>Please disable all other plugins and check if the problem persists. If it does please report it <a href="https://github.com/johngodley/redirection/">here</a> with full details about the problem and a way to reproduce it.</p>
</li>
</ul>

<h3 style="clear: both"><?php _e( 'Translations', 'redirection' )?></h3>

<p><?php _e( 'If you\'re multi-lingual then you may want to consider donating a translation:', 'redirection' )?>
<p><?php _e( 'Many thanks to the following for their translations:', 'redirection' )?>

<ul class="translators">
<?php foreach( $this->locales() AS $language ) : ?>
Expand Down

0 comments on commit 2e3a998

Please sign in to comment.