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
| Method | Description |
|---|---|
__construct() | |
render() | Renders the widget. |
Method Reference
__construct()
public function __construct( bool $is_edit_mode=false )
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$is_edit_mode | bool | false | Whether 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
| Name | Type | Default | Description |
|---|---|---|---|
$settings | array | Elementor widget settings. |
Returns
string— Markup, ready to print.
Since: 2.22.0
Source: includes/elementor/class-calendar-elementor-renderer.php:66