Exemplo n.º 1
0
 /**
  * Determines the current page type. This should be called after WordPress
  * has initialized wp_query.
  */
 public function determineCurrentPageType()
 {
     if (!isset($this->current_page_type)) {
         $this->current_page_type = GooglePublisherPluginUtils::getWordPressPageType();
     }
 }
Exemplo n.º 2
0
 /**
  * Determines the current page details. This should be called after WordPress
  * has initialized wp_query.
  */
 public function determineCurrentPageDetails()
 {
     if (!isset($this->current_page_type)) {
         $this->current_page_type = GooglePublisherPluginUtils::getWordPressPageType();
     }
     if (!isset($this->exclude_ads)) {
         $this->exclude_ads = GooglePublisherPluginUtils::getExcludeAds();
     }
 }