esc_html__( 'Restly Company Info', 'restlycore' ), 'classname' => 'restly_company_info_widget', 'description' => esc_html__( 'Add Your Company Info', 'restlycore' ), 'fields' => array( array( 'id' => 'title', 'type' => 'text', 'title' => esc_html__( 'Title', 'restlycore' ), ), array( 'id' => 'cinfo_img_enable', 'type' => 'switcher', 'title' => esc_html__( 'Enable Logo', 'restlycore' ), 'default' => true, ), array( 'id' => 'cinfo_img', 'type' => 'media', 'title' => esc_html__( 'Upload Logo', 'restlycore' ), 'library' => 'image', 'preview' => true, 'placeholder' => 'http://', 'dependency' => array( 'cinfo_img_enable', '==', 'true' ), // check for true/false by field id ), array( 'id' => 'restly_conpany_info_dec', 'type' => 'textarea', 'title' => esc_html__( 'Content', 'restlycore' ), 'default' => esc_html__( 'Lorem ipsum dolor sit amet elit consectetur adipisicing sed do eiusmod tempor incididunt et dolore elit labore', 'restlycore' ), ), array( 'id' => 'restly_company_info_group', 'type' => 'group', 'title' => esc_html__( 'Add Information', 'restlycore' ), 'fields' => array( array( 'id' => 'restly_coinfo_gdec', 'type' => 'wp_editor', 'title' => esc_html__( 'Content', 'restlycore' ), ), array( 'id' => 'restly_coinfo_gicon', 'type' => 'icon', 'title' => esc_html__( 'Icon', 'restlycore' ), ), ), 'default' => array( array( 'restly_coinfo_gdec' => esc_html__( '1791 Yorkshire Circle Kitty Hawk, NC 27949', 'restlycore' ), 'restly_coinfo_gicon' => 'fas fa-map-marker-alt', ), ), ), ), ) ); // OutPut if ( !function_exists( 'restly_company_info_widget' ) ) { function restly_company_info_widget( $args, $instance ) { echo wp_kses_post( $args['before_widget'] ); ?>
esc_html__( 'Restly Contact Info', 'restlycore' ), 'classname' => 'contact-widget', 'description' => esc_html__( 'Add Your Contact Info', 'restlycore' ), 'fields' => array( array( 'id' => 'title', 'type' => 'text', 'title' => esc_html__( 'Title', 'restlycore' ), ), array( 'id' => 'restly_contact_info_group', 'type' => 'group', 'title' => esc_html__( 'Add Information', 'restlycore' ), 'fields' => array( array( 'id' => 'restly_contact_info_editor', 'type' => 'wp_editor', 'title' => esc_html__( 'Content', 'restlycore' ), ), array( 'id' => 'restly_contact_info_icons', 'type' => 'icon', 'title' => esc_html__( 'Icon', 'restlycore' ), ), ), 'default' => array( array( 'restly_contact_info_editor' => esc_html__( '1791 Yorkshire Circle Kitty Hawk, NC 27949', 'restlycore' ), 'restly_contact_info_icons' => 'fas fa-map-marker-alt', ), array( 'restly_contact_info_editor' => esc_html__( 'Mon-Sat 9:00 - 7:00', 'restlycore' ), 'restly_contact_info_icons' => 'fas fa-clock', ), array( 'restly_contact_info_editor' => esc_html__( '+012-345-6789', 'restlycore' ), 'restly_contact_info_icons' => 'fas fa-phone-alt', ), array( 'restly_contact_info_editor' => esc_html__( 'info@example.com', 'restlycore' ), 'restly_contact_info_icons' => 'fas fa-envelope', ), ), ), ), ) ); // OutPut if ( !function_exists( 'restly_contact_info_widget' ) ) { function restly_contact_info_widget( $args, $instance ) { echo wp_kses_post( $args['before_widget'] ); ?> esc_html__( 'Restly Post With Thumbnail', 'restlycore' ), 'classname' => 'footer-widget-post-with-thum', 'description' => esc_html__( 'Add your Contact Info', 'restlycore' ), 'fields' => array( array( 'id' => 'title', 'type' => 'text', 'title' => esc_html__( 'Title', 'restlycore' ), ), array( 'id' => 'restly_widget_blog_position', 'type' => 'select', 'title' => esc_html__( 'Select Options', 'restlycore' ), 'options' => array( 'ASC' => esc_html__( 'ASC', 'restlycore' ), 'DESC' => esc_html__( 'DESC', 'restlycore' ), ), 'default' => 'ASC' ), array( 'id' => 'restly_widget_blog_number', 'type' => 'number', 'title' => esc_html__( 'Show Post', 'restlycore' ), 'default' => 2, ), array( 'id' => 'restly_widget_blog_show_meta', 'type' => 'switcher', 'title' => esc_html__( 'Enable Meta', 'restlycore' ), 'default' => true, ), array( 'id' => 'restly_widget_blog_show_image', 'type' => 'switcher', 'title' => esc_html__( 'Enable Image', 'restlycore' ), 'default' => true, ), array( 'id' => 'restly_widget_blog_text_limit', 'type' => 'number', 'title' => esc_html__( 'Title Text Limit', 'restlycore' ), 'default' => 5, ), ), ) ); // OutPut if ( !function_exists( 'restly_blog_post_widget' ) ) { function restly_blog_post_widget( $args, $instance ) { echo wp_kses_post( $args['before_widget'] ); if ( !empty( $instance['title'] ) ) { echo wp_kses_post( $args['before_title'] ) . apply_filters( 'widget_title widtet-title', $instance['title'] ) . wp_kses_post( $args['after_title'] ); } ?> esc_html__( 'Restly Newletter Widget', 'restlycore' ), 'description' => esc_html__( 'Add Newsletter Info', 'restlycore' ), 'fields' => array( array( 'id' => 'title', 'type' => 'text', 'default' => esc_html__( 'Newsletter', 'restlycore' ), 'title' => esc_html__( 'Title', 'restlycore' ), ), array( 'id' => 'newsletter_dec', 'type' => 'textarea', 'title' => esc_html__( 'Sort Description', 'restlycore' ), 'desc' => esc_html__( 'Add Sort Description', 'restlycore' ), 'default' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipisicing', 'restlycore' ), ), array( 'id' => 'newsletter_placeholder', 'type' => 'text', 'title' => esc_html__( 'placeholder Text', 'restlycore' ), 'desc' => esc_html__( 'Add placeholder Text', 'restlycore' ), 'default' => esc_html__( 'Your Email Address', 'restlycore' ), ), array( 'id' => 'select_newsletter', 'type' => 'select', 'title' => esc_html__( 'Select Type', 'restlycore' ), 'placeholder' => esc_html__( 'Select an option', 'restlycore' ), 'options' => array( '1' => esc_html__( 'Shortcode form Plugin', 'restlycore' ), '2' => esc_html__( 'Add Link', 'restlycore' ), ), 'default' => '2', ), array( 'id' => 'newsletter_shortcode', 'type' => 'textarea', 'title' => esc_html__( 'Add Shortcode', 'restlycore' ), 'desc' => esc_html__( 'Add Shortcode from Mailchip wordpress Plugin', 'restlycore' ), 'dependency' => array( 'select_newsletter', '==', '1' ), ), array( 'id' => 'newsletter_link', 'type' => 'textarea', 'title' => esc_html__( 'Add Link', 'restlycore' ), 'desc' => esc_html__( 'Add Newsletter Link from your Account', 'restlycore' ), 'dependency' => array( 'select_newsletter', '==', '2' ), ), array( 'type' => 'subheading', 'content' => esc_html__( 'CSS Options', 'restlycore' ), ), array( 'id' => 'newsletter_bg', 'type' => 'color', 'title' =>esc_html__( 'Background', 'restlycore' ), 'output_mode' => 'background-color' ), ), ) ); // OutPut if ( !function_exists( 'restly_newsletter_widget' ) ) { function restly_newsletter_widget( $args, $instance ) { if(!empty($instance['newsletter_bg'])){ $bg = $instance['newsletter_bg']; }else{ $bg = ''; } echo wp_kses_post( $args['before_widget'] ); echo '