Yes, it does... like this:
Code: Select all
<?php
serendipity_plugin_api::hook_event('quicksearch_plugin', $serendipity);
}
The livesearch code has this:
Code: Select all
case 'quicksearch_plugin':
echo '<script type="text/javascript">
lsbase = "' . $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/ls' . ($serendipity['rewrite'] == 'none' ? '_&' : '?') . '";
waittext = "' . PLUGIN_EVENT_LIVESEARCH_WAIT . '";
notfoundtext = "' . PLUGIN_EVENT_LIVESEARCH_NOTFOUND . '";
addLoadEvent(liveSearchInit);
</script>';
break;
I tried this in my index.tpl file:
Code: Select all
{serendipity_hookPlugin hook="quicksearch_plugin"}
but received the following error:
serendipity_smarty_hookPlugin: illegal hook 'quicksearch_plugin'