__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Schema markup.
*
* @package Astra
* @link https://wpastra.com/
* @since Astra 2.1.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Astra CreativeWork Schema Markup.
*
* @since 2.1.3
*/
class Astra_WPHeader_Schema extends Astra_Schema {
/**
* Setup schema
*
* @since 2.1.3
*/
public function setup_schema() {
if ( true !== $this->schema_enabled() ) {
return false;
}
add_filter( 'astra_attr_header', array( $this, 'wpheader_Schema' ) );
}
/**
* Update Schema markup attribute.
*
* @param array $attr An array of attributes.
*
* @return array Updated embed markup.
*/
public function wpheader_Schema( $attr ) {
$attr['itemtype'] = 'https://schema.org/WPHeader';
$attr['itemscope'] = 'itemscope';
$attr['itemid'] = '#masthead';
return $attr;
}
/**
* Enabled schema
*
* @since 2.1.3
*/
protected function schema_enabled() {
return apply_filters( 'astra_wpheader_schema_enabled', parent::schema_enabled() );
}
}
new Astra_WPHeader_Schema();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| class-astra-breadcrumb-schema.php | File | 1.52 KB | 0640 |
|
| class-astra-creativework-schema.php | File | 6.13 KB | 0640 |
|
| class-astra-organization-schema.php | File | 3.29 KB | 0640 |
|
| class-astra-person-schema.php | File | 3.68 KB | 0640 |
|
| class-astra-schema.php | File | 1.57 KB | 0640 |
|
| class-astra-site-navigation-schema.php | File | 1.08 KB | 0640 |
|
| class-astra-wpfooter-schema.php | File | 1.06 KB | 0640 |
|
| class-astra-wpheader-schema.php | File | 1.06 KB | 0640 |
|
| class-astra-wpsidebar-schema.php | File | 1.03 KB | 0640 |
|