| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class SiteReviewTinymce extends TinymceGenerator |
||
| 9 | { |
||
| 10 | 1 | public function fields(): array |
|
| 11 | { |
||
| 12 | 1 | return [ |
|
| 13 | 1 | [ |
|
| 14 | 1 | 'label' => esc_attr_x('Review Post ID', 'admin-text', 'site-reviews'), |
|
| 15 | 1 | 'name' => 'post_id', |
|
| 16 | 1 | 'tooltip' => esc_attr_x('Enter the Post ID of the review to display.', 'admin-text', 'site-reviews'), |
|
| 17 | 1 | 'type' => 'textbox', |
|
| 18 | 1 | ], |
|
| 19 | 1 | [ |
|
| 20 | 1 | 'columns' => 2, |
|
| 21 | 1 | 'items' => $this->hideOptions(), |
|
| 22 | 1 | 'label' => esc_attr_x('Hide', 'admin-text', 'site-reviews'), |
|
| 23 | 1 | 'layout' => 'grid', |
|
| 24 | 1 | 'spacing' => 5, |
|
| 25 | 1 | 'type' => 'container', |
|
| 26 | 1 | ], |
|
| 27 | 1 | [ |
|
| 28 | 1 | 'label' => esc_html_x('Custom ID', 'admin-text', 'site-reviews'), |
|
| 29 | 1 | 'name' => 'id', |
|
| 30 | 1 | 'tooltip' => esc_html_x('This should be a unique value.', 'admin-text', 'site-reviews'), |
|
| 31 | 1 | 'type' => 'textbox', |
|
| 32 | 1 | ], |
|
| 33 | 1 | [ |
|
| 34 | 1 | 'label' => esc_html_x('Additional CSS classes', 'admin-text', 'site-reviews'), |
|
| 35 | 1 | 'name' => 'class', |
|
| 36 | 1 | 'tooltip' => esc_html_x('Separate multiple classes with spaces.', 'admin-text', 'site-reviews'), |
|
| 37 | 1 | 'type' => 'textbox', |
|
| 38 | 1 | ], |
|
| 39 | 1 | ]; |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | public function shortcode(): ShortcodeContract |
|
| 45 | } |
||
| 46 | } |
||
| 47 |