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


PHP get_ultimate_vc_responsive_media_css函数代码示例

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


在下文中一共展示了get_ultimate_vc_responsive_media_css函数的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_img_separator_shortcode

 function ultimate_img_separator_shortcode($atts, $content)
 {
     $output = $wrapper_class = $custom_position = $opacity_start_effect_data = $animation_style = $animation_el_class = $animation_data = '';
     $is_animation = false;
     extract(shortcode_atts(array('img_separator' => '', 'animation' => '', 'img_separator_width' => '', 'img_separator_position' => 'ult-top-easy-separator', 'img_separator_gutter' => '', 'opacity' => 'set', 'opacity_start_effect' => '', 'animation_duration' => '', 'animation_delay' => '', 'animation_iteration_count' => ''), $atts));
     $ultimate_custom_vc_row = get_option('ultimate_custom_vc_row');
     if ($ultimate_custom_vc_row == '') {
         $ultimate_custom_vc_row = 'wpb_row';
     }
     $img = apply_filters('ult_get_img_single', $img_separator, 'url');
     $alt = get_post_meta($img_separator, '_wp_attachment_image_alt', true);
     $id = 'ult-easy-separator-' . uniqid(rand());
     $args = array('target' => '#' . $id, 'media_sizes' => array('width' => $img_separator_width));
     $data_list = get_ultimate_vc_responsive_media_css($args);
     if ($img_separator_gutter != '') {
         $wrapper_class = 'ult-easy-separator-no-default';
         if ($img_separator_position == 'ult-top-easy-separator') {
             $img_separator_gutter = '-' . $img_separator_gutter;
             //$custom_position = 'top:'.$img_separator_gutter.'%;';
             $custom_position .= 'transform: translate(-50%,' . $img_separator_gutter . '%)!important;';
             $custom_position .= '-ms-transform: translate(-50%,' . $img_separator_gutter . '%)!important;';
             $custom_position .= '-webkit-transform: translate(-50%,' . $img_separator_gutter . '%)!important;';
         } else {
             if ($img_separator_position == 'ult-bottom-easy-separator') {
                 //$custom_position = 'bottom:'.$img_separator_gutter.'%;';
                 $custom_position .= 'transform: translate(-50%,' . $img_separator_gutter . '%)!important;';
                 $custom_position .= '-ms-transform: translate(-50%,' . $img_separator_gutter . '%)!important;';
                 $custom_position .= '-webkit-transform: translate(-50%,' . $img_separator_gutter . '%)!important;';
             }
         }
     }
     $animation_style .= 'opacity:0;';
     if (strtolower($animation) !== strtolower('No Animation')) {
         $is_animation = true;
         $inifinite_arr = array("InfiniteRotate", "InfiniteDangle", "InfiniteSwing", "InfinitePulse", "InfiniteHorizontalShake", "InfiniteBounce", "InfiniteFlash", "InfiniteTADA");
         if ($animation_iteration_count == 0 || in_array($animation, $inifinite_arr)) {
             $animation_iteration_count = 'infinite';
             $animation = 'infinite ' . $animation;
         }
         if ($opacity == "set") {
             $animation_el_class .= ' ult-animation ult-animate-viewport ';
             $opacity_start_effect_data = 'data-opacity_start_effect="' . $opacity_start_effect . '"';
         }
         $animation_data .= ' data-animate="' . $animation . '" ';
         $animation_data .= ' data-animation-delay="' . $animation_delay . '" ';
         $animation_data .= ' data-animation-duration="' . $animation_duration . '" ';
         $animation_data .= ' data-animation-iteration="' . $animation_iteration_count . '" ';
     } else {
         $animation_el_class .= 'ult-no-animation';
     }
     $output = '<div id="' . $id . '" class="ult-easy-separator-wrapper ult-responsive ' . $img_separator_position . ' ' . $wrapper_class . '" style="' . $custom_position . '" data-vc-row="' . $ultimate_custom_vc_row . '" ' . $data_list . '>';
     $output .= '<div class="ult-easy-separator-inner-wrapper">';
     $output .= '<div class="' . $animation_el_class . '" style="' . $animation_style . '"  ' . $animation_data . ' ' . $opacity_start_effect_data . '>';
     $output .= '<img class="ult-easy-separator-img" alt="' . $alt . '" src="' . $img . '" />';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:VitaAprel,项目名称:mynotebook,代码行数:59,代码来源:Ultimate_Image_Separator.php

示例3: banner_shortcode

        function banner_shortcode($atts)
        {
            $banner_title = $banner_desc = $banner_image = $banner_link = $banner_style = $el_class = $heading_tag = '';
            $banner_title_font_family = $banner_title_style = $banner_title_font_size = $banner_title_line_height = $banner_desc_font_family = $banner_desc_style = $banner_desc_font_size = $banner_desc_line_height = '';
            $banner_title_style_inline = $banner_desc_style_inline = $banner_color_bg = $banner_color_title = $banner_color_desc = $banner_title_bg = '';
            $image_opacity = $image_opacity_on_hover = $enable_responsive = $responsive_min = $banner_min = $banner_min_height_op = $responsive_max = '';
            extract(shortcode_atts(array('banner_title' => '', 'banner_desc' => '', 'banner_title_location' => '', 'banner_image' => '', 'image_opacity' => '1', 'image_opacity_on_hover' => '1', 'banner_height' => '', 'banner_height_val' => '', 'banner_link' => '', 'banner_style' => '', 'banner_title_font_family' => '', 'banner_title_style' => '', 'banner_title_font_size' => '', 'banner_title_line_height' => '', 'banner_desc_font_family' => '', 'banner_desc_style' => '', 'banner_desc_font_size' => '', 'banner_desc_line_height' => '', 'banner_color_bg' => '', 'banner_color_title' => '', 'banner_color_desc' => '', 'banner_title_bg' => 'banner_style', 'enable_responsive' => 'yes', 'responsive_min' => '768', 'responsive_max' => '900', 'banner_min' => '', 'banner_min_height_op' => 'default', 'el_class' => '', 'heading_tag' => '', 'css_ib2' => ''), $atts));
            $css_ib2_styles = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css_ib2, ' '), "interactive_banner_2", $atts);
            $css_ib2_styles = esc_attr($css_ib2_styles);
            $output = $style = $target = $link = $banner_style_inline = $title_bg = $img_style = $responsive = $target = '';
            //$banner_style = 'style01';
            if ($enable_responsive == "yes") {
                $responsive .= 'data-min-width="' . $responsive_min . '" data-max-width="' . $responsive_max . '"';
                $el_class .= " ult-ib-resp";
            }
            if ($banner_title_bg !== '' && $banner_style == "style5") {
                $title_bg .= 'background:' . $banner_title_bg . ';';
            }
            //$img = wp_get_attachment_image_src( $banner_image, 'full');
            $img = apply_filters('ult_get_img_single', $banner_image, 'url');
            $alt = apply_filters('ult_get_img_single', $banner_image, 'alt');
            if ($banner_link !== '') {
                $href = vc_build_link($banner_link);
                $link = $href['url'];
                $target = isset($href['target']) ? $href['target'] : '';
            } else {
                $link = "#";
            }
            if ($banner_title_font_family != '') {
                $bfamily = get_ultimate_font_family($banner_title_font_family);
                if ($bfamily != '') {
                    $banner_title_style_inline = 'font-family:\'' . $bfamily . '\';';
                }
            }
            $banner_title_style_inline .= get_ultimate_font_style($banner_title_style);
            // if($banner_title_font_size != '')
            // 	$banner_title_style_inline .= 'font-size:'.$banner_title_font_size.'px;';
            if (is_numeric($banner_title_font_size)) {
                $banner_title_font_size = 'desktop:' . $banner_title_font_size . 'px;';
            }
            if (is_numeric($banner_title_line_height)) {
                $banner_title_line_height = 'desktop:' . $banner_title_line_height . 'px;';
            }
            $interactive_banner_id = 'interactive-banner-wrap-' . rand(1000, 9999);
            $interactive_banner_args = array('target' => '#' . $interactive_banner_id . ' .ult-new-ib-title', 'media_sizes' => array('font-size' => $banner_title_font_size, 'line-height' => $banner_title_line_height));
            $interactive_banner_data_list = get_ultimate_vc_responsive_media_css($interactive_banner_args);
            if ($banner_desc_font_family != '') {
                $bdfamily = get_ultimate_font_family($banner_desc_font_family);
                if ($bdfamily != '') {
                    $banner_desc_style_inline = 'font-family:\'' . $bdfamily . '\';';
                }
            }
            $banner_desc_style_inline .= get_ultimate_font_style($banner_desc_style);
            // if($banner_desc_font_size != '')
            // 	$banner_desc_style_inline .= 'font-size:'.$banner_desc_font_size.'px;';
            if (is_numeric($banner_desc_font_size)) {
                $banner_desc_font_size = 'desktop:' . $banner_desc_font_size . 'px;';
            }
            if (is_numeric($banner_desc_line_height)) {
                $banner_desc_line_height = 'desktop:' . $banner_desc_line_height . 'px;';
            }
            $interactive_banner_desc_args = array('target' => '#' . $interactive_banner_id . ' .ult-new-ib-content', 'media_sizes' => array('font-size' => $banner_desc_font_size, 'line-height' => $banner_desc_line_height));
            $interactive_banner_desc_data_list = get_ultimate_vc_responsive_media_css($interactive_banner_desc_args);
            if ($banner_color_bg != '') {
                $banner_style_inline .= 'background:' . $banner_color_bg . ';';
            }
            $banner_min_height = $img_min_height = $img_max_height = $min_height_class = '';
            if ($banner_min_height_op != '' && $banner_min_height_op == 'custom') {
                if ($banner_min != '') {
                    $banner_min_height = ' data-min-height="' . $banner_min . '" ';
                    $img_min_height = ' data-min-height="' . $banner_min . '" ';
                    //$img_max_height = ' data-max-width="none" ';
                    $min_height_class = 'ult-ib2-min-height';
                    $banner_style_inline .= ' opacity:0; ';
                }
            }
            if ($banner_color_title != '') {
                $banner_title_style_inline .= 'color:' . $banner_color_title . ';';
            }
            if ($banner_color_desc != '') {
                $banner_desc_style_inline .= 'color:' . $banner_color_desc . ';';
            }
            //enqueue google font
            /*$args = array(
            			$banner_title_font_family, $banner_desc_font_family
            		);
            		enquque_ultimate_google_fonts($args);*/
            if ($image_opacity !== '') {
                $img_style .= 'opacity:' . $image_opacity . ';';
            }
            if ($link !== "#") {
                $href = 'href="' . $link . '"';
            } else {
                $href = '';
            }
            $heading_tag = isset($heading_tag) && trim($heading_tag) != "" ? $heading_tag : 'h2';
            $output .= '<div class="ult-new-ib ult-ib-effect-' . $banner_style . ' ' . $el_class . ' ' . $min_height_class . ' ' . $css_ib2_styles . '" ' . $responsive . ' style="' . $banner_style_inline . '" data-opacity="' . $image_opacity . '" data-hover-opacity="' . $image_opacity_on_hover . '" ' . $banner_min_height . '>';
            if ($img !== '') {
                $output .= '<img class="ult-new-ib-img" style="' . $img_style . '" alt="' . $alt . '" src="' . apply_filters('ultimate_images', $img) . '" ' . $img_min_height . ' ' . $img_max_height . ' />';
            }
