- Theme Engine
- Design Principles
- Templates
- EVML Reference
- Output
- Comments
- Operators
- Statements and Declarations
- Built-in Functions
- Built-in Objects
- Account
- Address
- Array
- Boolean
- Branch
- Cart
- CartLine
- Category
- CategoryCollection
- CategoryFilter
- CategoryFilterCollection
- CategoryFilterOption
- CategorySearch
- Collection
- Color
- Contact
- Currency
- Date
- Discount
- Dom
- Event
- EventCollection
- EventSlot
- Image
- Layout
- Locale
- Money
- Number
- Object
- Page
- PageCollection
- PageSearch
- PageSharer
- Pagination
- Postage
- Price
- PriceDiscount
- Product
- ProductCollection
- ProductCustomisation
- ProductDownload
- ProductMedia
- ProductMediaFrame
- ProductPrice
- ProductSearch
- ProductSpecification
- ProductSpecificationValue
- ProductVariation
- ProductVariationOption
- RecentlyViewed
- RegExp
- Request
- Review
- ReviewCollection
- Search
- SearchCollection
- SearchResult
- String
- Tag
- Template
- Url
- Website
- EV Tags
- CSS Pre-processor
- Ajax API
PageSharer
Extends Object. The PageSharer object enables you to generate social media share links from Page, Category, Event or Product objects.
Instantiation
Accessing a PageSharer Object is generally done from a Page.share(), Category.share() or Product.share() method.
<a href="{{ page.share().facebook }}">Share on Facebook</a>
Construct parameters | |
---|---|
page |
Type Page, Category or Product The page, category or product to share. |
Methods | |
---|---|
digg() |
Returns String The digg social share link includes the title, and url of the shared page. |
facebook() |
Returns String Generates a facebook share link. |
googlePlus() |
Returns String Generates a googlePlus share link. |
linkedIn() |
Returns String Generates a linkedIn share link including title and url of the page. |
pinterest() |
Returns String Generates a pinterest share link including a the page thumbnail, url and description. |
reddit() |
Returns String Generates a reddit share link including url and title. |
stumbleUpon() |
Returns String Generates a StumbleUpon share link including url and title. |
tumblr() |
Returns String Generates a Tumblr share link including canonicalUrl, title and caption. |
twitter() |
Returns String Generates a Twitter share link including url, text and your Twitter account username if set. |