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,19 @@
<?php
/**
* 404 Monitor inline help: "Available Actions" tab.
*
* @package RankMath
* @subpackage RankMath\Monitor
*/
defined( 'ABSPATH' ) || exit;
?>
<p>
<?php esc_html_e( 'Hovering over a row in the list will display action links that allow you to manage the item. You can perform the following actions:', 'rank-math' ); ?>
</p>
<ul>
<li><?php echo wp_kses_post( __( '<strong>View Details</strong> shows details about the 404 requests.', 'rank-math' ) ); ?></li>
<li><?php echo wp_kses_post( __( '<strong>Redirect</strong> takes you to the Redirections manager to redirect the 404 URL.', 'rank-math' ) ); ?></li>
<li><?php echo wp_kses_post( __( '<strong>Delete</strong> permanently removes the item from the list.', 'rank-math' ) ); ?></li>
</ul>

View File

@@ -0,0 +1,14 @@
<?php
/**
* 404 Monitor inline help: "Bulk Actions" tab.
*
* @package RankMath
* @subpackage RankMath\Monitor
*/
defined( 'ABSPATH' ) || exit;
?>
<p>
<?php esc_html_e( 'You can also redirect or delete multiple items at once. Selecting multiple items to redirect allows you to redirect them to a single URL.', 'rank-math' ); ?>
</p>

View File

@@ -0,0 +1,39 @@
<?php
/**
* 404 Monitor inline help: "Overview" tab.
*
* @package RankMath
* @subpackage RankMath\Monitor
*/
use RankMath\KB;
defined( 'ABSPATH' ) || exit;
?>
<p>
<?php esc_html_e( 'With the 404 monitor you can see where users and search engines are unable to find your content.', 'rank-math' ); ?>
</p>
<p>
<?php esc_html_e( 'Knowledge Base Articles:', 'rank-math' ); ?>
</p>
<ul>
<li>
<a href="<?php echo KB::get( '404-monitor', '404 Monitor Help Toggle' ); ?>" target="_blank">
<?php esc_html_e( '404 Monitor', 'rank-math' ); ?>
</a>
</li>
<li>
<a href="<?php echo KB::get( '404-monitor-settings', '404 Monitor Help Toggle' ); ?>" target="_blank">
<?php esc_html_e( '404 Monitor Settings', 'rank-math' ); ?>
</a>
</li>
<li>
<a href="<?php echo KB::get( 'fix-404', '404 Monitor Help Toggle Fix link' ); ?>" target="_blank">
<?php esc_html_e( 'Fix 404 Errors', 'rank-math' ); ?>
</a>
</li>
</ul>

View File

@@ -0,0 +1,20 @@
<?php
/**
* 404 Monitor inline help: "Screen Content" tab.
*
* @package RankMath
* @subpackage RankMath\Monitor
*/
defined( 'ABSPATH' ) || exit;
?>
<p>
<?php esc_html_e( 'You can customize the display of this screen\'s contents in a number of ways:', 'rank-math' ); ?>
</p>
<ul>
<li><?php esc_html_e( 'You can hide/display columns based on your needs.', 'rank-math' ); ?></li>
<li><?php esc_html_e( 'You can decide how many items to list per screen using the Screen Options tab.', 'rank-math' ); ?></li>
<li><?php esc_html_e( 'You can search items using the search form at the top.', 'rank-math' ); ?></li>
<li><?php esc_html_e( 'You can reorder the list by clicking on the column headings. ', 'rank-math' ); ?></li>
</ul>

View File

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

View File

@@ -0,0 +1,33 @@
<?php
/**
* Main template for 404 monitor
*
* @package RankMath
* @subpackage RankMath\Monitor
*/
use RankMath\Helper;
defined( 'ABSPATH' ) || exit;
$monitor = Helper::get_module( '404-monitor' )->admin;
$monitor->table->prepare_items();
?>
<div class="wrap rank-math-404-monitor-wrap">
<h2>
<?php echo esc_html( get_admin_page_title() ); ?>
<?php $monitor->page_title_actions(); ?>
</h2>
<?php \do_action( 'rank_math/404_monitor/before_list_table', $monitor ); ?>
<form method="get">
<input type="hidden" name="page" value="rank-math-404-monitor">
<?php $monitor->table->search_box( esc_html__( 'Search', 'rank-math' ), 's' ); ?>
</form>
<form method="post">
<?php $monitor->table->display(); ?>
</form>
</div>

View File

@@ -0,0 +1,89 @@
<?php
/**
* 404 Monitor general settings.
*
* @since 0.9.0
* @package RankMath
* @subpackage RankMath\Monitor
* @author Rank Math <support@rankmath.com>
*/
use RankMath\Helper;
defined( 'ABSPATH' ) || exit;
$cmb->add_field(
[
'id' => '404_advanced_monitor',
'type' => 'notice',
'what' => 'error',
'content' => esc_html__( 'If you have hundreds of 404 errors, your error log might increase quickly. Only choose this option if you have a very few 404s and are unable to replicate the 404 error on a particular URL from your end.', 'rank-math' ),
'dep' => [ [ '404_monitor_mode', 'advanced' ] ],
]
);
$cmb->add_field(
[
'id' => '404_monitor_mode',
'type' => 'radio_inline',
'name' => esc_html__( 'Mode', 'rank-math' ),
'desc' => esc_html__( 'The Simple mode only logs URI and access time, while the Advanced mode creates detailed logs including additional information such as the Referer URL.', 'rank-math' ),
'options' => [
'simple' => esc_html__( 'Simple', 'rank-math' ),
'advanced' => esc_html__( 'Advanced', 'rank-math' ),
],
'default' => 'simple',
]
);
$cmb->add_field(
[
'id' => '404_monitor_limit',
'type' => 'text',
'name' => esc_html__( 'Log Limit', 'rank-math' ),
'desc' => esc_html__( 'Sets the max number of rows in a log. Set to 0 to disable the limit.', 'rank-math' ),
'default' => '100',
'attributes' => [ 'type' => 'number' ],
]
);
$monitor_exclude = $cmb->add_field(
[
'id' => '404_monitor_exclude',
'type' => 'group',
'name' => esc_html__( 'Exclude Paths', 'rank-math' ),
'desc' => esc_html__( 'Enter URIs or keywords you wish to prevent from getting logged by the 404 monitor.', 'rank-math' ),
'options' => [
'add_button' => esc_html__( 'Add another', 'rank-math' ),
'remove_button' => esc_html__( 'Remove', 'rank-math' ),
],
'classes' => 'cmb-group-text-only',
]
);
$cmb->add_group_field(
$monitor_exclude,
[
'id' => 'exclude',
'type' => 'text',
]
);
$cmb->add_group_field(
$monitor_exclude,
[
'id' => 'comparison',
'type' => 'select',
'options' => Helper::choices_comparison_types(),
]
);
$cmb->add_field(
[
'id' => '404_monitor_ignore_query_parameters',
'type' => 'toggle',
'name' => esc_html__( 'Ignore Query Parameters', 'rank-math' ),
'desc' => esc_html__( 'Turn ON to ignore all query parameters (the part after a question mark in a URL) when logging 404 errors.', 'rank-math' ),
'default' => 'off',
]
);