gdrMenuIcons

Class to implement icons for the main menu.


function __construct()

Create the object for icons for WordPress main menu.


public init_links()

Function to set up links to blank icon and post types icons files.


public init_icons()

Function to init names for the images in post types icons file.


public get_img($name)

  • $name: icon name.

Get IMG to be used for icon.
Function returns: string css for the icon.


public get_css($name, $post_type)

  • $name: icon name.
  • $post_type: name for the post type.

Get CSS to be used for icon in the WordPress main menu.
Function returns: string css for the icon.


public get_location($name)

  • $name: icon name.

Get location for the icon.
Function returns: int pixels location.

Comments

Leave a Reply