Keywords:
plug-in, enabled, code snippet.
Added to the 5.3 branch this allow you to check and see if a plug-in is enabled before using. Really useful for confirming Reports or Time Tracking is running and much better then the old if class exist method that has been used in the past.
Inside the php code.
if (DevblocksPlatform::isPluginEnabled('cerberusweb.timetracking')) {
// Code that requires time tracker to be enabled.
}
Inside a smarty template
{if DevblocksPlatform::isPluginEnabled('cerberusweb.timetracking)}
{*Code that requires time tracker to be enabled.*}
{/if}