//.........这里部分代码省略.........
开发者ID:ksan5835,项目名称:maadithottam,代码行数:101,代码来源:Ultimate_Interactive_Banner_2.php

示例4: banner_shortcode

 function banner_shortcode($atts)
 {
     $banner_title = $banner_desc = $banner_image = $banner_link = $banner_style = $el_class = $heading_tag = '';
     $banner_title_font_family = $banner_title_style = $banner_title_font_size = $banner_title_line_height = $banner_desc_font_family = $banner_desc_style = $banner_desc_font_size = $banner_desc_line_height = '';
     $banner_title_style_inline = $banner_desc_style_inline = $banner_color_bg = $banner_color_title = $banner_color_desc = $banner_title_bg = '';
     $image_opacity = $image_opacity_on_hover = $enable_responsive = $responsive_min = $banner_min = $banner_min_height_op = $responsive_max = '';
     extract(shortcode_atts(array('banner_title' => '', 'banner_desc' => '', 'banner_title_location' => '', 'banner_image' => '', 'image_opacity' => '1', 'image_opacity_on_hover' => '1', 'banner_height' => '', 'banner_height_val' => '', 'banner_link' => '', 'banner_style' => '', 'banner_title_font_family' => '', 'banner_title_style' => '', 'banner_title_font_size' => '', 'banner_title_line_height' => '', 'banner_desc_font_family' => '', 'banner_desc_style' => '', 'banner_desc_font_size' => '', 'banner_desc_line_height' => '', 'banner_color_bg' => '', 'banner_color_title' => '', 'banner_color_desc' => '', 'banner_title_bg' => 'banner_style', 'enable_responsive' => 'yes', 'responsive_min' => '768', 'responsive_max' => '900', 'banner_min' => '', 'banner_min_height_op' => 'default', 'el_class' => '', 'heading_tag' => ''), $atts));
     $output = $style = $target = $link = $banner_style_inline = $title_bg = $img_style = $responsive = $target = '';
     //$banner_style = 'style01';
     if ($enable_responsive == "yes") {
         $responsive .= 'data-min-width="' . $responsive_min . '" data-max-width="' . $responsive_max . '"';
         $el_class .= "ult-ib-resp";
     }
     if ($banner_title_bg !== '' && $banner_style == "style5") {
         $title_bg .= 'background:' . $banner_title_bg . ';';
     }
     //$img = wp_get_attachment_image_src( $banner_image, 'full');
     $img = apply_filters('ult_get_img_single', $banner_image, 'url');
     if ($banner_link !== '') {
         $href = vc_build_link($banner_link);
         $link = $href['url'];
         $target = isset($href['target']) ? $href['target'] : '';
     } else {
         $link = "#";
     }
     if ($banner_title_font_family != '') {
         $bfamily = get_ultimate_font_family($banner_title_font_family);
         if ($bfamily != '') {
             $banner_title_style_inline = 'font-family:\'' . $bfamily . '\';';
         }
     }
     $banner_title_style_inline .= get_ultimate_font_style($banner_title_style);
     // if($banner_title_font_size != '')
     // 	$banner_title_style_inline .= 'font-size:'.$banner_title_font_size.'px;';
     if (is_numeric($banner_title_font_size)) {
         $banner_title_font_size = 'desktop:' . $banner_title_font_size . 'px;';
     }
     if (is_numeric($banner_title_line_height)) {
         $banner_title_line_height = 'desktop:' . $banner_title_line_height . 'px;';
     }
     $interactive_banner_id = 'interactive-banner-wrap-' . rand(1000, 9999);
     $interactive_banner_args = array('target' => '#' . $interactive_banner_id . ' .ult-new-ib-title', 'media_sizes' => array('font-size' => $banner_title_font_size, 'line-height' => $banner_title_line_height));
     $interactive_banner_data_list = get_ultimate_vc_responsive_media_css($interactive_banner_args);
     if ($banner_desc_font_family != '') {
         $bdfamily = get_ultimate_font_family($banner_desc_font_family);
         if ($bdfamily != '') {
             $banner_desc_style_inline = 'font-family:\'' . $bdfamily . '\';';
         }
     }
     $banner_desc_style_inline .= get_ultimate_font_style($banner_desc_style);
     // if($banner_desc_font_size != '')
     // 	$banner_desc_style_inline .= 'font-size:'.$banner_desc_font_size.'px;';
     if (is_numeric($banner_desc_font_size)) {
         $banner_desc_font_size = 'desktop:' . $banner_desc_font_size . 'px;';
     }
     if (is_numeric($banner_desc_line_height)) {
         $banner_desc_line_height = 'desktop:' . $banner_desc_line_height . 'px;';
     }
     $interactive_banner_desc_args = array('target' => '#' . $interactive_banner_id . ' .ult-new-ib-content', 'media_sizes' => array('font-size' => $banner_desc_font_size, 'line-height' => $banner_desc_line_height));
     $interactive_banner_desc_data_list = get_ultimate_vc_responsive_media_css($interactive_banner_desc_args);
     if ($banner_color_bg != '') {
         $banner_style_inline .= 'background:' . $banner_color_bg . ';';
     }
     $banner_min_height = $img_min_height = $img_max_height = $min_height_class = '';
     if ($banner_min_height_op != '' && $banner_min_height_op == 'custom') {
         if ($banner_min != '') {
             $banner_min_height = ' data-min-height="' . $banner_min . '" ';
             $img_min_height = ' data-min-height="' . $banner_min . '" ';
             //$img_max_height = ' data-max-width="none" ';
             $min_height_class = 'ult-ib2-min-height';
         }
     }
     if ($banner_color_title != '') {
         $banner_title_style_inline .= 'color:' . $banner_color_title . ';';
     }
     if ($banner_color_desc != '') {
         $banner_desc_style_inline .= 'color:' . $banner_color_desc . ';';
     }
     //enqueue google font
     /*$args = array(
     			$banner_title_font_family, $banner_desc_font_family
     		);
     		enquque_ultimate_google_fonts($args);*/
     if ($image_opacity !== '') {
         $img_style .= 'opacity:' . $image_opacity . ';';
     }
     if ($link !== "#") {
         $href = 'href="' . $link . '"';
     } else {
         $href = '';
     }
     $heading_tag = isset($heading_tag) && trim($heading_tag) != "" ? $heading_tag : 'h2';
     $output .= '<div class="ult-new-ib ult-ib-effect-' . $banner_style . ' ' . $el_class . ' ' . $min_height_class . '" ' . $responsive . ' style="' . $banner_style_inline . '" data-opacity="' . $image_opacity . '" data-hover-opacity="' . $image_opacity_on_hover . '" ' . $banner_min_height . '>';
     if ($img !== '') {
         $output .= '<img class="ult-new-ib-img" style="' . $img_style . '" alt="' . $banner_title . '" src="' . $img . '" ' . $img_min_height . ' ' . $img_max_height . ' />';
     }
     $output .= '<div id="' . $interactive_banner_id . '" class="ult-new-ib-desc" style="' . $title_bg . '">';
     $output .= '<' . $heading_tag . ' class="ult-new-ib-title ult-responsive" ' . $interactive_banner_data_list . ' style="' . $banner_title_style_inline . '">' . $banner_title . '</' . $heading_tag . '>';
     $output .= '<div class="ult-new-ib-content ult-responsive" ' . $interactive_banner_desc_data_list . ' style="' . $banner_desc_style_inline . '"><p>' . $banner_desc . '</p></div>';
     $output .= '</div>';
//.........这里部分代码省略.........
开发者ID:mazykin46,项目名称:portfolio,代码行数:101,代码来源:Ultimate_Interactive_Banner_2.php

示例5: 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

示例6: ult_ihover_item_callback


//.........这里部分代码省略.........
     $TopBottom = '';
     switch ($effect) {
         case 'effect10':
         case 'effect1':
             if ($effect_top_bottom != '') {
                 $TopBottom = 'ult-ih-' . $effect_top_bottom;
             }
             break;
     }
     $LeftRight = '';
     switch ($effect) {
         case 'effect16':
             if ($effect_left_right != '') {
                 $LeftRight = 'ult-ih-' . $effect_left_right;
             }
             break;
     }
     $GutterMargin = '';
     if ($glob_gutter_width != '') {
         $GutterMargin = 'margin: ' . $glob_gutter_width / 2 . 'px';
     }
     $heading_block = $description_block = '';
     if ($title_margin != '') {
         $heading_block .= $title_margin;
     }
     if ($description_margin != '') {
         $description_block .= $description_margin;
     }
     if ($divider_margin != '') {
         $spacer_style .= $divider_margin;
     }
     $url = '#';
     $link_title = $target = '';
     if ($block_link != '') {
         $href = vc_build_link($block_link);
         $url = $href['url'];
         $link_title = 'title="' . $href['title'] . '" ';
         $target = 'target="' . trim($href['target']) . '" ';
     }
     $item_id = 'ult-ih-list-item-' . rand(1000, 9999);
     //responsive font size and line height for title
     $args = array('target' => '#' . $item_id . ' .ult-ih-heading', 'media_sizes' => array('font-size' => $title_responsive_font_size, 'line-height' => $title_responsive_line_height));
     $title_responsive = get_ultimate_vc_responsive_media_css($args);
     //resposnive font size and line height for description
     $args = array('target' => '#' . $item_id . ' .ult-ih-description, #' . $item_id . ' .ult-ih-description p', 'media_sizes' => array('font-size' => $desc_responsive_font_size, 'line-height' => $desc_responsive_line_height));
     $desc_responsive = get_ultimate_vc_responsive_media_css($args);
     $itemOutput .= '<li id="' . $item_id . '" class="ult-ih-list-item" style="' . $HeightWidth . ' ' . $GutterMargin . '">';
     if ($block_click != '') {
         $itemOutput .= '<a class="ult-ih-link" href="' . $url . '" ' . $target . ' ' . $link_title . '><div style="' . $HeightWidth . '"class="ult-ih-item ult-ih-' . $effect . ' ' . $LeftRight . ' ' . $Direction . ' ' . $Scale . ' ' . $TopBottom . '">';
     } else {
         $itemOutput .= '<div style="' . $HeightWidth . '"class="ult-ih-item ult-ih-' . $effect . ' ' . $LeftRight . ' ' . $Direction . ' ' . $Scale . ' ' . $TopBottom . ' ">';
     }
     switch ($effect) {
         case 'effect8':
             $itemOutput .= '<div class="ult-ih-image-block-container">';
             $itemOutput .= '	<div class="ult-ih-image-block" style="' . $HeightWidth . '">';
             $itemOutput .= '		<div class="ult-ih-wrapper" style="' . $thumbnail_border_style . '"></div>';
             $itemOutput .= '		<img class="ult-ih-image" src="' . $thumb_url . '" alt="">';
             $itemOutput .= '	</div> ';
             $itemOutput .= '</div>';
             $itemOutput .= '<div class="info-container">';
             $itemOutput .= '	<div class="ult-ih-info" style="' . $info_style . '">';
             $itemOutput .= $this->commonStructure($desc_responsive, $title_responsive, $heading_block, $title_style, $title, $spacer_style, $spacer_line_style, $description_block, $desc_style, $content);
             $itemOutput .= '	</div>';
             $itemOutput .= '</div>';
             break;
         case 'effect1':
         case 'effect5':
         case 'effect18':
             $itemOutput .= '<div class="ult-ih-image-block" style="' . $HeightWidth . '">';
             $itemOutput .= '	<div class="ult-ih-wrapper" style="' . $thumbnail_border_style . '"></div>';
             $itemOutput .= '	<img class="ult-ih-image" src="' . $thumb_url . '" alt="">';
             $itemOutput .= '</div>';
             $itemOutput .= '<div class="ult-ih-info" >';
             $itemOutput .= '	<div class="ult-ih-info-back" style="' . $info_style . '">';
             $itemOutput .= $this->commonStructure($desc_responsive, $title_responsive, $heading_block, $title_style, $title, $spacer_style, $spacer_line_style, $description_block, $desc_style, $content);
             $itemOutput .= '	</div>';
             $itemOutput .= '</div>';
             break;
         default:
             $itemOutput .= '<div class="ult-ih-image-block" style="' . $HeightWidth . '">';
             $itemOutput .= '	<div class="ult-ih-wrapper" style="' . $thumbnail_border_style . '"></div>';
             $itemOutput .= '	<img class="ult-ih-image" src="' . $thumb_url . '" alt="">';
             $itemOutput .= '</div>';
             $itemOutput .= '<div class="ult-ih-info" style="' . $info_style . '">';
             $itemOutput .= '	<div class="ult-ih-info-back">';
             $itemOutput .= $this->commonStructure($desc_responsive, $title_responsive, $heading_block, $title_style, $title, $spacer_style, $spacer_line_style, $description_block, $desc_style, $content);
             $itemOutput .= '	</div>';
             $itemOutput .= '</div>';
             break;
     }
     //	Check anchor
     if ($block_click != '') {
         $itemOutput .= '</div></a>';
     } else {
         $itemOutput .= '</div>';
     }
     $itemOutput .= '</li>';
     return $itemOutput;
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:101,代码来源:Ultimate_iHover.php

示例7: ult_price_generate_design02

    function ult_price_generate_design02($atts, $content = null)
    {
        $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 = $el_class = '';
        extract(shortcode_atts(array("color_scheme" => "black", "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" => "", "package_name_font_family" => "", "package_name_font_style" => "", "package_name_font_size" => "", "package_name_font_color" => "", "package_name_line_height" => "", "subheading_font_family" => "", "subheading_font_style" => "", "subheading_font_size" => "", "subheading_font_color" => "", "subheading_line_height" => "", "price_font_family" => "", "price_font_style" => "", "price_font_size" => "", "price_font_color" => "", "price_line_height" => "", "price_unit_font_family" => "", "price_unit_font_style" => "", "price_unit_font_size" => "", "price_unit_font_color" => "", "price_unit_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" => "", "min_ht" => ""), $atts));
        $output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = '';
        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";
        }
        /* Typography */
        $package_name_inline = $sub_heading_inline = $price_inline = $price_unit_inline = $features_inline = $button_inline = '';
        // package name/title
        if ($package_name_font_family != '') {
            $pkgfont_family = get_ultimate_font_family($package_name_font_family);
            if ($pkgfont_family !== '') {
                $package_name_inline .= 'font-family:\'' . $pkgfont_family . '\';';
            }
        }
        $package_name_inline .= get_ultimate_font_style($package_name_font_style);
        // if($package_name_font_size != '')
        // 	$package_name_inline .= 'font-size:'.$package_name_font_size.'px;';
        // if($package_name_line_height != '')
        // 	$package_name_inline .= 'line-height:'.$package_name_line_height.'px;';
        if ($package_name_font_color != '') {
            $package_name_inline .= 'color:' . $package_name_font_color . ';';
        }
        if (is_numeric($package_name_font_size)) {
            $package_name_font_size = 'desktop:' . $package_name_font_size . 'px;';
        }
        if (is_numeric($package_name_line_height)) {
            $package_name_line_height = 'desktop:' . $package_name_line_height . 'px;';
        }
        $price_table_id = 'price-table-wrap-' . rand(1000, 9999);
        $price_table_args = array('target' => '#' . $price_table_id . ' .cust-headformat', 'media_sizes' => array('font-size' => $package_name_font_size, 'line-height' => $package_name_line_height));
        $price_table_data_list = get_ultimate_vc_responsive_media_css($price_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;';
        }
        $price_table_subhead_args = array('target' => '#' . $price_table_id . ' .cust-subhead', 'media_sizes' => array('font-size' => $subheading_font_size, 'line-height' => $subheading_line_height));
        $price_table_subhead_data_list = get_ultimate_vc_responsive_media_css($price_table_subhead_args);
        // price
        if ($price_font_family != '') {
            $pricefont_family = get_ultimate_font_family($price_font_family);
            if ($pricefont_family !== '') {
                $price_inline .= 'font-family:\'' . $pricefont_family . '\';';
            }
        }
        $price_inline .= get_ultimate_font_style($price_font_style);
        // if($price_font_size != '')
        // 	$price_inline .= 'font-size:'.$price_font_size.'px;';
        // if($price_line_height != '')
        // 	$price_inline .= 'line-height:'.$price_line_height.'px;';
        if ($price_font_color != '') {
            $price_inline .= 'color:' . $price_font_color . ';';
        }
        //responsive param
        if (is_numeric($price_font_size)) {
            $price_font_size = 'desktop:' . $price_font_size . 'px;';
//.........这里部分代码省略.........
开发者ID:mazykin46,项目名称:portfolio,代码行数:101,代码来源:pricing-design02.php

示例8: 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

示例9: 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

示例10: countdown_shortcode

 function countdown_shortcode($atts)
 {
     $count_style = $datetime = $ult_tz = $countdown_opts = $tick_col = $tick_size = $tick_line_height = $tick_style = $tick_sep_col = $tick_sep_size = $tick_sep_line_height = '';
     $tick_sep_style = $br_color = $br_style = $br_size = $timer_bg_color = $br_radius = $br_time_space = $el_class = '';
     $string_days = $string_weeks = $string_months = $string_years = $string_hours = $string_minutes = $string_seconds = '';
     $string_days2 = $string_weeks2 = $string_months2 = $string_years2 = $string_hours2 = $string_minutes2 = $string_seconds2 = '';
     extract(shortcode_atts(array('count_style' => 'ult-cd-s1', 'datetime' => '', 'ult_tz' => 'ult-wptz', 'countdown_opts' => '', 'tick_col' => '', 'tick_size' => '36', 'tick_line_height' => '', 'tick_style' => '', 'tick_sep_col' => '', 'tick_sep_size' => '13', 'tick_sep_line_height' => '', 'tick_sep_style' => '', 'br_color' => '', 'br_style' => '', 'br_size' => '', 'timer_bg_color' => '', 'br_radius' => '', 'br_time_space' => '0', 'el_class' => '', 'string_days' => 'Day', 'string_days2' => 'Days', 'string_weeks' => 'Week', 'string_weeks2' => 'Weeks', 'string_months' => 'Month', 'string_months2' => 'Months', 'string_years' => 'Year', 'string_years2' => 'Years', 'string_hours' => 'Hour', 'string_hours2' => 'Hours', 'string_minutes' => 'Minute', 'string_minutes2' => 'Minutes', 'string_seconds' => 'Second', 'string_seconds2' => 'Seconds', 'css_countdown' => ''), $atts));
     $count_frmt = $labels = $countdown_design_style = '';
     $labels = $string_years2 . ',' . $string_months2 . ',' . $string_weeks2 . ',' . $string_days2 . ',' . $string_hours2 . ',' . $string_minutes2 . ',' . $string_seconds2;
     $labels2 = $string_years . ',' . $string_months . ',' . $string_weeks . ',' . $string_days . ',' . $string_hours . ',' . $string_minutes . ',' . $string_seconds;
     $countdown_opt = explode(",", $countdown_opts);
     if (is_array($countdown_opt)) {
         foreach ($countdown_opt as $opt) {
             if ($opt == "syear") {
                 $count_frmt .= 'Y';
             }
             if ($opt == "smonth") {
                 $count_frmt .= 'O';
             }
             if ($opt == "sweek") {
                 $count_frmt .= 'W';
             }
             if ($opt == "sday") {
                 $count_frmt .= 'D';
             }
             if ($opt == "shr") {
                 $count_frmt .= 'H';
             }
             if ($opt == "smin") {
                 $count_frmt .= 'M';
             }
             if ($opt == "ssec") {
                 $count_frmt .= 'S';
             }
         }
     }
     if (is_numeric($tick_size)) {
         $tick_size = 'desktop:' . $tick_size . 'px;';
     }
     $countdown_design_style = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css_countdown, ' '), "ult_countdown", $atts);
     $countdown_design_style = esc_attr($countdown_design_style);
     $countdown_id = 'countdown-wrap-' . rand(1000, 9999);
     $ult_countdown_args = array('target' => '#' . $countdown_id . ' .ult_countdown_amount', 'media_sizes' => array('font-size' => $tick_size));
     $data_list = get_ultimate_vc_responsive_media_css($ult_countdown_args);
     $data_attr = '';
     if ($count_frmt == '') {
         $count_frmt = 'DHMS';
     }
     if ($br_size == '' || $br_color == '' || $br_style == '') {
         if ($timer_bg_color == '') {
             $el_class .= ' ult-cd-no-border';
         }
     } else {
         $data_attr .= 'data-br-color="' . $br_color . '" data-br-style="' . $br_style . '" data-br-size="' . $br_size . '" ';
     }
     // Responsive param
     if (is_numeric($tick_sep_size)) {
         $tick_sep_size = 'desktop:' . $tick_sep_size . 'px;';
     }
     if (is_numeric($tick_sep_line_height)) {
         $tick_sep_line_height = 'desktop:' . $tick_sep_line_height . 'px;';
     }
     $count_down_id = "count-down-wrap-" . rand(1000, 9999);
     $count_down_sep_args = array('target' => '#' . $count_down_id . ' .ult_countdown-period', 'media_sizes' => array('font-size' => $tick_sep_size, 'line-height' => $tick_sep_line_height));
     $count_down_sep_data_list = get_ultimate_vc_responsive_media_css($count_down_sep_args);
     $data_attr .= ' data-tick-style="' . $tick_style . '" ';
     $data_attr .= ' data-tick-p-style="' . $tick_sep_style . '" ';
     $data_attr .= ' data-bg-color="' . $timer_bg_color . '" data-br-radius="' . $br_radius . '" data-padd="' . $br_time_space . '" ';
     $output = '<div "' . $count_down_sep_data_list . '" class="ult_countdown ' . $countdown_design_style . ' ' . $el_class . ' ' . $count_style . '">';
     //Responsive param
     if (is_numeric($tick_size)) {
         $tick_size = 'desktop:' . $tick_size . 'px;';
     }
     if (is_numeric($tick_line_height)) {
         $tick_line_height = 'desktop:' . $tick_line_height . 'px;';
     }
     $count_down_args = array('target' => '#' . $count_down_id . ' .ult_countdown-amount', 'media_sizes' => array('font-size' => $tick_size, 'line-height' => $tick_line_height));
     $count_down_data_list = get_ultimate_vc_responsive_media_css($count_down_args);
     if ($datetime != '') {
         $output .= '<div id="' . $count_down_id . '"  class="ult_countdown-div ult_countdown-dateAndTime ' . $ult_tz . '" data-labels="' . $labels . '" data-labels2="' . $labels2 . '"  data-terminal-date="' . $datetime . '" data-countformat="' . $count_frmt . '" data-time-zone="' . get_option('gmt_offset') . '" data-time-now="' . str_replace('-', '/', current_time('mysql')) . '"  data-tick-col="' . $tick_col . '"  ' . $count_down_data_list . ' data-tick-p-col="' . $tick_sep_col . '" ' . $data_attr . '>' . $datetime . '</div>';
     }
     $output .= '</div>';
     $is_preset = false;
     if (isset($_GET['preset'])) {
         $is_preset = true;
     }
     if ($is_preset) {
         $text = 'array ( ';
         foreach ($atts as $key => $att) {
             $text .= '<br/>	\'' . $key . '\' => \'' . $att . '\',';
         }
         if ($content != '') {
             $text .= '<br/>	\'content\' => \'' . $content . '\',';
         }
         $text .= '<br/>)';
         $output .= '<pre>';
         $output .= $text;
         $output .= '</pre>';
         // remove backslash once copied
     }
//.........这里部分代码省略.........
开发者ID:jeanzum,项目名称:prueba,代码行数:101,代码来源:Ultimate_CountDown.php

示例11: 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-map-marker', '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', 'link_style' => '', 'icon_link' => '', 'icon_size' => '', "alignment" => "center", 'tooltip_trigger' => '', 'tooltip_animation' => '', 'tooltip_continuous_animation' => '', 'glow_color' => '', 'enable_bubble_arrow' => 'on', 'tooltip_custom_bg_color' => '#fff', 'tooltip_custom_color' => '#4c4c4c', '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
     //	Animation effects
     $glow = $pulse = '';
     if ($tooltip_continuous_animation != '') {
         switch ($tooltip_continuous_animation) {
             case "on":
                 $pulse = "ult-pulse";
                 break;
             case "glow":
                 if ($glow_color !== '') {
                     $glow_color = 'style="background-color:' . $glow_color . '"';
                 } else {
                     $glow_color = '';
                 }
                 $glow = " <div class='ult-glow' " . $glow_color . "></div>";
                 break;
         }
     }
     if (trim($content) !== '') {
         $hotspot_content = $content;
     }
     /**    Tooltip [Content] Styling
      *--------------------------------------*/
     $font_args = array();
     $tooltip_content_style = '';
     $tooltip_base_style = '';
     $hotspot_tooltip_id = '';
     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;'; }
     if (is_numeric($tooltip_font_size)) {
         $tooltip_font_size = 'desktop:' . $tooltip_font_size . 'px;';
     }
     if (is_numeric($tooltip_font_line_height)) {
         $tooltip_font_line_height = 'desktop:' . $tooltip_font_line_height . 'px;';
     }
     $hotspot_tooltip_id = 'hotspot-tooltip-' . rand(1000, 9999);
     $hotspot_tooltip_args = array('target' => '#' . $hotspot_tooltip_id . ' .ult-tooltipster-content', 'media_sizes' => array('font-size' => $tooltip_font_size, 'line-height' => $tooltip_font_line_height));
     $hotspot_tooltip_data_list = get_ultimate_vc_responsive_media_css($hotspot_tooltip_args);
     //  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 ($hotspot_tooltip_id != '') {
         $data .= 'data-mycust-id="' . $hotspot_tooltip_id . '" ';
     }
     if ($hotspot_tooltip_data_list != '') {
         $data .= $hotspot_tooltip_data_list;
     }
     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 {
//.........这里部分代码省略.........
开发者ID:jeanzum,项目名称:prueba,代码行数:101,代码来源:Ultimate_Hotspot.php

示例12: ultimate_dualbtn_shortcode


//.........这里部分代码省略.........
            }
            if ($btn_hover_style == 'Style 2') {
                $hoverstyle = 'ult-dual-btn3';
            }
            if ($btn_hover_style == 'Style 3') {
                $hoverstyle = 'ult-dual-btn4';
            }
            /*--------css for title1------------*/
            $btn1_padding;
            $dual_btn_id = 'dualbtn-' . rand(1000, 9999);
            $title1_style = '';
            if (function_exists('get_ultimate_font_family')) {
                $mhfont_family = get_ultimate_font_family($btn1_font_family);
                if ($mhfont_family !== '') {
                    $title1_style .= 'font-family:' . $mhfont_family . ';';
                }
            }
            if (function_exists('get_ultimate_font_style')) {
                $title1_style .= get_ultimate_font_style($btn1_heading_style);
            }
            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;';
            }
            // $title1_style .= 'font-size:'.$title_font_size.'px;';//style
            $title1_style .= 'color:' . $btn1_text_color . ';';
            //color
            // if($title_line_ht!=''){
            // $title1_style .= 'line-height:'.$title_line_ht.'px;';//line-height
            // }
            $dualbtn_args = array('target' => '#' . $dual_btn_id . ' .ult-dual-button-title', 'media_sizes' => array('font-size' => $title_font_size, 'line-height' => $title_line_ht));
            $data_list1 = get_ultimate_vc_responsive_media_css($dualbtn_args);
            /*--------css for title2------------*/
            $title2_style = '';
            if (function_exists('get_ultimate_font_family')) {
                $mhfont_family1 = get_ultimate_font_family($btn2_font_family);
                if ($mhfont_family1 !== '') {
                    $title2_style .= 'font-family:' . $mhfont_family1 . ';';
                }
            }
            if (function_exists('get_ultimate_font_style')) {
                $title2_style .= get_ultimate_font_style($btn2_heading_style);
            }
            // $title2_style .= 'font-size:'.$title_font_size.'px;';//style
            $title2_style .= 'color:' . $btn2_text_color . ';';
            //color
            // if($title_line_ht!=''){
            // $title2_style .= 'line-height:'.$title_line_ht.'px;';//line-height
            //    }
            /*--------css for button1------------*/
            $btncolor_style = '';
            $btncolor_style .= 'background-color:' . $btn1_background_color . ' !important;';
            /*--------css for button2------------*/
            $btncolor1_style = '';
            $btncolor1_style .= 'background-color:' . $btn2_background_color . ' !important;';
            /*--------css for button------------*/
            $btnmain_style = '';
            $btnmain_style .= 'border-color:' . $btn_color_border . ';';
            $btnmain_style .= 'border-style:' . $btn_border_style . ';';
            if ($btn_border_style != '') {
                $btnmain_style .= 'border-width:' . $btn_border_size . 'px;';
            } else {
                $btnmain_style .= 'border-width:0px;';
            }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:67,代码来源:Ultimate_Dual_Button.php

