Skip to main content

GravityKit\GravityCalendar\Elementor\Renderer

Renders the Elementor calendar widget through the [gravitycalendar] shortcode.

Edit mode is injected rather than read from \Elementor\Plugin, so this class loads and is testable without Elementor.

Since: 2.22.0

Source: includes/elementor/class-calendar-elementor-renderer.php:28

Details​

  • Kind: class
  • Namespace: GravityKit\GravityCalendar\Elementor

Methods​

MethodDescription
__construct()
render()Renders the widget.

Method Reference​

__construct()​

public function __construct( bool $is_edit_mode=false )

Parameters​

NameTypeDefaultDescription
$is_edit_modeboolfalseWhether the widget is being rendered for the Elementor editor.

Since: 2.22.0

Source: includes/elementor/class-calendar-elementor-renderer.php:53

render()​

public function render( array $settings ): string

Renders the widget.

Parameters​

NameTypeDefaultDescription
$settingsarrayElementor widget settings.

Returns​

  • string — Markup, ready to print.

Since: 2.22.0

Source: includes/elementor/class-calendar-elementor-renderer.php:66