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


PHP get_ultimate_font_style函数代码示例

本文整理汇总了PHP中get_ultimate_font_style函数的典型用法代码示例。如果您正苦于以下问题:PHP get_ultimate_font_style函数的具体用法?PHP get_ultimate_font_style怎么用?PHP get_ultimate_font_style使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: icon_list_item_shortcode

 function icon_list_item_shortcode($atts, $content = null)
 {
     $icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $icon_link = $el_class = $icon_animation = $tooltip_disp = $tooltip_text = $icon_margin = '';
     $content_font_family = $content_font_style = $content_font_size = $content_line_ht = $content_font_color = '';
     extract(shortcode_atts(array('icon_type' => 'selector', 'icon' => '', 'icon_img' => '', 'icon_color' => '#333333', 'icon_style' => 'none', 'icon_color_bg' => '#ffffff', 'icon_color_border' => '#333333', 'icon_border_style' => '', 'icon_border_size' => '1', 'icon_border_radius' => '500', 'icon_border_spacing' => '50', "icon_size" => "", "icon_margin" => "", 'el_class' => '', 'content_font_family' => '', 'content_font_style' => '', 'content_font_size' => '', 'content_font_color' => '', 'content_line_ht' => '', 'content_font_size' => ''), $atts));
     global $vc_list_icon_size, $vc_list_icon_margin;
     if (empty($icon_size)) {
         $icon_size = $vc_list_icon_size;
     }
     if (empty($icon_margin)) {
         $icon_margin = $vc_list_icon_margin;
     }
     if ($icon_animation !== 'none') {
         $css_trans = 'data-animation="' . $icon_animation . '" data-animation-delay="03"';
     }
     $output = $style = $link_sufix = $link_prefix = $target = $content_style = $href = $icon_align_style = '';
     if ($icon_margin !== '') {
         $style .= 'margin-right:' . $icon_margin . 'px;';
     }
     if ($content_font_family != '') {
         $apply_font_family = get_ultimate_font_family($content_font_family);
         if ($apply_font_family) {
             $content_style .= 'font-family:\'' . $apply_font_family . '\';';
         }
     }
     if ($content_font_style != '') {
         $content_style .= get_ultimate_font_style($content_font_style);
     }
     if ($content_font_color != '') {
         $content_style .= 'color:' . $content_font_color . ';';
     }
     // if($content_font_size != '')
     // 	$content_style .= 'font-size:'.$content_font_size.'px;';
     // if($content_line_ht)
     // 	$content_style .='line-height:'.$content_line_ht.'px;';
     if (is_numeric($content_font_size)) {
         $content_font_size = 'desktop:' . $content_font_size . 'px;';
     }
     if (is_numeric($content_line_ht)) {
         $content_line_ht = 'desktop:' . $content_line_ht . 'px;';
     }
     $list_icon_id = 'list-icon-wrap-' . rand(1000, 9999);
     $list_icon_args = array('target' => '#' . $list_icon_id . ' .uavc-list-desc', 'media_sizes' => array('font-size' => $content_font_size, 'line-height' => $content_line_ht));
     $list_icon_data_list = get_ultimate_vc_responsive_media_css($list_icon_args);
     $icon_animation = $icon_link = '';
     $output .= '<div class="uavc-list-content" id="' . $list_icon_id . '">';
     if ($icon !== "" || $icon_img !== '') {
         if ($icon_type == 'custom') {
             $icon_style = 'none';
         }
         $main_icon = do_shortcode('[just_icon icon_type="' . $icon_type . '" icon="' . $icon . '" icon_img="' . $icon_img . '" img_width="' . $icon_size . '" icon_size="' . $icon_size . '" icon_color="' . $icon_color . '" icon_style="' . $icon_style . '" icon_color_bg="' . $icon_color_bg . '" icon_color_border="' . $icon_color_border . '"  icon_border_style="' . $icon_border_style . '" icon_border_size="' . $icon_border_size . '" icon_border_radius="' . $icon_border_radius . '" icon_border_spacing="' . $icon_border_spacing . '" icon_link="' . $icon_link . '" icon_animation="' . $icon_animation . '"]');
         $output .= "\n" . '<div class="uavc-list-icon ' . $el_class . ' ' . $css_icon_list . '" ' . $css_trans . ' style="' . $style . '">';
         $output .= $main_icon;
         $output .= "\n" . '</div>';
     }
     $output .= '<span ' . $list_icon_data_list . ' class="uavc-list-desc ult-responsive" style="' . $content_style . '">' . do_shortcode($content) . '</span>';
     $output .= '</div>';
     $output = '<li>' . $output . '</li>';
     return $output;
 }
开发者ID:jeanzum,项目名称:prueba,代码行数:60,代码来源:Ultimate_List_Icon.php

