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,129 @@
<?php
/**
* Dashboard help tab template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
use RankMath\KB;
use RankMath\Helper;
defined( 'ABSPATH' ) || exit;
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
if ( Helper::has_cap( 'general' ) ) {
include_once 'plugin-activation.php';
}
require_once 'plugin-activation.php'; ?>
<div class="two-col rank-math-box-help">
<div class="col rank-math-box">
<header>
<h3><?php esc_html_e( 'Next steps&hellip;', 'rank-math' ); ?></h3>
</header>
<div class="rank-math-box-content">
<ul class="rank-math-list-icon">
<li>
<?php if ( ! defined( 'RANK_MATH_PRO_FILE' ) ) { ?>
<a href="<?php KB::the( 'pro', 'Help Tab PRO Link' ); ?>" target="_blank">
<i class="rm-icon rm-icon-star-filled"></i>
<div>
<strong><?php esc_html_e( 'Upgrade to PRO', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'Advanced Schema, Analytics and much more...', 'rank-math' ); ?></p>
</div>
</a>
<?php } else { ?>
<a href="<?php KB::the( 'how-to-setup', 'Help Tab Setup KB' ); ?>" target="_blank">
<i class="rm-icon rm-icon-settings"></i>
<div>
<strong><?php esc_html_e( 'Setup Rank Math', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'How to Properly Setup Rank Math', 'rank-math' ); ?></p>
</div>
</a>
<?php } ?>
</li>
<li>
<a href="<?php KB::the( 'seo-import', 'Help Tab Import Data' ); ?>" target="_blank">
<i class="rm-icon rm-icon-import"></i>
<div>
<strong><?php esc_html_e( 'Import Data', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'How to Import Data from Your Previous SEO Plugin', 'rank-math' ); ?></p>
</div>
</a>
</li>
<li>
<a href="<?php KB::the( 'score-100', 'Help Tab Score KB' ); ?>" target="_blank">
<i class="rm-icon rm-icon-post"></i>
<div>
<strong><?php esc_html_e( 'Improve SEO Score', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'How to Make Your Posts Pass All the Tests', 'rank-math' ); ?></p>
</div>
</a>
</li>
</ul>
</div>
</div>
<div class="col rank-math-box">
<header>
<h3><?php esc_html_e( 'Product Support', 'rank-math' ); ?></h3>
</header>
<div class="rank-math-box-content">
<ul class="rank-math-list-icon">
<li>
<a href="<?php KB::the( 'kb-seo-suite', 'Help Tab KB Link' ); ?>" target="_blank">
<i class="rm-icon rm-icon-help"></i>
<div>
<strong><?php esc_html_e( 'Online Documentation', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'Understand all the capabilities of Rank Math', 'rank-math' ); ?></p>
</div>
</a>
</li>
<li>
<a href="<?php KB::the( 'support', 'Help Tab Ticket' ); ?>" target="_blank">
<i class="rm-icon rm-icon-support"></i>
<div>
<strong><?php esc_html_e( 'Ticket Support', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'Direct help from our qualified support team', 'rank-math' ); ?></p>
</div>
</a>
</li>
<li>
<a href="<?php KB::the( 'help-affiliate', 'Help Tab Aff Link' ); ?>" target="_blank">
<i class="rm-icon rm-icon-sitemap"></i>
<div>
<strong><?php esc_html_e( 'Affiliate Program', 'rank-math' ); ?></strong>
<p><?php esc_html_e( 'Earn flat 30% on every sale!', 'rank-math' ); ?></p>
</div>
</a>
</li>
</ul>
</div>
</div>
</div><!--.two-col-->
</div><!--.dashboard-wrapper-->

View File

@@ -0,0 +1,46 @@
<?php
/**
* Dashboard page template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
use RankMath\Helpers\Param;
use RankMath\Admin\Admin_Helper;
defined( 'ABSPATH' ) || exit;
$is_network_admin = is_network_admin();
$is_network_active = RankMath\Helper::is_plugin_active_for_network();
$current_tab = $is_network_active && $is_network_admin ? 'help' : Param::get( 'view', 'modules' );
// Header.
rank_math()->admin->display_admin_header();
?>
<div class="wrap rank-math-wrap dashboard">
<span class="wp-header-end"></span>
<?php rank_math()->admin->display_dashboard_nav(); ?>
<?php
if ( $is_network_active && ! $is_network_admin && 'help' === $current_tab ) {
return;
}
// phpcs:disable
// Display modules activation and deactivation form.
if ( 'modules' === $current_tab ) {
rank_math()->manager->display_form();
// Others.
} else {
$file = apply_filters( 'rank_math/admin/dashboard_view', Admin_Helper::get_view( "dashboard-{$current_tab}" ), $current_tab );
if ( file_exists( $file ) ) {
include_once $file;
}
}
// phpcs:enable
?>
</div>

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>

View File

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

View File

@@ -0,0 +1,54 @@
<?php
/**
* Plugin activation template.
*
* @package RankMath
* @subpackage RankMath\Admin
*/
use RankMath\Helper;
use RankMath\Admin\Admin_Helper;
defined( 'ABSPATH' ) || exit;
$is_registered = Helper::is_site_connected();
$class = $is_registered ? 'status-green' : 'status-red';
$activate_url = Admin_Helper::get_activate_url();
$site_url_valid = Admin_Helper::is_site_url_valid();
$button_class = 'button button-primary button-connect' . ( $site_url_valid ? ' button-animated' : ' disabled' );
?>
<div class="rank-math-ui dashboard-wrapper container help">
<div class="rank-math-box <?php echo esc_attr( $class ); ?>">
<header>
<h3><?php esc_html_e( 'Account', 'rank-math' ); ?></h3>
<span class="button button-large <?php echo esc_attr( $class ); ?>"><?php echo $is_registered ? '<i class="rm-icon rm-icon-tick"></i>' . esc_html__( 'Connected', 'rank-math' ) : '<i class="rm-icon rm-icon-cross"></i>' . esc_html__( 'Not Connected', 'rank-math' ); ?></span>
</header>
<div class="rank-math-box-content rank-math-ui">
<form method="post" action="">
<input type="hidden" name="registration-action" value="<?php echo $is_registered ? 'deregister' : 'register'; ?>">
<?php wp_nonce_field( 'rank_math_register_product' ); ?>
<?php if ( ! $is_registered ) : ?>
<?php // translators: variables used to wrap the text in the strong tag. ?>
<p><?php printf( wp_kses_post( __( 'The plugin is currently not connected with your Rank Math account. Click on the button below to login or register for FREE using your %1$sGoogle account, Facebook account%2$s or %1$syour email account%2$s.', 'rank-math' ) ), '<strong>', '</strong>' ); ?></p>
<?php Admin_Helper::maybe_show_invalid_siteurl_notice(); ?>
<a href="<?php echo esc_url( $activate_url ); ?>" class="<?php echo esc_attr( $button_class ); ?>" ><?php esc_html_e( 'Connect Now', 'rank-math' ); ?></a>
<?php else : ?>
<?php // translators: variables used to wrap the text in the strong tag. ?>
<p><?php printf( wp_kses_post( __( 'You have successfully activated Rank Math. If you find the plugin useful, %1$s feel free to recommend it to your friends or colleagues %2$s.', 'rank-math' ) ), '<strong>', '</strong>' ); ?><?php Admin_Helper::get_social_share(); ?></p>
<div class="frm-submit">
<button type="submit" class="button button-link-delete button-xlarge" name="button"><?php echo esc_html__( 'Disconnect Account', 'rank-math' ); ?></button>
</div>
<?php endif; ?>
</form>
</div>
</div>