PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.0
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 / customizer / controls / padding.php

padding.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.0, at views/admin/customizer/controls/padding.php

47 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.
3 // If this file is called directly, abort.
4 if ( ! defined( 'WPINC' ) ) {
5 die;
6 }
7 ?>
8
9 <div class="number-field">
10 <?php
11 $controller_id = esc_attr( $control->id );
12 $val_top = get_theme_mod( $control->id . '_top' );
13 $val_left = get_theme_mod( $control->id . '_left' );
14 ?>
15 <?php if ( ! empty( $control->label ) ) : ?>
16 <span class="customize-control-title">
17 <?php echo esc_html( $control->label ); ?>
18 </span>
19 <a
20 href="#"
21 title="<?php echo esc_html__( 'Reset', 'betterdocs' ); ?>"
22 class="<?php echo esc_html( $control->type ); ?> betterdocs-customizer-reset">
23 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="20px"><path d="M 25 2 C 12.321124 2 2 12.321124 2 25 C 2 37.678876 12.321124 48 25 48 C 37.678876 48 48 37.678876 48 25 A 2.0002 2.0002 0 1 0 44 25 C 44 35.517124 35.517124 44 25 44 C 14.482876 44 6 35.517124 6 25 C 6 14.482876 14.482876 6 25 6 C 30.475799 6 35.391893 8.3080175 38.855469 12 L 35 12 A 2.0002 2.0002 0 1 0 35 16 L 46 16 L 46 5 A 2.0002 2.0002 0 0 0 43.970703 2.9726562 A 2.0002 2.0002 0 0 0 42 5 L 42 9.5253906 C 37.79052 4.9067015 31.727675 2 25 2 z"></path></svg>
24 </a>
25 <?php endif; ?>
26 <ul>
27 <li id="<?php echo esc_attr( $controller_id ) . '_top'; ?>" class="customize-control">
28 <input
29 type="number"
30 data-default-val="20"
31 class="<?php echo esc_attr( $control->type ); ?>"
32 value="20"
33 data-customize-setting-link="<?php echo esc_attr( $controller_id ) . '_top'; ?>"
34 />
35 </li>
36 <li id="<?php echo esc_attr( $controller_id ) . '_left'; ?>" class="customize-control">
37 <input
38 type="number"
39 data-default-val="20"
40 class="<?php echo esc_attr( $control->type ); ?>"
41 value="20"
42 data-customize-setting-link="<?php echo esc_attr( $controller_id ) . '_left'; ?>"
43 />
44 </li>
45 </ul>
46 </div>
47