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