PluginProbe
Listdom: AI-powered Business Directory with Classifieds Ads Listings / trunk
Listdom: AI-powered Business Directory with Classifieds Ads Listings vtrunk
6.0.0 5.9.0 5.8.1 5.8.0 5.7.0 5.6.0 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.2.1 1.3.0 1.3.1 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.8.0 1.9.0 All 75 releases
listdom / app / includes / element / embed.php

embed.php in Listdom: AI-powered Business Directory with Classifieds Ads Listings trunk, at app/includes/element/embed.php

42 lines 808 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class LSD_Element_Embed extends LSD_Element
4 {
5 public $key = 'embed';
6 public $label;
7
8 public function __construct()
9 {
10 parent::__construct();
11
12 $this->label = esc_html__('Embed', 'listdom');
13 $this->has_title_settings = false;
14 $this->pro_needed = true;
15 }
16
17 public function get($post_id = null)
18 {
19 // Disabled in Lite
20 if ($this->isLite()) return false;
21
22 if (is_null($post_id))
23 {
24 global $post;
25 $post_id = $post->ID;
26 }
27
28 // Generate output
29 ob_start();
30 include lsd_template('elements/embeds.php');
31
32 return $this->content(
33 ob_get_clean(),
34 $this,
35 [
36 'post_id' => $post_id,
37 ]
38 );
39 }
40 }
41
42