$time_start = microtime(true);
$wrapper_classes = array('vcex-pricing');
if ('yes' == $featured) {
    $wrapper_classes[] = 'featured';
}
if ($css_animation) {
    $wrapper_classes[] = $this->getCSSAnimation($css_animation);
}
if ($el_class) {
    $wrapper_classes[] = $this->getExtraClass($el_class);
}
if ($visibility) {
    $wrapper_classes[] = $visibility;
}
if ($hover_animation) {
    $wrapper_classes[] = wpex_hover_animation_class($hover_animation);
    vcex_enque_style('hover-animations');
}
$wrapper_classes = implode(' ', $wrapper_classes);
// Plan style
if ($plan) {
    $plan_style = vcex_inline_style(array('margin' => $plan_margin, 'padding' => $plan_padding, 'background' => $plan_background, 'color' => $plan_color, 'font_size' => $plan_size, 'font_weight' => $plan_weight, 'letter_spacing' => $plan_letter_spacing, 'border' => $plan_border, 'text_transform' => $plan_text_transform));
}
// Cost Wrap style
if ($cost) {
    $cost_wrap_style = vcex_inline_style(array('background' => $cost_background, 'padding' => $cost_padding, 'border' => $cost_border));
    $cost_style = vcex_inline_style(array('color' => $cost_color, 'font_size' => $cost_size, 'font_weight' => $cost_weight));
}
// Per style
if ($per) {
    $per_style = vcex_inline_style(array('display' => $per_display, 'font_size' => $per_size, 'color' => $per_color, 'font_weight' => $per_weight, 'text_transform' => $per_transform));
    $button_classes[] = $style;
}
if ($align) {
    $button_classes[] = 'align-' . $align;
}
if ($size) {
    $button_classes[] = $size;
}
if ($color) {
    $button_classes[] = $color;
}
if ($classes) {
    $button_classes[] = vcex_get_extra_class($classes);
}
if ($hover_animation) {
    $button_classes[] = wpex_hover_animation_class($hover_animation);
    vcex_enque_style('hover-animations');
} else {
    $button_classes[] = 'animate-on-hover';
}
if ('local' == $target) {
    $button_classes[] = 'local-scroll-link';
}
if ($css_animation) {
    $button_classes[] = $this->getCSSAnimation($css_animation);
}
if ($classes) {
    $button_classes[] = $this->getExtraClass($classes);
}
if ($visibility) {
    $button_classes[] = $visibility;
예제 #3
0
$border_radius = isset($atts['border_radius']) ? $atts['border_radius'] : '';
// Get and extract shortcode attributes
extract(vc_map_get_attributes($this->getShortcode(), $atts));
// Return if no menu defined
if (!$menu) {
    return;
}
// Old style param fallback
if (isset($style) && 'simple' == $style) {
    $button_style = 'plain-text';
}
// Get current post ID
$post_id = get_the_ID();
// Hover animation
if ($hover_animation) {
    $hover_animation = wpex_hover_animation_class($hover_animation);
    vcex_enque_style('hover-animations');
}
// CSS class
if ($css) {
    $css_class = vc_shortcode_custom_css_class($css);
} else {
    $css_class = '';
}
// Link Data
$link_hover_class = $link_data = '';
if ($hover_bg) {
    $link_data .= ' data-hover-background="' . $hover_bg . '"';
}
if ($hover_color) {
    $link_data .= ' data-hover-color="' . $hover_color . '"';
예제 #4
0
}
// Link Classes
if ($style) {
    $a_classes = wpex_get_social_button_class($style);
} else {
    $a_classes = 'vcex-social-link';
}
if ($width || $height) {
    $a_classes .= ' no-padding';
}
if ($hover_bg || $hover_color) {
    $a_classes .= ' wpex-data-hover';
    vcex_inline_js(array('data_hover'));
}
if ($hover_animation) {
    $a_classes .= ' ' . wpex_hover_animation_class($hover_animation);
    vcex_enque_style('hover-animations');
}
if ($css) {
    $a_classes .= ' ' . vc_shortcode_custom_css_class($css);
}
?>

<div class="<?php 
echo $wrap_classes;
?>
"<?php 
echo $wrap_style;
vcex_unique_id($unique_id);
?>
>
예제 #5
0
 if ('no-margins' == $grid_style) {
     $entry_classes[] = 'vcex-no-margin-entry';
 }
 if ($columns) {
     $entry_classes[] = 'span_1_of_' . $columns;
 }
 if ('false' == $responsive_columns) {
     $entry_classes[] = 'nr-col';
 } else {
     $entry_classes[] = 'col';
 }
 if ($css_animation) {
     $entry_classes[] = $this->getCSSAnimation($css_animation);
 }
 if ($hover_animation) {
     $entry_classes[] = wpex_hover_animation_class($hover_animation);
     vcex_enque_style('hover-animations');
 }
 $entry_classes = implode(' ', $entry_classes);
 // Media classes
 $figure_classes = array('vcex-image-grid-entry-img', 'clr');
 if ($entry_css) {
     $figure_classes[] = vc_shortcode_custom_css_class($entry_css);
 }
 if ($overlay_style) {
     $figure_classes[] = wpex_overlay_classes($overlay_style);
 }
 $figure_classes = implode(' ', $figure_classes);
 // Lightbox class
 if ('true' == $lightbox_gallery) {
     $lightbox_class = 'wpex-lightbox-group-item';