当前位置: 首页>>代码示例>>PHP>>正文


PHP WDWLibrary::spider_hex2rgb方法代码示例

本文整理汇总了PHP中WDWLibrary::spider_hex2rgb方法的典型用法代码示例。如果您正苦于以下问题:PHP WDWLibrary::spider_hex2rgb方法的具体用法?PHP WDWLibrary::spider_hex2rgb怎么用?PHP WDWLibrary::spider_hex2rgb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WDWLibrary的用法示例。


在下文中一共展示了WDWLibrary::spider_hex2rgb方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display


//.........这里部分代码省略.........
            } else {
                if ($sort_by == 'default') {
                    $params['sort_by'] = $params['sort_by'];
                } else {
                    $params['sort_by'] = $sort_by;
                }
            }
        }
        $theme_row = $this->model->get_theme_row_data($params['theme_id']);
        if (!$theme_row) {
            echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
            return;
        }
        if (isset($params['type'])) {
            $type = $params['type'];
        } else {
            $type = "";
        }
        $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
        if (!$gallery_row && $type == '') {
            echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
            return;
        }
        $params['load_more_image_count'] = isset($params['load_more_image_count']) && $params['image_enable_page'] == 2 ? $params['load_more_image_count'] : $params['images_per_page'];
        $items_per_page = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
        $image_rows = $this->model->get_image_rows_data($params, $bwg, $type, $sort_direction);
        $images_count = count($image_rows);
        if (!$image_rows) {
            echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
        }
        if ($params['image_enable_page'] && $params['images_per_page']) {
            $page_nav = $this->model->page_nav($params['gallery_id'], $bwg, $type);
        }
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
        $tags_rows = $this->model->get_tags_rows_data($params['gallery_id']);
        ?>
    <style>
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_standart_thumbnails_<?php 
        echo $bwg;
        ?>
 * {
        -moz-box-sizing: border-box;
        box-sizing: border-box;
      }
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_standart_thumb_spun1_<?php 
        echo $bwg;
        ?>
 {
        -moz-box-sizing: content-box;
        box-sizing: content-box;
        background-color: #<?php 
        echo $theme_row->thumb_bg_color;
        ?>
开发者ID:antoine2vey,项目名称:grece,代码行数:67,代码来源:BWGViewThumbnails.php

示例2: display

    public function display($params, $from_shortcode = 0, $bwg = 0)
    {
        global $wp;
        $current_url = $wp->query_string;
        global $WD_BWG_UPLOAD_DIR;
        require_once WD_BWG_DIR . '/framework/WDWLibrary.php';
        require_once WD_BWG_DIR . '/framework/WDWLibraryEmbed.php';
        $theme_row = $this->model->get_theme_row_data($params['theme_id']);
        if (!isset($params['order_by'])) {
            $order_by = 'asc';
        } else {
            $order_by = $params['order_by'];
        }
        if (!isset($params['popup_enable_pinterest'])) {
            $params['popup_enable_pinterest'] = 0;
        }
        if (!isset($params['popup_enable_tumblr'])) {
            $params['popup_enable_tumblr'] = 0;
        }
        if (!isset($params['show_search_box'])) {
            $params['show_search_box'] = 0;
        }
        if (!isset($params['search_box_width'])) {
            $params['search_box_width'] = 180;
        }
        if (!isset($params['popup_enable_info'])) {
            $params['popup_enable_info'] = 1;
        }
        if (!isset($params['popup_info_always_show'])) {
            $params['popup_info_always_show'] = 0;
        }
        if (!isset($params['popup_info_full_width'])) {
            $params['popup_info_full_width'] = 0;
        }
        if (!isset($params['popup_enable_rate'])) {
            $params['popup_enable_rate'] = 0;
        }
        if (!isset($params['thumb_click_action']) || $params['thumb_click_action'] == 'undefined') {
            $params['thumb_click_action'] = 'open_lightbox';
        }
        if (!isset($params['thumb_link_target'])) {
            $params['thumb_link_target'] = 1;
        }
        if (!isset($params['popup_hit_counter'])) {
            $params['popup_hit_counter'] = 0;
        }
        if (!$theme_row) {
            echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
            return;
        }
        $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
        if (!$gallery_row) {
            echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
            return;
        }
        $image_rows = $this->model->get_image_rows_data($params['gallery_id'], 1, $params['sort_by'], $order_by, $bwg);
        $images_count = count($image_rows);
        if (!$image_rows) {
            echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
        }
        $page_nav = $this->model->page_nav($params['gallery_id'], 1, $bwg);
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
        $bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
        $image_title = $params['image_browser_title_enable'];
        $enable_image_description = $params['image_browser_description_enable'];
        $option_row = $this->model->get_option_row_data();
        $image_right_click = $option_row->image_right_click;
        if (!isset($params['popup_fullscreen'])) {
            $params['popup_fullscreen'] = 0;
        }
        if (!isset($params['popup_autoplay'])) {
            $params['popup_autoplay'] = 0;
        }
        $params_array = array('action' => 'GalleryBox', 'current_view' => $bwg, 'gallery_id' => $params['gallery_id'], 'theme_id' => $params['theme_id'], 'open_with_fullscreen' => $params['popup_fullscreen'], 'open_with_autoplay' => $params['popup_autoplay'], 'image_width' => $params['popup_width'], 'image_height' => $params['popup_height'], 'image_effect' => $params['popup_effect'], 'wd_sor' => $params['sort_by'], 'wd_ord' => $order_by, 'enable_image_filmstrip' => $params['popup_enable_filmstrip'], 'image_filmstrip_height' => $params['popup_filmstrip_height'], 'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'], 'enable_image_fullscreen' => $params['popup_enable_fullscreen'], 'popup_enable_info' => $params['popup_enable_info'], 'popup_info_always_show' => $params['popup_info_always_show'], 'popup_info_full_width' => $params['popup_info_full_width'], 'popup_hit_counter' => $params['popup_hit_counter'], 'popup_enable_rate' => $params['popup_enable_rate'], 'slideshow_interval' => $params['popup_interval'], 'enable_comment_social' => $params['popup_enable_comment'], 'enable_image_facebook' => $params['popup_enable_facebook'], 'enable_image_twitter' => $params['popup_enable_twitter'], 'enable_image_google' => $params['popup_enable_google'], 'enable_image_pinterest' => $params['popup_enable_pinterest'], 'enable_image_tumblr' => $params['popup_enable_tumblr'], 'watermark_type' => $params['watermark_type'], 'current_url' => $current_url);
        $items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
        if ($params['watermark_type'] == 'none') {
            $params_array['watermark_font'] = '';
            $params_array['watermark_color'] = '';
            $params_array['watermark_font_size'] = '';
            $params_array['watermark_opacity'] = '';
            $text_align = '';
            $vertical_align = '';
            $params_array['watermark_width'] = '';
            $show_watermark = FALSE;
        }
        if ($params['watermark_type'] != 'none') {
            $params_array['watermark_link'] = urlencode($params['watermark_link']);
            $params_array['watermark_opacity'] = $params['watermark_opacity'];
            $params_array['watermark_position'] = $params['watermark_position'] != 'undefined' ? $params['watermark_position'] : 'top-center';
            $position = explode('-', $params_array['watermark_position']);
            $vertical_align = $position[0];
            $text_align = $position[1];
        }
        if ($params['watermark_type'] == 'text') {
            $show_watermark = TRUE;
            $watermark_text_image = TRUE;
            $params_array['watermark_text'] = $params['watermark_text'];
            $params_array['watermark_font_size'] = $params['watermark_font_size'];
            $params_array['watermark_font'] = $params['watermark_font'];
//.........这里部分代码省略.........
开发者ID:ahmadnaufal,项目名称:iit-webhimpunan,代码行数:101,代码来源:BWGViewImage_browser.php

示例3: display


//.........这里部分代码省略.........
            }
            $page_nav = $this->model->gallery_page_nav($album_gallery_id, $bwg);
            $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
            $album_gallery_div_class = 'bwg_standart_thumbnails_' . $bwg;
        } else {
            $items_per_page = $params['extended_albums_per_page'];
            $items_per_page_arr = array('images_per_page' => $params['extended_albums_per_page'], 'load_more_image_count' => $params['extended_albums_per_page']);
            $items_col_num = 1;
            $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, 'order', $bwg, ' asc ');
            if (!$album_galleries_row) {
                echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
                return;
            }
            $page_nav = $this->model->album_page_nav($album_gallery_id, $bwg);
            $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
            $album_gallery_div_class = 'bwg_album_extended_thumbnails_' . $bwg;
        }
        if ($type == 'gallery') {
            if ($album_view_type == 'masonry') {
                $form_child_div_id = 'bwg_masonry_thumbnails_div_' . $bwg;
                $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->masonry_thumb_align . '; width:100%;';
                $album_gallery_div_id = 'bwg_masonry_thumbnails_' . $bwg;
                $album_gallery_div_class = 'bwg_masonry_thumbnails_' . $bwg;
            } else {
                $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->thumb_align . '; width:100%;';
                $form_child_div_id = '';
            }
        } else {
            $form_child_div_id = '';
            $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->album_extended_thumb_align . '; width:100%;';
        }
        $bwg_previous_album_id = isset($_REQUEST['bwg_previous_album_id_' . $bwg]) ? esc_html($_REQUEST['bwg_previous_album_id_' . $bwg]) : $params['album_id'];
        $bwg_previous_album_page_number = isset($_REQUEST['bwg_previous_album_page_number_' . $bwg]) ? esc_html($_REQUEST['bwg_previous_album_page_number_' . $bwg]) : 0;
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $rgb_album_extended_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_thumbs_bg_color);
        $rgb_album_extended_div_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_div_bg_color);
        $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
        $params_array = array('action' => 'GalleryBox', 'current_view' => $bwg, 'theme_id' => $params['theme_id'], 'thumb_width' => $params['extended_album_image_thumb_width'], 'thumb_height' => $params['extended_album_image_thumb_height'], 'open_with_fullscreen' => $params['popup_fullscreen'], 'open_with_autoplay' => $params['popup_autoplay'], 'image_width' => $params['popup_width'], 'image_height' => $params['popup_height'], 'image_effect' => $params['popup_effect'], 'wd_sor' => $params['sort_by'], 'wd_ord' => $params['order_by'], 'enable_image_filmstrip' => $params['popup_enable_filmstrip'], 'image_filmstrip_height' => $params['popup_filmstrip_height'], 'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'], 'enable_image_fullscreen' => $params['popup_enable_fullscreen'], 'popup_enable_info' => $params['popup_enable_info'], 'popup_info_always_show' => $params['popup_info_always_show'], 'popup_info_full_width' => $params['popup_info_full_width'], 'popup_hit_counter' => $params['popup_hit_counter'], 'popup_enable_rate' => $params['popup_enable_rate'], 'slideshow_interval' => $params['popup_interval'], 'enable_comment_social' => $params['popup_enable_comment'], 'enable_image_facebook' => $params['popup_enable_facebook'], 'enable_image_twitter' => $params['popup_enable_twitter'], 'enable_image_google' => $params['popup_enable_google'], 'enable_image_pinterest' => $params['popup_enable_pinterest'], 'enable_image_tumblr' => $params['popup_enable_tumblr'], 'watermark_type' => $params['watermark_type'], 'current_url' => $current_url);
        if ($params['watermark_type'] != 'none') {
            $params_array['watermark_link'] = urlencode($params['watermark_link']);
            $params_array['watermark_opacity'] = $params['watermark_opacity'];
            $params_array['watermark_position'] = $params['watermark_position'];
        }
        if ($params['watermark_type'] == 'text') {
            $params_array['watermark_text'] = $params['watermark_text'];
            $params_array['watermark_font_size'] = $params['watermark_font_size'];
            $params_array['watermark_font'] = $params['watermark_font'];
            $params_array['watermark_color'] = $params['watermark_color'];
        } elseif ($params['watermark_type'] == 'image') {
            $params_array['watermark_url'] = urlencode($params['watermark_url']);
            $params_array['watermark_width'] = $params['watermark_width'];
            $params_array['watermark_height'] = $params['watermark_height'];
        }
        $tags_rows = $this->model->get_tags_rows_data($album_gallery_id);
        ?>
    <style>
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_album_extended_thumbnails_<?php 
        echo $bwg;
        ?>
 * {
开发者ID:ChibiBeckyG,项目名称:supreme-giggle,代码行数:67,代码来源:BWGViewAlbum_extended_preview.php

示例4: display

    public function display()
    {
        global $WD_BWG_UPLOAD_DIR;
        require_once WD_BWG_DIR . '/framework/WDWLibraryEmbed.php';
        $tag_id = isset($_GET['tag_id']) ? esc_html($_GET['tag_id']) : 0;
        $gallery_id = WDWLibrary::esc_script('get', 'gallery_id', 0, 'int');
        $bwg = isset($_GET['current_view']) ? esc_html($_GET['current_view']) : 0;
        $current_image_id = WDWLibrary::esc_script('get', 'image_id', 0, 'int');
        $theme_id = isset($_GET['theme_id']) ? esc_html($_GET['theme_id']) : 1;
        $thumb_width = isset($_GET['thumb_width']) ? esc_html($_GET['thumb_width']) : 120;
        $thumb_height = isset($_GET['thumb_height']) ? esc_html($_GET['thumb_height']) : 90;
        $open_with_fullscreen = WDWLibrary::esc_script('get', 'open_with_fullscreen', 0, 'int');
        $open_with_autoplay = WDWLibrary::esc_script('get', 'open_with_autoplay', 0, 'int');
        $image_width = WDWLibrary::esc_script('get', 'image_width', 800, 'int');
        $image_height = WDWLibrary::esc_script('get', 'image_height', 500, 'int');
        $image_effect = WDWLibrary::esc_script('get', 'image_effect', 'fade');
        $sort_by = isset($_GET['wd_sor']) ? esc_html($_GET['wd_sor']) : 'order';
        $order_by = isset($_GET['wd_ord']) ? esc_html($_GET['wd_ord']) : 'asc';
        $enable_image_filmstrip = FALSE;
        $enable_image_fullscreen = isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0;
        $popup_enable_info = isset($_GET['popup_enable_info']) ? esc_html($_GET['popup_enable_info']) : 1;
        $popup_info_always_show = isset($_GET['popup_info_always_show']) ? esc_html($_GET['popup_info_always_show']) : 0;
        $popup_info_full_width = isset($_GET['popup_info_full_width']) ? esc_html($_GET['popup_info_full_width']) : 0;
        $popup_enable_rate = WDWLibrary::esc_script('get', 'popup_enable_rate', 0, 'int');
        $popup_hit_counter = isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0;
        $slideshow_effect_duration = isset($_GET['slideshow_effect_duration']) ? (int) $_GET['slideshow_effect_duration'] : 1;
        $slideshow_interval = isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5;
        $enable_image_ctrl_btn = isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0;
        $enable_comment_social = FALSE;
        $enable_image_facebook = FALSE;
        $enable_image_twitter = FALSE;
        $enable_image_google = FALSE;
        $enable_image_pinterest = FALSE;
        $enable_image_tumblr = FALSE;
        $watermark_type = isset($_GET['watermark_type']) ? esc_html($_GET['watermark_type']) : 'none';
        $watermark_text = isset($_GET['watermark_text']) ? esc_html($_GET['watermark_text']) : '';
        $watermark_font_size = isset($_GET['watermark_font_size']) ? esc_html($_GET['watermark_font_size']) : 12;
        $watermark_font = isset($_GET['watermark_font']) ? esc_html($_GET['watermark_font']) : 'Arial';
        $watermark_color = isset($_GET['watermark_color']) ? esc_html($_GET['watermark_color']) : 'FFFFFF';
        $watermark_opacity = isset($_GET['watermark_opacity']) ? esc_html($_GET['watermark_opacity']) : 30;
        $watermark_position = explode('-', isset($_GET['watermark_position']) ? esc_html($_GET['watermark_position']) : 'bottom-right');
        $watermark_link = isset($_GET['watermark_link']) ? esc_html($_GET['watermark_link']) : '';
        $watermark_url = isset($_GET['watermark_url']) ? esc_html($_GET['watermark_url']) : '';
        $watermark_width = isset($_GET['watermark_width']) ? esc_html($_GET['watermark_width']) : 90;
        $watermark_height = isset($_GET['watermark_height']) ? esc_html($_GET['watermark_height']) : 90;
        $theme_row = $this->model->get_theme_row_data($theme_id);
        $option_row = $this->model->get_option_row_data();
        $image_right_click = $option_row->image_right_click;
        $image_filmstrip_height = 0;
        $image_filmstrip_width = 0;
        if ($tag_id != 0) {
            $image_rows = $this->model->get_image_rows_data_tag($tag_id, $sort_by, $order_by);
        } else {
            $image_rows = $this->model->get_image_rows_data($gallery_id, $bwg, $sort_by, $order_by);
        }
        $image_id = isset($_POST['image_id']) ? (int) $_POST['image_id'] : $current_image_id;
        $filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
        $margins_split = explode(" ", $filmstrip_thumb_margin);
        $filmstrip_thumb_margin_right = 0;
        $filmstrip_thumb_margin_left = 0;
        if (isset($margins_split[1])) {
            $filmstrip_thumb_margin_right = (int) $margins_split[1];
            if (isset($margins_split[3])) {
                $filmstrip_thumb_margin_left = (int) $margins_split[3];
            } else {
                $filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
            }
        } elseif (isset($margins_split[0])) {
            $filmstrip_thumb_margin_right = (int) $margins_split[0];
            $filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
        }
        $filmstrip_thumb_margin_hor = $filmstrip_thumb_margin_right + $filmstrip_thumb_margin_left;
        $rgb_bwg_image_info_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_info_bg_color);
        $rgb_bwg_image_hit_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_hit_bg_color);
        $rgb_lightbox_ctrl_cont_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_ctrl_cont_bg_color);
        $lightbox_bg_transparent = isset($theme_row->lightbox_bg_transparent) ? $theme_row->lightbox_bg_transparent : 100;
        $lightbox_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_bg_color);
        $current_filename = '';
        ?>
    <style>
      .spider_popup_wrap * {
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
      }
      .spider_popup_wrap {
        background-color: rgba(<?php 
        echo $lightbox_bg_color['red'];
        ?>
, <?php 
        echo $lightbox_bg_color['green'];
        ?>
, <?php 
        echo $lightbox_bg_color['blue'];
        ?>
, <?php 
        echo number_format($lightbox_bg_transparent / 100, 2, ".", "");
        ?>
);
        display: inline-block;
//.........这里部分代码省略.........
开发者ID:benshez,项目名称:DreamWeddingCeremonies,代码行数:101,代码来源:BWGViewGalleryBox.php

示例5: display

    public function display($params, $from_shortcode = 0, $bwg = 0)
    {
        global $wp;
        $current_url = $wp->query_string;
        global $WD_BWG_UPLOAD_DIR;
        require_once WD_BWG_DIR . '/framework/WDWLibrary.php';
        if (!isset($params['extended_album_image_title'])) {
            $params['extended_album_image_title'] = 'none';
        }
        $theme_row = $this->model->get_theme_row_data($params['theme_id']);
        if (!$theme_row) {
            echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
            return;
        }
        $type = isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : 'album';
        $album_gallery_id = isset($_POST['album_gallery_id_' . $bwg]) ? esc_html($_POST['album_gallery_id_' . $bwg]) : $params['album_id'];
        if (!$album_gallery_id) {
            echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
            return;
        }
        if ($type == 'gallery') {
            $items_per_page = $params['extended_album_images_per_page'];
            $items_col_num = $params['extended_album_image_column_number'];
            $image_rows = $this->model->get_image_rows_data($album_gallery_id, $items_per_page, $params['sort_by'], $bwg);
            $page_nav = $this->model->gallery_page_nav($album_gallery_id, $items_per_page, $bwg);
            $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
            $album_gallery_div_class = 'bwg_standart_thumbnails_' . $bwg;
        } else {
            $items_per_page = $params['extended_albums_per_page'];
            $items_col_num = 1;
            $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, $params['sort_by'], $bwg);
            $page_nav = $this->model->album_page_nav($album_gallery_id, $items_per_page, $bwg);
            $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
            $album_gallery_div_class = 'bwg_album_extended_thumbnails_' . $bwg;
        }
        $bwg_previous_album_id = isset($_POST['bwg_previous_album_id_' . $bwg]) ? esc_html($_POST['bwg_previous_album_id_' . $bwg]) : 0;
        $bwg_previous_album_page_number = isset($_POST['bwg_previous_album_page_number_' . $bwg]) ? esc_html($_POST['bwg_previous_album_page_number_' . $bwg]) : 0;
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $rgb_album_extended_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_thumbs_bg_color);
        $rgb_album_extended_div_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_div_bg_color);
        $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
        ?>
    <style>
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_album_extended_thumbnails_<?php 
        echo $bwg;
        ?>
 * {
       -moz-box-sizing: border-box;
       box-sizing: border-box;
      }
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_album_extended_thumbnails_<?php 
        echo $bwg;
        ?>
 {
        display: block;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        background-color: rgba(<?php 
        echo $rgb_album_extended_thumbs_bg_color['red'];
        ?>
, <?php 
        echo $rgb_album_extended_thumbs_bg_color['green'];
        ?>
, <?php 
        echo $rgb_album_extended_thumbs_bg_color['blue'];
        ?>
, <?php 
        echo $theme_row->album_extended_thumb_bg_transparent / 100;
        ?>
);
        font-size: 0;
        text-align: <?php 
        echo $theme_row->album_extended_thumb_align;
        ?>
;
        max-width: inherit;
      }
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_album_extended_thumbnails_<?php 
        echo $bwg;
        ?>
 a {
        cursor: pointer;
//.........这里部分代码省略.........
开发者ID:phuluang,项目名称:rosewellmusic,代码行数:101,代码来源:BWGViewAlbum_extended_preview.php

示例6: display


//.........这里部分代码省略.........
                echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
            }
            $page_nav = $this->model->gallery_page_nav($album_gallery_id, $items_per_page, $bwg);
            $album_gallery_div_id = 'bwg_album_compact_' . $bwg;
            $album_gallery_div_class = 'bwg_standart_thumbnails_' . $bwg;
        } else {
            $items_per_page = $params['compuct_albums_per_page'];
            $items_col_num = $params['compuct_album_column_number'];
            $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, 'order', $bwg, ' ASC ');
            if (!$album_galleries_row) {
                echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
                return;
            }
            $page_nav = $this->model->album_page_nav($album_gallery_id, $items_per_page, $bwg);
            $album_gallery_div_id = 'bwg_album_compact_' . $bwg;
            $album_gallery_div_class = 'bwg_album_thumbnails_' . $bwg;
        }
        if ($type == 'gallery') {
            if ($album_view_type == 'masonry') {
                $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->masonry_thumb_align . '; width:100%;';
                $form_child_div_id = 'bwg_masonry_thumbnails_div_' . $bwg;
                $album_gallery_div_id = 'bwg_masonry_thumbnails_' . $bwg;
                $album_gallery_div_class = 'bwg_masonry_thumbnails_' . $bwg;
            } else {
                $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->thumb_align . '; width:100%;';
                $form_child_div_id = '';
            }
        } else {
            $form_child_div_id = '';
            $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->album_compact_thumb_align . '; width:100%;';
        }
        $bwg_previous_album_id = isset($_POST['bwg_previous_album_id_' . $bwg]) ? esc_html($_POST['bwg_previous_album_id_' . $bwg]) : 0;
        $bwg_previous_album_page_number = isset($_POST['bwg_previous_album_page_number_' . $bwg]) ? esc_html($_POST['bwg_previous_album_page_number_' . $bwg]) : 0;
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $rgb_album_compact_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_compact_thumbs_bg_color);
        $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
        ?>
	
    <style>
      /*Album thumbs styles.*/
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_album_thumb_<?php 
        echo $bwg;
        ?>
 {
        display: inline-block;
        text-align: center;
      }
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .<?php 
        echo $album_gallery_div_class;
        ?>
 * {
        -moz-box-sizing: content-box;
        box-sizing: content-box;
      }
