output( 'powerkit_insert_header_code' ); } /** * Outputs script / CSS to the frontend footer. */ public function footer() { $this->output( 'powerkit_insert_footer_code' ); } /** * Outputs the given setting, if conditions are met. * * @param string $setting Setting Name. */ public function output( $setting ) { // Ignore admin, feed, robots or trackbacks. if ( is_admin() || is_feed() || is_robots() || is_trackback() ) { return; } // Get code. $code = get_option( $setting ); // Output. echo (string) $code; // XSS. } }