| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class BricksSiteReviewsSummary extends BricksElement |
||
| 10 | { |
||
| 11 | public function designConfig(): array |
||
| 12 | { |
||
| 13 | return [ |
||
| 14 | 'style_align' => [ |
||
| 15 | 'exclude' => ['stretch', 'auto'], |
||
| 16 | 'group' => 'design', |
||
| 17 | 'inline' => true, |
||
| 18 | 'label' => esc_html__('Align', 'bricks'), |
||
| 19 | 'rerender' => true, |
||
| 20 | 'tab' => 'style', |
||
| 21 | 'themeStyle' => true, |
||
| 22 | 'type' => 'align-items', |
||
| 23 | ], |
||
| 24 | ]; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function elementConfig(): array |
||
| 28 | { |
||
| 29 | $controls = parent::elementConfig(); |
||
| 30 | $controls = Arr::insertBefore('text', $controls, [ |
||
| 31 | 'text_notice' => [ |
||
| 32 | 'content' => esc_html_x('The recommended way to change these values is to use the Site Reviews → Settings → Strings page.', 'admin-text', 'site-reviews'), |
||
| 33 | 'group' => 'text', |
||
| 34 | 'tab' => 'content', |
||
| 35 | 'type' => 'info', |
||
| 36 | ], |
||
| 37 | ]); |
||
| 38 | return $controls; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function render() |
||
| 50 | } |
||
| 51 | |||
| 52 | public static function shortcodeClass(): string |
||
| 55 | } |
||
| 56 | } |
||
| 57 |