示例13: ultimate_exp_section_shortcode


//.........这里部分代码省略.........
            }
            $data .= 'data-newimg="' . $newsrc . '"';
            /*------------header bg style---------*/
            $headerstyle = '';
            if ($text_color != '') {
                $headerstyle .= 'color:' . $text_color . ';';
            }
            if ($background_color != '') {
                $headerstyle .= 'background-color:' . $background_color . ';';
            }
            if (function_exists('get_ultimate_font_family')) {
                $mhfont_family = get_ultimate_font_family($font_family);
                if ($mhfont_family != '') {
                    $headerstyle .= 'font-family:' . $mhfont_family . ';';
                }
            }
            if (function_exists('get_ultimate_font_style')) {
                $headerstyle .= get_ultimate_font_style($heading_style);
            }
            // if($title_font_size!=''){
            // 	$headerstyle.='font-size:'.$title_font_size.'px;';
            // }
            // if($title_line_ht!=''){
            // 	$headerstyle.='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;';
            }
            $ult_expandable_id = 'uvc-exp-wrap-' . rand(1000, 9999);
            $ult_expandable_args = array('target' => '#' . $ult_expandable_id . '', 'media_sizes' => array('font-size' => $title_font_size, 'line-height' => $title_line_ht));
            $data_list = get_ultimate_vc_responsive_media_css($ult_expandable_args);
            $headerstyle .= $title_margin;
            $headerstyle .= $title_padding;
            /*---------------title padding---------------------*/
            $css_class = '';
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css, ' '), "ultimate_exp_section", $atts);
            $css_class = esc_attr($css_class);
            /*---------------desc padding---------------------*/
            $desc_css_class = '';
            $desc_css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($cont_css, ' '), "ultimate_exp_section", $atts);
            $desc_css_class = esc_attr($desc_css_class);
            /*---------------desc padding---------------------*/
            $icon_css_class = '';
            $icon_css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($iconmargin_css, ' '), "ultimate_exp_section", $atts);
            $icon_css_class = esc_attr($icon_css_class);
            /*--------------------- full width row settings---------------------*/
            //echo $map_override;
            /*------------content style--------------------------*/
            $cnt_style = '';
            if ($cnt_bg_color != '') {
                $cnt_style .= 'background-color:' . $cnt_bg_color . ';';
            }
            //$cnt_style .= 'background-color:'.$bghovercolor.';';
            $cnt_style .= $desc_padding;
            $cnt_style .= $desc_margin;
            $position = '';
            if ($icon_align == 'left') {
                $position = 'ult_expleft_icon';
            }
            if ($icon_align == 'right') {
                $position = 'ult_expright_icon';
            }
            $top = '';
