'000000',//ttt 'lightbox_close_btn_border_radius' => '10px', 'lightbox_close_btn_color' => 'ff0000',//ttt lightbox_ctrl_btn_color 'lightbox_close_btn_bg_color' => '000000',//ttt lightbox_ctrl_cont_bg_color 'lightbox_close_btn_height' => 20, 'lightbox_close_btn_size' => 15, 'lightbox_close_btn_border_width' => 1, 'lightbox_close_btn_border_style' => 'none', 'lightbox_close_btn_border_color' => '000000', 'lightbox_close_btn_box_shadow' => 'none', 'lightbox_close_btn_right' => -10, 'lightbox_close_btn_top' => -10, 'lightbox_close_btn_width' => 20, 'lightbox_close_btn_full_color' => 'ffffff', //ttt lightbox_ctrl_btn_color 'lightbox_close_btn_transparent' => 50, 'lightbox_close_rl_btn_hover_color' => '00ffff', //ttt 'lightbox_ctrl_cont_bg_color' => 'ffffff', //ttt 'lightbox_ctrl_btn_align' => 'center', 'lightbox_ctrl_btn_color' => 'ff0000', //ttt 'lightbox_ctrl_btn_height' => 24, 'lightbox_ctrl_btn_margin_top' => 6, 'lightbox_ctrl_btn_transparent'=> 100, 'lightbox_ctrl_btn_pos' => 'bottom', 'lightbox_ctrl_cont_border_radius' => '12px', 'lightbox_ctrl_cont_transparent' => 50, 'lightbox_info_bg_color'=>'cccccc', //ttt lightbox_ctrl_cont_bg_color 'lightbox_info_bg_transparent' => 50, 'lightbox_info_align' => 'center', 'lightbox_info_margin' => '5px', 'lightbox_info_padding' => '18px', 'lightbox_info_pos' => 'top', 'lightbox_info_border_width' => 1, 'lightbox_info_border_style' => 'none', 'lightbox_info_border_color' => '00ff33', 'lightbox_info_border_radius' => '0', 'lightbox_rl_btn_bg_color'=> '666666', //ttt lightbox_ctrl_cont_bg_color 'lightbox_rl_btn_border_radius'=> '20px', 'lightbox_rl_btn_border_width'=>1, 'lightbox_rl_btn_border_color'=> '0000ff', 'lightbox_rl_btn_border_style' => 'none', 'lightbox_rl_btn_box_shadow' => 'none', 'lightbox_rl_btn_color' => 'fff055', //ttt lightbox_ctrl_btn_color 'lightbox_rl_btn_height' => 40, 'lightbox_rl_btn_width' => 40, 'lightbox_rl_btn_size' => 18, 'lightbox_rl_btn_transparent' => 60, 'lightbox_title_color' => '00cccc', //ttt 'lightbox_title_font_style' => 'sans-serif', 'lightbox_title_font_size' => '18', 'lightbox_title_font_weight' => 400, 'lightbox_toggle_btn_height' => 10, 'lightbox_toggle_btn_width' => 30, 'lightbox_description_color' => 'cc9900', //ttt 'lightbox_description_font_style' => 'monospace', 'lightbox_description_font_size' => 16, 'lightbox_description_font_weight' => 400, ); private $wdwt_front; //////////////////////////////////////////////////////////////////////////////////////// // Constructor & Destructor // //////////////////////////////////////////////////////////////////////////////////////// public function __construct() { global $wdwt_options; require_once('front_params_output.php'); $this->wdwt_front = new Sauron_front($wdwt_options); /*get images and current image*/ $images = $_POST['imgs']; $img_titles = $_POST['titles']; $img_descrs = $_POST['descrs']; $current = $_POST['cur']; $this->images = json_decode(stripcslashes ($images), true); $this->titles = json_decode(stripcslashes ($img_titles), true); $this->descrs = json_decode(stripcslashes ($img_descrs), true); $this->current_index = intval($current); $this->params['slideshow_interval'] = intval($this->wdwt_front->get_param('lbox_slideshow_interval')); $this->params['image_width'] = $this->wdwt_front->get_param('lbox_image_width'); $this->params['image_height'] = $this->wdwt_front->get_param('lbox_image_height'); $img_eff = $this->wdwt_front->get_param('lbox_image_effect'); $this->params['image_effect'] = $img_eff[0]; $this->params['enable_image_fullscreen'] = $this->wdwt_front->get_param('lbox_enable_image_fullscreen'); $this->params['open_with_fullscreen']= $this->wdwt_front->get_param('lbox_open_with_fullscreen'); $this->params['enable_image_ctrl_btn'] = $this->wdwt_front->get_param('lbox_enable_image_ctrl_btn'); $this->params['open_with_autoplay'] = $this->wdwt_front->get_param('lbox_open_with_autoplay'); $this->params['image_right_click'] = false; $this->params['popup_enable_info'] = $this->wdwt_front->get_param('lbox_popup_enable_info'); $this->params['popup_info_full_width'] = $this->wdwt_front->get_param('lbox_popup_info_full_width'); $this->params['popup_info_always_show'] = $this->wdwt_front->get_param('lbox_popup_info_always_show'); $this->params['popup_enable_fullsize_image'] = false; $this->params['preload_images'] = true; $this->params['preload_images_count'] = 6; $lbox_info_position = $this->wdwt_front->get_param('lbox_info_position'); $lbox_info_position_array = explode('-', $lbox_info_position[0]); $lbox_info_horiz = isset($lbox_info_position_array[0]) ? $lbox_info_position_array[0] : 'right'; $lbox_info_vert = isset($lbox_info_position_array[1]) ? $lbox_info_position_array[1] : 'top'; $this->theme_row['lightbox_info_align'] = $lbox_info_horiz; $this->theme_row['lightbox_info_pos'] = $lbox_info_vert; /*colors*/ $this->theme_row['lightbox_bg_color'] = $this->wdwt_front->get_param('[colors_active][colors][lightbox_bg_color][value]' , $meta_array = array(), $default = '#000000'); $this->theme_row['lightbox_ctrl_btn_color'] = $this->wdwt_front->get_param('[colors_active][colors][lightbox_ctrl_btn_color][value]' , $meta_array = array(), $default = '#000000'); $this->theme_row['lightbox_close_btn_full_color'] = $this->theme_row['lightbox_ctrl_btn_color']; $this->theme_row['lightbox_close_btn_color'] = $this->theme_row['lightbox_ctrl_btn_color']; $this->theme_row['lightbox_rl_btn_color'] = $this->theme_row['lightbox_ctrl_btn_color']; $this->theme_row['lightbox_ctrl_cont_bg_color'] = $this->wdwt_front->get_param('[colors_active][colors][lightbox_ctrl_cont_bg_color][value]' , $meta_array = array(), $default = '#cccccc'); $this->theme_row['lightbox_info_bg_color'] = $this->theme_row['lightbox_ctrl_cont_bg_color']; $this->theme_row['lightbox_rl_btn_bg_color'] = $this->theme_row['lightbox_ctrl_cont_bg_color']; $this->theme_row['lightbox_close_btn_bg_color'] = $this->theme_row['lightbox_ctrl_cont_bg_color']; $this->theme_row['lightbox_title_color'] = $this->wdwt_front->get_param('[colors_active][colors][lightbox_title_color][value]' , $meta_array = array(), $default = '#333366'); $lightbox_title_text_transform = $this->wdwt_front->get_param('text_headers_transform'); $this->theme_row['lightbox_title_text_transform'] = $lightbox_title_text_transform[0]; $this->theme_row['lightbox_description_color'] = $this->wdwt_front->get_param('[colors_active][colors][lightbox_description_color][value]' , $meta_array = array(), $default = '#333366'); $this->theme_row['lightbox_close_rl_btn_hover_color'] = $this->wdwt_front->get_param('[colors_active][colors][lightbox_close_rl_btn_hover_color][value]' , $meta_array = array(), $default = '#7994a7'); $lightbox_title_font_style = $this->wdwt_front->get_param('text_headers_font'); $lightbox_description_font_style = $this->wdwt_front->get_param('text_primary_font'); $this->theme_row['lightbox_title_font_style'] = $lightbox_title_font_style[0]; $this->theme_row['lightbox_description_font_style'] = $lightbox_description_font_style[0]; //var_dump($this->images); //var_dump($this->current_index); } //////////////////////////////////////////////////////////////////////////////////////// // Public Methods // //////////////////////////////////////////////////////////////////////////////////////// public function view() { extract($this->params); //var_dump($this->params); //var_dump('asdasdasdad'); $bwg = 0; $current_image_id = $this->current_index; $theme_row = $this->theme_row; $image_rows = $this->images; $title_rows = $this->titles; $descr_rows = $this->descrs; $rgb_sauron_image_info_bg_color = $this->wdwt_front->hex2rgb($theme_row['lightbox_info_bg_color']); $rgb_lightbox_ctrl_cont_bg_color = $this->wdwt_front->hex2rgb($theme_row['lightbox_ctrl_cont_bg_color']); ?>

' . __('The image has been deleted.', "sauron") . '

'; die(); } ?>
" class="sauron_ctrl_btn sauron_play_pause fa fa-play"> " class="sauron_ctrl_btn sauron_resize-full fa fa-resize-full "> " class="sauron_ctrl_btn sauron_fullscreen fa fa-fullscreen"> " class="sauron_ctrl_btn sauron_info fa fa-info"> " class="sauron_ctrl_btn fa fa-external-link">
>
$image_row) { if ($key == $current_image_id) { $current_key = $key; ?>