Ghost/core/frontend/helpers
Rishabh Garg e3a0bb535f
Added default CTA to content helper (#12157)
no issue

ATM users have to add logic to their themes in order to automatically hide restricted content. The {{content}} helper is updated to return a default CTA box instead of the post content for restricted posts with default static text using site's accent color and opening Portal for relevant action. This is currently behind the dev experiment flag.

- Adds new default content helper template in case of restricted content
- Updates content helper to trigger new CTA template in case of restricted content
2020-09-08 12:49:36 +05:30
..
tpl Added default CTA to content helper (#12157) 2020-09-08 12:49:36 +05:30
asset.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
author.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
authors.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
body_class.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
cancel_link.js Moved labs usage into cancel_link helper file 2020-04-08 19:31:55 +01:00
concat.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
content.js Added default CTA to content helper (#12157) 2020-09-08 12:49:36 +05:30
date.js Moved helper proxy into a service 2020-04-08 17:22:44 +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 Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
get.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +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 default CTA to content helper (#12157) 2020-09-08 12:49:36 +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 Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
link_class.js Moved non-helper code out of helpers 2020-04-10 12:27:43 +01:00
link.js Moved non-helper code out of helpers 2020-04-10 12:27:43 +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 logic error in navigation for isSecondary 2020-05-18 19:15:28 +01:00
page_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
pagination.js Moved helper proxy into a service 2020-04-08 17:22:44 +01: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 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
price.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
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 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +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