PluginProbe
Hello Plus / 1.7.7
Hello Plus v1.7.7
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7.0 1.7.1 1.7.2 1.7.3 All 30 releases
hello-plus / classes / render-base.php

render-base.php in Hello Plus 1.7.7, at classes/render-base.php

30 lines 658 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace HelloPlus\Classes;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly.
7 }
8
9 use Elementor\Widget_Base;
10 abstract class Render_Base implements Renderable {
11 protected Widget_Base $widget;
12
13 protected array $settings;
14
15 protected string $layout_classname;
16
17
18 abstract public function render(): void;
19
20 protected function get_class_name( string $suffix ): string {
21 return $this->layout_classname . $suffix;
22 }
23
24 public function __construct( Widget_Base $widget, string $layout_classname ) {
25 $this->widget = $widget;
26 $this->settings = $widget->get_settings_for_display();
27 $this->layout_classname = $layout_classname;
28 }
29 }
30