本文整理汇总了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函数的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_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') {
|
请发表评论