PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wpseo-news
/
classes
<?php /** * Yoast SEO: News plugin file. * * @package WPSEO_News */ /** * Represents the frontend head. */ class WPSEO_News_Head { /** * Holder for post-data. * * @var object */ private $post; /** * WPSEO_News_Head Constructor. */ public function __construct() { do_action( 'wpseo_news_head' ); add_action( 'wpseo_head', array( $this, 'add_head_tags' ) ); } /** * Display the optional sources link elements in the <code><head></code>. */ public function add_head_tags() { if ( is_singular() ) { global $post; $this->post = $post; $this->display_noindex(); } } /** * Shows the meta-tag with noindex when it has been decided to exclude the post from Google News. * * @see: https://support.google.com/news/publisher/answer/93977?hl=en */ private function display_noindex() { /** * Filter: 'wpseo_news_head_display_noindex' - Allow preventing of outputting noindex tag. * * @api string $meta_robots The noindex tag. * * @param object $post The post. */ if ( apply_filters( 'wpseo_news_head_display_noindex', true, $this->post ) ) { $robots_index = WPSEO_Meta::get_value( 'newssitemap-robots-index', $this->post->ID ); if ( ! empty( $robots_index ) ) { echo '<meta name="Googlebot-News" content="noindex" />' . "\n"; } } } }
[+]
..
[-] upgrade-manager.php
[edit]
[-] sitemap.php
[edit]
[-] head.php
[edit]
[-] class-wpseo-news.php
[edit]
[-] class-sitemap-item.php
[edit]
[-] class-meta-box.php
[edit]
[-] sitemap-timezone.php
[edit]
[-] class-beacon-setting.php
[edit]
[-] meta-box.php
[edit]
[-] wpseo-news.php
[edit]
[-] class-product.php
[edit]
[-] javascript-strings.php
[edit]
[-] sitemap-images.php
[edit]
[-] class-head.php
[edit]
[-] class-sitemap.php
[edit]
[-] class-upgrade-manager.php
[edit]
[-] beacon-setting.php
[edit]
[-] class-admin-page.php
[edit]
[-] class-news-wrappers.php
[edit]
[-] class-sitemap-images.php
[edit]
[-] wrappers.php
[edit]
[-] sitemap-item.php
[edit]
[-] product.php
[edit]
[-] class-javascript-strings.php
[edit]
[-] schema.php
[edit]
[-] admin-page.php
[edit]
[-] excludable-taxonomies.php
[edit]
[-] class-sitemap-timezone.php
[edit]