Class: LandingPageDrop

Inherits:
Liquid::Simplero::Drop show all
Includes:
GdprCheckboxDropConcerns, ModeDependentDropConcerns, SectionRenderingDropConcerns, ShareableDropConcerns
Defined in:
app/drops/landing_page_drop.rb

Overview

landing_page refers to the current landing page being displayed Simplero provides multiple types of landing pages (Embedded, Full, Old-style (which has now been deprecated in favor of Full), & Raw. The methods documented here are useful for the first 3.

Direct Known Subclasses

LandingPageEditorDrop

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#asset ⇒ AssetDrop

Returns:

#body ⇒ String

Returns:

  • (String)

#collapsed_message ⇒ String

Only applicable for embedded landing pages

Returns:

  • (String)

#comments ⇒ String

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#content ⇒ String

Returns:

  • (String)

#countdown_timer ⇒ Boolean

Deprecated.

Only for old-style landing pages

Returns:

  • (Boolean)

#cta_body ⇒ String

Only for embedded, old-style landing pages

Returns:

  • (String)

#cta_notice ⇒ String

It represents the notice text that you set on the editor (embedded & old-style pages), usually something like “We'll never send you spam”

Returns:

  • (String)

#cta_object ⇒ ListDrop, ProductDrop

The CTA object attached to this landing page, can be either a list or a product.

Returns:

#cta_title ⇒ String

Only for embedded, old-style landing pages

Returns:

  • (String)

#fields ⇒ Array<FormFieldDrop>

Returns the form fields on the landing page when a list is attached to the landing page as its #cta_object. Usually useful for building embedded landing page templates.

Returns:

#header_asset ⇒ AssetDrop

Deprecated.

Only for old-style landing pages

Returns:

#header_type ⇒ String

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#headline ⇒ String

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#id ⇒ Integer

Returns:

  • (Integer)

#list ⇒ ListDrop

Returns the list attached to this landing page (if any)

Returns:

#mobile_image ⇒ AssetDrop

Returns:

#needs_gdpr_consent? ⇒ Boolean

Returns if the list attached to this landing page needs GDPR consent

Returns:

  • (Boolean)

#no_cta_box? ⇒ Boolean

Deprecated.

Only for old-style landing pages

Returns:

  • (Boolean)

#powered_by ⇒ String

Returns HTML for the “Powered by Simplero” link to the main Simplero site (with the configured branding affiliate id if any) if the account allows branding

Returns:

  • (String)

#settings ⇒ ThemeSettingsDrop

Configured settings for the landing page

Returns:

#sharing_widget ⇒ String

Deprecated.

Only for old-style landing pages

Returns:

  • (String)
Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#subhead ⇒ String

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#submit ⇒ String

Returns the HTML for submit input of the form (along with a GDPR checkbox if needed) that can be rendered directly on the page Usually used while creating embedded landing page templates

Returns:

  • (String)

#success_message ⇒ String

Only applicable for embedded and old-style landing pages

Returns:

  • (String)

#title ⇒ String

Returns:

  • (String)

#url_for_sharing ⇒ String

Returns:

  • (String)