PluginProbe
Cool Timeline (Horizontal & Vertical Timeline) / trunk
Cool Timeline (Horizontal & Vertical Timeline) vtrunk
3.4.0 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 2.2.3 2.3.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.6.1 2.7.1 2.8.3 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 2.9.9 3.0.0 All 79 releases
cool-timeline / admin / codestar-framework / functions / walker.php

walker.php in Cool Timeline (Horizontal & Vertical Timeline) trunk, at admin/codestar-framework/functions/walker.php

31 lines 929 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2 /**
3 *
4 * Custom Walker for Nav Menu Edit
5 *
6 * @since 1.0.0
7 * @version 1.0.0
8 *
9 */
10 if ( ! class_exists( 'CSF_Walker_Nav_Menu_Edit' ) && class_exists( 'Walker_Nav_Menu_Edit' ) ) {
11 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound
12 class CSF_Walker_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {
13
14 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
15
16 $html = '';
17
18 parent::start_el( $html, $item, $depth, $args, $id );
19
20 ob_start();
21 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
22 do_action( 'wp_nav_menu_item_custom_fields', $item->ID, $item, $depth, $args );
23 $custom_fields = ob_get_clean();
24
25 $output .= preg_replace( '/(?=<(fieldset|p)[^>]+class="[^"]*field-move)/', $custom_fields, $html );
26
27 }
28
29 }
30 }
31