apis.php
1 month ago
debug.php
2 years ago
prefs.php
5 years ago
settings.php
1 month ago
version.php
1 month ago
prefs.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * User preferences screen |
| 4 | */ |
| 5 | |
| 6 | $this->extend('../layout'); |
| 7 | /* @var Loco_data_Preferences $opts */ |
| 8 | $help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/settings'); |
| 9 | ?> |
| 10 | |
| 11 | <form action="" method="post" enctype="application/x-www-form-urlencoded"> |
| 12 | <input type="hidden" name="<?php $nonce->e('name')?>" value="<?php $nonce->e('value')?>" /> |
| 13 | <table class="form-table"> |
| 14 | <tbody> |
| 15 | <tr> |
| 16 | <th scope="row"><?php esc_html_e('Translator credit','loco-translate')?></th> |
| 17 | <td> |
| 18 | <fieldset> |
| 19 | <legend class="screen-reader-text"> |
| 20 | <span><?php esc_html_e('Translator credit','loco-translate')?></span> |
| 21 | </legend> |
| 22 | <p> |
| 23 | <input type="text" size="64" name="opts[credit]" id="loco--credit" value="<?php echo esc_attr($opts->credit)?>" placeholder="<?php echo esc_attr($opts->default_credit())?>" /> |
| 24 | </p> |
| 25 | </fieldset> |
| 26 | </td> |
| 27 | </tr> |
| 28 | <tr> |
| 29 | <th scope="row"><?php esc_html_e('Restrict locales','loco-translate')?></th> |
| 30 | <td> |
| 31 | <fieldset> |
| 32 | <legend class="screen-reader-text"> |
| 33 | <span><?php esc_html_e('Restrict locales','loco-translate')?></span> |
| 34 | </legend> |
| 35 | <p> |
| 36 | <input type="text" size="64" name="opts[locales]" id="loco--locales" value="<?php echo esc_attr(implode(', ',$opts->locales) )?>" placeholder="en_US, ..." /> |
| 37 | </p> |
| 38 | </fieldset> |
| 39 | </td> |
| 40 | </tr> |
| 41 | </tbody> |
| 42 | </table> |
| 43 | <p class="submit"> |
| 44 | <input type="submit" class="button-primary" value="<?php esc_html_e('Save settings','loco-translate')?>" /> |
| 45 | <a class="button button-link" href="<?php self::e($help)?>#user" target="_blank"><?php esc_html_e('Documentation','loco-translate')?></a> |
| 46 | </p> |
| 47 | </form> |
| 48 |