'; for (var i = 0; i < seafoodplus.info; i++) { for (var j = 0; j < seafoodplus.info[i]seafoodplus.info; j++) { if (seafoodplus.info[i].link[j].rel == "alternate") { posturl = seafoodplus.info[i].link[j].href; break } } var posttitle = seafoodplus.info[i].title.$t; var author = seafoodplus.info[i].author[0].name.$t; var get_date = seafoodplus.info[i].published.$t, year = get_seafoodplus.infoing(0, 4), month = get_seafoodplus.infoing(5, 7), day = get_seafoodplus.infoing(8, 10), date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year; var tag = seafoodplus.info[i].category[0].term; var content = seafoodplus.info[i].content.$t; var $content = $('
').html(content); var src2 = seafoodplus.info[i].media$seafoodplus.info; htmlcode += '
' + posttitle + '
' + author + '' + date + '
' } htmlcode += '
'; seafoodplus.infoeWith('
' + mapLabel_text + '
' + htmlcode + ''); $(document).on('click', '.mapasite h2', function() { $(this).parent('.mapasite').addClass('active'); $(this).find('.botao .fa').removeClass('fa-plus-circle').addClass('fa-minus-circle'); }); $(document).on('click', 'seafoodplus.info h2', function() { $(this).parent('.mapasite').removeClass('active'); $(this).find('.botao .fa').addClass('fa-plus-circle').removeClass('fa-minus-circle'); }); } }); }); } }); } $("#related-posts").each(function() { var g = $(this).html(); var related_number = 3; $.ajax({ url: "/feeds/posts/default/-/" + g + "?alt=json-in-script&max-results=" + related_number, type: 'get', dataType: "jsonp", success: function(data) { var posturl = ""; var htmlcode = '