/**
  * Gets instance of class.
  *
  * @return WP_Google_DFP_Ads_Settings_Footer_Input Instance of the class.
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Renders view.
  */
 public function __render()
 {
     $script = get_option(WP_Google_DFP_Ads_Settings_Footer_Input::get_instance()->get_id());
     if (empty($script)) {
         return;
     }
     $comment = __('WP Google DFP Ads: Footer', WP_Google_DFP_Ads::get_instance()->get_slug());
     echo '<!-- ' . $comment . ' -->' . PHP_EOL;
     echo $script . PHP_EOL;
 }
Ejemplo n.º 3
0
<?php

WP_Google_DFP_Ads_Enqueue_Admin_Styles::get_instance();
WP_Google_DFP_Ads_Settings::get_instance();
WP_Google_DFP_Ads_Head::get_instance();
WP_Google_DFP_Ads_Settings_Head_Input::get_instance();
WP_Google_DFP_Ads_Settings_Head_Section::get_instance();
WP_Google_DFP_Ads_Loop::get_instance();
WP_Google_DFP_Ads_Settings_Loop_Input::get_instance();
WP_Google_DFP_Ads_Settings_Loop_Section::get_instance();
WP_Google_DFP_Ads_Footer::get_instance();
WP_Google_DFP_Ads_Settings_Footer_Input::get_instance();
WP_Google_DFP_Ads_Settings_Footer_Section::get_instance();