modified file bootstrap-buttons.css
This commit is contained in:
@ -871,4 +871,117 @@ class Util_PageUrls {
|
||||
}
|
||||
return $archive_slug;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets page title based on key
|
||||
*
|
||||
* @param string $id Page ID.
|
||||
* @return string
|
||||
*/
|
||||
public static function get_page_mapping( $id ) {
|
||||
$map = array(
|
||||
'w3tc_dashboard' => array(
|
||||
'page_name' => esc_html__( 'Dashboard', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_feature_showcase' => array(
|
||||
'page_name' => esc_html__( 'Feature Showcase', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_general' => array(
|
||||
'page_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_pgcache' => array(
|
||||
'page_name' => esc_html__( 'Page Cache', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_minify' => array(
|
||||
'page_name' => esc_html__( 'Minify', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_dbcache' => array(
|
||||
'page_name' => esc_html__( 'Database Cache', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_objectcache' => array(
|
||||
'page_name' => esc_html__( 'Object Cache', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_browsercache' => array(
|
||||
'page_name' => esc_html__( 'Browser Cache', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_cachegroups' => array(
|
||||
'page_name' => esc_html__( 'Cache Groups', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_cdn' => array(
|
||||
'page_name' => esc_html__( 'CDN', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_fragmentcache' => array(
|
||||
'page_name' => esc_html__( 'Fragment Cache', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_support' => array(
|
||||
'page_name' => esc_html__( 'Support', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_pagespeed' => array(
|
||||
'page_name' => esc_html__( 'Google PageSpeed', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_userexperience' => array(
|
||||
'page_name' => esc_html__( 'User Experience', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_install' => array(
|
||||
'page_name' => esc_html__( 'Install', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_setup_guide' => array(
|
||||
'page_name' => esc_html__( 'Setup Guide', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_extensions' => array(
|
||||
'page_name' => esc_html__( 'Extensions', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_stats' => array(
|
||||
'page_name' => esc_html__( 'Statistics', 'w3-total-cache' ),
|
||||
),
|
||||
'w3tc_extension_page_imageservice' => array(
|
||||
'page_name' => esc_html__( 'WebP Converter', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'Extensions', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_extensions#imageservice' ) ),
|
||||
),
|
||||
'w3tc_monitoring' => array(
|
||||
'page_name' => esc_html__( 'Monitoring', 'w3-total-cache' ),
|
||||
'parent_name' => esc_html__( 'General Settings', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_general' ) ),
|
||||
),
|
||||
'w3tc_about' => array(
|
||||
'page_name' => esc_html__( 'About', 'w3-total-cache' ),
|
||||
),
|
||||
'swarmify' => array(
|
||||
'page_name' => 'Swarmify',
|
||||
'parent_name' => esc_html__( 'Extensions', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_extensions#swarmify' ) ),
|
||||
),
|
||||
'cloudflare' => array(
|
||||
'page_name' => 'CloudFlare',
|
||||
'parent_name' => esc_html__( 'Extensions', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_extensions#cloudflare' ) ),
|
||||
),
|
||||
'amp' => array(
|
||||
'page_name' => 'AMP',
|
||||
'parent_name' => esc_html__( 'Extensions', 'w3-total-cache' ),
|
||||
'parent_link' => esc_url( Util_Ui::admin_url( 'admin.php?page=w3tc_extensions#amp' ) ),
|
||||
),
|
||||
);
|
||||
|
||||
return ! empty( $map[ $id ] ) ? $map[ $id ] : '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user