Ghost/core/frontend/helpers
Rishabh Garg 2272f84cc9
Added beta {{products}} helper for tiers list on post (#13267)
refs https://github.com/TryGhost/Team/issues/1004

- adds new `{{products}}` helper behind `multipleProducts` flag
- `{{products}}` outputs a string with list of products that have access to specific post when used in a post context in theme
- outputs empty string when used out of a post context and without access to `visibility` property
- uses all available posts for a site via the global products data
- updates {{content}} helper cta to use this new helper to show list of tiers with access to post
2021-09-10 09:30:41 +05:30
..
tpl Added beta {{products}} helper for tiers list on post (#13267) 2021-09-10 09:30:41 +05:30
asset.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
author.js Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
authors.js Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
body_class.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
cancel_link.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
concat.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
content.js Removed hardcoded accent color fallbacks (#12813) 2021-03-24 18:25:26 +05:30
date.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
encode.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
excerpt.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
facebook_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
foreach.js Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
get.js Fixed feature_image_caption needing triple-curlies in themes (#13107) 2021-07-01 17:55:44 +01:00
ghost_foot.js Updated ghost_head & ghost_foot to work with tags 2020-07-10 14:20:24 +02:00
ghost_head.js Added crossorigin attribute to Portal script 2021-06-22 12:31:30 +05:30
has.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
img_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
index.js Improved helper index, use glob to read directory 2020-04-10 13:08:41 +01:00
is.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
lang.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
link_class.js 🐛 Fixed 404 errors if navigation URLs are somehow blank 2021-03-24 09:43:43 +00:00
link.js Moved non-helper code out of helpers 2020-04-10 12:27:43 +01:00
match.js Added initial match helper 2021-06-07 21:15:05 +01:00
meta_description.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
meta_title.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
navigation.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
page_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
pagination.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
post_class.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
prev_post.js Improved single author deprecated notices 2021-05-04 17:11:12 +01:00
price.js Fixed 0 amount in new price helper 2021-02-25 20:08:54 +05:30
products.js Added beta {{products}} helper for tiers list on post (#13267) 2021-09-10 09:30:41 +05:30
raw.js Added raw handlebars helper 2020-04-06 17:26:50 +01:00
reading_time.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
t.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
tags.js Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
title.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
twitter_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
url.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00