abstracts/view.php 1 location
|
@@ 118-129 (lines=12) @@
|
| 115 |
|
* @param string $html Existing HTML content. |
| 116 |
|
* @return string HTML section content. |
| 117 |
|
*/ |
| 118 |
|
protected function options_section( $html = '' ) { |
| 119 |
|
$html .= "<hr>"; |
| 120 |
|
|
| 121 |
|
$html .= "<div class='test-data-cpt'>"; |
| 122 |
|
$html .= "<h3>"; |
| 123 |
|
$html .= "<span class='label'>" . esc_html__( 'Quantity', 'dummybot' ) . "</span>"; |
| 124 |
|
$html .= "<input type='number' value='0' class='quantity-adjustment' for='" . esc_attr( $this->type ) . "' > "; |
| 125 |
|
$html .= "</h3>"; |
| 126 |
|
$html .= "</div>"; |
| 127 |
|
|
| 128 |
|
return $html; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
|
| 132 |
|
/** |
views/various.php 1 location
|
@@ 31-46 (lines=16) @@
|
| 28 |
|
* |
| 29 |
|
* @return string HTML content. |
| 30 |
|
*/ |
| 31 |
|
protected function actions_section() { |
| 32 |
|
$html = ''; |
| 33 |
|
|
| 34 |
|
$html .= "<div class='test-data-cpt'>"; |
| 35 |
|
|
| 36 |
|
$html .= "<h3>"; |
| 37 |
|
|
| 38 |
|
$html .= "<span class='label'>" . esc_html__( 'Clean Site', 'dummybot' ) . "</span>"; |
| 39 |
|
$html .= $this->build_button( 'delete', 'all', __( 'Delete All Test Data', 'dummybot' ) ); |
| 40 |
|
|
| 41 |
|
$html .= "</h3>"; |
| 42 |
|
|
| 43 |
|
$html .= "</div>"; |
| 44 |
|
|
| 45 |
|
return $html; |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
|
| 49 |
|
/** |