* section. * * @param Instant_Articles_Post $ia_post The current article object. */ public function head_injector( $ia_post ) { if(AdPlugg_Facebook::is_ia_automatic_placement_enabled()) { //enable automatic placement ?> section of each * post in the Instant Articles feed. * * @param Instant_Articles_Post $ia_post The current article object. */ public function header_injector( $ia_post ) { $GLOBALS['adplugg_fbia_canonical_url'] = $ia_post->get_canonical_url(); if ( ( AdPlugg_Facebook::is_ia_automatic_placement_enabled() ) && ( is_active_sidebar( 'facebook_ia_header_ads' ) ) ) { echo "
\n"; dynamic_sidebar( 'facebook_ia_header_ads' ); echo "
\n"; } } /* * Get the singleton instance */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }