2018-08-09 12:02:48 -04:00
|
|
|
mixin linkAdvisors(linkText, linkClass, track)
|
2018-07-25 15:39:40 -04:00
|
|
|
//- To Do: verify path
|
2018-08-09 12:02:48 -04:00
|
|
|
- var gaCategory = track && track.category ? track.category : 'All'
|
|
|
|
- var gaAction = track && track.action ? track.action : null
|
|
|
|
- var gaLabel = track && track.label ? track.label : null
|
|
|
|
- var mb = track && track.mb ? 'true' : null
|
|
|
|
- var mbSegmentation = track && track.segmentation ? track.segmentation : null
|
|
|
|
- var trigger = track && track.trigger ? track.trigger : null
|
2018-07-25 15:39:40 -04:00
|
|
|
a(href="/advisors"
|
|
|
|
class=linkClass ? linkClass : ''
|
2018-08-09 12:02:48 -04:00
|
|
|
event-tracking-ga=gaCategory
|
|
|
|
event-tracking=gaAction
|
|
|
|
event-tracking-label=gaLabel
|
|
|
|
event-tracking-trigger=trigger
|
|
|
|
event-tracking-mb=mb
|
|
|
|
event-segmentation=mbSegmentation
|
2018-07-25 15:39:40 -04:00
|
|
|
)
|
2019-03-18 06:24:54 -04:00
|
|
|
span(ng-non-bindable) #{linkText ? linkText : 'advisor programme'}
|
2018-07-25 15:39:40 -04:00
|
|
|
|
|
|
|
mixin linkBenefits(linkText, linkClass)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/authors" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'benefits'}
|
|
|
|
|
|
|
|
mixin linkBlog(linkText, linkClass, slug)
|
|
|
|
if slug
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/blog/" + slug class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'blog'}
|
|
|
|
|
|
|
|
mixin linkContact(linkText, linkClass)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/contact" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'contact'}
|
|
|
|
|
2018-08-22 16:42:09 -04:00
|
|
|
mixin linkDash(linkText, linkClass)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href="/project" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-08-22 16:42:09 -04:00
|
|
|
| #{linkText ? linkText : 'project dashboard'}
|
|
|
|
|
2018-07-25 15:39:40 -04:00
|
|
|
mixin linkEducation(linkText, linkClass)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/edu" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'teaching toolkit'}
|
|
|
|
|
|
|
|
mixin linkEmail(linkText, linkClass, email)
|
2019-02-20 13:20:45 -05:00
|
|
|
- var emailAddress = email ? email : 'contact'
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href="mailto:" + emailAddress + "@overleaf.com" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'email'}
|
|
|
|
|
2018-08-09 12:02:48 -04:00
|
|
|
mixin linkInvite(linkText, linkClass, track)
|
|
|
|
- var gaCategory = track && track.category ? track.category : 'All'
|
|
|
|
- var gaAction = track && track.action ? track.action : null
|
|
|
|
- var gaLabel = track && track.label ? track.label : null
|
|
|
|
- var mb = track && track.mb ? 'true' : null
|
|
|
|
- var mbSegmentation = track && track.segmentation ? track.segmentation : null
|
|
|
|
- var trigger = track && track.trigger ? track.trigger : null
|
|
|
|
|
|
|
|
a(href="/user/bonus"
|
|
|
|
class=linkClass ? linkClass : ''
|
|
|
|
event-tracking-ga=gaCategory
|
|
|
|
event-tracking=gaAction
|
|
|
|
event-tracking-label=gaLabel
|
|
|
|
event-tracking-trigger=trigger
|
|
|
|
event-tracking-mb=mb
|
|
|
|
event-segmentation=mbSegmentation
|
|
|
|
)
|
2019-03-18 06:24:54 -04:00
|
|
|
span(ng-non-bindable) #{linkText ? linkText : 'invite your friends'}
|
2018-07-25 15:39:40 -04:00
|
|
|
|
|
|
|
mixin linkPlansAndPricing(linkText, linkClass)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href="/user/subscription/plans" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'plans and pricing'}
|
|
|
|
|
|
|
|
mixin linkPrintNewTab(linkText, linkClass, icon, track)
|
2018-08-09 12:02:48 -04:00
|
|
|
- var gaCategory = track && track.category ? track.category : null
|
|
|
|
- var gaAction = track && track.action ? track.action : null
|
|
|
|
- var gaLabel = track && track.label ? track.label : null
|
|
|
|
- var mb = track && track.mb ? 'true' : null
|
|
|
|
- var mbSegmentation = track && track.segmentation ? track.segmentation : null
|
|
|
|
- var trigger = track && track.trigger ? track.trigger : null
|
|
|
|
|
2018-07-25 15:39:40 -04:00
|
|
|
a(href='?media=print'
|
|
|
|
class=linkClass ? linkClass : ''
|
2018-08-09 12:02:48 -04:00
|
|
|
event-tracking-ga=gaCategory
|
|
|
|
event-tracking=gaAction
|
|
|
|
event-tracking-label=gaLabel
|
|
|
|
event-tracking-trigger=trigger
|
|
|
|
event-tracking-mb=mb
|
|
|
|
event-segmentation=mbSegmentation
|
2019-02-25 05:23:04 -05:00
|
|
|
target="_BLANK",
|
|
|
|
rel="noopener noreferrer"
|
2018-07-25 15:39:40 -04:00
|
|
|
)
|
|
|
|
if icon
|
|
|
|
i(class="fa fa-print")
|
|
|
|
|
|
2019-03-18 06:24:54 -04:00
|
|
|
span(ng-non-bindable) #{linkText ? linkText : 'print'}
|
2018-07-25 15:39:40 -04:00
|
|
|
|
2019-02-12 10:26:46 -05:00
|
|
|
mixin linkSignIn(linkText, linkClass, redirect)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=`/login${redirect ? '?redir=' + redirect : ''}` class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'sign in'}
|
|
|
|
|
2019-02-12 10:26:46 -05:00
|
|
|
mixin linkSignUp(linkText, linkClass, redirect)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=`/register${redirect ? '?redir=' + redirect : ''}` class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'sign up'}
|
|
|
|
|
|
|
|
mixin linkTweet(linkText, linkClass, tweetText, track)
|
|
|
|
//- twitter-share-button is required by twitter
|
2018-08-09 12:02:48 -04:00
|
|
|
- var gaCategory = track && track.category ? track.category : 'All'
|
|
|
|
- var gaAction = track && track.action ? track.action : null
|
|
|
|
- var gaLabel = track && track.label ? track.label : null
|
|
|
|
- var mb = track && track.mb ? 'true' : null
|
|
|
|
- var mbSegmentation = track && track.segmentation ? track.segmentation : null
|
|
|
|
- var trigger = track && track.trigger ? track.trigger : null
|
2018-07-25 15:39:40 -04:00
|
|
|
a(class="twitter-share-button " + linkClass
|
2018-08-09 12:02:48 -04:00
|
|
|
event-tracking-ga=gaCategory
|
|
|
|
event-tracking=gaAction
|
|
|
|
event-tracking-label=gaLabel
|
|
|
|
event-tracking-trigger=trigger
|
|
|
|
event-tracking-mb=mb
|
|
|
|
event-segmentation=mbSegmentation
|
2018-07-25 15:39:40 -04:00
|
|
|
href="https://twitter.com/intent/tweet?text=" + tweetText
|
2019-02-25 05:23:04 -05:00
|
|
|
target="_BLANK",
|
|
|
|
rel="noopener noreferrer"
|
2018-07-25 15:39:40 -04:00
|
|
|
) #{linkText ? linkText : 'tweet'}
|
|
|
|
|
|
|
|
mixin linkUniversities(linkText, linkClass)
|
2019-03-18 06:24:54 -04:00
|
|
|
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/universities" class=linkClass ? linkClass : '', ng-non-bindable)
|
2018-07-25 15:39:40 -04:00
|
|
|
| #{linkText ? linkText : 'universities'}
|