LLMS_Nav_Menus::output()
Output the metabox.
Return Return
(void)
Source Source
File: includes/class.llms.nav.menus.php
} $menu_items[ $key ]->classes = array_unique( $classes ); } return $menu_items; } /** * Output the metabox. * * @since 3.14.7 * @since 3.24.0 Unknown. * * @return void */ public function output() { ?> <div id="posttype-llms-nav-items" class="posttypediv"> <div id="tabs-panel-llms-nav-items" class="tabs-panel tabs-panel-active"> <ul id="llms-nav-items-checklist" class="categorychecklist form-no-clear"> <?php $i = -1; foreach ( $this->get_nav_items() as $key => $data ) : ?> <li> <label class="menu-item-title"> <input type="checkbox" class="menu-item-checkbox" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-object-id]" value="<?php echo esc_attr( $i ); ?>" /> <?php echo esc_html( $data['label'] ); ?> </label> <input type="hidden" class="menu-item-type" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-type]" value="custom" /> <input type="hidden" class="menu-item-title" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-title]" value="<?php echo esc_html( $data['title'] ); ?>" /> <input type="hidden" class="menu-item-url" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-url]" value="<?php echo esc_url( $data['url'] ); ?>" /> <input type="hidden" class="menu-item-classes" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-classes]" value="<?php echo esc_attr( 'llms-nav-item-' . $key ); ?>" /> </li> <?php
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Unknown. |
3.14.7 | Introduced. |