first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<tr class="<?php echo esc_attr( $model->css->tr_classes ); ?>">
|
||||
<td colspan="<?php echo esc_attr( $model->col_count ); ?>" class="plugin-update colspanchange">
|
||||
<div class="<?php echo esc_attr( $model->css->notice_classes ); ?>">
|
||||
<p class="installer-q-icon">
|
||||
<?php echo wp_kses_post( $model->strings->valid_subscription ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,71 @@
|
||||
<div class="otgs-installer-component-setting" data-has-setting="<?php echo esc_attr( $model->has_setting ); ?>">
|
||||
<span class="spinner otgs-components-report-setting-spinner"></span>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="<?php echo esc_attr( $model->nonce->action . $model->nonce->value ); ?>-yes">
|
||||
<input
|
||||
type="radio"
|
||||
<?php if ( $model->has_setting && $model->is_repo_allowed ) { ?>
|
||||
checked="checked"
|
||||
<?php } ?>
|
||||
id="<?php echo esc_attr( $model->nonce->action . $model->nonce->value ); ?>-yes"
|
||||
class="js-otgs-components-report-user-choice"
|
||||
value="1"
|
||||
name="otgs-components-report-user-choice"
|
||||
data-nonce-action="<?php echo esc_attr( $model->nonce->action ); ?>"
|
||||
data-nonce-value="<?php echo esc_attr( $model->nonce->value ); ?>"
|
||||
data-repo="<?php echo esc_attr( $model->repo ); ?>"
|
||||
/>
|
||||
|
||||
<?php
|
||||
if ( isset( $model->custom_radio_label_yes ) && $model->custom_radio_label_yes !== null ) {
|
||||
echo wp_kses_post( $model->custom_radio_label_yes );
|
||||
} else {
|
||||
echo wp_kses_post( $model->strings->radio_report_yes );
|
||||
}
|
||||
?>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label for="<?php echo esc_attr( $model->nonce->action . $model->nonce->value ); ?>-no">
|
||||
<input
|
||||
type="radio"
|
||||
<?php if ( $model->has_setting && ! $model->is_repo_allowed ) { ?>
|
||||
checked="checked"
|
||||
<?php } ?>
|
||||
id="<?php echo esc_attr( $model->nonce->action . $model->nonce->value ); ?>-no"
|
||||
class="js-otgs-components-report-user-choice"
|
||||
value="0"
|
||||
name="otgs-components-report-user-choice"
|
||||
data-nonce-action="<?php echo esc_attr( $model->nonce->action ); ?>"
|
||||
data-nonce-value="<?php echo esc_attr( $model->nonce->value ); ?>"
|
||||
data-repo="<?php echo esc_attr( $model->repo ); ?>"
|
||||
/>
|
||||
<?php
|
||||
if ( isset( $model->custom_radio_label_no ) && $model->custom_radio_label_no !== null ) {
|
||||
echo wp_kses_post( $model->custom_radio_label_no );
|
||||
} else {
|
||||
echo wp_kses_post( $model->strings->radio_report_no );
|
||||
}
|
||||
?>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p class="otgs-installer-component-privacy-policy">
|
||||
<a
|
||||
href="<?php echo esc_url( $model->privacy_policy_url ); ?>"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="otgs-external-link"
|
||||
>
|
||||
<?php
|
||||
if ( isset( $model->custom_privacy_policy_text ) && $model->custom_privacy_policy_text !== null ) {
|
||||
echo wp_kses_post( $model->custom_privacy_policy_text );
|
||||
} else {
|
||||
echo wp_kses_post( $model->privacy_policy_text );
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,59 @@
|
||||
<div class="otgs-installer-component-setting" data-has-setting="<?php echo esc_attr( $model->has_setting ); ?>">
|
||||
<?php
|
||||
if ( isset( $model->custom_raw_heading ) && $model->custom_raw_heading !== null ) {
|
||||
echo wp_kses_post( $model->custom_raw_heading );
|
||||
} else {
|
||||
?>
|
||||
<h4 class="heading"><?php echo wp_kses_post( $model->strings->heading ); ?>
|
||||
<a
|
||||
href="<?php echo esc_url( $model->company_url ); ?>"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="otgs-external-link"
|
||||
><?php echo wp_kses_post( $model->company_site ); ?></a>
|
||||
</h4>
|
||||
<?php } ?>
|
||||
<input
|
||||
type="checkbox"
|
||||
<?php if ( $model->is_repo_allowed ) { ?>
|
||||
checked="checked"
|
||||
<?php } ?>
|
||||
id="<?php echo esc_attr( $model->nonce->action . $model->nonce->value ); ?>"
|
||||
class="js-otgs-components-report-user-choice otgs-switcher-input"
|
||||
value="1"
|
||||
data-nonce-action="<?php echo esc_attr( $model->nonce->action ); ?>"
|
||||
data-nonce-value="<?php echo esc_attr( $model->nonce->value ); ?>"
|
||||
data-repo="<?php echo esc_attr( $model->repo ); ?>"
|
||||
/>
|
||||
<label for="<?php echo esc_attr( $model->nonce->action . $model->nonce->value ); ?>"
|
||||
class="otgs-switcher wpml-theme"
|
||||
data-on="ON"
|
||||
data-off="OFF"
|
||||
>
|
||||
<?php
|
||||
if ( isset( $model->custom_raw_label ) && $model->custom_raw_label !== null ) {
|
||||
echo wp_kses_post( $model->custom_raw_label );
|
||||
} else {
|
||||
echo wp_kses_post( $model->strings->report_to . ' ' . $model->company_site . ' ' . $model->strings->which_theme_and_plugins );
|
||||
}
|
||||
?>
|
||||
</label>
|
||||
<div class="spinner otgs-components-report-setting-spinner"></div>
|
||||
|
||||
<p>
|
||||
<a
|
||||
href="<?php echo esc_url( $model->privacy_policy_url ); ?>"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="otgs-external-link"
|
||||
>
|
||||
<?php
|
||||
if ( isset( $model->custom_privacy_policy_text ) && $model->custom_privacy_policy_text !== null ) {
|
||||
echo wp_kses_post( $model->custom_privacy_policy_text );
|
||||
} else {
|
||||
echo wp_kses_post( $model->privacy_policy_text );
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<tr>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->instances->path ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->instances->version ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->instances->high_priority ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->instances->delegated ); ?></span>
|
||||
</th>
|
||||
</tr>
|
||||
@@ -0,0 +1,17 @@
|
||||
<tr>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->log->request_url ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->log->request_arguments ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->log->response ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->log->component ); ?></span>
|
||||
</th>
|
||||
<th>
|
||||
<span><?php echo wp_kses_post( $model->strings->log->time ); ?></span>
|
||||
</th>
|
||||
</tr>
|
||||
@@ -0,0 +1,116 @@
|
||||
<div class="wrap">
|
||||
<h1><?php echo wp_kses_post( $model->strings->page_title ); ?></h1>
|
||||
|
||||
<div class="otgs-installer-support-test-connection">
|
||||
<h2><?php echo wp_kses_post( $model->strings->tester->title ); ?> <a class="button check-again"><?php echo wp_kses_post( $model->strings->tester->button_label ); ?></a></h2>
|
||||
|
||||
<ul><?php foreach ( $model->tester->endpoints as $endpoint ) { ?>
|
||||
<li class="endpoint" data-repository="<?php echo esc_attr( $endpoint->repository ); ?>" data-type="<?php echo esc_attr( $endpoint->type ); ?>"><span class="dashicons dashicons-yes status"></span> <?php echo esc_attr( $endpoint->description ); ?></li>
|
||||
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
<?php echo wp_kses_post( $model->tester->nonce ); ?>
|
||||
|
||||
<span class="wp-clearfix"></span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="otgs-installer-support-test-connection">
|
||||
<h2><?php echo wp_kses_post( $model->strings->requirements->title ); ?></h1></h2>
|
||||
|
||||
<ul>
|
||||
<?php foreach ( $model->requirements as $requirement ) {
|
||||
$icon_class = $requirement->active ? 'dashicons-yes' : 'dashicons-no-alt';
|
||||
?>
|
||||
<li><span class="dashicons <?php echo esc_attr( $icon_class ); ?> status"></span> <?php echo wp_kses_post( $requirement->name ) ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
<span class="wp-clearfix"></span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2><?php echo wp_kses_post( $model->strings->instances->title ); ?></h2>
|
||||
|
||||
<table class="wp-list-table widefat striped installer-instances">
|
||||
<thead>
|
||||
<?php include 'header-instance.php'; ?>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ( $model->instances as $instance ) { ?>
|
||||
<tr <?php if ( $instance->delegated ) { ?> class="active" <?php } ?>>
|
||||
<td>
|
||||
<?php echo wp_kses_post( $instance->bootfile ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo wp_kses_post( $instance->version ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo wp_kses_post( $instance->high_priority ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ( $instance->delegated ) { ?> <span class="dashicons dashicons-yes"></span> <?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<?php include 'header-instance.php'; ?>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2><?php echo wp_kses_post( $model->strings->log->title ); ?></h2>
|
||||
|
||||
<table class="wp-list-table widefat fixed striped posts">
|
||||
<thead>
|
||||
<?php include 'header.php'; ?>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody id="the-list">
|
||||
<?php foreach ( $model->log_entries as $log_entry ) { ?>
|
||||
<tr>
|
||||
<td class="title column-title has-row-actions column-primary">
|
||||
<?php echo wp_kses_post( $log_entry->request_url ); ?>
|
||||
</td>
|
||||
<td class="title column-title has-row-actions column-primary">
|
||||
<?php echo wp_kses_post( print_r( $log_entry->request_arguments, true ) ); ?>
|
||||
</td>
|
||||
<td class="title column-title has-row-actions column-primary">
|
||||
<?php echo wp_kses_post( $log_entry->response ); ?>
|
||||
</td>
|
||||
<td class="title column-title has-row-actions column-primary">
|
||||
<?php echo wp_kses_post( $log_entry->component ); ?>
|
||||
</td>
|
||||
<td class="title column-title has-row-actions column-primary">
|
||||
<?php echo wp_kses_post( $log_entry->time ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ( !$model->log_entries ) { ?>
|
||||
<tr>
|
||||
<td colspan="5" class="title column-title has-row-actions column-primary">
|
||||
<?php echo wp_kses_post( $model->strings->log->empty_log ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
|
||||
<?php include 'header.php'; ?>
|
||||
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="wrap otgs-installer-support-link">
|
||||
<?php
|
||||
if ( !$model->hide_title ) {
|
||||
?>
|
||||
<h2><?php echo wp_kses_post( $model->title ); ?></h2>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<p><a href="<?php echo esc_url ($model->link->url ); ?>"><?php echo wp_kses_post( $model->link->text ); ?></a></p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user