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

#assetAssetDrop

Returns:

#bodyString

Returns:

  • (String)

#collapsed_messageString

Only applicable for embedded landing pages

Returns:

  • (String)

#commentsString

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#contentString

Returns:

  • (String)

#countdown_timerBoolean

Deprecated.

Only for old-style landing pages

Returns:

  • (Boolean)

#cta_bodyString

Only for embedded, old-style landing pages

Returns:

  • (String)

#cta_noticeString

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_objectListDrop, ProductDrop

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

Returns:

#cta_titleString

Only for embedded, old-style landing pages

Returns:

  • (String)

#fieldsArray<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_assetAssetDrop

Deprecated.

Only for old-style landing pages

Returns:

#header_typeString

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#headlineString

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#idInteger

Returns:

  • (Integer)

#listListDrop

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

Returns:

#mobile_imageAssetDrop

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_byString

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)

#settingsThemeSettingsDrop

Configured settings for the landing page

Returns:

#sharing_widgetString

Deprecated.

Only for old-style landing pages

Returns:

  • (String)
Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#subheadString

Deprecated.

Only for old-style landing pages

Returns:

  • (String)

#submitString

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_messageString

Only applicable for embedded and old-style landing pages

Returns:

  • (String)

#titleString

Returns:

  • (String)

#url_for_sharingString

Returns:

  • (String)