/** * @package Kopa * @subpackage Core * @author thethangtran <*****@*****.**> * @since 1.0.0 */ function kopa_load_timeline_posts() { check_ajax_referer('kopa_load_timeline_posts', 'ajax_nonce'); $year = $_POST['year']; $month = $_POST['month']; $paged = $_POST['paged']; kopa_load_timeline_posts_fn($month, $year, $paged); exit; }
$isotope_id = sprintf("kopa-timeline-year-%s-month-%s", $tmp_year, $tmp_month); $paged = 0 == $i && $current_month == $j + 1 ? 1 : 0; $load_button_style = 0 == $i && $current_month == $j + 1 ? "display: block;" : 'display: none;'; ?> <div id="<?php echo $isotope_id; ?> " class="<?php echo $isotope_classes; ?> "> <div class="isotope-content"> <div class="time-line"></div> <?php if (0 == $i && $current_month == $j + 1) { kopa_load_timeline_posts_fn($month, $year, false); } ?> </div> <div class="load-more" style="<?php echo $load_button_style; ?> "><span onclick="KopaTimeline.load(event, jQuery(this));" data-year="<?php echo $tmp_year; ?> " data-month="<?php echo $tmp_month; ?> " data-paged="<?php echo $paged;