section_navigation(); $allowedHTML = ( function_exists( 'abas_return_allowed_tags' ) ) ? abas_return_allowed_tags() : ''; echo wp_kses( $output, $allowedHTML ); } //Function prints the output function section_navigation() { $nav_items = array(); $nav_items[] = array( 'label' => esc_html__( 'Companies', 'accounts-buddy-accounting' ), 'image' => 'manage-companies.png', 'link' => 'edit.php?post_type=abas_company', ); $nav_items[] = array( 'label' => esc_html__( 'Accounts', 'accounts-buddy-accounting' ), 'image' => 'manage-accounts.png', 'link' => 'edit.php?post_type=abas_accounts', ); $nav_items[] = array( 'label' => esc_html__( 'Voucher', 'accounts-buddy-accounting' ), 'image' => 'journal-voucher.png', 'link' => 'admin.php?page=abas_jvs_page', ); $nav_items[] = array( 'label' => esc_html__( 'Reports', 'accounts-buddy-accounting' ), 'image' => 'report.png', 'link' => 'admin.php?page=abas_report', ); $nav_items[] = array( 'label' => esc_html__( 'Account Groups', 'accounts-buddy-accounting' ), 'image' => 'account-groups.png', 'link' => 'edit-tags.php?taxonomy=abas_account_groups&post_type=abas_accounts', ); $output = '
'; foreach( $nav_items as $nav_item ) { $output .= '
'; $output .= ''; $output .= ''; $output .= '

' . esc_html( $nav_item['label'] ) . '

'; $output .= '
'; $output .= '
'; } $output .= '
'; return $output ; } }