PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.5.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.5.3
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
betterdocs / views / admin / taxonomy / edit.php

edit.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.5.3, at views/admin/taxonomy/edit.php

62 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php do_action( 'betterdocs_doc_category_update_form_before', $term ); ?>
2 <tr class="form-field term-group-wrap">
3 <th scope="row">
4 <label for="doc-category-id"><?php esc_html_e( 'Category Id', 'betterdocs' ); ?></label>
5 </th>
6 <td>
7 <input
8 type="text"
9 id="doc-category-id"
10 style="width:100px"
11 name=""
12 readonly
13 value="<?php echo esc_attr( $_GET["tag_ID"] ); // phpcs:ignore ?>"
14 />
15 </td>
16 </tr>
17 <tr class="form-field term-group-wrap">
18 <th scope="row">
19 <label for="doc-category-order"><?php esc_html_e( 'Order', 'betterdocs' ); ?></label>
20 </th>
21 <td>
22 <input type="number" id="doc-category-order" style="width:100px" name="term_meta[order]" value="<?php echo $order ? esc_attr( $order ) : ''; ?>">
23 </td>
24 </tr>
25 <tr class="form-field term-group-wrap batterdocs-cat-media-upload">
26 <th scope="row">
27 <label><?php esc_html_e( 'Category Icon', 'betterdocs' ); ?></label>
28 </th>
29 <td>
30 <input type="hidden" class="doc-category-image-id" name="term_meta[image-id]" value="<?php echo esc_attr( $icon_id ); ?>">
31 <div class="doc-category-image-wrapper" id="doc-category-image-wrapper">
32 <?php
33 if ( $icon_id ) {
34 echo '<img style="display: none;" src="' . betterdocs()->assets->icon( 'betterdocs-cat-icon.svg', true ) . '" alt="">'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Outputs Html Icon
35 echo wp_get_attachment_image( $icon_id, 'thumbnail', false, 'class=custom_media_image' );
36 } else {
37 echo '<img src="' . betterdocs()->assets->icon( 'betterdocs-cat-icon.svg', true ) . '" alt="">'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Outputs Html Icon
38 }
39 ?>
40
41 </div>
42 <p>
43 <input
44 type="button"
45 class="button button-secondary betterdocs_tax_media_button"
46 id="betterdocs_tax_media_button"
47 name="betterdocs_tax_media_button"
48 value="<?php esc_html_e( 'Add Image', 'betterdocs' ); ?>"
49 />
50 <input
51 type="button"
52 class="button button-secondary doc_tax_media_remove"
53 id="doc_tax_media_remove"
54 name="doc_tax_media_remove"
55 value="<?php esc_html_e( 'Remove Image', 'betterdocs' ); ?>"
56 />
57 </p>
58 </td>
59 </tr>
60 <?php
61 do_action( 'betterdocs_doc_category_update_form_after', $term );
62