extends |
EPL_Elementor_Listing_Document |
|---|
Dedicated saved-template document for single listing pages.
Rendered by EPL_Elementor_Template_Router in place of EPL's default single listing template when a published template of this type matches the current listing's post type — the free-Elementor equivalent of an Elementor Pro Theme Builder "Single" template.
| Methods | ||||||
|---|---|---|---|---|---|---|
public
|
get_name(): string
Get document name.
Get document name. Since
|
# | ||||
public
static
|
get_type(): string
Get document type.
Get document type. Since
|
# | ||||
public
static
|
get_title(): string
Get singular title.
Get singular title. Since
|
# | ||||
public
static
|
get_plural_title(): string
Get plural title.
Get plural title. Since
|
# | ||||
protected
|
register_controls()
Register document controls.
Register document controls. Adds "Apply To Listing Types" on top of the shared parent controls — unlike a Listing Card (a design picked explicitly per widget, with no routing logic of its own), a Single Listing template is matched automatically by post type, so it genuinely needs this. Since
|
# | ||||
public
|
save(array $data): bool|array
Save the document, mirroring "Apply To Listing Types" into plain post
meta so EPL_Elementor_Template_Router::get_single…
Save the document, mirroring "Apply To Listing Types" into plain post meta so EPL_Elementor_Template_Router::get_single_template_id() can query for it without unserializing the full Elementor page-settings meta on every request.
Parameters
Since
|
# | ||||
| Methods inherited from EPL_Elementor_Listing_Document |
|---|
get_properties(), |
| Constants | ||
|---|---|---|
public
|
TYPE = 'epl-single'
Document type slug.
Document type slug. |
# |