File: /home/qirgxuo4hkuv/public_html/shovago.com/wp-content/themes/ShovaGo copy/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>مشاهدة</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';
}
?>
<?php if ( is_single() ) {
bloginfo('name'); echo " | "; single_post_title('', true); echo " | "; bloginfo('description');
} else { bloginfo('name'); echo ": "; bloginfo('description');
} ?>" />