开发者ID:nirav90,项目名称:gharena,代码行数:67,代码来源:BWGViewAlbum_compact_preview.php

示例7: display

    public function display($params, $from_shortcode = 0, $bwg = 0)
    {
        global $wp;
        $current_url = $wp->query_string;
        global $WD_BWG_UPLOAD_DIR;
        require_once WD_BWG_DIR . '/framework/WDWLibrary.php';
        if (!isset($params['image_title'])) {
            $params['image_title'] = 'none';
        }
        $from = isset($params['from']) ? esc_html($params['from']) : 0;
        $sort_direction = ' ASC ';
        if ($from) {
            $options_row = $this->model->get_options_row_data();
            $params['gallery_id'] = $params['id'];
            $params['images_per_page'] = $params['count'];
            $params['sort_by'] = $params['show'] == 'random' ? 'RAND()' : 'order';
            if ($params['show'] == 'last') {
                $sort_direction = ' DESC ';
            }
            $params['image_enable_page'] = 0;
            $params['image_title'] = $options_row->image_title_show_hover;
            $params['thumb_height'] = $params['height'];
            $params['thumb_width'] = $params['width'];
            $params['image_column_number'] = $params['count'];
            $params['popup_width'] = $options_row->popup_width;
            $params['popup_height'] = $options_row->popup_height;
            $params['popup_effect'] = $options_row->popup_type;
            $params['popup_enable_filmstrip'] = $options_row->popup_enable_filmstrip;
            $params['popup_filmstrip_height'] = $options_row->popup_filmstrip_height;
            $params['popup_enable_ctrl_btn'] = $options_row->popup_enable_ctrl_btn;
            $params['popup_enable_fullscreen'] = $options_row->popup_enable_fullscreen;
            $params['popup_interval'] = $options_row->popup_interval;
            $params['popup_enable_comment'] = $options_row->popup_enable_comment;
            $params['popup_enable_facebook'] = $options_row->popup_enable_facebook;
            $params['popup_enable_twitter'] = $options_row->popup_enable_twitter;
            $params['popup_enable_google'] = $options_row->popup_enable_google;
            $params['watermark_type'] = $options_row->watermark_type;
            $params['watermark_link'] = $options_row->watermark_link;
            $params['watermark_opacity'] = $options_row->watermark_opacity;
            $params['watermark_position'] = $options_row->watermark_position;
            $params['watermark_text'] = $options_row->watermark_text;
            $params['watermark_font_size'] = $options_row->watermark_font_size;
            $params['watermark_font'] = $options_row->watermark_font;
            $params['watermark_color'] = $options_row->watermark_color;
            $params['watermark_url'] = $options_row->watermark_url;
            $params['watermark_width'] = $options_row->watermark_width;
            $params['watermark_height'] = $options_row->watermark_height;
        }
        $theme_row = $this->model->get_theme_row_data($params['theme_id']);
        if (!$theme_row) {
            echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
            return;
        }
        if (isset($params['type'])) {
            $type = $params['type'];
        } else {
            $type = "";
        }
        $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
        if (!$gallery_row && $type == '') {
            echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
            return;
        }
        $image_rows = $this->model->get_image_rows_data($params['gallery_id'], $params['images_per_page'], $params['sort_by'], $bwg, $type, $sort_direction);
        if (!$image_rows) {
            echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
        }
        if ($params['image_enable_page'] && $params['images_per_page']) {
            $page_nav = $this->model->page_nav($params['gallery_id'], $params['images_per_page'], $bwg, $type);
        }
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
        ?>
    <style>
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_standart_thumbnails_<?php 
        echo $bwg;
        ?>
 * {
        -moz-box-sizing: border-box;
        box-sizing: border-box;
      }
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .bwg_standart_thumb_spun1_<?php 
        echo $bwg;
        ?>
 {
        -moz-box-sizing: content-box;
        box-sizing: content-box;
        background-color: #<?php 
//.........这里部分代码省略.........
开发者ID:phuluang,项目名称:rosewellmusic,代码行数:101,代码来源:BWGViewThumbnails.php

示例8: display

    public function display($params, $from_shortcode = 0, $bwg = 0)
    {
        global $wp;
        $current_url = $wp->query_string;
        global $WD_BWG_UPLOAD_DIR;
        require_once WD_BWG_DIR . '/framework/WDWLibrary.php';
        $theme_row = $this->model->get_theme_row_data($params['theme_id']);
        if (!$theme_row) {
            echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
            return;
        }
        $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
        if (!$gallery_row) {
            echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
            return;
        }
        $image_rows = $this->model->get_image_rows_data($params['gallery_id'], 1, $params['sort_by'], $bwg);
        if (!$image_rows) {
            echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
        }
        $page_nav = $this->model->page_nav($params['gallery_id'], 1, $bwg);
        $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
        $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
        $bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
        $image_title = $params['image_browser_title_enable'];
        $enable_image_description = $params['image_browser_description_enable'];
        $params_array = array('action' => 'GalleryBox', 'current_view' => $bwg, 'gallery_id' => $params['gallery_id'], 'theme_id' => $params['theme_id'], 'image_width' => $params['popup_width'], 'image_height' => $params['popup_height'], 'image_effect' => $params['popup_effect'], 'sort_by' => $params['sort_by'], 'enable_image_filmstrip' => $params['popup_enable_filmstrip'], 'image_filmstrip_height' => $params['popup_filmstrip_height'], 'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'], 'enable_image_fullscreen' => $params['popup_enable_fullscreen'], 'slideshow_interval' => $params['popup_interval'], 'enable_comment_social' => $params['popup_enable_comment'], 'enable_image_facebook' => $params['popup_enable_facebook'], 'enable_image_twitter' => $params['popup_enable_twitter'], 'enable_image_google' => $params['popup_enable_google'], 'watermark_type' => $params['watermark_type'], 'current_url' => $current_url);
        if ($params['watermark_type'] == 'none') {
            $show_watermark = FALSE;
        }
        if ($params['watermark_type'] != 'none') {
            $params_array['watermark_link'] = $params['watermark_link'];
            $params_array['watermark_opacity'] = $params['watermark_opacity'];
            $params_array['watermark_position'] = $params['watermark_position'] != 'undefined' ? $params['watermark_position'] : 'top-center';
            $position = explode('-', $params_array['watermark_position']);
            $vertical_align = $position[0];
            $text_align = $position[1];
        }
        if ($params['watermark_type'] == 'text') {
            $show_watermark = TRUE;
            $watermark_text_image = TRUE;
            $params_array['watermark_text'] = $params['watermark_text'];
            $params_array['watermark_font_size'] = $params['watermark_font_size'];
            $params_array['watermark_font'] = $params['watermark_font'];
            $params_array['watermark_color'] = $params['watermark_color'];
            $params_array['watermark_width'] = '';
            $watermark_image_or_text = $params_array['watermark_text'];
            $watermark_a = 'bwg_watermark_text_' . $bwg;
            $watermark_div = 'class="bwg_image_browser_watermark_text_' . $bwg . '"';
        } elseif ($params['watermark_type'] == 'image') {
            $show_watermark = TRUE;
            $watermark_text_image = FALSE;
            $params_array['watermark_url'] = $params['watermark_url'];
            $params_array['watermark_width'] = $params['watermark_width'];
            $params_array['watermark_height'] = $params['watermark_height'];
            $watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' . $bwg . '" src="' . $params_array['watermark_url'] . '" />';
            $watermark_a = '';
            $watermark_div = 'class="bwg_image_browser_watermark_' . $bwg . '"';
        }
        ?>
    <style>
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .image_browser_images_conteiner_<?php 
        echo $bwg;
        ?>
 * {
        -moz-box-sizing: border-box;
        box-sizing: border-box;
      }
      #bwg_container1_<?php 
        echo $bwg;
        ?>
 #bwg_container2_<?php 
        echo $bwg;
        ?>
 .image_browser_images_conteiner_<?php 
        echo $bwg;
        ?>
{
				background-color: rgba(<?php 
        echo $image_browser_images_conteiner['red'];
        ?>
, <?php 
        echo $image_browser_images_conteiner['green'];
        ?>
, <?php 
        echo $image_browser_images_conteiner['blue'];
        ?>
, <?php 
        echo $theme_row->image_browser_full_transparent / 100;
        ?>
);
				text-align: center;
				width: 100%;
				border-style: <?php 
//.........这里部分代码省略.........
开发者ID:phuluang,项目名称:rosewellmusic,代码行数:101,代码来源:BWGViewImage_browser.php


注:本文中的WDWLibrary::spider_hex2rgb方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。