'. ''. $xm24_text. ''. ''; return $ribbon; } public function ilovexm24_load_scripts(){ wp_register_style( 'ilovexm24', plugins_url( 'css/ilovexm24.css', __FILE__), false, true ); wp_enqueue_style( 'ilovexm24' ); wp_register_script( 'ilovexm24', plugins_url('js/ilovexm24.js', __FILE__), false, false, true); wp_enqueue_script( 'ilovexm24'); $attrs = Array( 'ribbon' => $this->getHtmlRibbon() ); wp_localize_script( 'ilovexm24', 'attrs', $attrs ); } } $xm24r = new Xm24_Ribbon();