public function init() { if (function_exists('admin_url')) { require_once 'lib/settings.testimonials-widget.php'; $this->settings_link = '<a href="' . get_admin_url() . 'edit.php?post_type=' . Testimonials_Widget::pt . '&page=' . Testimonials_Widget_Settings::id . '">' . __('Settings', 'testimonials-widget') . '</a>'; add_filter('plugin_action_links', array(&$this, 'plugin_action_links'), 10, 2); } add_filter('the_content', array(&$this, 'get_single')); self::$base = plugin_basename(__FILE__); self::init_post_type(); self::styles(); }