<% var query_count = 1; if(typeof wisdom_search_value.query !== "undefined") query_count = wisdom_search_value.query.length; _.each(wisdom_search_value.query, function( value, key ){ if(typeof value.result != "undefined"){ if(typeof value.result.result != "undefined"){ if(layout == "content"){ %>
<% _.each(value.result.result, function( result_value, result_key ){ %> - <% if(_.contains(["press_release", "press_report","q_and_a","knowledge_sheet", "aolweb_page", "what_sri_sri_said_today", "mega_event", "commentary", "landing_pages_node"], result_value.bundle)){ if(result_value.content != "" || result_value.content != "undefined"){ %> <% if(typeof result_value.image != "undefined"){ %> <% } %> <% } } %>
<% }); %>
<% } } } }); %> <% if(data_count == 0 || typeof data_count == "undefined"){ %>
There are no <%= title %> <% if(search_key != ""){ %> pages on "<%= search_key %>" <% }else{ %> pages <% } %> <% } %>
<%= title %> <% if(pagination == 1 && wisdom_search_value.query.length == 1 && typeof wisdom_search_value.query[0].result != "undefined"){ if(typeof wisdom_search_value.query[0].result.result != "undefined"){ var pagination_query = jQuery.extend(true, {}, wisdom_search_value.query[0]); if(pagination_query.result != "undefined") delete(pagination_query.result); pagination_query.start = 0; pagination_query = JSON.stringify(pagination_query); pagination_query = pagination_query.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/"/g, "'"); var total_count = wisdom_search_value.query[0].result.total; var item_per_page = 3; if(top_layout == "single_block") item_per_page = 10; var total_pages = Math.ceil(total_count/item_per_page); var page_number = wisdom_search_value["page_number"]; var page_position = ((page_number) * item_per_page); var pagination_display = _.pagination(item_per_page, page_number, total_count, total_pages); %>
<% } } if((pagination == 0 || pagination_display == "") && typeof wisdom_search_value.view_all_count != "undefined" && wisdom_search_value.view_all_count > 0){ %>
<% if(wisdom_search_value.view_all_val !== null && wisdom_search_value.view_all_val == 1 && wisdom_search_value.view_all_count !== null && wisdom_search_value.view_all_count > 0){ %> View all <%= wisdom_search_value.view_all_count %> <% }else{ if(wisdom_search_value.view_all_count !== null && wisdom_search_value.view_all_count > 0){ %> Showing all <%= wisdom_search_value.view_all_count %> <% } } %> <% } %>
<% if(pagination == 1 && wisdom_search_value.query.length == 1 && typeof wisdom_search_value.query[0].result != "undefined" && search_key != ""){ if(typeof wisdom_search_value.query[0].result.result != "undefined" && typeof wisdom_search_value.query[0].result.total != "undefined"){ %> <% } }else{%> <% }%>