Browse Source

Added tag display

pull/177/head
Zach Wise 13 years ago
parent
commit
dbd603db5c
  1. 11
      source/js/Slider/VMM.Slider.Slide.js

11
source/js/Slider/VMM.Slider.Slide.js

@ -184,10 +184,17 @@ if (typeof VMM.Slider != 'undefined') {
if (data.type != "start") { if (data.type != "start") {
var st = VMM.Date.prettyDate(data.startdate); var st = VMM.Date.prettyDate(data.startdate);
var en = VMM.Date.prettyDate(data.enddate); var en = VMM.Date.prettyDate(data.enddate);
var tag = "";
/* TAG / CATEGORY
================================================== */
if (data.tag != null && data.tag != "") {
tag = VMM.createElement("span", data.tag, "slide-tag");
}
if (st != en) { if (st != en) {
c.text += VMM.createElement("h2", st + " — " + en + "", "date"); c.text += VMM.createElement("h2", st + " — " + en + tag, "date");
} else { } else {
c.text += VMM.createElement("h2", st, "date"); c.text += VMM.createElement("h2", st + tag, "date");
} }
} }
} }

Loading…
Cancel
Save