开发者ID:ksan5835,项目名称:maadithottam,代码行数:67,代码来源:Ultimate_Expandable_section.php

示例14: ult_createlink_shortcode


//.........这里部分代码省略.........
            /*---- 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;';
            // }
            // if($title_line_ht!=''){
            // 		$colorstyle .= 'line-height:'.$title_line_ht.'px;';
            // 		//$colorstyle .='color:'.$text_color.';';
            // 	}
            //Responsive param
            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;';
            }
            $creative_link_id = 'creative-link-wrap-' . rand(1000, 9999);
            $creative_link_args = array('target' => '#' . $creative_link_id . ' .ult_colorlink', 'media_sizes' => array('font-size' => $title_font_size, 'line-height' => $title_line_ht));
            $creative_link_data_list = get_ultimate_vc_responsive_media_css($creative_link_args);
            //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;';
            // 	}		//font-line-height
            //    }
            /*-- hover style---*/
            $id = '';
            if ($link_hover_style == 'Style_1') {
                //style1
                $class .= 'ult_cl_link_1';
                //$id .='ult_cl_link_1';
                $colorstyle .= 'color:' . $text_color . ';';
                //text color for bracket
                if ($title_font_size != '') {
                    //$colorstyle .='font-size:'.$title_font_size.'px;';
                }
            } else {
                if ($link_hover_style == 'Style_2') {
                    //style2
                    $class .= 'ult_cl_link_2';
                    //$id .='ult_cl_link_2';
                } else {
开发者ID:mazykin46,项目名称:portfolio,代码行数:67,代码来源:Ultimate_link.php

示例15: ultimate_headings_shortcode


//.........这里部分代码省略.........
         }
         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') {
             $data .= ' data-icon_width="' . $icon_size . '"';
         } else {
             $data .= ' data-icon_width="' . $img_width . '"';
         }
         if ($line_icon_fixer != '') {
             $data .= ' data-hfixer="' . $line_icon_fixer . '" ';
         }
     } else {
         $data = '';
     }
     $id = uniqid('ultimate-heading');
     $uid = 'uvc-' . rand(00, 9999);
     // FIX: set old font size before implementing responsive param
     if (is_numeric($main_heading_font_size)) {
         $main_heading_font_size = 'desktop:' . $main_heading_font_size . 'px;';
     }
     if (is_numeric($main_heading_line_height)) {
         $main_heading_line_height = 'desktop:' . $main_heading_line_height . 'px;';
     }
     // responsive {main} heading styles
     $args = array('target' => '.uvc-heading.' . $id . ' ' . $heading_tag, 'media_sizes' => array('font-size' => $main_heading_font_size, 'line-height' => $main_heading_line_height));
     $main_heading_responsive = get_ultimate_vc_responsive_media_css($args);
     // FIX: set old font size before implementing responsive param
     if (is_numeric($sub_heading_font_size)) {
         $sub_heading_font_size = 'desktop:' . $sub_heading_font_size . 'px;';
     }
     if (is_numeric($sub_heading_line_height)) {
         $sub_heading_line_height = 'desktop:' . $sub_heading_line_height . 'px;';
     }
     // responsive {sub} heading styles
     $args = array('target' => '.uvc-heading.' . $id . ' .uvc-sub-heading ', 'media_sizes' => array('font-size' => $sub_heading_font_size, 'line-height' => $sub_heading_line_height));
     $sub_heading_responsive = get_ultimate_vc_responsive_media_css($args);
     $output = '<div id="' . $id . '" class="uvc-heading ' . $id . ' ' . $uid . ' ' . $el_class . '" data-hspacer="' . $spacer . '" ' . $data . ' data-halign="' . $alignment . '" style="text-align:' . $alignment . '">';
     if ($spacer_position == 'top') {
         $output .= $this->ultimate_heading_spacer($wrapper_class, $wrapper_style, $icon_inline);
     }
     if ($main_heading != '') {
         $output .= '<div class="uvc-main-heading ult-responsive" ' . $main_heading_responsive . '><' . $heading_tag . ' style="' . $main_heading_style_inline . '">' . $main_heading . '</' . $heading_tag . '></div>';
     }
     if ($spacer_position == 'middle') {
         $output .= $this->ultimate_heading_spacer($wrapper_class, $wrapper_style, $icon_inline);
     }
     if ($content != '') {
         $output .= '<div class="uvc-sub-heading ult-responsive" ' . $sub_heading_responsive . ' style="' . $sub_heading_style_inline . '">' . do_shortcode($content) . '</div>';
     }
     if ($spacer_position == 'bottom') {
         $output .= $this->ultimate_heading_spacer($wrapper_class, $wrapper_style, $icon_inline);
     }
     $output .= '</div>';
     return $output;
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:101,代码来源:Ultimate_Headings.php


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