esc_html__( 'Right Sidebar', 'bee-fashion' ), 'id' => 'dt-right-sidebar', 'description' => __( 'Add widgets to Show widgets at right panel of page', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register Left Sidebar register_sidebar( array( 'name' => esc_html__( 'Left Sidebar', 'bee-fashion' ), 'id' => 'dt-left-sidebar', 'description' => __( 'Add widgets to Show widgets at Left panel of page', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register sidebar for top social icons register_sidebar( array( 'name' => esc_html__( 'Top Bar Social', 'bee-fashion' ), 'id' => 'dt-top-bar-social', 'description' => __( 'Top Bar Search social icons ', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register sidebar for Top Search register_sidebar( array( 'name' => esc_html__( 'Top Bar Search', 'bee-fashion' ), 'id' => 'dt-top-bar-search', 'description' => __( 'Top Bar Search Position ', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register Image Slider register_sidebar( array( 'name' => esc_html__( 'Image Slider', 'bee-fashion' ), 'id' => 'dt-image-slider', 'description' => __( 'Add Image slider widget to show at Frontpage ', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register front page sidebar register_sidebar( array( 'name' => esc_html__( 'Front Page: Widgets', 'bee-fashion' ), 'id' => 'dt-front-page-widgets', 'description' => __( 'Add widgets to show at Frontpage', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register Footer Position 1 register_sidebar( array( 'name' => esc_html__( 'Footer Position 1', 'bee-fashion' ), 'id' => 'dt-footer1', 'description' => __( 'Add widgets to Show widgets at Footer Position 1', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register Footer Position 2 register_sidebar( array( 'name' => esc_html__( 'Footer Position 2', 'bee-fashion' ), 'id' => 'dt-footer2', 'description' => __( 'Add widgets to Show widgets at Footer Position 2', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register Footer Position 3 register_sidebar( array( 'name' => esc_html__( 'Footer Position 3', 'bee-fashion' ), 'id' => 'dt-footer3', 'description' => __( 'Add widgets to Show widgets at Footer Position 3', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Register Footer Position 4 register_sidebar( array( 'name' => esc_html__( 'Footer Position 4', 'bee-fashion' ), 'id' => 'dt-footer4', 'description' => __( 'Add widgets to Show widgets at Footer Position 4', 'bee-fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'bee-fashion_widgets_init' ); /** * Enqueue Admin Scripts */ function bee_fashion_media_script() { // Update CSS within in Admin wp_enqueue_style('admin-styles', get_template_directory_uri() . '/inc/widgets/widgets.css'); wp_enqueue_media(); wp_enqueue_script( 'dt-media-upload-js', get_template_directory_uri() . '/inc/widgets/widgets.js', array( 'jquery' ), '', true ); } add_action( 'admin_enqueue_scripts', 'bee-fashion_media_script' ); /** * Social Icons widget. */ class dt_social_icons extends WP_Widget { public function __construct() { parent::__construct( 'dt_social_icons', __( 'Daisy: Social Icons', 'bee-fashion' ), array( 'classname' => 'dt-social-icons', 'description' => __( 'Social Icons', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $title = isset( $instance['title'] ) ? $instance['title'] : ''; $facebook = isset( $instance['facebook'] ) ? $instance['facebook'] : ''; $twitter = isset( $instance['twitter'] ) ? $instance['twitter'] : ''; $g_plus = isset( $instance['g-plus'] ) ? $instance['g-plus']: ''; $instagram = isset( $instance['instagram'] ) ? $instance['instagram'] : ''; $github = isset( $instance['github'] ) ? $instance['github'] : ''; $flickr = isset( $instance['flickr'] ) ? $instance['flickr'] : ''; $pinterest = isset( $instance['pinterest'] ) ? $instance['pinterest'] : ''; $wordpress = isset( $instance['wordpress'] ) ? $instance['wordpress'] : ''; $youtube = isset( $instance['youtube'] ) ? $instance['youtube'] : ''; $vimeo = isset( $instance['vimeo'] ) ? $instance['vimeo'] : ''; $linkedin = isset( $instance['linkedin'] ) ? $instance['linkedin'] : ''; $behance = isset( $instance['behance'] ) ? $instance['behance'] : ''; $dribbble = isset( $instance['dribbble'] ) ? $instance['dribbble'] : ''; echo $before_widget; ?>

'', 'facebook' => '', 'twitter' => '', 'g-plus' => '', 'instagram' => '', 'github' => '', 'flickr' => '', 'pinterest' => '', 'wordpress' => '', 'youtube' => '', 'vimeo' => '', 'linkedin' => '', 'behance' => '', 'dribbble' => '' ) ); ?>
'dt-image-slider', 'description' => __( 'Adds Images for Banner Slider', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $dt_img_slider_values = isset( $instance['dt_img_slider'] ) ? $instance['dt_img_slider'] : ''; echo $before_widget; ?>
$dt_img_slider_value ) : ?>
<?php echo esc_attr( $dt_img_slider_value['title'] ); ?>

$dt_img_slider_value ) { ?>
'dt-services', 'description' => __( 'Show Service pages widh shot description and featured image', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $title = isset( $instance['title'] ) ? $instance['title'] : ''; $dt_description = isset( $instance['description'] ) ? esc_textarea( $instance['description'] ) : ''; $dt_service_page = isset( $instance['dt_service_page'] ) ? $instance['dt_service_page'] : ''; echo $before_widget; ?>

$dt_service_page_value ) : $dt_service_page_id = esc_attr( $dt_service_page_value['page'] ); ?>
<?php echo get_the_title( $dt_service_page_id ); ?>

post_content ); $postOutput = preg_replace( '/]+./','', $dt_service_page_content ); $dt_service_page_trimmed_content = wp_trim_words( $postOutput, 16, '...' ); ?>

$dt_service_page_value ) { ?>
$this->get_field_name( "dt_service_page" ).'['.esc_attr( $dt_service_page_key ).'][page]', 'id' => $this->get_field_id( "dt_service_page" ).$dt_service_page_key, 'selected' => $dt_service_page_value['page'], ); ?>
$this->get_field_name( "dt_service_page" ).'['.esc_attr( $dt_service_counter ).'][page]', 'id' => $this->get_field_id( "dt_service_page" ).$dt_service_counter, ); ?>
'dt-recent-works', 'description' => __( 'Recent Works Widget', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $title = isset( $instance['title'] ) ? $instance['title'] : ''; $dt_description = isset( $instance['description'] ) ? esc_textarea( $instance['description'] ) : ''; $dt_recent_works_page = isset( $instance['dt_recent_works_page'] ) ? $instance['dt_recent_works_page'] : ''; echo $before_widget; ?>

$dt_recent_works_page_value ) : $dt_work_page_id = esc_attr( $dt_recent_works_page_value['page'] ); ?>
<?php echo get_the_title( $dt_work_page_id ); ?>

$dt_recent_works_page_value ) { ?>
$this->get_field_name( "dt_recent_works_page" ).'['.esc_attr( $dt_recent_works_page_key ).'][page]', 'id' => $this->get_field_id( "dt_recent_works_page" ).$dt_recent_works_page_key, 'selected' => $dt_recent_works_page_value['page'], ); ?>
$this->get_field_name( "dt_recent_works_page" ).'['.esc_attr( $dt_recent_works_counter ).'][page]', 'id' => $this->get_field_id( "dt_recent_works_page" ).$dt_recent_works_counter, ); ?>
'dt-call-to-action', 'description' => __( 'Show call to action button with link', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $title = isset( $instance['title'] ) ? $instance['title'] : ''; $description = isset( $instance['description'] ) ? $instance['description'] : ''; $button = isset( $instance['button'] ) ? $instance['button'] : ''; $button_url = isset( $instance['button-url'] ) ? $instance['button-url'] : 'Button'; echo $before_widget; ?>

'', 'description' => '', 'button' => '', 'button-url' => '' ) ); ?>
'dt-testimonial', 'description' => __( 'to Show client Testimonials', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $title = isset( $instance['title'] ) ? $instance['title'] : ''; $dt_testimonial_values = isset( $instance['dt_testimonial'] ) ? $instance['dt_testimonial'] : ''; echo $before_widget; ?>

$dt_testimonial_value ) : ?>

<?php if( ! empty ( $dt_testimonial_value['name'] ) ) : ?><?php echo esc_attr( $dt_testimonial_value['name'] ); ?><?php else : echo 'Testimonial User'; endif; ?>
$dt_testimonial_value ) { ?>
'dt-logo-display', 'description' => __( 'Widget to show clients logos', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $dt_logo_slider_values = isset( $instance['dt_logo_slider'] ) ? $instance['dt_logo_slider'] : ''; echo $before_widget; ?>
    $dt_logo_slider_value ) : ?>
  • <?php if( ! empty ( $dt_logo_slider_value['title'] ) ) : echo esc_attr( $dt_logo_slider_value['title'] ); else : echo _e( 'Logo', 'bee-fashion' ); endif; ?>
$dt_logo_slider_value ) { ?>
'dt-recent-posts', 'description' => __( 'Posts display widget for recently published post', 'bee-fashion' ) ) ); } public function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); global $post; $title = isset( $instance['title'] ) ? $instance['title'] : ''; $category = isset( $instance['category'] ) ? $instance['category'] : ''; $no_of_posts = isset( $instance['no_of_posts'] ) ? $instance['no_of_posts'] : ''; $news_layout1 = new WP_Query( array( 'post_type' => 'post', 'category__in' => $category, 'posts_per_page' => $no_of_posts ) ); echo $before_widget; ?>
have_posts() ) : if ( !empty( $title ) ) : ?>

'', 'category' => '', 'no_of_posts' => '4' ) ); ?>