Commit realizado el 12:13:52 08-04-2024

This commit is contained in:
Pagina Web Monito
2024-04-08 12:13:55 -04:00
commit 0c33094de9
7815 changed files with 1365694 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<?php
/**
* Backup panel template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
defined( 'ABSPATH' ) || exit;
$backups = $this->get_backups();
?>
<button type="button" class="button button-primary alignright rank-math-action" data-action="createBackup"><?php esc_html_e( 'Create Backup', 'rank-math' ); ?></button>
<h3><?php esc_html_e( 'Settings Backup', 'rank-math' ); ?></h3>
<p class="description"><?php esc_html_e( 'Take a backup of your plugin settings in case you wish to restore them in future. Use it as backup before making substantial changes to Rank Math settings. For taking a backup of the SEO data of your content, use the XML Export option.', 'rank-math' ); ?></p>
<div class="rank-math-settings-backup-form cmb2-form">
<div class="list-table with-action">
<table class="form-table">
<tbody>
<?php foreach ( $backups as $key => $backup ) : ?>
<tr>
<th>
<?php
/* translators: Snapshot formatted date */
printf( esc_html__( 'Backup: %s', 'rank-math' ), date_i18n( 'M jS Y, H:i a', $key ) );
?>
</th>
<td style="width:195px;padding-left:0;">
<button type="button" class="button button-secondary button-small rank-math-action" data-action="restoreBackup" data-key="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Restore', 'rank-math' ); ?></button>
<button type="button" class="button button-link-delete button-small rank-math-action" data-action="deleteBackup" data-key="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Delete', 'rank-math' ); ?></button>
</td>
</tr>
<?php endforeach; ?>
<?php if ( empty( $backups ) ) : ?>
<tr class="hidden">
<th>
</th>
<td style="width:195px;padding-left:0;">
<button type="button" class="button button-primary rank-math-action" data-action="restoreBackup" data-key=""><?php esc_html_e( 'Restore', 'rank-math' ); ?></button>
<button type="button" class="button button-link-delete rank-math-action" data-action="deleteBackup" data-key=""><?php esc_html_e( 'Delete', 'rank-math' ); ?></button>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<p id="rank-math-no-backup-message"<?php echo ! empty( $backups ) ? ' class="hidden"' : ''; ?>><?php esc_html_e( 'There is no backup.', 'rank-math' ); ?></p>
</div>

View File

@@ -0,0 +1,74 @@
<?php
/**
* Import-Export Settings panel template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
use RankMath\KB;
defined( 'ABSPATH' ) || exit;
?>
<h2><?php esc_html_e( 'Plugin Settings', 'rank-math' ); ?></h2>
<p class="description">
<?php
/* translators: Link to learn about import export panel KB article */
printf( esc_html__( 'Import or export your Rank Math settings, This option is useful for replicating Rank Math settings across multiple websites. %s', 'rank-math' ), '<a href="' . KB::get( 'import-export-settings', 'Options Panel Import Export Page' ) . '" target="_blank">' . esc_html__( 'Learn more about the Import/Export options.', 'rank-math' ) . '</a>' );
?>
</p>
<div class="rank-math-box no-padding">
<div class="rank-math-box-tabs wp-clearfix">
<a href="#rank-math-import-form" class="active-tab">
<i class="rm-icon rm-icon-import"></i>
<span class="rank-math-tab-text"><?php esc_html_e( 'Import Settings', 'rank-math' ); ?></span>
</a>
<a href="#rank-math-export-form" class="">
<i class="rm-icon rm-icon-export"></i>
<span class="rank-math-tab-text"><?php esc_html_e( 'Export Settings', 'rank-math' ); ?></span>
</a>
</div>
<div class="rank-math-box-content">
<div class="rank-math-box-inner">
<form id="rank-math-import-form" class="rank-math-export-form cmb2-form active-tab" action="" method="post" enctype="multipart/form-data" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
<p><label for="import-me"><strong><?php esc_html_e( 'Settings File', 'rank-math' ); ?></label></strong><p>
<input type="file" name="import-me" id="import-me" value="">
<br>
<span class="validation-message"><?php esc_html_e( 'Please select a file to import.', 'rank-math' ); ?></span>
<p class="description"><?php esc_html_e( 'Import settings by locating settings file and clicking "Import settings".', 'rank-math' ); ?></p>
<footer>
<?php wp_nonce_field( 'rank-math-import-settings' ); ?>
<input type="hidden" name="object_id" value="import-plz">
<input type="hidden" name="action" value="wp_handle_upload">
<button type="submit" class="button button-primary"><?php esc_html_e( 'Import', 'rank-math' ); ?></button>
</footer>
</form>
<form class="rank-math-export-form cmb2-form" id="rank-math-export-form" action="" method="post">
<ul class="cmb2-checkbox-list no-select-all cmb2-list">
<li><input type="checkbox" class="cmb2-option" name="panels[]" id="status1" value="general" checked="checked"> <label for="status1"><?php esc_html_e( 'General Settings', 'rank-math' ); ?></label></li>
<li><input type="checkbox" class="cmb2-option" name="panels[]" id="status2" value="titles" checked="checked"> <label for="status2"><?php esc_html_e( 'Titles &amp; Metas', 'rank-math' ); ?></label></li>
<li><input type="checkbox" class="cmb2-option" name="panels[]" id="status3" value="sitemap" checked="checked"> <label for="status3"><?php esc_html_e( 'Sitemap Settings', 'rank-math' ); ?></label></li>
<li><input type="checkbox" class="cmb2-option" name="panels[]" id="status4" value="role-manager" checked="checked"> <label for="status4"><?php esc_html_e( 'Role Manager Settings', 'rank-math' ); ?></label></li>
<li><input type="checkbox" class="cmb2-option" name="panels[]" id="status5" value="redirections" checked="checked"> <label for="status5"><?php esc_html_e( 'Redirections', 'rank-math' ); ?></label></li>
</ul>
<p class="description"><?php esc_html_e( 'Choose the panels to export.', 'rank-math' ); ?></p>
<footer>
<?php wp_nonce_field( 'rank-math-export-settings' ); ?>
<input type="hidden" name="object_id" value="export-plz">
<button type="submit" class="button button-primary"><?php esc_html_e( 'Export', 'rank-math' ); ?></button>
</footer>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<?php // Silence is golden.

