Here's what I'd like to do - in "fake" smarty:
Code: Select all
{if $plugin is installed}
{serendipity_showPlugin ...}
{else}
<p>You need to install ... for this feature.</p>
{/if}Code: Select all
{if $plugin is installed}
{serendipity_showPlugin ...}
{else}
<p>You need to install ... for this feature.</p>
{/if}Yikes! Okay, thanks anywaygarvinhicking wrote:No, not in Smarty. You'd need to use PHP for that. I'm not even sure if there's an API method to check for it, so you'd need to query the serendipity_plugins Database.
Code: Select all
{capture assign="weather_hook"}
{hook_event hook="capability" data="weather"}
{/capture}
{if $weather_hook}
<div name="weather_summary" class="sidebarItem">
{hook_event hook=$weather_hook}
</div>
{/if}
I'm deeply sorry, but this is the point where you lost mejudebert wrote:Modify the plugin in question to include a "generate_content" hook.