Arifur Rahman
You should bind your handler to event `base.add_new_content_item` providing `icon class`, `label` and `url`. This code should be located in your plugin's init.php file.
Here is example from blogs plugin:
------------------------------------
function blogs_add_new_content_item( BASE_CLASS_EventCollector $event )
{
if ( OW::getUser()->isAuthenticated() && OW::getUser()->isAuthorized('blogs', 'add') )
{
$resultArray = array(
BASE_CMP_AddNewContent::DATA_KEY_ICON_CLASS => 'ow_ic_write',
BASE_CMP_AddNewContent::DATA_KEY_URL => OW::getRouter()->urlForRoute('post-save-new'),
BASE_CMP_AddNewContent::DATA_KEY_LABEL => OW::getLanguage()->text('blogs', 'add_new_link')
);
$event->add($resultArray);
}
}
OW::getEventManager()->bind('base.add_new_content_item', 'blogs_add_new_content_item');
--------------------------------------------