Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/dev.simplysorghum.com/core/model/modx/modcachemanager.class.php on line 580
Blog | Simply Sorghum

Blog

<% u.each(connections, function(e,i,l){ classes = ''; industry = 'Industry'; industry_list = ''; if(e.distance){ miles = e.distance.distance == 1 ? 'mile' : 'miles'; } if(e.categories){ if(e.categories.length > 1){ industry = 'Industries'; } _.each(e.categories, function(f,j,k){ if(categories[f]) industry_list += categories[f].category_name + ", "; }); industry_list = industry_list.slice(0,-2); } %>

<%= (e.company) ? e.company : e.contact %>

<%= (e.distance) ? '

Distance: ' + e.distance.distance + ' ' + miles + ' from zip

' : '' %>
<% if(e.contacts){ u.each(e.contacts, function(f,j,k){%> <%= (f.name) ? '

' + f.name + '

' : '' %> <%= (f.email) ? 'Email this connection' : '' %> <%= (f.phone) ? '

' + f.phone + '

' : '' %> <% }); } %> <%= (e.website) ? 'Website: ' + e.website + '' : '' %>

<%= industry %>: <%= industry_list %>

<%= (e.description) ? e.description + ' ' : '' %>
<% if(e.address) { %> View on map <% } %> <%= (e.website) ? 'Visit Website' : '' %>
<% }); %>