<?php

class ETC_CmsPostCarousel_Widget extends Elementor_Theme_Core_Widget_Base{
    protected $name = 'cms_post_carousel';
    protected $title = 'Blog Carousel';
    protected $icon = 'eicon-posts-carousel';
    protected $categories = array( 'elementor-theme-core' );
    protected $params = '{"sections":[{"name":"layout_section","label":"Layout","tab":"layout","prefix_class":"cms-post-carousel-layout","controls":[{"name":"layout","label":"Templates","type":"layoutcontrol","default":"1","options":{"1":{"label":"Layout 1","image":"http:\/\/localhost\/wp_medcity\/wp-content\/themes\/medcity\/elementor\/templates\/widgets\/cms_post_carousel\/layout-image\/layout1.jpg"}}}]},{"name":"source_section","label":"Source","tab":"content","controls":[{"name":"thumbnail","type":"image-size","control_type":"group","default":"full"},{"name":"source","label":"Select Categories","type":"select2","multiple":true,"options":{"cardiology|category":"Cardiology","laboratory|category":"Laboratory","neurology|category":"Neurology","pathology|category":"Pathology","pediatric|category":"Pediatric","uncategorized|category":"Uncategorized","covid-19|post_tag":"COVID 19","disease|post_tag":"Disease","highlight|post_tag":"Highlight","infectious|post_tag":"Infectious","insights|post_tag":"Insights","life-style|post_tag":"Life Style","nutrition|post_tag":"Nutrition","tips|post_tag":"Tips"}},{"name":"orderby","label":"Order By","type":"select","default":"date","options":{"date":"Date","ID":"ID","author":"Author","title":"Title","rand":"Random"}},{"name":"order","label":"Sort Order","type":"select","default":"desc","options":{"desc":"Descending","asc":"Ascending"}},{"name":"limit","label":"Total items","type":"number","default":"6"}]},{"name":"display_section","label":"Display Options","tab":"content","controls":[{"name":"show_thumbnail","label":"Show Thumbnail","type":"switcher","default":"true","separator":"after"},{"name":"show_excerpt","label":"Show Excerpt","type":"switcher","default":"true"},{"name":"num_words","label":"Number of Words","type":"number","default":25,"condition":{"show_excerpt":"true"},"separator":"after"},{"name":"show_button","label":"Show Action Button","type":"switcher","default":"true"},{"name":"button_text","label":"Button Text","type":"text","default":"Read more","condition":{"show_button":"true"},"separator":"after"},{"name":"show_post_date","label":"Show Post Date","type":"switcher","default":"true"},{"name":"show_categories","label":"Show Categories","type":"switcher","default":"true"},{"name":"show_author","label":"Show Author","type":"switcher","default":"true"}]},{"name":"section_carousel_settings","label":"Carousel","tab":"content","controls":[{"name":"slides_to_show","label":"Slides to Show","type":"select","control_type":"responsive","options":{"":"Default","1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,"10":10}},{"name":"slides_to_scroll","label":"Slides to Scroll","type":"select","control_type":"responsive","options":{"":"Default","1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,"10":10},"condition":{"slides_to_show!":"1"}},{"name":"slides_gutter","label":"Gutter","type":"number","control_type":"responsive","default":15,"condition":{"slides_to_show!":"1"},"selectors":{"{{WRAPPER}} .cms-slick-carousel .slick-list .slick-slide":"padding-left: {{VALUE}}px;padding-right: {{VALUE}}px;","{{WRAPPER}} .cms-slick-slider .cms-carousel-inner":"margin-left: -{{VALUE}}px; margin-right: -{{VALUE}}px;"}},{"name":"arrows","label":"Show Arrows","type":"switcher","default":"false"},{"name":"dots","label":"Show Dots","type":"switcher","default":"false"},{"name":"pause_on_hover","label":"Pause on Hover","type":"switcher","default":"true"},{"name":"autoplay","label":"Autoplay","type":"switcher","default":"false"},{"name":"autoplay_speed","label":"Autoplay Speed","type":"number","default":5000,"condition":{"autoplay":"false"}},{"name":"infinite","label":"Infinite Loop","type":"switcher","default":"true"},{"name":"speed","label":"Animation Speed","type":"number","default":500}]}]}';
    protected $styles = array(  );
    protected $scripts = array( 'jquery-slick','cms-post-carousel-widget-js' );
}