• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_ultimate_font_family函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了get_ultimate_font_family函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_ultimate_font_style函数代码示例发布时间:2022-05-15
下一篇:
PHP get_ulang函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap