Ver Mensaje Individual
  #8 (permalink)  
Antiguo 27/07/2015, 12:02
laurarock
 
Fecha de Ingreso: julio-2015
Mensajes: 54
Antigüedad: 8 años, 9 meses
Puntos: 1
Respuesta: Metatag modificado hace...

Cita:
Iniciado por xfxstudios Ver Mensaje
muestra todo el codigo de la pagina para poder ayudarte mejor
<!DOCTYPE html>

<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>

<head>



<!-- Metatags
================================================== ======= -->

<meta property="og:title" content="<?php the_title(); ?>"/>
<meta property="og:description" content="<?php echo strip_tags(get_the_excerpt()); ?>" />
<?php
if(!has_post_thumbnail( $post->ID )) { //the post does not have featured image, use a default image
$default_image="https://www.rock.com/img/rock.png"; //replace this with a default image on your server or an image in your media library
echo '<meta property="og:image" content="' . $default_image . '"/>';
}
else{
$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' );
echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0] ) . '"/>';
}
echo "
"; ?>
<meta property="og:url" content="<?php the_permalink(); ?>" />
<meta property="og:site_name" content="Prot-On" />


<?php
echo "<meta http-equiv='If-Modified-Since' content='".gmdate('D, d M Y H:i:s')."'GMT' />";
?>

<!-- Favicon

================================================== -->
<link rel="shortcut icon" href="https://www.rock.com/img/favicon.ico"/>


<?php wp_head(); ?>

<!-- Localizacion
================================================== -->
<script type="text/javascript">
if(top.location!=this.location) top.location=this.location;
</script>



<!-- WordPress Stuff
================================================== ======= -->
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<?php if($data['select_layoutstyle'] == 'Boxed Layout' || $data['select_layoutstyle'] == 'Boxed Layout with margin' ) { ?>
<div id="boxed-layout">
<?php } ?>

<div class="wrapall">

<?php if($data['check_topbar'] == true) { ?>
<div id="topbar" class="clearfix <?php if($data['check_socialtopbar'] == false) { echo 'no-social'; } ?>">

<div class="container">
<div class="lang"><?php icl_post_languages(); ?></div>

<?php } ?>
</div>

