$method(); } exit; } function thinkai_project_loadmore() { $allowed_html = wp_kses_allowed_html( 'post' ); if ( class_exists( 'Douens_Resizer' ) ) { $img_obj = new \Thinkai_Resizer(); } $args = thinkai_set( $_POST, 'query' ); if ( ! empty( $args['paged'] ) AND ! empty( $args['posts_per_page'] ) AND ! empty( $args['order'] ) ) { $args['paged'] = $args['paged'] + 1; $args['post_type'] = 'project'; $query = new \WP_Query( $args ); if ( $query->have_posts() ) { $count = 0; ob_start(); while ( $query->have_posts() ) { $query->the_post(); if ( $count == 0 ) { $anim = array( 4, 5 ); } else { $anim = array( 6, 5 ); } ?>
resize( wp_get_attachment_url( get_post_thumbnail_id(), 'full' ), 585, 420, true ), $allowed_html ); ?>

' . esc_html__( "Load More", "thinkai" ) . ''; wp_send_json( [ 'post' => $output, 'button' => $button, ] ); } else { wp_reset_postdata(); wp_send_json( [ 'button' => '' . esc_html__( "No More Post", "thinkai" ) . '' ] ); } exit; } else { wp_send_json( [ 'button' => '' . esc_html__( "No More Post", "thinkai" ) . '' ] ); } exit; } function thinkai_project_loadmore2() { if ( class_exists( 'Thinkai_Resizer' ) ) { $img_obj = new \Thinkai_Resizer(); } $args = thinkai_set( $_POST, 'query' ); $args['post_type'] = 'project'; $query = new \WP_Query( $args ); if ( $query->have_posts() ) { $count = 0; ob_start(); while ( $query->have_posts() ) { $query->the_post(); if ( $count == 0 ) { $anim = 8; } elseif ( $count == 1 ) { $anim = 1; } else { $anim = '1.2'; } ?>
resize( wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ), 'full' ), 357, 428, true ), $allowed_html ); ?>

' . esc_html__( "Load More", "thinkai" ) . ''; wp_send_json( [ 'post' => $output, 'button' => $button, ] ); } else { wp_send_json( [ 'button' => $button = '' . esc_html__( "No More Post", "thinkai" ) . '' ] ); } exit; } }