WordPressFreeScout/Resources/views/settings.blade.php
Jack Arturo 16e87c9845 1.0.3
* Fixed broken EDD license ID link
* Improved error handling for invalid or empty responses
* Cleaned up settings page
2024-02-21 13:05:08 +02:00

49 lines
2.3 KiB
PHP

<form class="form-horizontal margin-top margin-bottom" method="POST" action="">
{{ csrf_field() }}
@if ($wordpress_auth_error)
<div class="alert alert-danger">
<strong>{{ __('WordPress API authentication error') }}</strong><br/>{{ $wordpress_auth_error }}
</div>
@endif
<div class="form-group margin-bottom">
<label class="col-sm-2 control-label">{{ __('Integration Status with WordPress') }}</label>
<div class="col-sm-6">
<label class="control-label">
@if (\Option::get('wordpress.wordpress_active'))
<strong class="text-success"><i class="glyphicon glyphicon-ok"></i> {{ __('Active') }}</strong>
@else
<strong class="text-warning">{{ __('Inactive') }}</strong>
@endif
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">{{ __('WordPress Site URL') }}</label>
<div class="col-sm-6">
<input type="text" class="form-control input-sized-lg" name="settings[wordpress.url]" value="{{ $settings['wordpress.url'] }}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">{{ __('WordPress Username') }}</label>
<div class="col-sm-6">
<input type="text" class="form-control input-sized-lg" name="settings[wordpress.username]" value="{{ $settings['wordpress.username'] }}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">{{ __('WordPress API Token') }}</label>
<div class="col-sm-6">
<input type="password" class="form-control input-sized-lg" name="settings[wordpress.password]" value="{{ $settings['wordpress.password'] }}" autocomplete="new-password">
<div class="form-help">
<a href="https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/" target="_blank">{{ __('How to get an API Token in WordPress?') }}</a>
</div>
</div>
</div>
<div class="form-group margin-top margin-bottom">
<div class="col-sm-6 col-sm-offset-2">
<button type="submit" class="btn btn-primary">
{{ __('Save') }}
</button>
</div>
</div>
</form>