'); } else { p.push('
'); } p.push(''); } p.push(''); var renderItems = function(items) { p.push(' '); jQuery.each(items, function (i, item) { p.push(' '); if(hasColumns && item.columnBreak) { p.push(' '); if(item.image && item.image.src) { p.push('
'); } else if (item.greeting) { p.push('
'); } else { p.push('
'); } p.push(' '); } p.push(' '); if(item.dividerBefore) { p.push('
'); } p.push(' '); if(item.text || item.content) { p.push(' '); if(item.url) { p.push('
16) { p.push(' style=\'line-height:',item.image.height ,'px;\' '); } p.push(' > '); if(item.decorate == 'carat') { p.push(' '); } p.push(' '); if(item.image && item.image.src) { p.push('
'); } p.push(' '); if(item.text) { p.push(' ',item.text,''); if(item.badgeText) { p.push(' ',item.badgeText,' '); } p.push(' '); } else if (item.content) { p.push(' '); jQuery.each(item.content, function (j, cItem) { p.push(''); if(cItem.url && cItem.text) { p.push('',cItem.text ,''); } else if (cItem.text) { p.push('',cItem.text,''); } p.push(''); }); p.push(' '); } p.push(' '); if(item.subtext) { p.push(' ',item.subtext ,' '); } p.push(' '); if(item.url) { p.push(' '); } else {p.push(' '); } p.push(' '); } p.push(' '); if(item.image && item.image.src) { p.push(' '); if(item.url) { p.push('
'); } p.push('
'); if(item.url) { p.push(' '); } p.push(' '); } p.push(' '); if(item.items) { p.push('
'); renderItems(item.items); p.push('
'); } p.push(' '); }); p.push(''); }; p.push(''); renderItems(items); p.push(''); if(hasColumns) { p.push('
'); } p.push('');}return p.join('');
}