inkthemes_nav_menu_items

The Black Rider Lite Responsive Theme inkthemes nav menu items function.

Description

inkthemes_nav_menu_items( $items ); 

Parameters (1)

0. $items
The items.

Usage

  1. if ( !function_exists( 'inkthemes_nav_menu_items' ) ) { 
  2. require_once '/functions/inkthemes-functions.php'; 
  3.  
  4. // The items. 
  5. $items = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = inkthemes_nav_menu_items($items); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions/inkthemes-functions.php  
  1. function inkthemes_nav_menu_items($items) { 
  2. if (is_home()) { 
  3. $homelink = '<li class="current_page_item">' . '<a href="' . home_url('/') . '">' . __('Home', 'road-fighter') . '</a></li>'; 
  4. } else { 
  5. $homelink = '<li>' . '<a href="' . home_url('/') . '">' . __('Home', 'road-fighter') . '</a></li>'; 
  6. $items = $homelink . $items; 
  7. return $items;