e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Question]: Include an icon in Admin Menu? #5287

Open Vodhin opened 3 days ago

Vodhin commented 3 days ago

Question

Is there a way to include an Icon and/or <span> elements in a Plugin's Admin Menu?

What is documented:

protected $adminMenu = array(
    'estate_agencies/inbox' => array('caption'=> 'Agent Inbox', 'perm' => 'P')
    );

is there something like this:

protected $adminMenu = array(
    'estate_agencies/inbox' => array('caption'=> 'Agent Inbox', 'perm' => 'P', 'icon'=>'<i class="fa fa-envelope">3</i>')
    );

Expected Source

looked in core_functions.php and other places.

Additional Context

I would like to be able to add icons/counter to the buttons in the Admin Menu for my plugin, similar to how the e_dashboard.php file works.