parent->get_render_attribute_string( 'filters-not-found' ); ?>>
parent->get_settings( $this->get_control_id( 'filters_not_found_text' ) ); ?>
get_instance_value( 'infinite_scroll_status' ) )
return;
$this->parent->add_render_attribute( [
'status' => [
'class' => 'ee-load-status',
],
'status-request' => [
'class' => [
'ee-load-status__request',
'infinite-scroll-request',
],
],
'status-last' => [
'class' => [
'ee-load-status__last',
'infinite-scroll-last',
],
],
'status-error' => [
'class' => [
'ee-load-status__error',
'infinite-scroll-error',
],
],
] );
?>parent->get_render_attribute_string( 'status' ); ?>>
parent->get_render_attribute_string( 'status-request' ); ?>>
get_instance_value( 'infinite_scroll_loading_type' ) ) {
echo $this->get_instance_value( 'infinite_scroll_loading_text' );
} else if ( 'loader' === $this->get_instance_value( 'infinite_scroll_loading_type' ) ) {
echo $this->render_loading_svg();
}
?>
parent->get_render_attribute_string( 'status-last' ); ?>>
get_instance_value( 'infinite_scroll_last_text' ); ?>
parent->get_render_attribute_string( 'status-error' ); ?>>
get_instance_value( 'infinite_scroll_error_text' ); ?>
get_instance_value( 'infinite_scroll_loading_loader' ) ) {
$loader_filename = $this->get_instance_value( 'infinite_scroll_loading_loader' );
}
include ELEMENTOR_EXTRAS_PATH . 'assets/shapes/loader-' . $loader_filename . '.svg';
}
/**
* Render Load Button
*
* Markup to display the load more button for infinite scroll
*
* @since 1.6.0
* @return void
*/
public function render_load_button() {
if ( '' === $this->get_instance_value( 'infinite_scroll_button' ) || 2 > $this->parent->get_query()->max_num_pages ) {
return;
}
$this->parent->add_render_attribute( [
'load' => [
'class' => [
'ee-load-button',
],
],
'load-button' => [
'class' => [
'ee-load-button__trigger',
'ee-load-button__trigger--' . $this->parent->get_id(),
'ee-button',
'ee-size-sm',
],
'href' => '',
],
'load-button-content-wrapper' => [
'class' => 'ee-button-content-wrapper',
],
'load-button-text' => [
'class' => 'ee-button-text',
],
] );
?>