示例2: ultimate_headings_shortcode

 function ultimate_headings_shortcode($atts, $content = null)
 {
     $wrapper_style = $main_heading_style_inline = $sub_heading_style_inline = $line_style_inline = $icon_inline = $output = $el_class = '';
     extract(shortcode_atts(array('main_heading' => '', "main_heading_font_size" => "", "main_heading_line_height" => "", "main_heading_font_family" => "", "main_heading_style" => "", "main_heading_color" => "", "main_heading_margin" => "", "sub_heading" => "", "sub_heading_font_size" => "", "sub_heading_line_height" => "", "sub_heading_font_family" => "", "sub_heading_style" => "", "sub_heading_color" => "", "sub_heading_margin" => "", "spacer" => "no_spacer", "spacer_position" => "top", "spacer_img" => "", "spacer_img_width" => "", "line_style" => "solid", "line_width" => "auto", "line_height" => "1", "line_color" => "#ccc", "icon_type" => "selector", "icon" => "", "icon_color" => "", "icon_style" => "none", "icon_color_bg" => "", "icon_border_style" => "", "icon_color_border" => "#333333", "icon_border_size" => "1", "icon_border_radius" => "", "icon_border_spacing" => "", "icon_img" => "", "img_width" => "48", "icon_size" => "32", "alignment" => "center", "spacer_margin" => "top", "line_icon_fixer" => "10", "heading_tag" => "", "el_class" => ""), $atts));
     $wrapper_class = $spacer;
     if ($heading_tag == '') {
         $heading_tag = 'h2';
     }
     /* ---- main heading styles ---- */
     if ($main_heading_font_family != '') {
         $mhfont_family = get_ultimate_font_family($main_heading_font_family);
         if ($mhfont_family) {
             $main_heading_style_inline .= 'font-family:\'' . $mhfont_family . '\';';
         }
     }
     // main heading font style
     $main_heading_style_inline .= get_ultimate_font_style($main_heading_style);
     //attach font size if set
     //attach font color if set
     if ($main_heading_color != '') {
         $main_heading_style_inline .= 'color:' . $main_heading_color . ';';
     }
     //attach margins for main heading
     if ($main_heading_margin != '') {
         $main_heading_style_inline .= $main_heading_margin;
     }
     /* ----- sub heading styles ----- */
     if ($sub_heading_font_family != '') {
         $shfont_family = get_ultimate_font_family($sub_heading_font_family);
         if ($shfont_family != '') {
             $sub_heading_style_inline .= 'font-family:\'' . $shfont_family . '\';';
         }
     }
     //sub heaing font style
     $sub_heading_style_inline .= get_ultimate_font_style($sub_heading_style);
     //attach font color if set
     if ($sub_heading_color != '') {
         $sub_heading_style_inline .= 'color:' . $sub_heading_color . ';';
     }
     //attach margins for sub heading
     if ($sub_heading_margin != '') {
         $sub_heading_style_inline .= $sub_heading_margin;
     }
     if ($spacer != '') {
         $wrapper_style .= $spacer_margin;
     }
     if ($spacer == 'line_with_icon') {
         if ($line_width < $icon_size) {
             $wrap_width = $icon_size;
         } else {
             $wrap_width = $line_width;
         }
         if ($icon_type == 'selector') {
             if ($icon_style == 'advanced') {
                 //if($icon_border_spacing != '')
                 //$wrapper_style .= 'padding:'.$icon_border_spacing.'px 0;';
             } else {
                 $wrapper_style .= 'height:' . $icon_size . 'px;';
             }
         }
         $icon_style_inline = 'font-size:' . $icon_size . 'px;';
     } else {
         if ($spacer == 'line_only') {
             $wrap_width = $line_width;
             $line_style_inline = 'border-style:' . $line_style . ';';
             $line_style_inline .= 'border-bottom-width:' . $line_height . 'px;';
             $line_style_inline .= 'border-color:' . $line_color . ';';
             $line_style_inline .= 'width:' . $wrap_width . 'px;';
             $wrapper_style .= 'height:' . $line_height . 'px;';
             $line = '<span class="uvc-headings-line" style="' . $line_style_inline . '"></span>';
             $icon_inline = $line;
         } else {
             if ($spacer == 'icon_only') {
                 $icon_style_inline = 'font-size:' . $icon_size . 'px;';
             } else {
                 if ($spacer == 'image_only') {
                     if (!empty($spacer_img_width)) {
                         $siwidth = array($spacer_img_width, $spacer_img_width);
                     } else {
                         $siwidth = 'full';
                     }
                     $spacer_inline = '';
                     //$icon_inline = wp_get_attachment_image( $spacer_img, $siwidth, false, array("class"=>"ultimate-headings-icon-image") );
                     $icon_inline = apply_filters('ult_get_img_single', $spacer_img, 'url');
                     if ($spacer_img_width !== '') {
                         $spacer_inline = 'width:' . $spacer_img_width . 'px';
                     }
                     $icon_inline = '<img src="' . $icon_inline . '" class="ultimate-headings-icon-image" style="' . $spacer_inline . '"/>';
                 }
             }
         }
     }
     //if spacer type is line with icon or only icon show icon or image respectively
     if ($spacer == 'line_with_icon' || $spacer == 'icon_only') {
         $icon_animation = '';
         $icon_inline = do_shortcode('[just_icon icon_align="' . $alignment . '" icon_type="' . $icon_type . '" icon="' . $icon . '" icon_img="' . $icon_img . '" img_width="' . $img_width . '" icon_size="' . $icon_size . '" icon_color="' . $icon_color . '" icon_style="' . $icon_style . '" icon_color_bg="' . $icon_color_bg . '" icon_color_border="' . $icon_color_border . '"  icon_border_style="' . $icon_border_style . '" icon_border_size="' . $icon_border_size . '" icon_border_radius="' . $icon_border_radius . '" icon_border_spacing="' . $icon_border_spacing . '" icon_animation="' . $icon_animation . '"]');
     }
     if ($spacer == 'line_with_icon') {
         $data = 'data-hline_width="' . $wrap_width . '" data-hicon_type="' . $icon_type . '" data-hborder_style="' . $line_style . '" data-hborder_height="' . $line_height . '" data-hborder_color="' . $line_color . '"';
         if ($icon_type == 'selector') {
//.........这里部分代码省略.........
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:101,代码来源:Ultimate_Headings.php

示例3: block_shortcode

        function block_shortcode($atts)
        {
            $icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $icon_link = $el_class = $icon_animation = $block_title_front = $block_desc_front = $block_title_back = $block_desc_back = $button_text = $button_link = $block_text_color = $block_front_color = $block_back_color = $block_back_text_color = $animation = $font_size_icon = $box_border_style = $box_border_size = $box_border_color = $border_size = $border_color = $box_border_color_back = $custom_link = $button_bg = $button_txt = $height_type = $box_height = $flip_type = $flip_box_style = $text_color = $bg_color = $front_text = $back_text = '';
            $desc_font_line_height = $title_font_line_height = $title_font = $title_font_style = $title_font_size = $desc_font = $desc_font_style = $desc_font_size = '';
            extract(shortcode_atts(array('icon_type' => '', 'icon' => '', 'icon_img' => '', 'img_width' => '', 'icon_size' => '', 'icon_color' => '', 'icon_style' => '', 'icon_color_bg' => '', 'icon_color_border' => '', 'icon_border_style' => '', 'icon_border_size' => '', 'icon_border_radius' => '', 'icon_border_spacing' => '', 'icon_link' => '', 'icon_animation' => '', 'block_title_front' => '', 'block_desc_front' => '', 'block_title_back' => '', 'block_desc_back' => '', 'custom_link' => '', 'button_text' => '', 'button_link' => '', 'button_bg' => '', 'button_txt' => '', 'flip_type' => '', 'text_color' => '', 'bg_color' => '', 'block_text_color' => '', 'block_front_color' => '', 'block_back_color' => '', 'el_class' => '', 'block_back_text_color' => '', 'border_size' => '', 'border_color' => '', 'box_border_style' => '', 'box_border_size' => '', 'box_border_color' => '', 'box_border_color_back' => '', 'height_type' => '', 'box_height' => '', 'flip_box_style' => '', 'title_font' => '', 'title_font_style' => '', 'title_font_size' => '', 'title_font_line_height' => '', 'desc_font' => '', 'desc_font_style' => '', 'desc_font_size' => '', 'desc_font_line_height' => ''), $atts));
            $output = $f_style = $b_style = $ico_color = $box_border = $icon_border = $link_style = $height = $link_sufix = $link_prefix = $link_style = '';
            $title_style = $desc_style = '';
            $border_front = $border_back = '';
            //$font_args = array();
            if ($icon_type == 'custom') {
                $icon_style = 'none';
            }
            $flip_icon = do_shortcode('[just_icon icon_type="' . $icon_type . '" icon="' . $icon . '" icon_img="' . $icon_img . '" img_width="' . $img_width . '" icon_size="' . $icon_size . '" icon_color="' . $icon_color . '" icon_style="' . $icon_style . '" icon_color_bg="' . $icon_color_bg . '" icon_color_border="' . $icon_color_border . '"  icon_border_style="' . $icon_border_style . '" icon_border_size="' . $icon_border_size . '" icon_border_radius="' . $icon_border_radius . '" icon_border_spacing="' . $icon_border_spacing . '" icon_link="' . $icon_link . '" icon_animation="' . $icon_animation . '"]');
            $css_trans = $icon_border = $box_border = '';
            $height = $target = '';
            /* title */
            if ($title_font != '') {
                $font_family = get_ultimate_font_family($title_font);
                $title_style .= 'font-family:\'' . $font_family . '\';';
                //array_push($font_args, $title_font);
            }
            if ($title_font_style != '') {
                $title_style .= get_ultimate_font_style($title_font_style);
            }
            if ($title_font_size != '') {
                $title_style .= 'font-size:' . $title_font_size . 'px;';
            }
            if ($title_font_line_height != '') {
                $title_style .= 'line-height:' . $title_font_line_height . 'px;';
            }
            /* description */
            if ($desc_font != '') {
                $font_family = get_ultimate_font_family($desc_font);
                $desc_style .= 'font-family:\'' . $font_family . '\';';
                //array_push($font_args, $desc_font);
            }
            if ($desc_font_style != '') {
                $desc_style .= get_ultimate_font_style($desc_font_style);
            }
            if ($desc_font_size != '') {
                $desc_style .= 'font-size:' . $desc_font_size . 'px;';
            }
            if ($desc_font_line_height != '') {
                $desc_style .= 'line-height:' . $desc_font_line_height . 'px;';
            }
            //enquque_ultimate_google_fonts($font_args);
            if ($icon_border_style !== 'none') {
                $icon_border .= 'border-style: ' . $icon_border_style . ';';
                $icon_border .= 'border-width: ' . $icon_border_size . 'px;';
            }
            $box_style_data = '';
            if ($height_type == "ifb-custom-height") {
                $box_style_data .= " data-min-height='" . $box_height . "px'";
                /*$height = 'height:'.$box_height.'px;';*/
                $flip_type .= ' flip-box-custom-height';
            }
            if ($flip_box_style !== 'simple') {
                $border_front = 'border-color:' . $box_border_color . ';';
                $border_back = 'border-color:' . $box_border_color_back . ';';
                if ($box_border_style !== 'none') {
                    $box_border .= 'border-style: ' . $box_border_style . ';';
                    $box_border .= 'border-width: ' . $box_border_size . 'px;';
                }
                if ($animation !== 'none') {
                    $css_trans = 'data-animation="' . $animation . '" data-animation-delay="03"';
                }
                if ($block_text_color != '') {
                    $f_style .= 'color:' . $block_text_color . ';';
                    $front_text .= 'color:' . $block_text_color . ';';
                }
                if ($block_front_color != '') {
                    $f_style .= 'background:' . $block_front_color . ';';
                }
                if ($block_back_text_color != '') {
                    $b_style .= 'color:' . $block_back_text_color . ';';
                    $back_text .= 'color:' . $block_back_text_color . ';';
                }
                if ($block_back_color != '') {
                    $b_style .= 'background:' . $block_back_color . ';';
                }
            } else {
                if ($text_color != '') {
                    $f_style .= 'color:' . $text_color . ';';
                    $b_style .= 'color:' . $text_color . ';';
                    $front_text = $back_text = 'color:' . $text_color . ';';
                }
                if ($bg_color != '') {
                    $f_style .= 'background:' . $bg_color . ';';
                    $b_style .= 'background:' . $bg_color . ';';
                }
                if ($border_color != '') {
                    $border_front = 'border-color:' . $border_color . ';';
                    $border_back = 'border-color:' . $border_color . ';';
                    $box_border = 'border-width: ' . $border_size . 'px;';
                    $box_border .= 'border-style: solid;';
                }
            }
            $output .= '<div class="flip-box-wrap">';
            $output .= '<div class="flip-box ' . $height_type . ' ' . $el_class . ' ' . $flip_type . '" ' . $css_trans . ' style="' . $height . '" ' . $box_style_data . '>';
            $output .= '<div class="ifb-flip-box">';
//.........这里部分代码省略.........
开发者ID:EmmaTope,项目名称:gadafunds,代码行数:101,代码来源:Ultimate_Flip_Box.php

示例4: ult_info_table_generate_design01

    function ult_info_table_generate_design01($atts, $content = null)
    {
        $icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $el_class = $package_heading = $package_sub_heading = $package_price = $package_unit = $package_btn_text = $package_link = $package_featured = $color_bg_main = $color_txt_main = $color_bg_highlight = $color_txt_highlight = $color_scheme = $use_cta_btn = '';
        extract(shortcode_atts(array('color_scheme' => 'black', 'package_heading' => '', 'package_sub_heading' => '', 'icon_type' => 'none', 'icon' => '', 'icon_img' => '', 'img_width' => '48', 'icon_size' => '32', 'icon_color' => '#333333', 'icon_style' => 'none', 'icon_color_bg' => '#ffffff', 'icon_color_border' => '#333333', 'icon_border_style' => '', 'icon_border_size' => '1', 'icon_border_radius' => '500', 'icon_border_spacing' => '50', 'use_cta_btn' => '', 'package_btn_text' => '', 'package_link' => '', 'package_featured' => '', 'color_bg_main' => '', 'color_txt_main' => '', 'color_bg_highlight' => '', 'color_txt_highlight' => '', 'heading_font_family' => '', 'heading_font_style' => '', 'heading_font_size' => '', 'heading_font_color' => '', 'heading_line_height' => '', 'subheading_font_family' => '', 'subheading_font_style' => '', 'subheading_font_size' => '', 'subheading_font_color' => '', 'subheading_line_height' => '', 'features_font_family' => '', 'features_font_style' => '', 'features_font_size' => '', 'features_font_color' => '', 'features_line_height' => '', 'button_font_family' => '', 'button_font_style' => '', 'button_font_size' => '', 'button_font_color' => '', 'button_line_height' => '', 'el_class' => '', 'features_min_ht' => ''), $atts));
        $output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
        if ($icon_type !== "none") {
            $box_icon = do_shortcode('[just_icon icon_type="' . $icon_type . '" icon="' . $icon . '" icon_img="' . $icon_img . '" img_width="' . $img_width . '" icon_size="' . $icon_size . '" icon_color="' . $icon_color . '" icon_style="' . $icon_style . '" icon_color_bg="' . $icon_color_bg . '" icon_color_border="' . $icon_color_border . '"  icon_border_style="' . $icon_border_style . '" icon_border_size="' . $icon_border_size . '" icon_border_radius="' . $icon_border_radius . '" icon_border_spacing="' . $icon_border_spacing . '"]');
        }
        if ($color_scheme == "custom") {
            if ($color_bg_main !== "") {
                $normal_style .= 'background:' . $color_bg_main . ';';
            }
            if ($color_txt_main !== "") {
                $normal_style .= 'color:' . $color_txt_main . ';';
            }
            if ($color_bg_highlight !== "") {
                $featured_style .= 'background:' . $color_bg_highlight . ';';
            }
            if ($color_txt_highlight !== "") {
                $featured_style .= 'color:' . $color_txt_highlight . ';';
            }
        }
        if ($package_link !== "") {
            $link = vc_build_link($package_link);
            if (isset($link['target'])) {
                $target = 'target="' . $link['target'] . '"';
            } else {
                $target = '';
            }
            $link = $link['url'];
        } else {
            $link = "#";
        }
        if ($package_featured !== "") {
            $featured = "ult_featured";
            $dynamic_style = $featured_style;
        } else {
            $dynamic_style = $normal_style;
        }
        if ($use_cta_btn == "box") {
            $output .= '<a href="' . $link . '" ' . $target . ' class="ult_price_action_button">' . $package_btn_text;
        }
        /*---min ht style---*/
        $info_tab_ht = '';
        $info_tab_ht_style = '';
        if ($features_min_ht !== "") {
            $info_tab_ht = 'info_min_ht';
            $info_tab_ht_style .= 'min-height:' . $features_min_ht . 'px;';
        }
        /* typography */
        $heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
        // heading
        if ($heading_font_family != '') {
            $hdfont_family = get_ultimate_font_family($heading_font_family);
            if ($hdfont_family !== '') {
                $heading_style_inline .= 'font-family:\'' . $hdfont_family . '\';';
            }
        }
        $heading_style_inline .= get_ultimate_font_style($heading_font_style);
        if ($heading_font_color != '') {
            $heading_style_inline .= 'color:' . $heading_font_color . ';';
        }
        // if($heading_font_size != '')
        // 	$heading_style_inline .= 'font-size:'.$heading_font_size.'px;';
        // if($heading_line_height != '')
        // 	$heading_style_inline .= 'line-height:'.$heading_line_height.'px;';
        if (is_numeric($heading_font_size)) {
            $heading_font_size = 'desktop:' . $heading_font_size . 'px;';
        }
        if (is_numeric($heading_line_height)) {
            $heading_line_height = 'desktop:' . $heading_line_height . 'px;';
        }
        $info_table_id = 'Info-table-wrap-' . rand(1000, 9999);
        $info_table_args = array('target' => '#' . $info_table_id . ' h3', 'media_sizes' => array('font-size' => $heading_font_size, 'line-height' => $heading_line_height));
        $info_table_data_list = get_ultimate_vc_responsive_media_css($info_table_args);
        // sub heading
        if ($subheading_font_family != '') {
            $shfont_family = get_ultimate_font_family($subheading_font_family);
            if ($shfont_family !== '') {
                $sub_heading_inline .= 'font-family:\'' . $shfont_family . '\';';
            }
        }
        $sub_heading_inline .= get_ultimate_font_style($subheading_font_style);
        // if($subheading_font_size != '')
        // 	$sub_heading_inline .= 'font-size:'.$subheading_font_size.'px;';
        // if($subheading_line_height != '')
        // 	$sub_heading_inline .= 'line-height:'.$subheading_line_height.'px;';
        if ($subheading_font_color != '') {
            $sub_heading_inline .= 'color:' . $subheading_font_color . ';';
        }
        if (is_numeric($subheading_font_size)) {
            $subheading_font_size = 'desktop:' . $subheading_font_size . 'px;';
        }
        if (is_numeric($subheading_line_height)) {
            $subheading_line_height = 'desktop:' . $subheading_line_height . 'px;';
        }
        $info_table_sub_head_args = array('target' => '#' . $info_table_id . ' h5', 'media_sizes' => array('font-size' => $subheading_font_size, 'line-height' => $subheading_line_height));
        $info_table_sub_head_data_list = get_ultimate_vc_responsive_media_css($info_table_sub_head_args);
        // features
        if ($features_font_family != '') {
//.........这里部分代码省略.........
开发者ID:mazykin46,项目名称:portfolio,代码行数:101,代码来源:info-table-design01.php

示例5: ultimate_fancytext_shortcode

        function ultimate_fancytext_shortcode($atts, $content = null)
        {
            $output = $fancytext_strings = $fancytext_prefix = $fancytext_suffix = $fancytext_effect = $strings_textspeed = $strings_tickerspeed = $typewriter_cursor = $typewriter_cursor_text = $typewriter_loop = $fancytext_align = $strings_font_family = $strings_font_style = $strings_font_size = $strings_color = $strings_line_height = $strings_startdelay = $strings_backspeed = $strings_backdelay = $ticker_wait_time = $ticker_show_items = $ticker_hover_pause = $ex_class = '';
            $id = uniqid(rand());
            extract(shortcode_atts(array('fancytext_strings' => '', 'fancytext_prefix' => '', 'fancytext_suffix' => '', 'fancytext_effect' => '', 'strings_textspeed' => '35', 'strings_tickerspeed' => '200', 'typewriter_loop' => 'false', 'typewriter_cursor_color' => '', 'fancytext_tag' => 'div', 'fancytext_align' => 'center', 'strings_font_family' => '', 'strings_font_style' => '', 'strings_font_size' => '', 'strings_color' => '', 'strings_line_height' => '', 'strings_startdelay' => '200', 'strings_backspeed' => '0', 'strings_backdelay' => '1500', 'typewriter_cursor' => 'true', 'typewriter_cursor_text' => '|', 'ticker_wait_time' => '3000', 'ticker_show_items' => '1', 'ticker_hover_pause' => 'true', 'ticker_background' => '', 'fancytext_color' => '', 'ex_class' => ''), $atts));
            $string_inline_style = $vticker_inline = $valign = '';
            if ($strings_font_family != '') {
                $font_family = get_ultimate_font_family($strings_font_family);
                $string_inline_style .= 'font-family:\'' . $font_family . '\';';
            }
            $string_inline_style .= get_ultimate_font_style($strings_font_style);
            if ($strings_font_size != '') {
                $string_inline_style .= 'font-size:' . $strings_font_size . 'px;';
            }
            if ($strings_color != '') {
                $string_inline_style .= 'color:' . $strings_color . ';';
            }
            if ($strings_line_height != '') {
                $string_inline_style .= 'line-height:' . $strings_line_height . 'px;';
            }
            if ($fancytext_align != '') {
                $string_inline_style .= 'text-align:' . $fancytext_align . ';';
            }
            // Order of replacement
            $order = array("\r\n", "\n", "\r", "<br/>", "<br>");
            $replace = '|';
            // Processes \r\n's first so they aren't converted twice.
            $str = str_replace($order, $replace, $fancytext_strings);
            $lines = explode("|", $str);
            $count_lines = count($lines);
            $ex_class .= ' uvc-type-align-' . $fancytext_align . ' ';
            if ($fancytext_prefix == '') {
                $ex_class .= 'uvc-type-no-prefix';
            }
            if ($fancytext_color != '') {
                $vticker_inline .= 'color:' . $fancytext_color . ';';
            }
            if ($ticker_background != '') {
                $vticker_inline .= 'background:' . $ticker_background . ';';
                if ($fancytext_effect == 'typewriter') {
                    $valign = 'fancytext-typewriter-background-enabled';
                } else {
                    $valign = 'fancytext-background-enabled';
                }
            }
            $ultimate_js = get_option('ultimate_js');
            $output = '<' . $fancytext_tag . ' class="uvc-type-wrap ' . $ex_class . ' uvc-wrap-' . $id . '" style="' . $string_inline_style . '">';
            if (trim($fancytext_prefix) != '') {
                $output .= '<span class="ultimate-' . $fancytext_effect . '-prefix">' . ltrim($fancytext_prefix) . '</span>';
            }
            if ($fancytext_effect == 'ticker' || $fancytext_effect == 'ticker-down') {
                if ($ultimate_js != 'enable') {
                    wp_enqueue_script('ultimate-vticker-js');
                }
                if ($strings_font_size != '') {
                    $inherit_font_size = 'ultimate-fancy-text-inherit';
                } else {
                    $inherit_font_size = '';
                }
                if ($ticker_hover_pause != 'true') {
                    $ticker_hover_pause = 'false';
                }
                if ($fancytext_effect == 'ticker-down') {
                    $direction = "down";
                } else {
                    $direction = "up";
                }
                $output .= '<div id="vticker-' . $id . '" class="ultimate-vticker ' . $fancytext_effect . ' ' . $valign . ' ' . $inherit_font_size . '" style="' . $vticker_inline . '"><ul>';
                foreach ($lines as $line) {
                    $output .= '<li>' . strip_tags($line) . '</li>';
                }
                $output .= '</ul></div>';
            } else {
                if ($ultimate_js != 'enable') {
                    wp_enqueue_script('ultimate-typed-js');
                }
                if ($typewriter_loop != 'true') {
                    $typewriter_loop = 'false';
                }
                if ($typewriter_cursor != 'true') {
                    $typewriter_cursor = 'false';
                }
                $strings = '[';
                foreach ($lines as $key => $line) {
                    $strings .= '"' . __(trim(htmlspecialchars_decode(strip_tags($line))), 'js_composer') . '"';
                    if ($key != $count_lines - 1) {
                        $strings .= ',';
                    }
                }
                $strings .= ']';
                $output .= '<span id="typed-' . $id . '" class="ultimate-typed-main ' . $valign . '" style="' . $vticker_inline . '"></span>';
            }
            if (trim($fancytext_suffix) != '') {
                $output .= '<span class="ultimate-' . $fancytext_effect . '-suffix">' . rtrim($fancytext_suffix) . '</span>';
            }
            if ($fancytext_effect == 'ticker' || $fancytext_effect == 'ticker-down') {
                $output .= '<script type="text/javascript">
						jQuery(function($){
							$("#vticker-' . $id . '")
									.vTicker(
//.........这里部分代码省略.........
开发者ID:prosenjit-itobuz,项目名称:visual-composer-addons,代码行数:101,代码来源:Ultimate_Fancy_Text.php

示例6: ult_ihover_item_callback

 function ult_ihover_item_callback($atts, $content = null)
 {
     global $glob_gutter_width, $glob_thumb_height_width, $glob_ihover_shape;
     global $glob_gutter_width;
     global $glob_thumb_height_width;
     global $glob_ihover_effectdirection;
     //	Item
     $title_margin = $divider_margin = $description_margin = $spacer_border = $spacer_border_color = $spacer_width = $spacer_border_width = $thumbnail_border_styling = $block_border_color = $block_border_size = $block_link = $info_color_bg = $effect_direction = $title_text_typography = $title_font = $title_font_style = $title_responsive_font_size = $title_responsive_font_line_height = $title_font_color = $desc_text_typography = $desc_font = $desc_font_style = $desc_font_size = $desc_font_line_height = $desc_font_color = $itemOutput = $title = $itemOutput = '';
     extract(shortcode_atts(array('thumb_img' => '', 'title' => '', 'title_text_typography' => '', 'title_font' => '', 'title_font_style' => '', 'title_responsive_font_size' => 'desktop:22px;', 'title_responsive_line_height' => 'desktop:28px;', 'title_font_color' => '#ffffff', 'desc_text_typography' => '', 'desc_font' => '', 'desc_font_style' => '', 'desc_responsive_font_size' => 'desktop:12px;', 'desc_responsive_line_height' => 'desktop:18px;', 'desc_font_color' => '#bbbbbb', 'info_color_bg' => 'rgba(0,0,0,0.75)', 'hover_effect' => 'effect1', 'effect_direction' => 'right_to_left', 'spacer_border' => 'solid', 'spacer_border_color' => 'rgba(255,255,255,0.75)', 'spacer_width' => '100', 'spacer_border_width' => '1', 'block_click' => '', 'block_link' => '', 'thumbnail_border_styling' => 'solid', 'block_border_color' => 'rgba(255,255,255,0.2)', 'block_border_size' => '20', 'effect_scale' => 'scale_up', 'effect_top_bottom' => 'top_to_bottom', 'effect_left_right' => 'left_to_right', 'title_margin' => '', 'divider_margin' => '', 'description_margin' => ''), $atts));
     $content = wpb_js_remove_wpautop($content, true);
     // fix unclosed/unwanted paragraph tags in $content
     $info_style = '';
     $title_style = '';
     $desc_style = '';
     $thumbnail_border_style = '';
     // $font_args = array();
     if ($info_color_bg != '') {
         $info_style .= 'background-color: ' . $info_color_bg . '; ';
     }
     if ($title_font != '') {
         $font_family = get_ultimate_font_family($title_font);
         $title_style .= 'font-family:\'' . $font_family . '\';';
         //array_push($font_args, $title_font);
     }
     if ($title_font_style != '') {
         $title_style .= get_ultimate_font_style($title_font_style);
     }
     if ($title_font_color != '') {
         $title_style .= 'color:' . $title_font_color . ';';
     }
     if ($desc_font != '') {
         $font_family = get_ultimate_font_family($desc_font);
         $desc_style .= 'font-family:\'' . $font_family . '\';';
         //array_push($font_args, $desc_font);
     }
     if ($desc_font_style != '') {
         $desc_style .= get_ultimate_font_style($desc_font_style);
     }
     if ($desc_font_color != '') {
         $desc_style .= 'color:' . $desc_font_color . ';';
     }
     //enquque_ultimate_google_fonts($font_args);
     $spacer_line_style = $spacer_style = '';
     if ($spacer_border != '') {
         $spacer_line_style .= "border-style:" . $spacer_border . ";";
         if ($spacer_border_color != '') {
             $spacer_line_style .= "border-color:" . $spacer_border_color . ";";
         }
         if ($spacer_width != '') {
             $spacer_line_style .= "width:" . $spacer_width . "px;";
         }
         if ($spacer_border_width != '') {
             $spacer_line_style .= "border-width:" . $spacer_border_width . "px;";
             /* spacer height */
             $spacer_style .= "height:" . $spacer_border_width . "px;";
         }
     }
     $thumb_url = '';
     if ($thumb_img != '') {
         $img = apply_filters('ult_get_img_single', $thumb_img, 'url');
         $thumb_url = $img;
     }
     if ($thumbnail_border_styling != '' && $thumbnail_border_styling != 'none') {
         $thumbnail_border_style .= 'border-style: ' . $thumbnail_border_styling . '; ';
         if ($block_border_color != '') {
             $thumbnail_border_style .= 'border-color: ' . $block_border_color . '; ';
         }
         if ($block_border_size != '') {
             $thumbnail_border_style .= 'border-width: ' . $block_border_size . 'px;';
         }
     }
     $HeightWidth = $imgHeight = $imgWidth = '';
     if ($glob_thumb_height_width != '') {
         $HeightWidth .= "height: " . $glob_thumb_height_width . "px; ";
         $HeightWidth .= "width: " . $glob_thumb_height_width . "px; ";
     }
     $effect = '';
     if ($hover_effect != '') {
         $effect = $hover_effect;
     }
     $Scale = '';
     switch ($effect) {
         case 'effect6':
             if ($effect_scale != '') {
                 $Scale = 'ult-ih-' . $effect_scale;
             }
             break;
     }
     //	Directions: [left, right, top, bottom]
     $Direction = '';
     switch ($effect) {
         case 'effect2':
         case 'effect3':
         case 'effect4':
         case 'effect7':
         case 'effect8':
         case 'effect9':
         case 'effect11':
         case 'effect12':
         case 'effect13':
//.........这里部分代码省略.........
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:101,代码来源:Ultimate_iHover.php

示例7: ult_info_table_generate_design06

    function ult_info_table_generate_design06($atts, $content = null)
    {
        $icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $el_class = $package_heading = $package_sub_heading = $package_price = $package_unit = $package_btn_text = $package_link = $package_featured = $color_bg_main = $color_txt_main = $color_bg_highlight = $color_txt_highlight = $color_scheme = $use_cta_btn = '';
        extract(shortcode_atts(array('color_scheme' => '', 'package_heading' => '', 'package_sub_heading' => '', 'icon_type' => '', 'icon' => '', 'icon_img' => '', 'img_width' => '', 'icon_size' => '', 'icon_color' => '', 'icon_style' => '', 'icon_color_bg' => '', 'icon_color_border' => '', 'icon_border_style' => '', 'icon_border_size' => '', 'icon_border_radius' => '', 'icon_border_spacing' => '', 'use_cta_btn' => '', 'package_btn_text' => '', 'package_link' => '', 'package_featured' => '', 'color_bg_main' => '', 'color_txt_main' => '', 'color_bg_highlight' => '', 'color_txt_highlight' => '', 'heading_font_family' => '', 'heading_font_style' => '', 'heading_font_size' => '', 'heading_font_color' => '', 'heading_line_height' => '', 'subheading_font_family' => '', 'subheading_font_style' => '', 'subheading_font_size' => '', 'subheading_font_color' => '', 'subheading_line_height' => '', 'features_font_family' => '', 'features_font_style' => '', 'features_font_size' => '', 'features_font_color' => '', 'features_line_height' => '', 'button_font_family' => '', 'button_font_style' => '', 'button_font_size' => '', 'button_font_color' => '', 'button_line_height' => '', 'el_class' => ''), $atts));
        $output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
        if ($icon_type !== "none") {
            $box_icon = do_shortcode('[just_icon icon_type="' . $icon_type . '" icon="' . $icon . '" icon_img="' . $icon_img . '" img_width="' . $img_width . '" icon_size="' . $icon_size . '" icon_color="' . $icon_color . '" icon_style="' . $icon_style . '" icon_color_bg="' . $icon_color_bg . '" icon_color_border="' . $icon_color_border . '"  icon_border_style="' . $icon_border_style . '" icon_border_size="' . $icon_border_size . '" icon_border_radius="' . $icon_border_radius . '" icon_border_spacing="' . $icon_border_spacing . '"]');
        }
        if ($color_scheme == "custom") {
            if ($color_bg_main !== "") {
                $normal_style .= 'background:' . $color_bg_main . ';';
            }
            if ($color_txt_main !== "") {
                $normal_style .= 'color:' . $color_txt_main . ';';
            }
            if ($color_bg_highlight !== "") {
                $featured_style .= 'background:' . $color_bg_highlight . ';';
            }
            if ($color_txt_highlight !== "") {
                $featured_style .= 'color:' . $color_txt_highlight . ';';
            }
        }
        if ($package_link !== "") {
            $link = vc_build_link($package_link);
            if (isset($link['target'])) {
                $target = 'target="' . $link['target'] . '"';
            } else {
                $target = '';
            }
            $link = $link['url'];
        } else {
            $link = "#";
        }
        if ($package_featured !== "") {
            $featured = "ult_featured";
        }
        if ($use_cta_btn == "box") {
            $output .= '<a href="' . $link . '" ' . $target . ' class="ult_price_action_button">' . $package_btn_text;
        }
        /* typography */
        $heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
        // heading
        if ($heading_font_family != '') {
            $hdfont_family = get_ultimate_font_family($heading_font_family);
            $heading_style_inline .= 'font-family:\'' . $hdfont_family . '\';';
        }
        $heading_style_inline .= get_ultimate_font_style($heading_font_style);
        if ($heading_font_size != '') {
            $heading_style_inline .= 'font-size:' . $heading_font_size . 'px;';
        }
        if ($heading_font_color != '') {
            $heading_style_inline .= 'color:' . $heading_font_color . ';';
        }
        if ($heading_line_height != '') {
            $heading_style_inline .= 'line-height:' . $heading_line_height . 'px;';
        }
        // sub heading
        if ($subheading_font_family != '') {
            $shfont_family = get_ultimate_font_family($subheading_font_family);
            $sub_heading_inline .= 'font-family:\'' . $shfont_family . '\';';
        }
        $sub_heading_inline .= get_ultimate_font_style($subheading_font_style);
        if ($subheading_font_size != '') {
            $sub_heading_inline .= 'font-size:' . $subheading_font_size . 'px;';
        }
        if ($subheading_font_color != '') {
            $sub_heading_inline .= 'color:' . $subheading_font_color . ';';
        }
        if ($subheading_line_height != '') {
            $sub_heading_inline .= 'line-height:' . $subheading_line_height . 'px;';
        }
        // features
        if ($features_font_family != '') {
            $featuresfont_family = get_ultimate_font_family($features_font_family);
            $features_inline .= 'font-family:\'' . $featuresfont_family . '\';';
        }
        $features_inline .= get_ultimate_font_style($features_font_style);
        if ($features_font_size != '') {
            $features_inline .= 'font-size:' . $features_font_size . 'px;';
        }
        if ($features_font_color != '') {
            $features_inline .= 'color:' . $features_font_color . ';';
        }
        if ($features_line_height != '') {
            $features_inline .= 'line-height:' . $features_line_height . 'px;';
        }
        // button
        if ($button_font_family != '') {
            $buttonfont_family = get_ultimate_font_family($button_font_family);
            $button_inline .= 'font-family:\'' . $buttonfont_family . '\';';
        }
        $button_inline .= get_ultimate_font_style($button_font_style);
        if ($button_font_size != '') {
            $button_inline .= 'font-size:' . $button_font_size . 'px;';
        }
        if ($button_font_color != '') {
            $button_inline .= 'color:' . $button_font_color . ';';
        }
        if ($button_line_height != '') {
            $button_inline .= 'line-height:' . $button_line_height . 'px;';
//.........这里部分代码省略.........
开发者ID:ksingh812,项目名称:epb,代码行数:101,代码来源:info-table-design06.php

示例8: ult_createlink_shortcode

        function ult_createlink_shortcode($atts)
        {
            extract(shortcode_atts(array('btn_link' => '', 'text_color' => '#333333', 'text_hovercolor' => '#333333', 'background_color' => '#ffffff', 'bghovercolor' => '', 'font_family' => '', 'heading_style' => '', 'title_font_size' => '', 'title_line_ht' => '', 'link_hover_style' => '', 'border_style' => 'solid', 'border_color' => '#333333', 'border_hovercolor' => '#333333', 'border_size' => '1', 'el_class' => '', 'dot_color' => '#333333', 'css' => '', 'title' => '', 'text_style' => ''), $atts));
            $href = $target = $text = $url = $alt_text = "";
            if ($btn_link !== '') {
                $href = vc_build_link($btn_link);
                $target = isset($href['target']) ? "target='" . trim($href['target']) . "'" : '';
                $alt_text = $href['title'];
                $url = $href['url'];
                if ($url == '') {
                    $url = "javascript:void(0);";
                }
            } else {
                $url = "javascript:void(0);";
            }
            /*--- design option---*/
            if ($title !== '') {
                $text = $title;
            } else {
                $text = $alt_text;
            }
            $css_class = '';
            $title_style = '';
            $secondtitle_style = $span_style = '';
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css, ' '), "ult_createlink", $atts);
            $css_class = esc_attr($css_class);
            if ($link_hover_style == 'Style_2') {
                $span_style = 'background:' . $background_color . ';';
                //background-color
            }
            /*--- hover effect for link-----*/
            $data_link = '';
            if ($link_hover_style == '') {
                $data_link .= 'data-textcolor="' . $text_color . '"';
                $data_link .= 'data-texthover="' . $text_hovercolor . '"';
            } else {
                $data_link .= 'data-textcolor="' . $text_color . '"';
                $data_link .= 'data-texthover="' . $text_hovercolor . '"';
            }
            if ($link_hover_style == 'Style_2') {
                if ($text_hovercolor == '') {
                    $text_hovercolor = $text_color;
                }
                if ($bghovercolor == '') {
                    $bghovercolor = $background_color;
                }
                if ($text_hovercolor == '' && $bghovercolor == '') {
                    $data_link .= 'data-bgcolor="' . $background_color . '"';
                    $data_link .= 'data-bghover="' . $background_color . '"';
                    //$data_link .='data-texthover="'.$text_color.'"';
                } else {
                    $data_link .= 'data-bgcolor="' . $background_color . '"';
                    $data_link .= 'data-bghover="' . $bghovercolor . '"';
                }
                //echo$bghovercolor;
            }
            $data_link .= 'data-style="' . $link_hover_style . '"';
            /*--- border style---*/
            $data_border = '';
            if ($border_style != '') {
                $data_border .= 'border-color:' . $border_color . ';';
                $data_border .= 'border-width:' . $border_size . 'px;';
                $data_border .= 'border-style:' . $border_style . ';';
            }
            $main_span = $before = $borderhover = $ult_style2css = $ult_style11css = '';
            $after = '';
            $style = $class = $id = $colorstyle = $borderstyle = $style11_css_class = '';
            /*---- text typography----*/
            if ($text_style != '') {
                $colorstyle .= 'float:' . $text_style . ';';
            }
            if (function_exists('get_ultimate_font_family')) {
                $mhfont_family = get_ultimate_font_family($font_family);
                //for font family
                if ($mhfont_family != '') {
                    $colorstyle .= 'font-family:' . $mhfont_family . ';';
                }
                //$secondtitle_style .='font-family:'.$mhfont_family.';';
            }
            if (function_exists('get_ultimate_font_style')) {
                //for font style
                $colorstyle .= get_ultimate_font_style($heading_style);
                //$secondtitle_style .=get_ultimate_font_style($heading_style);
            }
            if ($title_font_size != '') {
                $colorstyle .= 'font-size:' . $title_font_size . 'px;';
            }
            //font-size
            $title_style .= 'color:' . $text_color . ';';
            //color
            if ($link_hover_style != 'Style_2') {
                if ($title_line_ht != '') {
                    $colorstyle .= 'line-height:' . $title_line_ht . 'px;';
                    //$colorstyle .='color:'.$text_color.';';
                }
                //font-line-height
            } else {
                if ($title_line_ht != '') {
                    $colorstyle .= 'line-height:' . $title_line_ht . 'px;';
                }
//.........这里部分代码省略.........
开发者ID:timb1981,项目名称:ChamferZone,代码行数:101,代码来源:Ultimate_link.php

示例9: ult_hotspot_items_callback

 function ult_hotspot_items_callback($atts, $content = null)
 {
     global $hotspot_icon, $hotspot_icon_bg_color, $hotspot_icon_color, $hotspot_icon_size;
     extract(shortcode_atts(array('hotspot_content' => '', 'hotspot_label' => '', 'hotspot_position' => '0,0', 'tooltip_content' => '', 'tooltip_width' => '300', 'tooltip_padding' => '', 'tooltip_position' => '', "icon_type" => '', 'icon' => 'Defaults-circle', 'icon_color' => '', 'icon_style' => '', 'icon_color_bg' => '', 'icon_border_style' => '', 'icon_color_border' => '', 'icon_border_size' => '', 'icon_border_radius' => '', 'icon_border_spacing' => '', 'icon_img' => '', 'img_width' => '60', 'icon_size' => '', "alignment" => "center", 'tooltip_trigger' => '', 'tooltip_animation' => '', 'tooltip_continuous_animation' => '', 'enable_bubble_arrow' => '', 'tooltip_custom_bg_color' => '', 'tooltip_custom_color' => '', 'tooltip_font' => '', 'tooltip_font_style' => '', 'tooltip_font_size' => '', 'tooltip_font_line_height' => '', 'tooltip_custom_border_size' => '', 'tooltip_align' => ''), $atts));
     //$content = wpb_js_remove_wpautop($content, false); // fix unclosed/unwanted paragraph tags in $content
     $animatn = $tooltip_continuous_animation;
     if ($animatn == "on") {
         $pulse = "ult-pulse";
     } else {
         $pulse = "";
     }
     if (trim($content) !== '') {
         $hotspot_content = $content;
     }
     /**    Tooltip [Content] Styling 
      *--------------------------------------*/
     $font_args = array();
     $tooltip_content_style = '';
     $tooltip_base_style = '';
     if ($tooltip_font != '') {
         $font_family = get_ultimate_font_family($tooltip_font);
         $tooltip_content_style .= 'font-family:' . $font_family . ';';
         array_push($font_args, $tooltip_font);
     }
     if ($tooltip_font_style != '') {
         $tooltip_content_style .= get_ultimate_font_style($tooltip_font_style);
     }
     if ($tooltip_font_size != '') {
         $tooltip_content_style .= 'font-size:' . $tooltip_font_size . 'px;';
     }
     if ($tooltip_font_line_height != '') {
         $tooltip_content_style .= 'line-height:' . $tooltip_font_line_height . 'px;';
     }
     //  Width
     if ($tooltip_width != '') {
         $tooltip_content_style .= 'width:' . $tooltip_width . 'px;';
     }
     //  Padding
     if ($tooltip_padding != '') {
         $tooltip_content_style .= $tooltip_padding;
     }
     /**
      *    Tooltip [Base] Styling options
      *
      */
     //  Background
     if ($tooltip_custom_bg_color != '') {
         $tooltip_base_style .= 'background-color:' . $tooltip_custom_bg_color . ';';
     }
     /*if($tooltip_theme == 'custom' ) {*/
     if ($tooltip_custom_color != '') {
         $tooltip_base_style .= 'color:' . $tooltip_custom_color . ';';
     }
     //  Border Styling
     if ($tooltip_custom_border_size != '') {
         $bstyle = str_replace('|', '', $tooltip_custom_border_size);
         $tooltip_base_style .= $bstyle;
     }
     if ($tooltip_align != '') {
         $tooltip_base_style .= 'text-align:' . $tooltip_align . ';';
     }
     $data = '';
     if ($tooltip_content_style != '') {
         $data .= 'data-tooltip-content-style="' . $tooltip_content_style . '"';
     }
     if ($tooltip_base_style != '') {
         $data .= 'data-tooltip-base-style="' . $tooltip_base_style . '"';
     }
     if ($enable_bubble_arrow != '' && $enable_bubble_arrow == 'on') {
         $data .= ' data-bubble-arrow="true" ';
     } else {
         $data .= ' data-bubble-arrow="false" ';
     }
     $hotspot_position = explode(',', $hotspot_position);
     if ($icon_type == 'custom') {
         $temp_icon_size = $img_width / 2 - 14;
     } else {
         $temp_icon_size = $icon_size / 2 - 14;
     }
     //$temp_icon_size = 0;
     $hotspot_x_position = $hotspot_position[0];
     $hotspot_y_position = isset($hotspot_position[1]) ? $hotspot_position[1] : '0';
     $tooltip_offsetY = '';
     //if($icon_size != '')  {
     //  set offsetY for tooltip
     $tooltip_offsetY = $temp_icon_size;
     //}
     if ($tooltip_animation != '') {
         $data .= 'data-tooltipanimation="' . $tooltip_animation . '"';
     }
     if ($tooltip_trigger != '') {
         $data .= 'data-trigger="' . $tooltip_trigger . '"';
     }
     if ($tooltip_offsetY != '') {
         $data .= 'data-tooltip-offsety="' . $tooltip_offsetY . '"';
     }
     if ($tooltip_position != '') {
         $data .= 'data-arrowposition="' . $tooltip_position . '"';
     }
     $icon_animation = '';
//.........这里部分代码省略.........
开发者ID:prosenjit-itobuz,项目名称:visual-composer-addons,代码行数:101,代码来源:Ultimate_Hotspot.php

示例10: ultimate_headings_shortcode

 function ultimate_headings_shortcode($atts, $content = null)
 {
     $wrapper_style = $main_heading_style_inline = $sub_heading_style_inline = $line_style_inline = $icon_inline = $output = $el_class = '';
     extract(shortcode_atts(array('main_heading' => '', "main_heading_font_size" => "", "main_heading_font_family" => "", "main_heading_style" => "", "main_heading_color" => "", "main_heading_line_height" => "", "main_heading_margin" => "", "sub_heading" => "", "sub_heading_font_size" => "", "sub_heading_font_family" => "", "sub_heading_style" => "", "sub_heading_color" => "", "sub_heading_line_height" => "", "sub_heading_margin" => "", "spacer" => "", "spacer_position" => "", "spacer_img" => "", "spacer_img_width" => "", "line_style" => "solid", "line_width" => "auto", "line_height" => "1", "line_color" => "#ccc", "icon_type" => "", "icon" => "", "icon_color" => "", "icon_style" => "", "icon_color_bg" => "", "icon_border_style" => "", "icon_color_border" => "", "icon_border_size" => "", "icon_border_radius" => "", "icon_border_spacing" => "", "icon_img" => "", "img_width" => "60", "icon_size" => "", "alignment" => "center", "spacer_margin" => "", "line_icon_fixer" => "", "heading_tag" => "", "el_class" => ""), $atts));
     $wrapper_class = $spacer;
     if ($heading_tag == '') {
         $heading_tag = 'h2';
     }
     /* ---- main heading styles ---- */
     if ($main_heading_font_family != '') {
         $mhfont_family = get_ultimate_font_family($main_heading_font_family);
         if ($mhfont_family) {
             $main_heading_style_inline .= 'font-family:\'' . $mhfont_family . '\';';
         }
     }
     // main heading font style
     $main_heading_style_inline .= get_ultimate_font_style($main_heading_style);
     //attach font size if set
     if ($main_heading_font_size != '') {
         $main_heading_style_inline .= 'font-size:' . $main_heading_font_size . 'px;';
     }
     //attach font color if set
     if ($main_heading_color != '') {
         $main_heading_style_inline .= 'color:' . $main_heading_color . ';';
     }
     //attach margins for main heading
     if ($main_heading_margin != '') {
         $main_heading_style_inline .= $main_heading_margin;
     }
     //line height
     if ($main_heading_line_height != '') {
         $main_heading_style_inline .= 'line-height:' . $main_heading_line_height . 'px;';
     }
     /* ----- sub heading styles ----- */
     if ($sub_heading_font_family != '') {
         $shfont_family = get_ultimate_font_family($sub_heading_font_family);
         if ($shfont_family != '') {
             $sub_heading_style_inline .= 'font-family:\'' . $shfont_family . '\';';
         }
     }
     //sub heaing font style
     $sub_heading_style_inline .= get_ultimate_font_style($sub_heading_style);
     //attach font size if set
     if ($sub_heading_font_size != '') {
         $sub_heading_style_inline .= 'font-size:' . $sub_heading_font_size . 'px;';
     }
     //attach font color if set
     if ($sub_heading_color != '') {
         $sub_heading_style_inline .= 'color:' . $sub_heading_color . ';';
     }
     //attach margins for sub heading
     if ($sub_heading_margin != '') {
         $sub_heading_style_inline .= $sub_heading_margin;
     }
     //line height
     if ($sub_heading_line_height != '') {
         $sub_heading_style_inline .= 'line-height:' . $sub_heading_line_height . 'px;';
     }
     if ($spacer != '') {
         $wrapper_style .= $spacer_margin;
     }
     if ($spacer == 'line_with_icon') {
         if ($line_width < $icon_size) {
             $wrap_width = $icon_size;
         } else {
             $wrap_width = $line_width;
         }
         if ($icon_type == 'selector') {
             if ($icon_style == 'advanced') {
                 //if($icon_border_spacing != '')
                 //$wrapper_style .= 'padding:'.$icon_border_spacing.'px 0;';
             } else {
                 $wrapper_style .= 'height:' . $icon_size . 'px;';
             }
         }
         $icon_style_inline = 'font-size:' . $icon_size . 'px;';
     } else {
         if ($spacer == 'line_only') {
             $wrap_width = $line_width;
             $line_style_inline = 'border-style:' . $line_style . ';';
             $line_style_inline .= 'border-bottom-width:' . $line_height . 'px;';
             $line_style_inline .= 'border-color:' . $line_color . ';';
             $line_style_inline .= 'width:' . $wrap_width . 'px;';
             $wrapper_style .= 'height:' . $line_height . 'px;';
             $line = '<span class="uvc-headings-line" style="' . $line_style_inline . '"></span>';
             $icon_inline = $line;
         } else {
             if ($spacer == 'icon_only') {
                 $icon_style_inline = 'font-size:' . $icon_size . 'px;';
             } else {
                 if ($spacer == 'image_only') {
                     if (!empty($spacer_img_width)) {
                         $siwidth = array($spacer_img_width, $spacer_img_width);
                     } else {
                         $siwidth = 'full';
                     }
                     $icon_inline = wp_get_attachment_image($spacer_img, $siwidth, false, array("class" => "ultimate-headings-icon-image"));
                 }
             }
         }
//.........这里部分代码省略.........
开发者ID:srinivasulurao,项目名称:transcharity,代码行数:101,代码来源:Ultimate_Headings.php

示例11: ultimate_fancytext_shortcode

        function ultimate_fancytext_shortcode($atts, $content = null)
        {
            $output = $fancytext_strings = $fancytext_prefix = $fancytext_suffix = $fancytext_effect = $strings_textspeed = $strings_tickerspeed = $typewriter_cursor = $typewriter_cursor_text = $typewriter_loop = $fancytext_align = $strings_font_family = $strings_font_style = $strings_font_size = $sufpref_color = $strings_line_height = $strings_startdelay = $strings_backspeed = $strings_backdelay = $ticker_wait_time = $ticker_show_items = $ticker_hover_pause = $ex_class = '';
            $prefsuf_font_family = $prefsuf_font_style = $prefix_suffix_font_size = $prefix_suffix_line_height = $sufpref_bg_color = '';
            $id = uniqid(rand());
            extract(shortcode_atts(array('fancytext_strings' => '', 'fancytext_prefix' => '', 'fancytext_suffix' => '', 'fancytext_effect' => 'typewriter', 'strings_textspeed' => '35', 'strings_tickerspeed' => '200', 'typewriter_loop' => 'true', 'typewriter_cursor_color' => '', 'fancytext_tag' => 'div', 'fancytext_align' => 'center', 'strings_font_family' => '', 'strings_font_style' => '', 'strings_font_size' => '', 'sufpref_color' => '', 'strings_line_height' => '', 'strings_startdelay' => '200', 'strings_backspeed' => '0', 'strings_backdelay' => '1500', 'typewriter_cursor' => 'true', 'typewriter_cursor_text' => '|', 'ticker_wait_time' => '3000', 'ticker_show_items' => '1', 'ticker_hover_pause' => '', 'ticker_background' => '', 'fancytext_color' => '', 'prefsuf_font_family' => '', 'prefsuf_font_style' => '', 'prefix_suffix_font_size' => '', 'prefix_suffix_line_height' => '', 'sufpref_bg_color' => '', 'ex_class' => '', 'css_fancy_design' => ''), $atts));
            $vc_version = defined('WPB_VC_VERSION') ? WPB_VC_VERSION : 0;
            $is_vc_49_plus = version_compare(4.9, $vc_version, '<=') ? 'ult-adjust-bottom-margin' : '';
            $string_inline_style = $vticker_inline = $valign = $prefsuf_style = $css_design_style = '';
            $css_design_style = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css_fancy_design, ' '), "ultimate_fancytext", $atts);
            $css_design_style = esc_attr($css_design_style);
            if ($strings_font_family != '') {
                $font_family = get_ultimate_font_family($strings_font_family);
                if ($font_family !== '') {
                    $string_inline_style .= 'font-family:\'' . $font_family . '\';';
                }
            }
            $string_inline_style .= get_ultimate_font_style($strings_font_style);
            if ($prefsuf_font_family != '') {
                $font_family = get_ultimate_font_family($prefsuf_font_family);
                if ($font_family !== '') {
                    $prefsuf_style .= 'font-family:\'' . $font_family . '\';';
                }
            }
            $prefsuf_style .= get_ultimate_font_style($prefsuf_font_style);
            // if($strings_font_size != '')
            // 	$string_inline_style .= 'font-size:'.$strings_font_size.'px;';
            // if($strings_line_height != '')
            // 	$string_inline_style .= 'line-height:'.$strings_line_height.'px;';
            $fancy_text_id = 'uvc-type-wrap-' . rand(1000, 9999);
            if (is_numeric($strings_font_size)) {
                $strings_font_size = 'desktop:' . $strings_font_size . 'px;';
            }
            if (is_numeric($strings_line_height)) {
                $strings_line_height = 'desktop:' . $strings_line_height . 'px;';
            }
            $fancy_args = array('target' => '#' . $fancy_text_id . '', 'media_sizes' => array('font-size' => $strings_font_size, 'line-height' => $strings_line_height));
            $data_list = get_ultimate_vc_responsive_media_css($fancy_args);
            if (is_numeric($prefix_suffix_font_size)) {
                $prefix_suffix_font_size = 'desktop:' . $prefix_suffix_font_size . 'px !important;';
            }
            if (is_numeric($prefix_suffix_line_height)) {
                $prefix_suffix_line_height = 'desktop:' . $prefix_suffix_line_height . 'px !important;';
            }
            $fancy_prefsuf_args = array('target' => '#' . $fancy_text_id . ' .mycustfancy', 'media_sizes' => array('font-size' => $prefix_suffix_font_size, 'line-height' => $prefix_suffix_line_height));
            $prefsuf_data_list = get_ultimate_vc_responsive_media_css($fancy_prefsuf_args);
            if ($sufpref_color != '') {
                $prefsuf_style .= 'color:' . $sufpref_color . ';';
            }
            if ($sufpref_bg_color != '') {
                $prefsuf_style .= 'background :' . $sufpref_bg_color . ';';
            }
            if ($fancytext_align != '') {
                $string_inline_style .= 'text-align:' . $fancytext_align . ';';
            }
            // Order of replacement
            $order = array("\r\n", "\n", "\r", "<br/>", "<br>");
            $replace = '|';
            // Processes \r\n's first so they aren't converted twice.
            $str = str_replace($order, $replace, $fancytext_strings);
            $lines = explode("|", $str);
            $count_lines = count($lines);
            $ex_class .= ' uvc-type-align-' . $fancytext_align . ' ';
            if ($fancytext_prefix == '') {
                $ex_class .= 'uvc-type-no-prefix';
            }
            if ($fancytext_color != '') {
                $vticker_inline .= 'color:' . $fancytext_color . ';';
            }
            if ($ticker_background != '') {
                $vticker_inline .= 'background:' . $ticker_background . ';';
                if ($fancytext_effect == 'typewriter') {
                    $valign = 'fancytext-typewriter-background-enabled';
                } else {
                    $valign = 'fancytext-background-enabled';
                }
            }
            $ultimate_js = get_option('ultimate_js');
            $output = '<' . $fancytext_tag . ' id="' . $fancy_text_id . '" ' . $data_list . ' class="uvc-type-wrap ' . $css_design_style . ' ' . $is_vc_49_plus . ' ult-responsive ' . $ex_class . ' uvc-wrap-' . $id . '" style="' . $string_inline_style . '">';
            if (trim($fancytext_prefix) != '') {
                $output .= '<span ' . $prefsuf_data_list . ' class="ultimate-' . $fancytext_effect . '-prefix mycustfancy ult-responsive" style="' . $prefsuf_style . '">' . ltrim($fancytext_prefix) . '</span>';
            }
            if ($fancytext_effect == 'ticker' || $fancytext_effect == 'ticker-down') {
                if ($ultimate_js != 'enable') {
                    wp_enqueue_script('ultimate-vticker-js');
                }
                if ($strings_font_size != '') {
                    $inherit_font_size = 'ultimate-fancy-text-inherit';
                } else {
                    $inherit_font_size = '';
                }
                if ($ticker_hover_pause != 'true') {
                    $ticker_hover_pause = 'false';
                }
                if ($fancytext_effect == 'ticker-down') {
                    $direction = "down";
                } else {
                    $direction = "up";
                }
                $output .= '<div id="vticker-' . $id . '" ' . $data_list . ' class="ultimate-vticker ' . $fancytext_effect . ' ' . $valign . ' ' . $inherit_font_size . '" style="' . $vticker_inline . '"><ul>';
//.........这里部分代码省略.........
开发者ID:ksan5835,项目名称:maadithottam,代码行数:101,代码来源:Ultimate_Fancy_Text.php

示例12: info_list_item

 function info_list_item($atts, $content = null)
 {
     // Do nothing
     $list_title = $list_icon = $animation = $icon_color = $icon_bg_color = $icon_img = $icon_type = $desc_font_line_height = $title_font_line_height = '';
     $title_font = $title_font_style = $title_font_size = $title_font_color = $desc_font = $desc_font_style = $desc_font_size = $desc_font_color = '';
     extract(shortcode_atts(array('list_title' => '', 'animation' => '', 'list_icon' => '', 'icon_img' => '', 'icon_type' => '', 'title_font' => '', 'title_font_style' => '', 'title_font_size' => '16', 'title_font_line_height' => '24', 'title_font_color' => '', 'desc_font' => '', 'desc_font_style' => '', 'desc_font_size' => '13', 'desc_font_color' => '', 'desc_font_line_height' => '18', 'info_list_link' => '', 'info_list_link_apply' => ''), $atts));
     //$content =  wpb_js_remove_wpautop($content);
     $css_trans = $style = $ico_col = $connector_trans = $icon_html = $title_style = $desc_style = $info_list_link_html = '';
     $font_args = array();
     $is_link = false;
     if ($info_list_link != '') {
         $info_list_link_temp = vc_build_link($info_list_link);
         $url = $info_list_link_temp['url'];
         $title = $info_list_link_temp['title'];
         $target = $info_list_link_temp['target'];
         if ($url != '') {
             if ($target != '') {
                 $target = 'target="' . $target . '"';
             }
             $info_list_link_html = '<a href="' . $url . '" class="ulimate-info-list-link" ' . $target . '></a>';
         }
         $is_link = true;
     }
     /* title */
     if ($title_font != '') {
         $font_family = get_ultimate_font_family($title_font);
         $title_style .= 'font-family:' . $font_family . ';';
         array_push($font_args, $title_font);
     }
     if ($title_font_style != '') {
         $title_style .= get_ultimate_font_style($title_font_style);
     }
     if ($title_font_size != '') {
         $title_style .= 'font-size:' . $title_font_size . 'px;';
     }
     if ($title_font_line_height != '') {
         $title_style .= 'line-height:' . $title_font_line_height . 'px;';
     }
     if ($title_font_color != '') {
         $title_style .= 'color:' . $title_font_color . ';';
     }
     /* description */
     if ($desc_font != '') {
         $font_family = get_ultimate_font_family($desc_font);
         $desc_style .= 'font-family:' . $font_family . ';';
         array_push($font_args, $desc_font);
     }
     if ($desc_font_style != '') {
         $desc_style .= get_ultimate_font_style($desc_font_style);
     }
     if ($desc_font_size != '') {
         $desc_style .= 'font-size:' . $desc_font_size . 'px;';
     }
     if ($desc_font_line_height != '') {
         $desc_style .= 'line-height:' . $desc_font_line_height . 'px;';
     }
     if ($desc_font_color != '') {
         $desc_style .= 'color:' . $desc_font_color . ';';
     }
     enquque_ultimate_google_fonts($font_args);
     if ($animation !== 'none') {
         $css_trans = 'data-animation="' . $animation . '" data-animation-delay="03"';
     }
     if ($this->connector_animate) {
         $connector_trans = 'data-animation="' . $this->connector_animate . '" data-animation-delay="02"';
     }
     if ($icon_color != '') {
         $ico_col = 'style="color:' . $icon_color . '";';
     }
     if ($icon_bg_color != '') {
         $style .= 'background:' . $icon_bg_color . ';  color:' . $icon_bg_color . ';';
     }
     if ($icon_bg_color != '') {
         $style .= 'border-color:' . $this->border_col . ';';
     }
     if ($icon_type == "selector") {
         $icon_html .= '<div class="icon_list_icon" ' . $css_trans . ' style="' . $this->icon_style . '">';
         $icon_html .= '<i class="' . $list_icon . '" ' . $ico_col . '></i>';
         if ($is_link && $info_list_link_apply == 'icon') {
             $icon_html .= $info_list_link_html;
         }
         $icon_html .= '</div>';
     } else {
         $img = wp_get_attachment_image_src($icon_img, 'large');
         $icon_html .= '<div class="icon_list_icon" ' . $css_trans . ' style="' . $this->icon_style . '">';
         $icon_html .= '<img class="list-img-icon" alt="icon" src="' . $img[0] . '"/>';
         if ($is_link && $info_list_link_apply == 'icon') {
             $icon_html .= $info_list_link_html;
         }
         $icon_html .= '</div>';
     }
     $output = '<li class="icon_list_item" style=" ' . $this->icon_font . '">';
     $output .= $icon_html;
     $output .= '<div class="icon_description">';
     if ($list_title != '') {
         $output .= '<h3 style="' . $title_style . '">';
         if ($is_link && $info_list_link_apply == 'title') {
             $output .= '<a href="' . $url . '" target="' . $target . '">' . $list_title . '</a>';
         } else {
             $output .= $list_title;
//.........这里部分代码省略.........
开发者ID:prosenjit-itobuz,项目名称:upages,代码行数:101,代码来源:Ultimate_Info_List.php

示例13: ultimate_main_tab

        function ultimate_main_tab($atts, $content)
        {
            $output = $title = $interval = $el_class = $shadow_color = $shadow_width = '';
            extract(shortcode_atts(array('title_color' => '', 'auto_rotate' => '', 'interval' => 0, 'tab_style' => 'Style_1', 'tab_bottom_border' => 'Disable', 'border_color' => '#1e73be', 'border_thickness' => '2', 'tab_title_color' => '#74777b', 'tab_hover_title_color' => '#ffffff', 'tab_background_color' => '#e7ecea', 'tab_hover_background_color' => '#4f90d1', 'container_width' => '', 'el_class' => '', 'container_width' => '', 'main_heading_font_family' => '', 'title_font_size' => '15', 'title_font_wt' => '', 'title_line_ht' => '', 'desc_font_family' => '', 'desc_font_size' => '', 'desc_font_style' => '', 'desc_line_ht' => '', 'shadow_color' => '#333333', 'shadow_width' => '', 'enable_bg_color' => '', 'container_border_style1' => '', 'container_color_border' => '', 'cont_border_size' => '', 'tabs_border_radius' => '8', 'tab_animation' => 'Slide', 'tab_describe_color' => '#74777b', 'title_font_style' => '', 'css' => '', 'act_icon_color' => '', 'acttab_background' => '', 'acttab_title' => '', 'resp_type' => 'Tabs', 'resp_width' => '400', 'resp_style' => 'Both', 'ac_tabs' => '', 'icon_color' => '#74777b', 'icon_hover_color' => '#ffffff', 'icon_size' => '15', 'icon_margin' => '', 'disp_icon' => 'Enable', 'tab_css' => ' ', 'font_icons_position' => 'Right', 'main_title_typograpy' => '', 'tab_max' => 'off', 'wrapper_margin' => ''), $atts));
            global $tabarr;
            $tabarr = array();
            do_shortcode($content);
            /*-----------default settings------------*/
            if ($acttab_background == '') {
                $acttab_background = $tab_hover_background_color;
            }
            if ($acttab_title == '') {
                $acttab_title = $tab_hover_title_color;
            }
            /*---------------padding---------------------*/
            $css_class = '';
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css, ' '), "ult_tab_element", $atts);
            $css_class = esc_attr($css_class);
            if ($tabs_border_radius != '') {
                //echo $tabs_border_radius;
            }
            /*-------------------font style------------------*/
            if ($tab_style == 'Style_5') {
                //$tab_bottom_border=='Enable';
            }
            $container_style = $ult_style = $tab_style_no = '';
            if ($tab_bottom_border == 'Disable') {
                $border_thickness = "0";
                $border_color = "transparent";
            }
            if ($container_width != '') {
                $container_style = 'max-width:' . $container_width . 'px;';
            }
            $border_Style = $mhfont_family = $border_style = '';
            $tabs_nav_style = '';
            // if($title_font_size!='')
            // $tabs_nav_style .= 'font-size:'.$title_font_size.'px;';
            // if($title_line_ht!='')
            // $tabs_nav_style .='line-height:'.$title_line_ht.'px;';
            if (is_numeric($title_font_size)) {
                $title_font_size = 'desktop:' . $title_font_size . 'px;';
            }
            if (is_numeric($title_line_ht)) {
                $title_line_ht = 'desktop:' . $title_line_ht . 'px;';
            }
            $advanced_tabs_id = 'advanced-tabs-wrap-' . rand(1000, 9999);
            $advanced_tabs_args = array('target' => '#' . $advanced_tabs_id . ' .ult-span-text', 'media_sizes' => array('font-size' => $title_font_size, 'line-height' => $title_line_ht));
            $advanced_tabs_data_list = get_ultimate_vc_responsive_media_css($advanced_tabs_args);
            if (function_exists('get_ultimate_font_family')) {
                $mhfont_family = get_ultimate_font_family($main_heading_font_family);
                if ($mhfont_family != '') {
                    $tabs_nav_style .= 'font-family:' . $mhfont_family . ';';
                }
            }
            if (function_exists('get_ultimate_font_style')) {
                if ($title_font_style != '') {
                    $tabs_nav_style .= get_ultimate_font_style($title_font_style);
                }
            }
            /*-------------------auto rotate------------------*/
            if ($auto_rotate == 'Disables') {
                $interval = 0;
                $autorotate = 'no';
            } else {
                $autorotate = 'yes';
            }
            if ($tab_background_color == '') {
                $tab_background_color = "transparent";
            }
            $element = 'wpb_tabs';
            //if ( 'vc_tour' == $this->shortcode ) $element = 'wpb_tour';
            $ul_style = $tabs_nav = $style = '';
            /*------------------- style------------------*/
            if ($tab_style == 'Style_1') {
                $style = 'style1';
            } else {
                if ($tab_style == 'Style_2') {
                    $style = 'style2';
                } else {
                    if ($tab_style == 'Style_3') {
                        $style = 'style3';
                    } else {
                        if ($tab_style == 'Style_4') {
                            $ult_style = 'ult_tab_style_4';
                            $style = 'style1';
                        } else {
                            if ($tab_style == 'Style_5') {
                                $ult_style = 'ult_tab_style_5';
                                $style = 'style1';
                            } else {
                                if ($tab_style == 'Style_6') {
                                    $ult_style = 'ult_tab_style_6';
                                    $style = 'style1';
                                }
                            }
                        }
                    }
                }
            }
            foreach ($tabarr as $key => $value) {
//.........这里部分代码省略.........
开发者ID:jeanzum,项目名称:prueba,代码行数:101,代码来源:Ultimate_Tab.php

示例14: info_list_item

 function info_list_item($atts, $content = null)
 {
     // Do nothing
     $list_title = $list_icon = $animation = $icon_color = $icon_bg_color = $icon_img = $icon_type = $desc_font_line_height = $title_font_line_height = '';
     $title_font = $title_font_style = $title_font_size = $title_font_color = $desc_font = $desc_font_style = $desc_font_size = $desc_font_color = '';
     extract(shortcode_atts(array('list_title' => '', 'animation' => '', 'list_icon' => '', 'icon_img' => '', 'icon_type' => '', 'title_font' => '', 'title_font_style' => '', 'title_font_size' => '16', 'title_font_line_height' => '24', 'title_font_color' => '', 'desc_font' => '', 'desc_font_style' => '', 'desc_font_size' => '13', 'desc_font_color' => '', 'desc_font_line_height' => '18', 'info_list_link' => '', 'info_list_link_apply' => ''), $atts));
     //$content =  wpb_js_remove_wpautop($content);
     $css_trans = $style = $ico_col = $connector_trans = $icon_html = $title_style = $desc_style = $info_list_link_html = '';
     //$font_args = array();
     $is_link = false;
     if ($info_list_link != '') {
         $info_list_link_temp = vc_build_link($info_list_link);
         $url = $info_list_link_temp['url'];
         $title = $info_list_link_temp['title'];
         $target = $info_list_link_temp['target'];
         if ($url != '') {
             if ($target != '') {
                 $target = 'target="' . $target . '"';
             }
             $info_list_link_html = '<a href="' . $url . '" class="ulimate-info-list-link" ' . $target . '></a>';
         }
         $is_link = true;
     }
     /* title */
     if ($title_font != '') {
         $font_family = get_ultimate_font_family($title_font);
         $title_style .= 'font-family:\'' . $font_family . '\';';
         //array_push($font_args, $title_font);
     }
     if ($title_font_style != '') {
         $title_style .= get_ultimate_font_style($title_font_style);
     }
     // if($title_font_size != '')
     // 	$title_style .= 'font-size:'.$title_font_size.'px;';
     // if($title_font_line_height != '')
     // 	$title_style .= 'line-height:'.$title_font_line_height.'px;';
     if (is_numeric($title_font_size)) {
         $title_font_size = 'desktop:' . $title_font_size . 'px;';
     }
     if (is_numeric($title_font_line_height)) {
         $title_font_line_height = 'desktop:' . $title_font_line_height . 'px;';
     }
     $info_list_id = 'Info-list-wrap-' . rand(1000, 9999);
     $info_list_args = array('target' => '#' . $info_list_id . ' h3', 'media_sizes' => array('font-size' => $title_font_size, 'line-height' => $title_font_line_height));
     $info_list_data_list = get_ultimate_vc_responsive_media_css($info_list_args);
     if ($title_font_color != '') {
         $title_style .= 'color:' . $title_font_color . ';';
     }
     /* description */
     if ($desc_font != '') {
         $font_family = get_ultimate_font_family($desc_font);
         $desc_style .= 'font-family:\'' . $font_family . '\';';
         //array_push($font_args, $desc_font);
     }
     if ($desc_font_style != '') {
         $desc_style .= get_ultimate_font_style($desc_font_style);
     }
     // if($desc_font_size != '')
     // 	$desc_style .= 'font-size:'.$desc_font_size.'px;';
     // if($desc_font_line_height != '')
     // 	$desc_style .= 'line-height:'.$desc_font_line_height.'px;';
     if (is_numeric($desc_font_size)) {
         $desc_font_size = 'desktop:' . $desc_font_size . 'px;';
     }
     if (is_numeric($desc_font_line_height)) {
         $desc_font_line_height = 'desktop:' . $desc_font_line_height . 'px;';
     }
     $info_list_desc_args = array('target' => '#' . $info_list_id . ' .icon_description_text', 'media_sizes' => array('font-size' => $desc_font_size, 'line-height' => $desc_font_line_height));
     $info_list_desc_data_list = get_ultimate_vc_responsive_media_css($info_list_desc_args);
     if ($desc_font_color != '') {
         $desc_style .= 'color:' . $desc_font_color . ';';
     }
     //enquque_ultimate_google_fonts($font_args);
     if ($animation !== 'none') {
         $css_trans = 'data-animation="' . $animation . '" data-animation-delay="03"';
     }
     if ($this->connector_animate) {
         $connector_trans = 'data-animation="' . $this->connector_animate . '" data-animation-delay="03"';
     }
     if ($icon_color != '') {
         $ico_col = 'style="color:' . $icon_color . '";';
     }
     if ($icon_bg_color != '') {
         $style .= 'background:' . $icon_bg_color . ';  color:' . $icon_bg_color . ';';
     }
     if ($icon_bg_color != '') {
         $style .= 'border-color:' . $this->border_col . ';';
     }
     if ($icon_type == "custom") {
         $img = apply_filters('ult_get_img_single', $icon_img, 'url', 'large');
         $alt = apply_filters('ult_get_img_single', $icon_img, 'alt');
         if ($alt == '') {
             $alt = 'icon';
         }
         //if(!empty($img)){
         $icon_html .= '<div class="icon_list_icon" ' . $css_trans . ' style="' . $this->icon_style . '">';
         $icon_html .= '<img class="list-img-icon" alt="' . $alt . '" src="' . apply_filters('ultimate_images', $img) . '"/>';
         if ($is_link && $info_list_link_apply == 'icon') {
             $icon_html .= $info_list_link_html;
         }
//.........这里部分代码省略.........
开发者ID:ksan5835,项目名称:maadithottam,代码行数:101,代码来源:Ultimate_Info_List.php

示例15: ultimate_video_banner_shortcode

 function ultimate_video_banner_shortcode($atts, $content = null)
 {
     extract(shortcode_atts(array('video_banner_mp4_link' => '', 'video_banner_webm_ogg_link' => '', 'video_banner_effect' => 'ult-vdo-effect-style1', 'video_banner_placeholder' => '', 'video_banner_title' => '', 'video_banner_content' => '', 'title_font_family' => '', 'title_font_style' => '', 'title_font_size' => '', 'title_color' => '', 'title_line_height' => '', 'desc_font_family' => '', 'desc_font_style' => '', 'desc_font_size' => '', 'desc_color' => '', 'desc_line_height' => '', 'video_banner_size' => '', 'video_banner_overlay_color' => '', 'video_banner_overlay_hover_color' => '', 'video_banner_vc_css' => '', 'video_banner_start_time' => '0', 'video_banner_mute' => ''), $atts));
     $output = $placeholder = $placeholder_css = $vc_css_class = '';
     $vc_css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($video_banner_vc_css, ' '), 'ultimate_video_banner', $atts);
     $video_id = 'ult-video-banner-' . uniqid(rand());
     $args = array('target' => '#' . $video_id, 'media_sizes' => array('width' => $video_banner_size));
     $banner_height_responsive_data = get_ultimate_vc_responsive_media_css($args);
     if (preg_match('/^#[a-f0-9]{6}$/i', $video_banner_overlay_color)) {
         $video_banner_overlay_color = hex2rgbUltParallax($video_banner_overlay_color, $opacity = 0.8);
     }
     if (preg_match('/^#[a-f0-9]{6}$/i', $video_banner_overlay_hover_color)) {
         $video_banner_overlay_hover_color = hex2rgbUltParallax($video_banner_overlay_hover_color, $opacity = 0.4);
     }
     /* ---- main heading styles ---- */
     $title_style_inline = '';
     if ($title_font_family != '') {
         $title_font_family = get_ultimate_font_family($title_font_family);
         if ($title_font_family) {
             $title_style_inline .= 'font-family:\'' . $title_font_family . '\';';
         }
     }
     // main heading font style
     $title_style_inline .= get_ultimate_font_style($title_font_style);
     //attach font size if set
     if ($title_font_size != '') {
         $title_style_inline .= 'font-size:' . $title_font_size . 'px;';
     }
     //attach font color if set
     if ($title_color != '') {
         $title_style_inline .= 'color:' . $title_color . ';';
     }
     //line height
     if ($title_line_height != '') {
         $title_style_inline .= 'line-height:' . $title_line_height . 'px;';
     }
     /* ---- description styles ---- */
     $desc_style_inline = '';
     if ($desc_font_family != '') {
         $desc_font_family = get_ultimate_font_family($desc_font_family);
         if ($desc_font_family) {
             $desc_style_inline .= 'font-family:\'' . $desc_font_family . '\';';
         }
     }
     // desc font style
     $desc_style_inline .= get_ultimate_font_style($desc_font_style);
     //attach font size if set
     if ($desc_font_size != '') {
         $desc_style_inline .= 'font-size:' . $desc_font_size . 'px;';
     }
     //attach font color if set
     if ($desc_color != '') {
         $desc_style_inline .= 'color:' . $desc_color . ';';
     }
     //line height
     if ($desc_line_height != '') {
         $desc_style_inline .= 'line-height:' . $desc_line_height . 'px;';
     }
     if ($video_banner_placeholder != '') {
         $img_info = apply_filters('ult_get_img_single', $video_banner_placeholder, 'url', 'full');
         $placeholder = $img_info;
         $placeholder_css = 'background-image:url(' . $placeholder . ');';
     }
     $output = '<div id="' . $video_id . '" class="' . $vc_css_class . ' ult-video-banner ult-vdo-effect ' . $video_banner_effect . ' utl-video-banner-item ult-responsive" ' . $banner_height_responsive_data . ' data-current-time="' . $video_banner_start_time . '" data-placeholder="' . $placeholder . '" style="' . $placeholder_css . '">';
     if ($video_banner_mp4_link != '' || $video_banner_webm_ogg_link != '') {
         $output .= '<video autoplay loop ' . $video_banner_mute . ' poster="' . $placeholder . '">';
         if ($video_banner_mp4_link != '') {
             $output .= '<source src="' . $video_banner_mp4_link . '" type="video/mp4">';
         }
         if ($video_banner_webm_ogg_link != '') {
             $ext = pathinfo($video_banner_webm_ogg_link);
             if ($ext['extension'] == 'webm') {
                 $type = 'webm';
             } else {
                 $type = 'ogg';
             }
             $output .= '<source src="' . $video_banner_webm_ogg_link . '" type="video/' . $type . '">';
         }
         $output .= __('Your browser does not support the video tag.', 'ultimate_vc');
         $output .= '</video>';
     }
     if ($video_banner_title != '' || $content != '') {
         $output .= '<div class="ult-video-banner-desc">';
         if ($video_banner_title != '') {
             $output .= '<h2 class="ult-video-banner-title" style="' . $title_style_inline . '">' . __($video_banner_title, 'ultimate_vc') . '</h2>';
         }
         if ($video_banner_content != '') {
             $output .= '<div class="ult-video-banner-content" style="' . $desc_style_inline . '">' . __($video_banner_content, 'ultimate_vc') . '</div>';
         }
         $output .= '</div>';
     }
     $output .= '<div class="ult-video-banner-overlay" data-overlay="' . $video_banner_overlay_color . '" data-overlay-hover="' . $video_banner_overlay_hover_color . '"></div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:timb1981,项目名称:ChamferZone,代码行数:95,代码来源:Ultimate_Video_Banner.php


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