36 lines
880 B
PHP
36 lines
880 B
PHP
<?php
|
|
namespace ElementorPro\Modules\LoopBuilder\Skins;
|
|
|
|
use ElementorPro\Modules\LoopBuilder\Module;
|
|
use ElementorPro\Modules\LoopBuilder\Providers\Taxonomy_Loop_Provider;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
class Skin_Loop_Post_Taxonomy extends Skin_Loop_Taxonomy_Base {
|
|
|
|
protected $post_type = 'post';
|
|
|
|
public function get_id() {
|
|
return Module::LOOP_POST_TAXONOMY_SKIN_ID;
|
|
}
|
|
|
|
public function get_title() {
|
|
return esc_html__( 'Post Taxonomy', 'elementor-pro' );
|
|
}
|
|
|
|
protected function render_before_loop( $template_id ) {
|
|
$widget = $this->parent;
|
|
|
|
$this->enqueue_loop_document_css_meta( $template_id );
|
|
$this->maybe_add_load_more_wrapper_class();
|
|
$widget->before_skin_render();
|
|
$this->render_loop_header();
|
|
}
|
|
|
|
protected function get_default_source_option() {
|
|
return Taxonomy_Loop_Provider::POST_CATEGORY_TAXONOMY;
|
|
}
|
|
}
|