Skip to content

Commit

Permalink
removed the event-type prefix from event titles
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyzilar committed Nov 17, 2017
1 parent 6ab74d8 commit 1ca9b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
8 changes: 1 addition & 7 deletions themes/digital.gov/layouts/events/single.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{{ define "pagevars" }}
{{ $.Scratch.Set "bodyclasses" "tribe_events-template-default single single-tribe_events tribe-js tribe-filter-live c-sw unboxed centercatnav bodybg1 events-single tribe-events-style-full tribe-events-style-theme tribe-theme-wp-enlightened tribe-events-page-template tribe-is-responsive tribe-mobile" }}
{{ if eq .Params.event_type "in-person" }}
{{ $.Scratch.Set "headtitle" (printf "In-Person: %s : Digital.gov" .Title) }}
{{ else if eq .Params.event_type "mixed" }}
{{ $.Scratch.Set "headtitle" (printf "In-Person & Online: %s : Digital.gov" .Title) }}
{{ else }}
{{ $.Scratch.Set "headtitle" (printf "Online: %s : Digital.gov" .Title) }}
{{ end }}

{{ end }}

{{ define "content" }}
Expand Down
10 changes: 1 addition & 9 deletions themes/digital.gov/layouts/partials/event-venue--inPerson.html
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
{{ if eq .Params.event_type "in-person" }}
{{ $.Scratch.Set "prefix" "In-Person: " }}
{{ else if eq .Params.event_type "mixed" }}
{{ $.Scratch.Set "prefix" "In-Person & Online: " }}
{{ else }}
{{ $.Scratch.Set "prefix" "Online: " }}
{{ end }}

{{ $.Scratch.Set "displaytitle" (printf "%s %s" ($.Scratch.Get "prefix") .Title) }}
{{ $.Scratch.Set "displaytitle" (printf "%s " .Title) }}

0 comments on commit 1ca9b42

Please sign in to comment.