start_controls_section( 'content_section', [ 'label' => __( 'Content', 'ele-term-list' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'important_note', [ 'label' => __( 'Loop Item Place Holder', 'ele-term-list' ), 'type' => \Elementor\Controls_Manager::RAW_HTML, 'raw' => __( 'Place this widget where the Loop Item you want to show in Ele Custom Skin.', 'ele-term-list' ), 'content_classes' => 'your-class', 'selector'=>'{{wrapper}} .ecs-loop-preview' ] ); $this->end_controls_section(); } /** * Render Term List widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 0.1 * @access protected */ protected function render() { if ( $this->show_nice() ) { $this->content_template(); } else { echo "{{ecs-article}}"; } } protected function show_nice(){ $is_preview=false; $document = elecs_get_document( get_the_ID() ); //print_r ( $document->get_type()); if($document) if('custom_grid' == $document->get_type()){ if (isset($_GET['action'])) $is_preview = $_GET['action'] == 'elementor' ? true : false; } return $is_preview; } protected function content_template() { ?>