Sindbad~EG File Manager
<?php
defined('ABSPATH') || die();
/** @var $this NextendSocialProviderAdmin */
$provider = $this->getProvider();
$settings = $provider->settings;
?>
<div class="nsl-admin-sub-content">
<?php if (substr($provider->getLoginUrl(), 0, 8) !== 'https://'): ?>
<div class="error">
<p><?php printf(__('%1$s allows HTTPS OAuth Redirects only. You must move your site to HTTPS in order to allow login with %1$s.', 'nextend-facebook-connect'), 'Facebook'); ?></p>
<p>
<a href="https://nextendweb.com/nextend-social-login-docs/facebook-api-changes/#enforce-https" target="_blank"><?php _e('How to get SSL for my WordPress site?', 'nextend-facebook-connect'); ?></a>
</p>
</div>
<?php endif; ?>
<?php
$this->renderSettingsHeader();
?>
<form method="post" action="<?php echo admin_url('admin-post.php'); ?>" novalidate="novalidate">
<?php wp_nonce_field('nextend-social-login'); ?>
<input type="hidden" name="action" value="nextend-social-login"/>
<input type="hidden" name="view" value="provider-<?php echo $provider->getId(); ?>"/>
<input type="hidden" name="subview" value="settings"/>
<input type="hidden" name="settings_saved" value="1"/>
<input type="hidden" name="tested" id="tested" value="<?php echo esc_attr($settings->get('tested')); ?>"/>
<table class="form-table">
<tbody>
<?php if (!defined('NEXTEND_FB_APP_ID')): ?>
<tr>
<th scope="row"><label for="appid"><?php _e('App ID', 'nextend-facebook-connect'); ?>
- <em>(<?php _e('Required', 'nextend-facebook-connect'); ?>)</em></label></th>
<td>
<input name="appid" type="text" id="appid"
value="<?php echo esc_attr($settings->get('appid')); ?>" class="regular-text">
<p class="description"
id="tagline-appid"><?php printf(__('If you are not sure what is your %1$s, please head over to <a href="%2$s">Getting Started</a>', 'nextend-facebook-connect'), 'App ID', $this->getUrl()); ?></p>
</td>
</tr>
<?php endif; ?>
<?php if (!defined('NEXTEND_FB_APP_SECRET')): ?>
<tr>
<th scope="row"><label for="secret"><?php _e('App Secret', 'nextend-facebook-connect'); ?>
- <em>(<?php _e('Required', 'nextend-facebook-connect'); ?>)</em></label>
</th>
<td><input name="secret" type="text" id="secret"
value="<?php echo esc_attr($settings->get('secret')); ?>" class="regular-text"></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php if ($settings->get('appid')): ?>
<div class="error">
<p><?php printf(__('By replacing your existing %1$s App, users with linked %1$s accounts will no longer be able to login with %1$s.', 'nextend-facebook-connect'), 'Facebook'); ?></p>
<p>
<a href="https://nextendweb.com/nextend-social-login-docs/provider-facebook/#app_scoped_user_id" target="_blank"><?php _e('Find out why?', 'nextend-facebook-connect'); ?></a>
</p>
</div>
<?php endif; ?>
<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary"
value="<?php _e('Save Changes'); ?>"></p>
<?php
$this->renderOtherSettings();
?>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php _e('Profile image size', 'nextend-facebook-connect'); ?></th>
<td>
<fieldset>
<label><input type="radio" name="profile_image_size"
value="50" <?php if ($settings->get('profile_image_size') == '50') : ?> checked="checked" <?php endif; ?>>
<span><?php _e('Small', 'nextend-facebook-connect'); ?></span></label><br>
<label><input type="radio" name="profile_image_size"
value="100" <?php if ($settings->get('profile_image_size') == '100') : ?> checked="checked" <?php endif; ?>>
<span><?php _e('Medium', 'nextend-facebook-connect'); ?></span></label><br>
<label><input type="radio" name="profile_image_size"
value="default" <?php if ($settings->get('profile_image_size') == 'default') : ?> checked="checked" <?php endif; ?>>
<span><?php _e('Default', 'nextend-facebook-connect'); ?></span></label><br>
<label><input type="radio" name="profile_image_size"
value="480" <?php if ($settings->get('profile_image_size') == '480') : ?> checked="checked" <?php endif; ?>>
<span><?php _e('Large', 'nextend-facebook-connect'); ?></span></label><br>
<label><input type="radio" name="profile_image_size"
value="720" <?php if ($settings->get('profile_image_size') == '720') : ?> checked="checked" <?php endif; ?>>
<span><?php _e('Extra Large', 'nextend-facebook-connect'); ?></span></label><br>
</fieldset>
</td>
</tr>
</tbody>
</table>
<?php
$this->renderProSettings();
?>
</form>
</div>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists