'allinone_youtube_video_slider', 'description' => __('Displays videos from youtube URL.', 'allinone'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'allinone'), 'type' => 'text', 'class' => 'widefat', ), 'image_url_1' => array( 'label' => __('Video Image Uploader - 1:', 'allinone'), 'type' => 'image', ), 'url-1' => array( 'label' => __('Youtube URL - 1:', 'allinone'), 'type' => 'url', 'class' => 'widefat', ), 'image_url_2' => array( 'label' => __('Video Image Uploader - 2:', 'allinone'), 'type' => 'image', ), 'url-2' => array( 'label' => __('Youtube URL - 2:', 'allinone'), 'type' => 'url', 'class' => 'widefat', ), 'image_url_3' => array( 'label' => __('Video Image Uploader - 3:', 'allinone'), 'type' => 'image', ), 'url-3' => array( 'label' => __('Youtube URL - 3:', 'allinone'), 'type' => 'url', 'class' => 'widefat', ), 'image_url_4' => array( 'label' => __('Video Image Uploader - 4:', 'allinone'), 'type' => 'image', ), 'url-4' => array( 'label' => __('Youtube URL - 4:', 'allinone'), 'type' => 'url', 'class' => 'widefat', ), 'image_url_5' => array( 'label' => __('Video Image Uploader - 5:', 'allinone'), 'type' => 'image', ), 'url-5' => array( 'label' => __('Youtube URL - 5:', 'allinone'), 'type' => 'url', 'class' => 'widefat', ), 'image_url_6' => array( 'label' => __('Video Image Uploader - 6:', 'allinone'), 'type' => 'image', ), 'url-6' => array( 'label' => __('Youtube URL - 6:', 'allinone'), 'type' => 'url', 'class' => 'widefat', ), ); parent::__construct('allinone-video-layout', __('Allinone: YouTube Video Slider', 'allinone'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. * @since 1.0.0 * */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; $rtl_class = 'false'; if (is_rtl()) { $rtl_class = 'true'; } ?>