Class: LandingPageDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- LandingPageDrop
- 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
Instance Method Summary collapse
- #asset ⇒ AssetDrop
- #body ⇒ String
-
#collapsed_message ⇒ String
Only applicable for embedded landing pages.
-
#comments ⇒ String
deprecated
Deprecated.
Only for old-style landing pages
- #content ⇒ String
-
#countdown_timer ⇒ Boolean
deprecated
Deprecated.
Only for old-style landing pages
-
#cta_body ⇒ String
Only for embedded, old-style landing pages.
-
#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”.
-
#cta_object ⇒ ListDrop, ProductDrop
The CTA object attached to this landing page, can be either a list or a product.
-
#cta_title ⇒ String
Only for embedded, old-style landing pages.
-
#fields ⇒ Array<FormFieldDrop>
Returns the form fields on the landing page when a list is attached to the landing page as its #cta_object.
-
#header_asset ⇒ AssetDrop
deprecated
Deprecated.
Only for old-style landing pages
-
#header_type ⇒ String
deprecated
Deprecated.
Only for old-style landing pages
-
#headline ⇒ String
deprecated
Deprecated.
Only for old-style landing pages
- #id ⇒ Integer
-
#list ⇒ ListDrop
Returns the list attached to this landing page (if any).
- #mobile_image ⇒ AssetDrop
-
#needs_gdpr_consent? ⇒ Boolean
Returns if the list attached to this landing page needs GDPR consent.
-
#no_cta_box? ⇒ Boolean
deprecated
Deprecated.
Only for old-style landing pages
-
#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.
-
#settings ⇒ ThemeSettingsDrop
Configured settings for the landing page.
-
#sharing_widget ⇒ String
deprecated
Deprecated.
Only for old-style landing pages
-
#sidebar_body ⇒ String
deprecated
Deprecated.
Only for old-style landing pages
-
#subhead ⇒ String
deprecated
Deprecated.
Only for old-style landing pages
-
#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.
-
#success_message ⇒ String
Only applicable for embedded and old-style landing pages.
- #title ⇒ String
- #url_for_sharing ⇒ String
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#asset ⇒ AssetDrop
#body ⇒ String
#collapsed_message ⇒ String
Only applicable for embedded landing pages
#comments ⇒ String
Only for old-style landing pages
#content ⇒ String
#countdown_timer ⇒ Boolean
Only for old-style landing pages
#cta_body ⇒ String
Only for embedded, old-style landing pages
#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”
#cta_object ⇒ ListDrop, ProductDrop
The CTA object attached to this landing page, can be either a list or a product.
#cta_title ⇒ String
Only for embedded, old-style landing pages
#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.
#header_asset ⇒ AssetDrop
Only for old-style landing pages
#header_type ⇒ String
Only for old-style landing pages
#headline ⇒ String
Only for old-style landing pages
#id ⇒ Integer
#list ⇒ ListDrop
Returns the list attached to this landing page (if any)
#mobile_image ⇒ AssetDrop
#needs_gdpr_consent? ⇒ Boolean
Returns if the list attached to this landing page needs GDPR consent
#no_cta_box? ⇒ Boolean
Only for old-style landing pages
#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
#settings ⇒ ThemeSettingsDrop
Configured settings for the landing page
#sharing_widget ⇒ String
Only for old-style landing pages
#sidebar_body ⇒ String
Only for old-style landing pages
#subhead ⇒ String
Only for old-style landing pages
#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
#success_message ⇒ String
Only applicable for embedded and old-style landing pages