no image
'; if($loop.find('.latest-post-list-thumb .noimage_text').length==0) $loop.find('.latest-post-list-thumb.empty').append(text); } } else $loop.find('.latest-post-list-thumb').removeClass('empty').attr('data-option',row.option).attr('data-id',row.id); } $loop.find('.latest-post-list-date').text(row.date); if(row.comment > 0) $loop.find('.latest-post-list-comment').text(row.comment); else $loop.find('.latest-post-list-comment').text(''); if(row.hit > 0) $loop.find('.latest-post-list-hit').text(row.hit); else $loop.find('.latest-post-list-hit').text(''); if($loop.find('.latest-post-list-cate').length > 0) { if(row.cate) { $loop.find('.latest-post-list-cate').removeClass('empty'); if(data_type == 'gallery') { var $cate = $loop.find('.latest-post-list-cate').children().clone(), replace_cate = '', g_cate = row.cate.replace(/\|/g,'').replace(/\,/g,', '), g_cate_arr = g_cate.split(','); $.each(g_cate_arr, function(i,v) { replace_cate += $cate.text(v).prop('outerHTML'); }); $loop.find('.latest-post-list-cate').html(replace_cate); } else { $loop.find('.latest-post-list-cate li').text(row.cate); } } else { $loop.find('.latest-post-list-cate li').text('').parent().addClass('empty'); } } return $loop[0].outerHTML; } $.latest = { init: function(latest_id, latest_data) { var L_SID = (typeof SID == 'undefined') ? property.SID : SID, // L_ONE = (typeof ONE == 'undefined') ? property.ONE : ONE, L_PAGE = (typeof PAGE == 'undefined') ? property.PAGE : PAGE, L_PUBLISH = (typeof property == 'undefined') ? false : property.PUBLISH, L_VALIDPLAN = (typeof VALIDPLAN == 'undefined') ? property.VALIDPLAN : VALIDPLAN, L_VALIDTYPE = (typeof VALIDTYPE == 'undefined') ? property.VALIDTYPE : VALIDTYPE; var $latest_el = $('.element[data-id="' + latest_id + '"]'), post_view = (typeof $latest_el.find('[data-loop="true"]').attr('data-view') == 'undefined') ? 5 : $latest_el.find('[data-loop="true"]').attr('data-view'); if(!L_VALIDPLAN || L_VALIDTYPE == 'PK') { var not_supported_free = '\