| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/templates/ |
| Current File : /home/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/templates/seo.php |
<?php
/**
* The template to display the Structured Data Snippets
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0.30
*/
// Structured data snippets
if ( hallelujah_is_on( hallelujah_get_theme_option( 'seo_snippets' ) ) ) {
?>
<div class="structured_data_snippets">
<meta itemprop="headline" content="<?php the_title_attribute( '' ); ?>">
<meta itemprop="datePublished" content="<?php echo esc_attr( get_the_date( 'Y-m-d' ) ); ?>">
<meta itemprop="dateModified" content="<?php echo esc_attr( get_the_modified_date( 'Y-m-d' ) ); ?>">
<div itemscope="itemscope" itemprop="publisher" itemtype="<?php echo esc_attr( hallelujah_get_protocol( true ) ); ?>//schema.org/Organization">
<meta itemprop="name" content="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
<meta itemprop="telephone" content="">
<meta itemprop="address" content="">
<?php
$hallelujah_logo_image = hallelujah_get_logo_image();
if ( ! empty( $hallelujah_logo_image['logo'] ) ) {
?>
<meta itemprop="logo" itemtype="<?php echo esc_attr( hallelujah_get_protocol( true ) ); ?>//schema.org/ImageObject" content="<?php echo esc_url( $hallelujah_logo_image['logo'] ); ?>">
<?php
}
?>
</div>
<?php
if ( hallelujah_get_theme_option( 'show_author_info' ) != 1 || ! is_single() || is_attachment() || ! get_the_author_meta( 'description' ) ) {
?>
<div itemscope="itemscope" itemprop="author" itemtype="<?php echo esc_attr( hallelujah_get_protocol( true ) ); ?>//schema.org/Person">
<meta itemprop="name" content="<?php echo esc_attr( get_the_author() ); ?>">
</div>
<?php
}
if ( ( is_singular() || is_attachment() ) && has_post_thumbnail() ) {
?>
<meta itemprop="image" itemtype="<?php echo esc_attr( hallelujah_get_protocol( true ) ); ?>//schema.org/ImageObject" content="<?php echo esc_url( wp_get_attachment_url( get_post_thumbnail_id() ) ); ?>">
<?php
}
?>
</div>
<?php
}