KazanFirst - главные новости Татарстана и Казани сегодня
→ Оригинал (без защиты от корпорастов)
');
setTimeout(function () {
jQuery('.loadingio-spinner')
.removeClass('is-hidden')
.addClass('is-visible');
}, 50);
var data = {
'action': 'load_wpb_posts',
'page' : block_id_7629_current_page,
'max_pages':'377',
'wpb_block_id': 'block_id_7629',
'nonce': $( '#block_id_7629-load-more-nonce' ).val(),
'params': '{"post_type":["post"],"col":"1","limit":"4","offset":"","cat":"0","catex":"","genre":"52357","genreex":"","tags":"","title":"","excerpt":18,"style":"style-44","title_color":"","loadmore":"1","thumb":"thumb-medium","hide_title":"hide_title","orderby":"date","order":"desc","exclude":false,"ids":"","sort":"","bg":"","bg_hover":"","related":""}',
'query': '{"no_found_rows":false,"update_post_meta_cache":false,"update_post_term_cache":false,"post_type":["post"],"posts_per_page":4,"operator":"IN","ignore_sticky_posts":false,"orderby":"date","order":"DESC","sort":"","post_status":"publish","tax_query":{"relation":"AND","include_children":1,"0":{"taxonomy":"category","field":"id","terms":["52357"],"include_children":1}},"error":"","m":"","p":0,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"name":"","pagename":"","page_id":0,"second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"videos","tag":"","cat":52357,"tag_id":"","author":"","author_name":"","feed":"","tb":"","paged":0,"meta_key":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"search_columns":[],"suppress_filters":false,"cache_results":true,"update_menu_item_cache":false,"lazy_load_term_meta":false,"nopaging":false,"comments_per_page":"50"}'
};
$.ajax({
url:ajaxurl,
data:data,
type:'POST',
success:function(data){
if( data ) {
$('#wpb_loadmore_block_id_7629').html('Далее ').parent().before().append('');
$('#block_id_7629 .wrap-data').append(data);
block_id_7629_current_page++;
if (block_id_7629_current_page == block_id_7629_max_pages) $("#wpb_loadmore_block_id_7629").remove();
setTimeout(function () {
jQuery('.data-loader').remove();
jQuery('.loadingio-spinner').remove();
}, 350);
} else {
console.log('Данные отсутствуют');
$('#wpb_loadmore_block_id_7629').remove();
setTimeout(function () {
jQuery('.data-loader').remove();
jQuery('.loadingio-spinner').remove();
}, 350);
}
}
});
});
});
СПОРТ
');
setTimeout(function () {
jQuery('.loadingio-spinner')
.removeClass('is-hidden')
.addClass('is-visible');
}, 50);
var data = {
'action': 'load_wpb_posts',
'page' : block_id_5030_current_page,
'max_pages':'2965',
'wpb_block_id': 'block_id_5030',
'nonce': $( '#block_id_5030-load-more-nonce' ).val(),
'params': '{"post_type":["post"],"col":"1","limit":"4","offset":"","cat":"20412","catex":"","genre":"","genreex":"","tags":"","title":"","excerpt":18,"style":"style-4","title_color":"","loadmore":"1","thumb":"thumb-medium","hide_title":"hide_title","orderby":"date","order":"desc","exclude":false,"ids":"","sort":"","bg":"","bg_hover":"","related":""}',
'query': '{"no_found_rows":false,"update_post_meta_cache":false,"update_post_term_cache":false,"post_type":["post"],"posts_per_page":4,"operator":"IN","ignore_sticky_posts":false,"orderby":"date","order":"DESC","sort":"","post_status":"publish","tax_query":{"relation":"AND","include_children":1,"0":{"taxonomy":"categories","field":"id","terms":["20412"],"include_children":1}},"error":"","m":"","p":0,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"name":"","pagename":"","page_id":0,"second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"","tag":"","cat":"","tag_id":"","author":"","author_name":"","feed":"","tb":"","paged":0,"meta_key":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"search_columns":[],"suppress_filters":false,"cache_results":true,"update_menu_item_cache":false,"lazy_load_term_meta":false,"nopaging":false,"comments_per_page":"50","taxonomy":"categories","term_id":"20412"}'
};
$.ajax({
url:ajaxurl,
data:data,
type:'POST',
success:function(data){
if( data ) {
$('#wpb_loadmore_block_id_5030').html('Далее ').parent().before().append('');
$('#block_id_5030 .wrap-data').append(data);
block_id_5030_current_page++;
if (block_id_5030_current_page == block_id_5030_max_pages) $("#wpb_loadmore_block_id_5030").remove();
setTimeout(function () {
jQuery('.data-loader').remove();
jQuery('.loadingio-spinner').remove();
}, 350);
} else {
console.log('Данные отсутствуют');
$('#wpb_loadmore_block_id_5030').remove();
setTimeout(function () {
jQuery('.data-loader').remove();
jQuery('.loadingio-spinner').remove();
}, 350);
}
}
});
});
});
ИНТЕРВЬЮ
');
setTimeout(function () {
jQuery('.loadingio-spinner')
.removeClass('is-hidden')
.addClass('is-visible');
}, 50);
var data = {
'action': 'load_wpb_posts',
'page' : block_id_1585_current_page,
'max_pages':'150',
'wpb_block_id': 'block_id_1585',
'nonce': $( '#block_id_1585-load-more-nonce' ).val(),
'params': '{"post_type":["post"],"col":"1","limit":"4","offset":"","cat":"0","catex":"","genre":"53236","genreex":"","tags":"","title":"","excerpt":"30","style":"style-3","title_color":"","loadmore":"1","thumb":"thumb-medium","hide_title":"hide_title","orderby":"date","order":"desc","exclude":false,"ids":"","sort":"","bg":"","bg_hover":"","related":""}',
'query': '{"no_found_rows":false,"update_post_meta_cache":false,"update_post_term_cache":false,"post_type":["post"],"posts_per_page":4,"operator":"IN","ignore_sticky_posts":false,"orderby":"date","order":"DESC","sort":"","post_status":"publish","tax_query":{"relation":"AND","include_children":1,"0":{"taxonomy":"category","field":"id","terms":["53236"],"include_children":1}},"error":"","m":"","p":0,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"name":"","pagename":"","page_id":0,"second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"interviews","tag":"","cat":53236,"tag_id":"","author":"","author_name":"","feed":"","tb":"","paged":0,"meta_key":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"search_columns":[],"suppress_filters":false,"cache_results":true,"update_menu_item_cache":false,"lazy_load_term_meta":false,"nopaging":false,"comments_per_page":"50"}'
};
$.ajax({
url:ajaxurl,
data:data,
type:'POST',
success:function(data){
if( data ) {
$('#wpb_loadmore_block_id_1585').html('Далее ').parent().before().append('');
$('#block_id_1585 .wrap-data').append(data);
block_id_1585_current_page++;
if (block_id_1585_current_page == block_id_1585_max_pages) $("#wpb_loadmore_block_id_1585").remove();
setTimeout(function () {
jQuery('.data-loader').remove();
jQuery('.loadingio-spinner').remove();
}, 350);
} else {
console.log('Данные отсутствуют');
$('#wpb_loadmore_block_id_1585').remove();
setTimeout(function () {
jQuery('.data-loader').remove();
jQuery('.loadingio-spinner').remove();
}, 350);
}
}
});
});
});