. * * @category Plugin * @package Laconica * @author Craig Andrews * @copyright 2009 Craig Andrews http://candrews.integralblue.com * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://laconi.ca/ */ if (!defined('LACONICA')) { exit(1); } class AutocompletePlugin extends Plugin { function __construct() { parent::__construct(); } function onEndShowScripts($action){ $js_string = << var current_user = { screen_name: 'CANDREWS', id: '1' }; EOT; $action->raw($js_string); $action->script('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.pack.js'); $action->script('plugins/Autocomplete/Autocomplete.js'); } function onEndShowLaconicaStyles($action) { $action->cssLink('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.css'); } } ?>