HEX
Server: Apache
System: Linux nc-ph-0707-26.instaforreviews.com 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User: qirgxuo4hkuv (1004)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /home/qirgxuo4hkuv/public_html/volzano.com/wp-content/themes/volzano/meta.php
<meta charset="<?php bloginfo( 'charset' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if (is_singular('product')) { ?>
	<title>Volzano - Mira el trato</title>
<?php } ?>
<?php
$ogType = 'article';
$ogTitle = get_bloginfo('name');
$ogImage = get_template_directory_uri().'/assets/img/social/facebook.png';

if ( is_single() ) {
	global $post;
	$ogUrl = get_the_permalink();
	$ogTitle = get_the_title('', true);
	$ogDescription = get_the_excerpt($post->ID);
	if ( has_post_thumbnail() ) {
		$ogImage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'al-page-thumb' );
		echo '<meta property="og:image" content="'.$ogImage['0'].'" />';
	} else {
		echo '<meta property="og:image" content="'.$ogImage.'" />';
	} } else {
	echo '<meta property="og:image" content="'.$ogImage.'" />';
}
if( is_home() || is_front_page() ){
	$ogUrl = home_url();
	$ogDescription = get_bloginfo( 'description' );
	$ogType = 'website';
}
?>
<meta property="og:title" content="<?php echo $ogTitle ?>" />
<meta property="og:type" content="<?php echo $ogType ?>" />
<meta property="og:url" content="<?php echo $ogUrl ?>" />
<meta property="og:site_name" content="<?php echo bloginfo('name') ?>"/>
<meta property="og:description" content="<?php echo wp_html_excerpt( $ogDescription , 50 ) ?>"/>
<meta property="og:image:alt" content="<?php echo $ogTitle ?>"/>

<meta name="description" content="
<?php if ( is_single() ) {
	bloginfo('name'); echo " | "; single_post_title('', true); echo " | "; bloginfo('description');
} else { bloginfo('name'); echo ": "; bloginfo('description');
} ?>" />