<?php if($data['check_socialtopbar'] == true) { ?>
<div class="eight columns mr-30-perc">
<div class="social-icons clearfix">
<ul>
<?php if($data['social_twitter'] != "") { ?>
<li class="social-twitter"><a href="http://www.twitter.com/<?php echo $data['social_twitter']; ?>" target="_blank" title="<?php _e( 'Twitter', 'minti' ) ?>"><?php _e( 'Twitter', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_forrst'] != "") { ?>
<li class="social-forrst"><a href="<?php echo $data['social_forrst']; ?>" target="_blank" title="<?php _e( 'Forrst', 'minti' ) ?>"><?php _e( 'Forrst', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_dribbble'] != "") { ?>
<li class="social-dribbble"><a href="<?php echo $data['social_dribbble']; ?>" target="_blank" title="<?php _e( 'Dribbble', 'minti' ) ?>"><?php _e( 'Dribbble', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_flickr'] != "") { ?>
<li class="social-flickr"><a href="<?php echo $data['social_flickr']; ?>" target="_blank" title="<?php _e( 'Flickr', 'minti' ) ?>"><?php _e( 'Flickr', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_facebook'] != "") { ?>
<li class="social-facebook"><a href="<?php echo $data['social_facebook']; ?>" target="_blank" title="<?php _e( 'Facebook', 'minti' ) ?>"><?php _e( 'Facebook', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_skype'] != "") { ?>
<li class="social-skype"><a href="<?php echo $data['social_skype']; ?>" target="_blank" title="<?php _e( 'Skype', 'minti' ) ?>"><?php _e( 'Skype', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_digg'] != "") { ?>
<li class="social-digg"><a href="<?php echo $data['social_digg']; ?>" target="_blank" title="<?php _e( 'Digg', 'minti' ) ?>"><?php _e( 'Digg', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_google'] != "") { ?>
<li class="social-google"><a href="<?php echo $data['social_google']; ?>" target="_blank" title="<?php _e( 'Google', 'minti' ) ?>"><?php _e( 'Google+', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_instagram'] != "") { ?>
<li class="social-instagram"><a href="<?php echo $data['social_instagram']; ?>" target="_blank" title="<?php _e( 'Instagram', 'minti' ) ?>"><?php _e( 'Instagram', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_linkedin'] != "") { ?>
<li class="social-linkedin"><a href="<?php echo $data['social_linkedin']; ?>" target="_blank" title="<?php _e( 'LinkedIn', 'minti' ) ?>"><?php _e( 'LinkedIn', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_vimeo'] != "") { ?>
<li class="social-vimeo"><a href="<?php echo $data['social_vimeo']; ?>" target="_blank" title="<?php _e( 'Vimeo', 'minti' ) ?>"><?php _e( 'Vimeo', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_yahoo'] != "") { ?>
<li class="social-yahoo"><a href="<?php echo $data['social_yahoo']; ?>" target="_blank" title="<?php _e( 'Yahoo', 'minti' ) ?>"><?php _e( 'Yahoo', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_tumblr'] != "") { ?>
<li class="social-tumblr"><a href="<?php echo $data['social_tumblr']; ?>" target="_blank" title="<?php _e( 'Tumblr', 'minti' ) ?>"><?php _e( 'Tumblr', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_youtube'] != "") { ?>
<li class="social-youtube"><a href="<?php echo $data['social_youtube']; ?>" target="_blank" title="<?php _e( 'YouTube', 'minti' ) ?>"><?php _e( 'YouTube', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_picasa'] != "") { ?>
<li class="social-picasa"><a href="<?php echo $data['social_picasa']; ?>" target="_blank" title="<?php _e( 'Picasa', 'minti' ) ?>"><?php _e( 'Picasa', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_deviantart'] != "") { ?>
<li class="social-deviantart"><a href="<?php echo $data['social_deviantart']; ?>" target="_blank" title="<?php _e( 'DeviantArt', 'minti' ) ?>"><?php _e( 'DeviantArt', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_behance'] != "") { ?>
<li class="social-behance"><a href="<?php echo $data['social_behance']; ?>" target="_blank" title="<?php _e( 'Behance', 'minti' ) ?>"><?php _e( 'Behance', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_pinterest'] != "") { ?>
<li class="social-pinterest"><a href="<?php echo $data['social_pinterest']; ?>" target="_blank" title="<?php _e( 'Pinterest', 'minti' ) ?>"><?php _e( 'Pinterest', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_paypal'] != "") { ?>
<li class="social-paypal"><a href="<?php echo $data['social_paypal']; ?>" target="_blank" title="<?php _e( 'PayPal', 'minti' ) ?>"><?php _e( 'PayPal', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_delicious'] != "") { ?>
<li class="social-delicious"><a href="<?php echo $data['social_delicious']; ?>" target="_blank" title="<?php _e( 'Delicious', 'minti' ) ?>"><?php _e( 'Delicious', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_xing'] != "") { ?>
<li class="social-xing"><a href="<?php echo $data['social_xing']; ?>" target="_blank" title="<?php _e( 'XING', 'minti' ) ?>"><?php _e( 'XING', 'minti' ) ?></a></li>
<?php } ?>
<?php if($data['social_rss'] == true) { ?>
<li class="social-rss"><a href="<?php bloginfo('rss2_url'); ?>" target="_blank" title="<?php _e( 'RSS', 'minti' ) ?>"><?php _e( 'RSS', 'minti' ) ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

</div>

</div> <!-- end topbar -->
<?php } ?>

<?php

if($data['header_layout']) {
if(is_page('header-2')) {
include_once('framework/inc/headers/header-v2.php');
} elseif(is_page('header-3')) {
include_once('framework/inc/headers/header-v3.php');
} elseif(is_page('header-4')) {
include_once('framework/inc/headers/header-v4.php');
} elseif(is_page('header-5')) {
include_once('framework/inc/headers/header-v5.php');
} elseif(is_page('header-6')) {
include_once('framework/inc/headers/header-v6.php');
} else {
include_once('framework/inc/headers/header-'.$data['header_layout'].'.php');
}
} else {
if(is_page('header-2')) {
include_once('framework/inc/headers/header-v2.php');
} elseif(is_page('header-3')) {
include_once('framework/inc/headers/header-v3.php');
} elseif(is_page('header-4')) {
include_once('framework/inc/headers/header-v4.php');
} elseif(is_page('header-5')) {
include_once('framework/inc/headers/header-v5.php');
} elseif(is_page('header-6')) {
include_once('framework/inc/headers/header-v6.php');
} else {
include_once('framework/inc/headers/header-v1.php');
}
}

?>