for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GeminiLabs\SiteReviews\Integrations\Bricks\Elements;
use GeminiLabs\SiteReviews\Integrations\Bricks\BricksElement;
use GeminiLabs\SiteReviews\Shortcodes\SiteReviewShortcode;
class BricksSiteReview extends BricksElement
{
public function designConfig(): array
return [
'style_text_align' => [
'exclude' => ['auto', 'justify'],
'group' => 'design',
'inline' => true,
'label' => esc_html_x('Text Align', 'admin-text', 'site-reviews'),
'rerender' => true,
'tab' => 'style',
'themeStyle' => true,
'type' => 'text-align',
],
'style_heading' => [
'css' => [[
'property' => 'font',
'selector' => '.glsr:not([data-theme]) h2, .glsr:not([data-theme]) h3, .glsr:not([data-theme]) h4',
]],
'label' => esc_html_x('Heading', 'admin-text', 'site-reviews'),
'type' => 'typography',
];
}
public function render()
if (!$this->shortcodeInstance()->hasVisibleFields($this->settings)) {
$this->render_element_placeholder([
'title' => esc_html_x('You have hidden all of the fields.', 'admin-text', 'site-reviews'),
]);
return;
parent::render();
public static function shortcodeClass(): string
return SiteReviewShortcode::class;