Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Feature: Add shortcode for tito#685

Merged
mattstratton merged 1 commit intodevopsdays:masterfrom
devopsdays-london:tito-shortcode
Mar 5, 2019
Merged

Feature: Add shortcode for tito#685
mattstratton merged 1 commit intodevopsdays:masterfrom
devopsdays-london:tito-shortcode

Conversation

@chriscoffee
Copy link
Copy Markdown
Collaborator

@chriscoffee chriscoffee commented Jan 25, 2019

We're using tito now in London (https://ti.to/) and I thought it might be helpful to include a shortcode so others don't have to go through embedding the widget code directly into their registration pages.

I'm not the biggest fan on requesting external resources so I don't mind dropping the CSS and JS into the static files if needed. (Please let me know 👍 )

In order to use this you enter {{< tito_widget event="devopsdays-london/2019" >}} for example on your page. If you want to only show a particular ticket then you can do something like {{< tito_widget event="devopsdays-london/2019" releases="fiaurhghf2k">}}. Similarly if you wanted to apply a discount to the widget you can use the discount-code="examplediscount" param.


This change is Reviewable

I want to be able to add a shortcode for tito and add specific named
params in order to display the tito widget on a page I wish.

I also want to allow use of releases and discount-codes

The current naming convention is using underscores so lets do that!
We'll also move to using external css and js, rather than keep them
locally we don't want to add extra work always updating these.

Signed-off-by: Chris Mills <me@christophermills.co.uk>
@mattstratton mattstratton merged commit 2f0f1f3 into devopsdays:master Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants