| 1 |
<?php |
| 2 |
/* |
| 3 |
* The accessibility plugin settings page. |
| 4 |
*/ |
| 5 |
?> |
| 6 |
<div class="wrap"> |
| 7 |
<h2><?php _e('Accessibility Options', $this->plugin_slug) ?></h2> |
| 8 |
|
| 9 |
<?php |
| 10 |
$magixiteLicense = get_option('oc-accessibility', ""); |
| 11 |
$license_data = $this->_get_license_data($magixiteLicense); |
| 12 |
?> |
| 13 |
<form class="oc-accessibilty-form" method="post" action="<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>"> |
| 14 |
<h2 class="oc-accessibilty-main-title"><?php _e('General Options', $this->plugin_slug) ?></h2> |
| 15 |
<input type="hidden" name="action" value="save_accessibility_settings"> |
| 16 |
<a class="oc-accessibilty-tabletop" href="<?php echo esc_attr(OCACCESSIBILITY_PLUGINURL); ?>" alt="MagiXite" title="MagiXite"><img src="<?php echo esc_attr(OCACCESSIBILITY_ASSETS_URL); ?>/images/logo.png" /></a> |
| 17 |
<table class="form-table oc-accessibilty-style"> |
| 18 |
<tbody> |
| 19 |
<tr valign="top"> |
| 20 |
<th scope="row"><?php _e('Magixite License', $this->plugin_slug); ?></th> |
| 21 |
<td> |
| 22 |
<input type="text" name="magixite_license" placeholder="<?php _e('Paste your license key', $this->plugin_slug) ?>" value="<?php echo esc_html($magixiteLicense); ?>" /> |
| 23 |
<?php if ($magixiteLicense == ""): ?> |
| 24 |
<p> |
| 25 |
* Using FREE community license, obtain personal license at <a href="https://acc.magixite.com" target="_blank">https://acc.magixite.com</a> |
| 26 |
</p> |
| 27 |
<?php else: ?> |
| 28 |
<p><?php echo $this->_get_license_message($license_data); ?></p> |
| 29 |
<?php endif; ?> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
|
| 33 |
<tr valign="top"> |
| 34 |
<th scope="row"><?php _e('Select Preferred Language', $this->plugin_slug); ?></th> |
| 35 |
<?php $language_options = $this->get_language_options(); ?> |
| 36 |
<td> |
| 37 |
<select name="ac_language"> |
| 38 |
<?php foreach ($language_options as $key => $l): ?> |
| 39 |
<option <?php |
| 40 |
if ($key == get_option('oc-accessibility-language', "")): echo "selected=\"selected\""; |
| 41 |
endif; |
| 42 |
?> value="<?php echo esc_attr($key); ?>"><?php echo esc_html($l->name); ?></option> |
| 43 |
<?php endforeach; ?> |
| 44 |
</select> |
| 45 |
<p>* <strong>Auto Detect</strong> - <?php _e('Automatically choose language by user browser language setting.', $this->plugin_slug) ?></p> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
|
| 49 |
<tr class="creditRow"><th colspan="2">Brought To You By <a href="<?php echo esc_attr(OCACCESSIBILITY_PLUGINURL); ?>" alt="MagiXite"><img src="<?php echo OCACCESSIBILITY_ASSETS_URL; ?>/images/text_logo.png" /></a></th></tr> |
| 50 |
</tbody> |
| 51 |
</table> |
| 52 |
<input name="form_nonce" type="hidden" value="<?=wp_create_nonce('oc-accessibility')?>" /> |
| 53 |
<p class="submit"> |
| 54 |
<input type="submit" class="button-primary" value="<?php _e('Save Changes', $this->plugin_slug) ?>" /> |
| 55 |
</p> |
| 56 |
|
| 57 |
</form> |
| 58 |
</div> |