model = $model; } //////////////////////////////////////////////////////////////////////////////////////// // Public Methods // //////////////////////////////////////////////////////////////////////////////////////// public function display() { } function widget($args, $instance) { extract($args); $title = (isset($instance['title']) ? $instance['title'] : ""); $gallery_id = (isset($instance['gallery_id']) ? $instance['gallery_id'] : 0); $width = (isset($instance['width']) ? $instance['width'] : 200); $height = (isset($instance['height']) ? $instance['height'] : 200); $effect = (isset($instance['effect']) ? $instance['effect'] : "fade"); $interval = (isset($instance['interval']) ? $instance['interval'] : 5); $shuffle = (isset($instance['shuffle']) ? $instance['shuffle'] : 0); $theme_id = (isset($instance['theme_id']) ? $instance['theme_id'] : 0); $enable_ctrl_btn = (isset($instance['enable_ctrl_btn']) ? $instance['enable_ctrl_btn'] : 0); $enable_autoplay = (isset($instance['enable_autoplay']) ? $instance['enable_autoplay'] : 0); // Before widget. echo $before_widget; // Title of widget. if ($title) { echo $before_title . $title . $after_title; } // Widget output. require_once(WD_BWG_DIR . '/frontend/controllers/BWGControllerSlideshow.php'); $controller_class = 'BWGControllerSlideshow'; $controller = new $controller_class(); global $bwg; $params = array ( 'from' => 'widget', 'gallery_type' => 'slideshow', 'gallery_id' => $gallery_id, 'width' => $width, 'height' => $height, 'effect' => $effect, 'interval' => $interval, 'shuffle' => $shuffle, 'theme_id' => $theme_id, 'enable_ctrl_btn' => $enable_ctrl_btn, 'enable_autoplay' => $enable_autoplay); $controller->execute($params, 1, $bwg); $bwg++; // After widget. echo $after_widget; } // Widget Control Panel. function form($instance, $id_title, $name_title, $id_gallery_id, $name_gallery_id, $id_width, $name_width, $id_height, $name_height, $id_effect, $name_effect, $id_interval, $name_interval, $id_shuffle, $name_shuffle, $id_theme_id, $name_theme_id, $id_enable_ctrl_btn, $name_enable_ctrl_btn, $id_enable_autoplay, $name_enable_autoplay) { $defaults = array( 'title' => 'Photo Gallery Slideshow', 'gallery_id' => 0, 'width' => 200, 'height' => 200, 'effect' => 'fade', 'interval' => 5, 'shuffle' => 0, 'theme_id' => 0, 'enable_ctrl_btn' => 0, 'enable_autoplay' => 0, ); $slideshow_effects = array( 'none' => 'None', 'cubeH' => 'Cube Horizontal', 'cubeV' => 'Cube Vertical', 'fade' => 'Fade', 'sliceH' => 'Slice Horizontal', 'sliceV' => 'Slice Vertical', 'slideH' => 'Slide Horizontal', 'slideV' => 'Slide Vertical', 'scaleOut' => 'Scale Out', 'scaleIn' => 'Scale In', 'blockScale' => 'Block Scale', 'kaleidoscope' => 'Kaleidoscope', 'fan' => 'Fan', 'blindH' => 'Blind Horizontal', 'blindV' => 'Blind Vertical', 'random' => 'Random', ); $instance = wp_parse_args((array) $instance, $defaults); $gallery_rows = $this->model->get_gallery_rows_data(); $theme_rows = $this->model->get_theme_rows_data(); $options_row = WDWLibrary::get_options_row_data(); ?>

x px

" slideshow_enable_filmstrip ? 'style="color: #7F7F7F;"' : 'style="display: none;"'); ?>> px

sec.

" value="1" onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "1");' /> " value="0" onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' />

" value="1" onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "1");' /> " value="0" onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' />

" value="1" onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "1");' /> " value="0" onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' />