admin_icon tag

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



   Purpose

This is an admin side only plugin to allow modules to easily display icons from the current admin theme. These icons are useful in link building or in displaying status information.

   What Parameters Does it Take?

  • icon - (required) - The filename of the icon. i.e: run.gif
  • height - (optional) - The height (in pixels) of the icon.
  • width - (optional) - The width (in pixels) of the icon.
  • alt - (optional) - Optional text for the img tag if the filename specified is not available.
  • rel - (optional) - An optional rel attribute for the img tag.
  • class - (optional) - An optional class attribute for the img tag.
  • id - (optional) - An optional id attribute for the img tag.
  • title - (optional) - An optional title attribute for the img tag.
  • accesskey - (optional) - An optional access key character for the img tag.
  • assign - (optional) - Assign the tag output to the named smarty variable.

   Example

{admin_icon icon='edit.gif' class='editicon'}