PluginProbe
weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot / trunk
weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot vtrunk
2.5.0 2.4.1 2.4.0 2.3.1 2.3.0 2.2.5 2.2.6 2.2.7 2.2.2 2.2.3 2.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.4 1.4.1 1.5 1.6 1.6.1 1.6.2 1.6.3 1.7 1.7.1 1.7.2 All 54 releases
wedocs / includes / Walker.php

Walker.php in weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot trunk, at includes/Walker.php

23 lines 488 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WeDevs\WeDocs;
4
5 use Walker_Page;
6
7 /**
8 * weDocs Docs Walker.
9 */
10 class Walker extends Walker_Page {
11
12 /**
13 * Initialize the class
14 */
15 public function start_el( &$output, $page, $depth = 0, $args = [], $current_page = 0 ) {
16 if ( isset( $args['pages_with_children'][ $page->ID ] ) ) {
17 $args['link_after'] = '<span class="wedocs-caret"></span>';
18 }
19
20 parent::start_el( $output, $page, $depth, $args, $current_page );
21 }
22 }
23