PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.1
ShopBuilder – WooCommerce Builder For Elementor v3.2.1
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / app / Elementor / Widgets / Archive / ArchiveTitle.php

ArchiveTitle.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.1, at app/Elementor/Widgets/Archive/ArchiveTitle.php

68 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main ProductDescription class.
4 *
5 * @package RadiusTheme\SB
6 */
7
8 namespace RadiusTheme\SB\Elementor\Widgets\Archive;
9
10 use RadiusTheme\SB\Abstracts\ElementorWidgetBase;
11 use RadiusTheme\SB\Elementor\Widgets\Controls\ArchiveTitleSettings;
12 use RadiusTheme\SB\Helpers\Fns;
13
14 // Do not allow directly accessing this file.
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit( 'This script cannot be accessed directly.' );
17 }
18
19 /**
20 * Product Description class
21 */
22 class ArchiveTitle extends ElementorWidgetBase {
23 /**
24 * Construct function
25 *
26 * @param array $data default array.
27 * @param mixed $args default arg.
28 */
29 public function __construct( $data = [], $args = null ) {
30 $this->rtsb_name = esc_html__( 'Archive Title', 'shopbuilder' );
31 $this->rtsb_base = 'rtsb-archive-title';
32 parent::__construct( $data, $args );
33 }
34 /**
35 * Keywords
36 *
37 * @return array
38 */
39 public function get_keywords() {
40 return [ 'title', 'archive', 'archive title', 'page title' ] + parent::get_keywords();
41 }
42 /**
43 * Widget Field
44 *
45 * @return array
46 */
47 public function widget_fields() {
48 return ArchiveTitleSettings::widget_fields( $this );
49 }
50
51 /**
52 * Render Function
53 *
54 * @return void
55 */
56 protected function render() {
57 $controllers = $this->get_settings_for_display();
58 $this->theme_support();
59 $data = [
60 'template' => 'elementor/archive/title',
61 'controllers' => $controllers,
62 ];
63 Fns::load_template( $data['template'], $data );
64 $this->theme_support( 'render_reset' );
65 }
66
67 }
68