Skip to content
theuprising edited this page Dec 18, 2012 · 2 revisions

Template Tags

Item Tags

ts_is_new()

Description

Checks to see if the offer is new. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(bool)

True if the item is new.


ts_is_on_sale()

Description

Checks to see if the offer is on sale. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(bool)

True if the item is on sale.


ts_is_sold_out()

Description

Checks to see if the offer is sold out. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(bool)

True if the item is sold out.


ts_get_the_offer_type()

Description

Retrieves the offer type. If no offer is specified, it will default to the current offer in The Topspin Loop.

Offer Types

  • buy_button
  • email_for_media
  • bundle_widget
  • single_track_player_widget

Return

(string)

The current offer type.


ts_has_thumbnail()

Description

Checks to see if the offer has a thumbnail. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(bool)

True if the offer has a thumbnail.


ts_the_thumbnail()

Description

Echoes the current offer's thumbnail. This tag must be used within The Topspin Loop.


ts_get_the_thumbnail()

Description

Retrieves the offer's thumbnail image tag.

Return

(string)

The offer's thumbnail image tag.


ts_the_ID()

Description

Echoes the offer's post ID. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_ID()

Description

Retrieve the offer's post ID. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(int|bool)

The offer's post ID or false on failure.


ts_the_offer_id()

Description

Echoes the current offer's Topspin campaign ID.


ts_get_the_offer_id()

Description

Retrieve the offer's campaign ID. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(int|bool)

The offer's campaign ID or false on failure.


ts_the_title()

Description

Echoes the offer's title. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_title()

Description

Retrieve the offer's title. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(string)

The offer's title.


ts_the_content()

Description

Echoes the offer's content/description. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_content()

Description

Retrieves the content of the current offer.

Return

(string)

The offer's content/description.


ts_the_permalink()

Description

Echoes the offer's permalink. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_permalink()

Description

Retrieve the offer's permalink. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(string)

The offer's permalink.


ts_the_price()

Description

Echoes the offer's price. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_price()

Description

Retrieve the offer's price. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(string)

The offer's price.


ts_the_purchaselink()

Description

Echoes the offer's purchase link. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_purchaselink()

Description

Retrieve the offer's purchase link. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(string)

The offer's purchase link.


ts_the_embed_code()

Description

Echoes the offer's embed code. If no offer is specified, it will default to the current offer in The Topspin Loop.


ts_get_the_embed_code()

Description

Retrieve the offer's embed code. If no offer is specified, it will default to the current offer in The Topspin Loop.

Return

(string)

The offer's embed code.


ts_prev_link()

Description

Retrieve the previous link for the current store. This tag must be used within The Topsin Loop.

Return

(string)

A URL for the previous page for the store query.


ts_next_link()

Description

Retrieve the next link for the current store. This tag must be used within The Topsin Loop.

Return

(string)

A URL for the next page for the store query.


ts_have_gallery()

Description

Checks to see if the gallery exists for the offer. This tag must be used within The Topspin Loop.

Return

(bool)

True if the current offer has more than 1 image.


ts_gallery_images()

Description

Retrieve the gallery images. This tag must be used within The Topspin Loop.

Return

(array)

An array of image objects.

Clone this wiki locally