C:\xampp\htdocs\landing\wp-content\plugins\wordpress-seo\admin\views\tabs\metas\archives.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Views
 */

if ( ! defined'WPSEO_VERSION' ) ) {
    
header'Status: 403 Forbidden' );
    
header'HTTP/1.1 403 Forbidden' );
    exit();
}

// To improve readability, this tab has been divided into separate blocks, included below.
require __DIR__ '/archives/help.php';

$wpseo_archives = [
    [
        
'title'     => esc_html__'Author archives settings''wordpress-seo' ),
        
'view_file' => 'paper-content/author-archive-settings.php',
        
'paper_id'  => 'settings-author-archives',
    ],
    [
        
'title'     => esc_html__'Date archives settings''wordpress-seo' ),
        
'view_file' => 'paper-content/date-archives-settings.php',
        
'paper_id'  => 'settings-date-archives',
    ],
    [
        
'title'     => esc_html__'Special Pages''wordpress-seo' ),
        
'view_file' => 'paper-content/special-pages.php',
        
'paper_id'  => 'settings-special-pages',
    ],
];

$recommended_replace_vars     = new WPSEO_Admin_Recommended_Replace_Vars();
$editor_specific_replace_vars = new WPSEO_Admin_Editor_Specific_Replace_Vars();

foreach ( 
$wpseo_archives as $wpseo_archive_index => $wpseo_archive ) {
    
$wpseo_archive_presenter = new WPSEO_Paper_Presenter(
        
$wpseo_archive['title'],
        
__DIR__ '/' $wpseo_archive['view_file'],
        [
            
'collapsible'                  => true,
            
'expanded'                     => ( $wpseo_archive_index === ),
            
'paper_id'                     => $wpseo_archive['paper_id'],
            
'recommended_replace_vars'     => $recommended_replace_vars,
            
'editor_specific_replace_vars' => $editor_specific_replace_vars,
            
'class'                        => 'search-appearance',
        ]
    );

    
// phpcs:ignore WordPress.Security.EscapeOutput -- get_output() output is properly escaped.
    
echo $wpseo_archive_presenter->get_output();
}

unset( 
$wpseo_archives$wpseo_archive_presenter$wpseo_archive_index );
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586