View File

@@ -0,0 +1,14 @@
<?php
/**
* Import/Export page template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
defined( 'ABSPATH' ) || exit;
?>
<div class="rank-math-import-export">
<?php $this->show_panels(); ?>
</div>

View File

@@ -0,0 +1,86 @@
<?php
/**
* Plugins panel template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
use RankMath\Admin\Importers\Detector;
use RankMath\KB;
use RankMath\Helper;
defined( 'ABSPATH' ) || exit;
$detector = new Detector();
$plugins = $detector->detect();
$first = empty( $plugins ) ? '' : array_keys( $plugins )[0];
?>
<h2><?php esc_html_e( 'Other Plugins', 'rank-math' ); ?></h2>
<p class="description">
<?php
/* translators: Link to learn about import export panel KB article */
printf( esc_html__( 'If you were using another plugin to add important SEO information to your website before switching to Rank Math SEO, you can import the settings and data here. %s', 'rank-math' ), '<a href="' . KB::get( 'import-export-settings', 'Options Panel Import Export Page Other Plugins' ) . '" target="_blank">' . esc_html__( 'Learn more about the Import/Export options.', 'rank-math' ) . '</a>' );
?>
</p>
<form class="rank-math-box no-padding rank-math-export-form cmb2-form" action="" method="post">
<div class="with-action at-top">
<?php if ( empty( $plugins ) ) : ?>
<p class="empty-notice"><?php echo esc_html__( 'No plugin detected with importable data.', 'rank-math' ); ?></p>
<?php else : ?>
<div class="rank-math-box-tabs wp-clearfix">
<?php foreach ( $plugins as $slug => $importer ) : ?>
<a href="#import-plugin-<?php echo esc_attr( $slug ); ?>" class="<?php echo $slug === $first ? 'active-tab' : ''; ?>">
<i class="rm-icon rm-icon-import"></i>
<span class="rank-math-tab-text"><?php echo esc_html( $importer['name'] ); ?></span>
</a>
<?php endforeach; ?>
</div>
<div class="rank-math-box-content">
<div class="rank-math-box-inner">
<?php foreach ( $plugins as $slug => $importer ) : ?>
<div id="import-plugin-<?php echo esc_attr( $slug ); ?>" class="<?php echo $slug === $first ? ' active-tab' : ''; ?>">
<table class="form-table cmb2-wrap">
<tbody>
<tr class="choices">
<td colspan="2">
<ul class="cmb2-checkbox-list cmb2-list no-select-all">
<?php
foreach ( $importer['choices'] as $key => $label ) :
$id = "{$slug}_{$key}";
?>
<li>
<input type="checkbox" class="cmb2-option" name="<?php echo esc_attr( $slug ); ?>[]" id="<?php echo esc_attr( $id ); ?>" value="<?php echo esc_attr( $key ); ?>" checked="checked">
<label for="<?php echo esc_attr( $id ); ?>"><?php echo wp_kses_post( $label ); ?></label>
</li>
<?php endforeach; ?>
<?php if ( 'redirections' !== $slug ) : ?>
<li style="margin-top: 20px;">
<input type="checkbox" class="cmb2-option" name="<?php echo esc_attr( $slug ); ?>[]" id="<?php echo esc_attr( $slug ); ?>_recalculate" value="recalculate" checked="checked">
<label for="<?php echo esc_attr( $slug ); ?>_recalculate"><?php esc_html_e( 'Calculate SEO Scores', 'rank-math' ); ?></label>
</li>
<?php endif; ?>
</ul>
</td>
</tr>
</tbody>
</table>
<footer>
<button type="button" class="button button-primary rank-math-action" data-action="importPlugin" data-slug="<?php echo esc_attr( $slug ); ?>" data-active="<?php echo esc_attr( is_plugin_active( $importer['file'] ) ); ?>"><?php esc_html_e( 'Import', 'rank-math' ); ?></button>
<button type="button" class="button button-link-delete rank-math-action" data-action="cleanPlugin" data-slug="<?php echo esc_attr( $slug ); ?>"><?php esc_html_e( 'Clean', 'rank-math' ); ?></button>
</footer>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</div>
</form>