Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1 @@
|
||||
<?php␍/*Silence is Golden*/␍?>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
/*Silence is Golden*/
|
||||
?>
|
||||
@@ -0,0 +1,276 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Info Tables for WPBakery Page Builder
|
||||
* Template : Design layout 01
|
||||
*/
|
||||
if(!function_exists('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 = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
'color_scheme' => 'black',
|
||||
'package_heading' => '',
|
||||
'heading_tag' =>'h3',
|
||||
'package_sub_heading' => '',
|
||||
'sub_heading_tag' => 'h5',
|
||||
'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'=>'',
|
||||
"css_info_tables" => '',
|
||||
),$atts));
|
||||
$css_info_tables = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_info_tables, ' ' ), "ultimate_info_table", $atts );
|
||||
$css_info_tables = esc_attr( $css_info_tables );
|
||||
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
|
||||
if($icon_type !== "none"){
|
||||
$box_icon = do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'" icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
$dynamic_style = $featured_style;
|
||||
} else {
|
||||
$dynamic_style = $normal_style;
|
||||
}
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' 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.'\';';
|
||||
}
|
||||
|
||||
if('span' == $heading_tag){
|
||||
$heading_style_inline .= 'display:block;';
|
||||
}
|
||||
$heading_style_inline .= get_ultimate_font_style($heading_font_style);
|
||||
|
||||
if($heading_font_color != '')
|
||||
$heading_style_inline .= 'color:'.$heading_font_color.';';
|
||||
|
||||
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.' '.$heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $heading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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.'\';';
|
||||
}
|
||||
|
||||
if('span' == $sub_heading_tag){
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$sub_heading_inline .= get_ultimate_font_style($subheading_font_style);
|
||||
|
||||
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.' '.$sub_heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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 != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_features_args = array(
|
||||
'target' => '#'.$info_table_features_id.'.ult_price_features', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
$info_table_features_data_list = get_ultimate_vc_responsive_media_css($info_table_features_args);
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_btn_args = array(
|
||||
'target' => '#'.$info_table_btn_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
$info_table_btn_data_list = get_ultimate_vc_responsive_media_css($info_table_btn_args);
|
||||
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_info_table ult_design_1 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).''.esc_attr($css_info_tables).'">
|
||||
<div class="ult_pricing_table '.esc_attr($info_tab_ht).'" style="'.esc_attr($featured_style).' '.esc_attr($info_tab_ht_style).'">';
|
||||
$output .= '<div class="ult_pricing_heading" id="'.esc_attr($info_table_id).'">
|
||||
<'.esc_attr($heading_tag).' class="ult-responsive" '.$info_table_data_list.' style="'.esc_attr($heading_style_inline).'">'.$package_heading.'</'.esc_attr($heading_tag).'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.esc_attr($sub_heading_tag).' class="ult-responsive" '.$info_table_sub_head_data_list.'style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.esc_attr($sub_heading_tag).'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block">
|
||||
<div class="ult_price_body">
|
||||
<div class="ult_price">
|
||||
'.$box_icon.'
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
$output .= '<div id="'.esc_attr($info_table_features_id).'" '.$info_table_features_data_list.' class="ult-responsive ult_price_features" style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($use_cta_btn == "true"){
|
||||
$output .= '<div id="'.esc_attr($info_table_btn_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' '.$info_table_btn_data_list.' class="ult-responsive ult_price_action_button" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '</a>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Info Tables for WPBakery Page Builder
|
||||
* Template : Design layout 02
|
||||
*/
|
||||
if(!function_exists('ult_info_table_generate_design02')) {
|
||||
function ult_info_table_generate_design02($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 = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
'color_scheme' => 'black',
|
||||
'package_heading' => '',
|
||||
'heading_tag' =>'h3',
|
||||
'package_sub_heading' => '',
|
||||
'sub_heading_tag' => 'h5',
|
||||
'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'=>'',
|
||||
"css_info_tables" => '',
|
||||
|
||||
),$atts));
|
||||
$css_info_tables = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_info_tables, ' ' ), "ultimate_info_table", $atts );
|
||||
$css_info_tables = esc_attr( $css_info_tables );
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
|
||||
if($icon_type !== "none"){
|
||||
$box_icon = do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'" icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
}
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button" style="'.esc_attr($featured_style).'">'.$package_btn_text;
|
||||
}
|
||||
|
||||
/* typography */
|
||||
|
||||
$heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
|
||||
|
||||
// heading
|
||||
if($heading_font_family != '')
|
||||
{
|
||||
$hdfont_family = get_ultimate_font_family($heading_font_family);
|
||||
if($hdfont_family !== '')
|
||||
$heading_style_inline .= 'font-family:\''.$hdfont_family.'\';';
|
||||
}
|
||||
|
||||
if('span' == $heading_tag){
|
||||
$heading_style_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$heading_style_inline .= get_ultimate_font_style($heading_font_style);
|
||||
|
||||
// if($heading_font_size != '')
|
||||
// $heading_style_inline .= 'font-size:'.$heading_font_size.'px;';
|
||||
|
||||
// if($heading_line_height != '')
|
||||
// $heading_style_inline .= 'line-height:'.$heading_line_height.'px;';
|
||||
|
||||
if($heading_font_color != '')
|
||||
$heading_style_inline .= 'color:'.$heading_font_color.';';
|
||||
|
||||
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.' '.$heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $heading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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.'\';';
|
||||
}
|
||||
|
||||
if('span' == $sub_heading_tag){
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$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.' '.$sub_heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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 != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_features_args = array(
|
||||
'target' => '#'.$info_table_features_id.'.ult_price_features', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
$info_table_features_data_list = get_ultimate_vc_responsive_media_css($info_table_features_args);
|
||||
|
||||
/*---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;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_btn_args = array(
|
||||
'target' => '#'.$info_table_btn_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
$info_table_btn_data_list = get_ultimate_vc_responsive_media_css($info_table_btn_args);
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_info_table ult_design_2 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).''.esc_attr($css_info_tables).'">
|
||||
<div class="ult_pricing_table '.esc_attr($info_tab_ht).'" style="'.esc_attr($normal_style).' '.esc_attr($info_tab_ht_style).'">';
|
||||
$output .= '<div id="'.esc_attr($info_table_id).'" class="ult_pricing_heading" style="'.esc_attr($featured_style).'">
|
||||
<'.esc_attr($heading_tag).' class="ult-responsive" '.$info_table_data_list.' style="'.esc_attr($heading_style_inline).'">'.$package_heading.'</'.esc_attr($heading_tag).'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.esc_attr($sub_heading_tag).' class="ult-responsive" '.$info_table_sub_head_data_list.' style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.esc_attr($sub_heading_tag).'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
if(isset($box_icon) && $box_icon != '') :
|
||||
$output .= '<div class="ult_price_body_block">
|
||||
<div class="ult_price_body">
|
||||
<div class="ult_price">
|
||||
'.$box_icon.'
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
endif;
|
||||
if($use_cta_btn == "true"){
|
||||
$output .= '<div id="'.esc_attr($info_table_btn_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' '.$info_table_btn_data_list.' class="ult-responsive ult_price_action_button" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div id="'.esc_attr($info_table_features_id).'" '.$info_table_features_data_list.' class="ult-responsive ult_price_features" style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '</a>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Info Tables for WPBakery Page Builder
|
||||
* Template : Design layout 03
|
||||
*/
|
||||
if(!function_exists('ult_info_table_generate_design03')) {
|
||||
function ult_info_table_generate_design03($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 = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
'color_scheme' => 'black',
|
||||
'package_heading' => '',
|
||||
'heading_tag' =>'h3',
|
||||
'package_sub_heading' => '',
|
||||
'sub_heading_tag' => 'h5',
|
||||
'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'=>'',
|
||||
"css_info_tables" => '',
|
||||
|
||||
),$atts));
|
||||
$css_info_tables = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_info_tables, ' ' ), "ultimate_info_table", $atts );
|
||||
$css_info_tables = esc_attr( $css_info_tables );
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
|
||||
if($icon_type !== "none"){
|
||||
$box_icon = do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'" icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
}
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button" style="'.esc_attr($featured_style).'">'.$package_btn_text;
|
||||
}
|
||||
|
||||
/* typography */
|
||||
|
||||
$heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
|
||||
|
||||
// heading
|
||||
if($heading_font_family != '')
|
||||
{
|
||||
$hdfont_family = get_ultimate_font_family($heading_font_family);
|
||||
if($hdfont_family !== '')
|
||||
$heading_style_inline .= 'font-family:\''.$hdfont_family.'\';';
|
||||
}
|
||||
|
||||
if('span' == $heading_tag){
|
||||
$heading_style_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$heading_style_inline .= get_ultimate_font_style($heading_font_style);
|
||||
|
||||
// if($heading_font_size != '')
|
||||
// $heading_style_inline .= 'font-size:'.$heading_font_size.'px;';
|
||||
|
||||
// if($heading_line_height != '')
|
||||
// $heading_style_inline .= 'line-height:'.$heading_line_height.'px;';
|
||||
|
||||
if($heading_font_color != '')
|
||||
$heading_style_inline .= 'color:'.$heading_font_color.';';
|
||||
|
||||
|
||||
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.' '.$heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $heading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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.'\';';
|
||||
}
|
||||
|
||||
if('span' == $sub_heading_tag){
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$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.' '.$sub_heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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 != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_features_args = array(
|
||||
'target' => '#'.$info_table_features_id.'.ult_price_features', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
$info_table_features_data_list = get_ultimate_vc_responsive_media_css($info_table_features_args);
|
||||
|
||||
/*---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;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_btn_args = array(
|
||||
'target' => '#'.$info_table_btn_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
$info_table_btn_data_list = get_ultimate_vc_responsive_media_css($info_table_btn_args);
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_info_table ult_design_3 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).''.esc_attr($css_info_tables).'">
|
||||
<div class="ult_pricing_table '.esc_attr($info_tab_ht).'" style="'.esc_attr($normal_style).' '.esc_attr($info_tab_ht_style).'">';
|
||||
$output .= '<div id="'.esc_attr($info_table_id).'" class="ult_pricing_heading">
|
||||
<'.esc_attr($heading_tag).' class="ult-responsive" '.$info_table_data_list.' style="'.esc_attr($heading_style_inline).'">'.$package_heading.'</'.esc_attr($heading_tag).'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.esc_attr($sub_heading_tag).' class="ult-responsive" '.$info_table_sub_head_data_list.' style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.esc_attr($sub_heading_tag).'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
if(isset($box_icon) && $box_icon != '') :
|
||||
$output .= '<div class="ult_price_body_block" style="'.esc_attr($featured_style).'">
|
||||
<div class="ult_price_body">
|
||||
<div class="ult_price">
|
||||
'.$box_icon.'
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
endif;
|
||||
$output .= '<div id="'.esc_attr($info_table_features_id).'" '.$info_table_features_data_list.' class="ult-responsive ult_price_features" style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($use_cta_btn == "true"){
|
||||
$output .= '<div id="'.esc_attr($info_table_btn_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' '.$info_table_btn_data_list.' class="ult-responsive ult_price_action_button" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '</a>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Info Tables for WPBakery Page Builder
|
||||
* Template : Design layout 04
|
||||
*/
|
||||
if(!function_exists('ult_info_table_generate_design04')) {
|
||||
function ult_info_table_generate_design04($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 = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
'color_scheme' => 'black',
|
||||
'package_heading' => '',
|
||||
'heading_tag' =>'h3',
|
||||
'package_sub_heading' => '',
|
||||
'sub_heading_tag' => 'h5',
|
||||
'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'=>'',
|
||||
"css_info_tables" => '',
|
||||
|
||||
),$atts));
|
||||
$css_info_tables = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_info_tables, ' ' ), "ultimate_info_table", $atts );
|
||||
$css_info_tables = esc_attr( $css_info_tables );
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
|
||||
if($icon_type !== "none"){
|
||||
$box_icon = do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'" icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($icon_border_spacing).'"]');
|
||||
}
|
||||
if($color_scheme == "custom"){
|
||||
if($color_bg_main !== ""){
|
||||
$normal_style .= 'background:'.$color_bg_main.';';
|
||||
$normal_style .= 'border-top-color:'.$color_bg_highlight.';';
|
||||
}
|
||||
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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
}
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button" style="'.esc_attr($featured_style).'">'.$package_btn_text;
|
||||
}
|
||||
|
||||
/* typography */
|
||||
|
||||
$heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
|
||||
|
||||
// heading
|
||||
if($heading_font_family != '')
|
||||
{
|
||||
$hdfont_family = get_ultimate_font_family($heading_font_family);
|
||||
if($hdfont_family !== '')
|
||||
$heading_style_inline .= 'font-family:\''.$hdfont_family.'\';';
|
||||
}
|
||||
|
||||
if('span' == $heading_tag){
|
||||
$heading_style_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$heading_style_inline .= get_ultimate_font_style($heading_font_style);
|
||||
|
||||
// if($heading_font_size != '')
|
||||
// $heading_style_inline .= 'font-size:'.$heading_font_size.'px;';
|
||||
|
||||
// if($heading_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.' '.$heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $heading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $heading_line_height
|
||||
),
|
||||
);
|
||||
$info_table_data_list = get_ultimate_vc_responsive_media_css($info_table_args);
|
||||
|
||||
if($heading_font_color != '')
|
||||
$heading_style_inline .= 'color:'.$heading_font_color.';';
|
||||
|
||||
|
||||
|
||||
// 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.' '.$sub_heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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 != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
if('span' == $sub_heading_tag){
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
if($features_font_size != '')
|
||||
$features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
if($features_line_height != '')
|
||||
$features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_features_args = array(
|
||||
'target' => '#'.$info_table_features_id.'.ult_price_features', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
$info_table_features_data_list = get_ultimate_vc_responsive_media_css($info_table_features_args);
|
||||
|
||||
/*---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;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_btn_args = array(
|
||||
'target' => '#'.$info_table_btn_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
$info_table_btn_data_list = get_ultimate_vc_responsive_media_css($info_table_btn_args);
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_info_table ult_design_4 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_info_tables).'">
|
||||
<div class="ult_pricing_table '.esc_attr($info_tab_ht).'" style="'.esc_attr($normal_style).' '.$info_tab_ht_style.'">';
|
||||
$output .= '<div id="'.esc_attr($info_table_id).'" class="ult_pricing_heading">
|
||||
<'.esc_attr($heading_tag).' class="ult-responsive" '.$info_table_data_list.' style="'.esc_attr($heading_style_inline).'">'.$package_heading.'</'.esc_attr($heading_tag).'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.esc_attr($sub_heading_tag).' class="ult-responsive" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.esc_attr($sub_heading_tag).'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
if(isset($box_icon) && $box_icon != '') :
|
||||
$output .= '<div class="ult_price_body_block">
|
||||
<div class="ult_price_body">
|
||||
<div class="ult_price">
|
||||
'.$box_icon.'
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
endif;
|
||||
$output .= '<div id="'.esc_attr($info_table_features_id).'" '.$info_table_features_data_list.' class="ult-responsive ult_price_features" style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($use_cta_btn == "true"){
|
||||
$output .= '<div id="'.esc_attr($info_table_btn_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' '.$info_table_btn_data_list.' class="ult-responsive ult_price_action_button" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '</a>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Info Tables for WPBakery Page Builder
|
||||
* Template : Design layout 05
|
||||
*/
|
||||
if(!function_exists('ult_info_table_generate_design05')) {
|
||||
function ult_info_table_generate_design05($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 = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
'color_scheme' => 'black',
|
||||
'package_heading' => '',
|
||||
'heading_tag' =>'h3',
|
||||
'package_sub_heading' => '',
|
||||
'sub_heading_tag' => 'h5',
|
||||
'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'=>'',
|
||||
'css_info_tables' => '',
|
||||
),$atts));
|
||||
$css_info_tables = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_info_tables, ' ' ), "ultimate_info_table", $atts );
|
||||
$css_info_tables = esc_attr( $css_info_tables );
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
|
||||
if($icon_type !== "none"){
|
||||
$box_icon = do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'" icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
}
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button" style="'.esc_attr($featured_style).'">'.$package_btn_text;
|
||||
}
|
||||
|
||||
/* typography */
|
||||
|
||||
$heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
|
||||
|
||||
// heading
|
||||
if($heading_font_family != '')
|
||||
{
|
||||
$hdfont_family = get_ultimate_font_family($heading_font_family);
|
||||
if($hdfont_family !== '')
|
||||
$heading_style_inline .= 'font-family:\''.$hdfont_family.'\';';
|
||||
}
|
||||
|
||||
if('span' == $heading_tag){
|
||||
$heading_style_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$heading_style_inline .= get_ultimate_font_style($heading_font_style);
|
||||
|
||||
// if($heading_font_size != '')
|
||||
// $heading_style_inline .= 'font-size:'.$heading_font_size.'px;';
|
||||
|
||||
// if($heading_line_height != '')
|
||||
// $heading_style_inline .= 'line-height:'.$heading_line_height.'px;';
|
||||
|
||||
if($heading_font_color != '')
|
||||
$heading_style_inline .= 'color:'.$heading_font_color.';';
|
||||
|
||||
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.' '.$heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $heading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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.'\';';
|
||||
}
|
||||
|
||||
if('span' == $sub_heading_tag){
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$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.' '.$sub_heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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 != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_features_args = array(
|
||||
'target' => '#'.$info_table_features_id.'.ult_price_features', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
$info_table_features_data_list = get_ultimate_vc_responsive_media_css($info_table_features_args);
|
||||
|
||||
/*---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;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_btn_args = array(
|
||||
'target' => '#'.$info_table_btn_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
$info_table_btn_data_list = get_ultimate_vc_responsive_media_css($info_table_btn_args);
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_info_table ult_design_5 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_info_tables).'">
|
||||
<div class="ult_pricing_table '.esc_attr($info_tab_ht).'" style="'.esc_attr($normal_style).' '.esc_attr($info_tab_ht_style).'">';
|
||||
$output .= '<div id="'.esc_attr($info_table_id).'" class="ult_pricing_heading" style="'.esc_attr($featured_style).'">
|
||||
<'.esc_attr($heading_tag).' class="ult-responsive" '.$info_table_data_list.' style="'.esc_attr($heading_style_inline).'">'.$package_heading.'</'.esc_attr($heading_tag).'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.esc_attr($sub_heading_tag).' class="ult-responsive" '.$info_table_sub_head_data_list.' style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.esc_attr($sub_heading_tag).'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
if(isset($box_icon) && $box_icon != '') :
|
||||
$output .= '<div class="ult_price_body_block" style="'.esc_attr($featured_style).'">
|
||||
<div class="ult_price_body">
|
||||
<div class="ult_price">
|
||||
'.$box_icon.'
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
endif;
|
||||
$output .= '<div id="'.esc_attr($info_table_features_id).'" '.$info_table_features_data_list.' class="ult-responsive ult_price_features" style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($use_cta_btn == "true"){
|
||||
$output .= '<div id="'.esc_attr($info_table_btn_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' '.$info_table_btn_data_list.' class="ult-responsive ult_price_action_button" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '</a>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,300 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Info Tables for WPBakery Page Builder
|
||||
* Template : Design layout 06
|
||||
*/
|
||||
if(!function_exists('ult_info_table_generate_design06')) {
|
||||
function ult_info_table_generate_design06($atts,$content = null){
|
||||
$icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $el_class = $package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
'color_scheme' => 'black',
|
||||
'package_heading' => '',
|
||||
'heading_tag' =>'h3',
|
||||
'package_sub_heading' => '',
|
||||
'sub_heading_tag' => 'h5',
|
||||
'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'=>'',
|
||||
'css_info_tables' => '',
|
||||
|
||||
),$atts));
|
||||
$css_info_tables = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_info_tables, ' ' ), "ultimate_info_table", $atts );
|
||||
$css_info_tables = esc_attr( $css_info_tables );
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = $box_icon = '';
|
||||
if($icon_type !== "none"){
|
||||
$box_icon = do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'" icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
}
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button">'.$package_btn_text;
|
||||
}
|
||||
|
||||
/* typography */
|
||||
|
||||
$heading_style_inline = $sub_heading_inline = $features_inline = $button_inline = '';
|
||||
|
||||
// heading
|
||||
if($heading_font_family != '')
|
||||
{
|
||||
$hdfont_family = get_ultimate_font_family($heading_font_family);
|
||||
if($hdfont_family !== '')
|
||||
$heading_style_inline .= 'font-family:\''.$hdfont_family.'\';';
|
||||
}
|
||||
|
||||
if('span' == $heading_tag){
|
||||
$heading_style_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$heading_style_inline .= get_ultimate_font_style($heading_font_style);
|
||||
|
||||
// if($heading_font_size != '')
|
||||
// $heading_style_inline .= 'font-size:'.$heading_font_size.'px;';
|
||||
|
||||
// if($heading_line_height != '')
|
||||
// $heading_style_inline .= 'line-height:'.$heading_line_height.'px;';
|
||||
|
||||
if($heading_font_color != '')
|
||||
$heading_style_inline .= 'color:'.$heading_font_color.';';
|
||||
|
||||
|
||||
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.' '.$heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $heading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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.'\';';
|
||||
}
|
||||
|
||||
if('span' == $sub_heading_tag){
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
}
|
||||
|
||||
$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.' '.$sub_heading_tag, // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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 != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_features_id= 'info_table_features_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_features_args = array(
|
||||
'target' => '#'.$info_table_features_id.'.ult_price_features', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
$info_table_features_data_list = get_ultimate_vc_responsive_media_css($info_table_features_args);
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
/*---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;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
|
||||
$info_table_btn_id= 'info_table_btn_wrap-'.rand(1000, 9999);
|
||||
|
||||
$info_table_btn_args = array(
|
||||
'target' => '#'.$info_table_btn_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
$info_table_btn_data_list = get_ultimate_vc_responsive_media_css($info_table_btn_args);
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_info_table ult_design_6 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_info_tables).'">
|
||||
<div class="ult_pricing_table '.esc_attr($info_tab_ht).'" style="'.esc_attr($normal_style).' '.esc_attr($info_tab_ht_style).'">';
|
||||
$output .= '<div id="'.esc_attr($info_table_id).'" class="ult_pricing_heading" style="'.esc_attr($featured_style).'">
|
||||
<'.esc_attr($heading_tag).' class="ult-responsive" '.$info_table_data_list.' style="'.esc_attr($heading_style_inline).'">'.$package_heading.'</'.esc_attr($heading_tag).'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.esc_attr($sub_heading_tag).' class="ult-responsive"'.$info_table_sub_head_data_list.' class="ult-responsive" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.esc_attr($sub_heading_tag).'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
if(isset($box_icon) && $box_icon != '') :
|
||||
$output .= '<div class="ult_price_body_block" style="'.esc_attr($featured_style).'">
|
||||
<div class="ult_price_body">
|
||||
<div class="ult_price">
|
||||
'.$box_icon.'
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
endif;
|
||||
$output .= '<div id="'.esc_attr($info_table_features_id).'" '.$info_table_features_data_list.' class="ult-responsive ult_price_features" style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($use_cta_btn == "true"){
|
||||
$output .= '<div id="'.esc_attr($info_table_btn_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' '.$info_table_btn_data_list.' class="ult-responsive ult_price_action_button" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
if($use_cta_btn == "box"){
|
||||
$output .= '</a>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php␍/*Silence is Golden*/␍?>
|
||||
@@ -0,0 +1,376 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Stats Counter for WPBakery Page Builder
|
||||
* Template : Design layout 01
|
||||
*/
|
||||
if(!function_exists('ult_price_generate_design01')) {
|
||||
function ult_price_generate_design01($atts,$content = null){
|
||||
$package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
"color_scheme" => "black",
|
||||
"package_heading" => "",
|
||||
"heading_tag"=> "h3",
|
||||
"package_sub_heading" => "",
|
||||
"sub_heading_tag"=> "h5",
|
||||
"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" => "",
|
||||
"css_price_box" => "",
|
||||
|
||||
),$atts));
|
||||
$css_price_box = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_price_box, ' ' ), "ultimate_pricing", $atts );
|
||||
$css_price_box = esc_attr( $css_price_box );
|
||||
$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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
$dynamic_style = $featured_style;
|
||||
} else {
|
||||
$dynamic_style = $normal_style;
|
||||
}
|
||||
|
||||
/* 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(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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $package_name_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $package_name_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_data_list = get_ultimate_vc_responsive_media_css($price_table_args);
|
||||
|
||||
|
||||
if($package_name_font_color != '')
|
||||
$package_name_inline .= 'color:'.$package_name_font_color.';';
|
||||
|
||||
|
||||
// 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($sub_heading_tag == 'span')
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
|
||||
|
||||
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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_line_height)){
|
||||
$price_line_height = 'desktop:'.$price_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_id = 'price-table-wrap-'.rand(1000, 9999);
|
||||
|
||||
$price_table_price_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_figure', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_data_list = get_ultimate_vc_responsive_media_css($price_table_price_args);
|
||||
|
||||
|
||||
// price unit
|
||||
if($price_unit_font_family != '')
|
||||
{
|
||||
$price_unitfont_family = get_ultimate_font_family($price_unit_font_family);
|
||||
if($price_unitfont_family !== '')
|
||||
$price_unit_inline .= 'font-family:\''.$price_unitfont_family.'\';';
|
||||
}
|
||||
|
||||
$price_unit_inline .= get_ultimate_font_style($price_unit_font_style);
|
||||
|
||||
// if($price_unit_font_size != '')
|
||||
// $price_unit_inline .= 'font-size:'.$price_unit_font_size.'px;';
|
||||
|
||||
// if($price_unit_line_height != '')
|
||||
// $price_unit_inline .= 'line-height:'.$price_unit_line_height.'px;';
|
||||
|
||||
if($price_unit_font_color != '')
|
||||
$price_unit_inline .= 'color:'.$price_unit_font_color.';';
|
||||
|
||||
if(is_numeric($price_unit_font_size)){
|
||||
$price_unit_font_size = 'desktop:'.$price_unit_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_unit_line_height)){
|
||||
$price_unit_line_height = 'desktop:'.$price_unit_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_unit_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_term', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_unit_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_unit_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_unit_data_list = get_ultimate_vc_responsive_media_css($price_table_price_unit_args);
|
||||
|
||||
// features
|
||||
if($features_font_family != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
$price_table_features_id = 'price-table-features-wrap-'.rand(1000, 9999);
|
||||
$price_table_features_args = array(
|
||||
'target' => '#'.$price_table_features_id.'', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_features_data_list = get_ultimate_vc_responsive_media_css($price_table_features_args);
|
||||
|
||||
$ult_price_table_ht=''; $price_normal_style='';
|
||||
if($min_ht != ''){
|
||||
$ult_price_table_ht.='ult_price_table_ht';
|
||||
$price_normal_style .= 'min-height:'.$min_ht.'px;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
$price_table_button_id = 'price-table-button-wrap-'.rand(1000, 9999);
|
||||
$price_table_button_args = array(
|
||||
'target' => '#'.$price_table_button_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_button_data_list = get_ultimate_vc_responsive_media_css($price_table_button_args);
|
||||
|
||||
/*$args = array(
|
||||
$package_name_font_family, $subheading_font_family, $price_font_family, $features_font_family, $button_font_family
|
||||
);
|
||||
enquque_ultimate_google_fonts($args);*/
|
||||
|
||||
/* End Typography */
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_design_1 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_price_box).'">
|
||||
<div class="ult_pricing_table '.esc_attr($ult_price_table_ht).'" style="'.esc_attr($featured_style).' '.esc_attr($price_normal_style).'">';
|
||||
|
||||
$output .= '<div class="ult_pricing_heading" id="'.esc_attr($price_table_id).'">
|
||||
<'.$heading_tag.' class="price-heading cust-headformat ult-responsive" '.$price_table_data_list.' style="'.esc_attr($package_name_inline).'">'.$package_heading.'</'.$heading_tag.'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.$sub_heading_tag.' '.$price_table_subhead_data_list.' class="price-subheading cust-subhead ult-responsive" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.$sub_heading_tag.'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block">
|
||||
<div class="ult_price_body">
|
||||
<div id="'.esc_attr($price_table_price_id).'" class="ult_price">
|
||||
<span '.$price_table_price_data_list.' class="ult_price_figure ult-responsive" style="'.esc_attr($price_inline).'">'.esc_html($package_price).'</span>
|
||||
<span '.$price_table_price_unit_data_list.' class="ult_price_term ult-responsive" style="'.esc_attr($price_unit_inline).'">'.esc_html($package_unit).'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
$output .= '<div id="'.esc_attr($price_table_features_id).'" class="ult_price_features ult-responsive" '.$price_table_features_data_list.' style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($package_btn_text !== ""){
|
||||
$output .= '<div id="'.esc_attr($price_table_button_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '.$price_table_button_data_list.' '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button ult-responsive" style="'.$featured_style.' '.$button_inline.'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,371 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Stats Counter for WPBakery Page Builder
|
||||
* Template : Design layout 02
|
||||
*/
|
||||
if(!function_exists('ult_price_generate_design02')) {
|
||||
function ult_price_generate_design02($atts,$content = null){
|
||||
$package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
"color_scheme" => "black",
|
||||
"package_heading" => "",
|
||||
"heading_tag"=> "h3",
|
||||
"package_sub_heading" => "",
|
||||
"sub_heading_tag"=> "h5",
|
||||
"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" => "",
|
||||
"css_price_box" => "",
|
||||
|
||||
),$atts));
|
||||
$css_price_box = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_price_box, ' ' ), "ultimate_pricing", $atts );
|
||||
$css_price_box = esc_attr( $css_price_box );
|
||||
$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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} 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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $package_name_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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($sub_heading_tag == 'span')
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
|
||||
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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_line_height)){
|
||||
$price_line_height = 'desktop:'.$price_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_id = 'price-table-wrap-'.rand(1000, 9999);
|
||||
|
||||
$price_table_price_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_figure', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_data_list = get_ultimate_vc_responsive_media_css($price_table_price_args);
|
||||
|
||||
// price unit
|
||||
if($price_unit_font_family != '')
|
||||
{
|
||||
$price_unitfont_family = get_ultimate_font_family($price_unit_font_family);
|
||||
if($price_unitfont_family !== '')
|
||||
$price_unit_inline .= 'font-family:\''.$price_unitfont_family.'\';';
|
||||
}
|
||||
|
||||
$price_unit_inline .= get_ultimate_font_style($price_unit_font_style);
|
||||
|
||||
// if($price_unit_font_size != '')
|
||||
// $price_unit_inline .= 'font-size:'.$price_unit_font_size.'px;';
|
||||
|
||||
// if($price_unit_line_height != '')
|
||||
// $price_unit_inline .= 'line-height:'.$price_unit_line_height.'px;';
|
||||
|
||||
if($price_unit_font_color != '')
|
||||
$price_unit_inline .= 'color:'.$price_unit_font_color.';';
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($price_unit_font_size)){
|
||||
$price_unit_font_size = 'desktop:'.$price_unit_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_unit_line_height)){
|
||||
$price_unit_line_height = 'desktop:'.$price_unit_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_unit_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_term', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_unit_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_unit_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_unit_data_list = get_ultimate_vc_responsive_media_css($price_table_price_unit_args);
|
||||
|
||||
// features
|
||||
if($features_font_family != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
$price_table_features_id = 'price-table-features-wrap-'.rand(1000, 9999);
|
||||
$price_table_features_args = array(
|
||||
'target' => '#'.$price_table_features_id.'', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_features_data_list = get_ultimate_vc_responsive_media_css($price_table_features_args);
|
||||
|
||||
/*-- min height-------*/
|
||||
$ult_price_table_ht='';
|
||||
if($min_ht != ''){
|
||||
$ult_price_table_ht.='ult_price_table_ht';
|
||||
$normal_style .= 'min-height:'.$min_ht.'px;';
|
||||
}
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
$price_table_button_id = 'price-table-button-wrap-'.rand(1000, 9999);
|
||||
$price_table_button_args = array(
|
||||
'target' => '#'.$price_table_button_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_button_data_list = get_ultimate_vc_responsive_media_css($price_table_button_args);
|
||||
|
||||
/*$args = array(
|
||||
$package_name_font_family, $subheading_font_family, $price_font_family, $features_font_family, $button_font_family
|
||||
);
|
||||
enquque_ultimate_google_fonts($args);*/
|
||||
|
||||
/* End Typography */
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_design_2 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_price_box).'">
|
||||
<div class="ult_pricing_table '.esc_attr($ult_price_table_ht).' " style="'.esc_attr($normal_style).'">';
|
||||
$output .= '<div id="'.esc_attr($price_table_id).'" class="ult_pricing_heading" style="'.esc_attr($featured_style).'">
|
||||
<'.$heading_tag.' '.$price_table_data_list.' class="price-heading ult-responsive cust-headformat" style="'.esc_attr($package_name_inline).'">'.$package_heading.'</'.$heading_tag.'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.$sub_heading_tag.' '.$price_table_subhead_data_list.' class="price-subheading ult-responsive cust-subhead" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.$sub_heading_tag.'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block">
|
||||
<div class="ult_price_body">
|
||||
<div id="'.esc_attr($price_table_price_id).'" class="ult_price">
|
||||
<span '.$price_table_price_data_list.' class="ult_price_figure ult-responsive" style="'.esc_attr($price_inline).'">'.esc_html($package_price).'</span>
|
||||
<span '.$price_table_price_unit_data_list.' class="ult_price_term ult-responsive" style="'.esc_attr($price_unit_inline).'">'.esc_html($package_unit).'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
if($package_btn_text !== ""){
|
||||
$output .= '<div id="'.esc_attr($price_table_button_id).'" class="ult_price_link">
|
||||
<a '.$price_table_button_data_list.' '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button ult-responsive" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div id="'.esc_attr($price_table_features_id).'" class="ult_price_features ult-responsive" '.$price_table_features_data_list.' style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Stats Counter for WPBakery Page Builder
|
||||
* Template : Design layout 03
|
||||
*/
|
||||
if(!function_exists('ult_price_generate_design03')) {
|
||||
function ult_price_generate_design03($atts,$content = null){
|
||||
$package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
"color_scheme" => "black",
|
||||
"package_heading" => "",
|
||||
"heading_tag"=> "h3",
|
||||
"package_sub_heading" => "",
|
||||
"sub_heading_tag"=> "h5",
|
||||
"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" => "",
|
||||
"css_price_box" => "",
|
||||
|
||||
),$atts));
|
||||
$css_price_box = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_price_box, ' ' ), "ultimate_pricing", $atts );
|
||||
$css_price_box = esc_attr( $css_price_box );
|
||||
$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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} else {
|
||||
$link = "#";
|
||||
}
|
||||
if($package_featured !== ""){
|
||||
$featured = "ult_featured";
|
||||
}
|
||||
|
||||
/*-- min height-------*/
|
||||
$ult_price_table_ht='';
|
||||
if($min_ht != ''){
|
||||
$ult_price_table_ht.='ult_price_table_ht';
|
||||
$normal_style .= 'min-height:'.$min_ht.'px;';
|
||||
}
|
||||
|
||||
/* 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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $package_name_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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($sub_heading_tag == 'span')
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
|
||||
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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_line_height)){
|
||||
$price_line_height = 'desktop:'.$price_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_id = 'price-table-wrap-'.rand(1000, 9999);
|
||||
|
||||
$price_table_price_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_figure', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_data_list = get_ultimate_vc_responsive_media_css($price_table_price_args);
|
||||
|
||||
// price unit
|
||||
if($price_unit_font_family != '')
|
||||
{
|
||||
$price_unitfont_family = get_ultimate_font_family($price_unit_font_family);
|
||||
if($price_unitfont_family !== '')
|
||||
$price_unit_inline .= 'font-family:\''.$price_unitfont_family.'\';';
|
||||
}
|
||||
|
||||
$price_unit_inline .= get_ultimate_font_style($price_unit_font_style);
|
||||
|
||||
// if($price_unit_font_size != '')
|
||||
// $price_unit_inline .= 'font-size:'.$price_unit_font_size.'px;';
|
||||
|
||||
// if($price_unit_line_height != '')
|
||||
// $price_unit_inline .= 'line-height:'.$price_unit_line_height.'px;';
|
||||
|
||||
if($price_unit_font_color != '')
|
||||
$price_unit_inline .= 'color:'.$price_unit_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($price_unit_font_size)){
|
||||
$price_unit_font_size = 'desktop:'.$price_unit_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_unit_line_height)){
|
||||
$price_unit_line_height = 'desktop:'.$price_unit_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_unit_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_term', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_unit_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_unit_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_unit_data_list = get_ultimate_vc_responsive_media_css($price_table_price_unit_args);
|
||||
|
||||
// features
|
||||
if($features_font_family != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
$price_table_features_id = 'price-table-features-wrap-'.rand(1000, 9999);
|
||||
$price_table_features_args = array(
|
||||
'target' => '#'.$price_table_features_id.'', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_features_data_list = get_ultimate_vc_responsive_media_css($price_table_features_args);
|
||||
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
$price_table_button_id = 'price-table-button-wrap-'.rand(1000, 9999);
|
||||
$price_table_button_args = array(
|
||||
'target' => '#'.$price_table_button_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_button_data_list = get_ultimate_vc_responsive_media_css($price_table_button_args);
|
||||
|
||||
/*$args = array(
|
||||
$package_name_font_family, $subheading_font_family, $price_font_family, $features_font_family, $button_font_family
|
||||
);
|
||||
enquque_ultimate_google_fonts($args);*/
|
||||
|
||||
/* End Typography */
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_design_3 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_price_box).'">
|
||||
<div class="ult_pricing_table '.esc_attr($ult_price_table_ht).'" style="'.esc_attr($normal_style).'">';
|
||||
$output .= '<div id="'.esc_attr($price_table_id).'" class="ult_pricing_heading">
|
||||
<'.$heading_tag.' class="price-heading ult-responsive cust-headformat" '.$price_table_data_list.' style="'.esc_attr($package_name_inline).'">'.$package_heading.'</'.$heading_tag.'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.$sub_heading_tag.' '.$price_table_subhead_data_list.' class="price-subheading ult-responsive cust-subhead" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.$sub_heading_tag.'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block" style="'.esc_attr($featured_style).'">
|
||||
<div class="ult_price_body">
|
||||
<div id="'.esc_attr($price_table_price_id).'" class="ult_price">
|
||||
<span '.$price_table_price_data_list.' class="ult_price_figure ult-responsive" style="'.esc_attr($price_inline).'">'.esc_html($package_price).'</span>
|
||||
<span '.$price_table_price_unit_data_list.' class="ult_price_term ult-responsive" style="'.esc_attr($price_unit_inline).'">'.esc_html($package_unit).'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
$output .= '<div id="'.esc_attr($price_table_features_id).'" class="ult_price_features ult-responsive" '.$price_table_features_data_list.' style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($package_btn_text !== ""){
|
||||
$output .= '<div id="'.esc_attr($price_table_button_id).'" class="ult_price_link">
|
||||
<a '.$price_table_button_data_list.' '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button ult-responsive" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,376 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Stats Counter for WPBakery Page Builder
|
||||
* Template : Design layout 04
|
||||
*/
|
||||
if(!function_exists('ult_price_generate_design04')) {
|
||||
function ult_price_generate_design04($atts,$content = null){
|
||||
$package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
"color_scheme" => "black",
|
||||
"package_heading" => "",
|
||||
"heading_tag"=> "h3",
|
||||
"package_sub_heading" => "",
|
||||
"sub_heading_tag"=> "h5",
|
||||
"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" => "",
|
||||
"css_price_box" => "",
|
||||
|
||||
),$atts));
|
||||
$css_price_box = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_price_box, ' ' ), "ultimate_pricing", $atts );
|
||||
$css_price_box = esc_attr( $css_price_box );
|
||||
$output = $link = $target = $featured = $featured_style = $normal_style = $dynamic_style = '';
|
||||
if($color_scheme == "custom"){
|
||||
if($color_bg_main !== ""){
|
||||
$normal_style .= 'background:'.$color_bg_main.';';
|
||||
$normal_style .= 'border-top-color:'.$color_bg_highlight.';';
|
||||
}
|
||||
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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} 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($sub_heading_tag == 'span')
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
|
||||
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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $package_name_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_line_height)){
|
||||
$price_line_height = 'desktop:'.$price_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_id = 'price-table-wrap-'.rand(1000, 9999);
|
||||
|
||||
$price_table_price_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_figure', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_data_list = get_ultimate_vc_responsive_media_css($price_table_price_args);
|
||||
|
||||
// price unit
|
||||
if($price_unit_font_family != '')
|
||||
{
|
||||
$price_unitfont_family = get_ultimate_font_family($price_unit_font_family);
|
||||
if($price_unitfont_family !== '')
|
||||
$price_unit_inline .= 'font-family:\''.$price_unitfont_family.'\';';
|
||||
}
|
||||
|
||||
$price_unit_inline .= get_ultimate_font_style($price_unit_font_style);
|
||||
|
||||
// if($price_unit_font_size != '')
|
||||
// $price_unit_inline .= 'font-size:'.$price_unit_font_size.'px;';
|
||||
|
||||
// if($price_unit_line_height != '')
|
||||
// $price_unit_inline .= 'line-height:'.$price_unit_line_height.'px;';
|
||||
|
||||
if($price_unit_font_color != '')
|
||||
$price_unit_inline .= 'color:'.$price_unit_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($price_unit_font_size)){
|
||||
$price_unit_font_size = 'desktop:'.$price_unit_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_unit_line_height)){
|
||||
$price_unit_line_height = 'desktop:'.$price_unit_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_unit_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_term', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_unit_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_unit_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_unit_data_list = get_ultimate_vc_responsive_media_css($price_table_price_unit_args);
|
||||
|
||||
// features
|
||||
if($features_font_family != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
$price_table_features_id = 'price-table-features-wrap-'.rand(1000, 9999);
|
||||
$price_table_features_args = array(
|
||||
'target' => '#'.$price_table_features_id.'', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_features_data_list = get_ultimate_vc_responsive_media_css($price_table_features_args);
|
||||
|
||||
/*-- min height-------*/
|
||||
$ult_price_table_ht='';
|
||||
if($min_ht != ''){
|
||||
$ult_price_table_ht.='ult_price_table_ht';
|
||||
$normal_style .= 'min-height:'.$min_ht.'px;';
|
||||
}
|
||||
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
$price_table_button_id = 'price-table-button-wrap-'.rand(1000, 9999);
|
||||
$price_table_button_args = array(
|
||||
'target' => '#'.$price_table_button_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_button_data_list = get_ultimate_vc_responsive_media_css($price_table_button_args);
|
||||
|
||||
/*$args = array(
|
||||
$package_name_font_family, $subheading_font_family, $price_font_family, $features_font_family, $button_font_family
|
||||
);
|
||||
enquque_ultimate_google_fonts($args);*/
|
||||
|
||||
/* End Typography */
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_design_4 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_price_box).'">
|
||||
<div class="ult_pricing_table '.esc_attr($ult_price_table_ht).'" style="'.esc_attr($normal_style).'">';
|
||||
$output .= '<div id="'.esc_attr($price_table_id).'" class="ult_pricing_heading">
|
||||
<'.$heading_tag.' class="price-heading ult-responsive cust-headformat" '.$price_table_data_list.' style="'.esc_attr($package_name_inline).'">'.$package_heading.'</'.$heading_tag.'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.$sub_heading_tag.' class="price-subheading ult-responsive cust-subhead" '.$price_table_subhead_data_list.' style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.$sub_heading_tag.'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block">
|
||||
<div class="ult_price_body">
|
||||
<div id="'.esc_attr($price_table_price_id).'" class="ult_price">
|
||||
<span '.$price_table_price_data_list.' class="ult_price_figure ult-responsive" style="'.esc_attr($price_inline).'">'.esc_html($package_price).'</span>
|
||||
<span '.$price_table_price_unit_data_list.' class="ult_price_term ult-responsive" style="'.esc_attr($price_unit_inline).'">'.esc_html($package_unit).'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
$output .= '<div id="'.esc_attr($price_table_features_id).'" class="ult_price_features ult-responsive" '.$price_table_features_data_list.' style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($package_btn_text !== ""){
|
||||
$output .= '<div id="'.esc_attr($price_table_button_id).'" class="ult_price_link">
|
||||
<a '.$price_table_button_data_list.' '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button ult-responsive" style="'.esc_attr($featured_style).' '.$button_inline.'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,375 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Stats Counter for WPBakery Page Builder
|
||||
* Template : Design layout 05
|
||||
*/
|
||||
if(!function_exists('ult_price_generate_design05')) {
|
||||
function ult_price_generate_design05($atts,$content = null){
|
||||
$package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
"color_scheme" => "black",
|
||||
"package_heading" => "",
|
||||
"heading_tag"=> "h3",
|
||||
"package_sub_heading" => "",
|
||||
"sub_heading_tag"=> "h5",
|
||||
"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" => "",
|
||||
"css_price_box" => "",
|
||||
|
||||
),$atts));
|
||||
$css_price_box = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_price_box, ' ' ), "ultimate_pricing", $atts );
|
||||
$css_price_box = esc_attr( $css_price_box );
|
||||
$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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} 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($sub_heading_tag == 'span')
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
|
||||
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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $package_name_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_line_height)){
|
||||
$price_line_height = 'desktop:'.$price_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_id = 'price-table-wrap-'.rand(1000, 9999);
|
||||
|
||||
$price_table_price_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_figure', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_data_list = get_ultimate_vc_responsive_media_css($price_table_price_args);
|
||||
|
||||
// price unit
|
||||
if($price_unit_font_family != '')
|
||||
{
|
||||
$price_unitfont_family = get_ultimate_font_family($price_unit_font_family);
|
||||
if($price_unitfont_family !== '')
|
||||
$price_unit_inline .= 'font-family:\''.$price_unitfont_family.'\';';
|
||||
}
|
||||
|
||||
$price_unit_inline .= get_ultimate_font_style($price_unit_font_style);
|
||||
|
||||
// if($price_unit_font_size != '')
|
||||
// $price_unit_inline .= 'font-size:'.$price_unit_font_size.'px;';
|
||||
|
||||
// if($price_unit_line_height != '')
|
||||
// $price_unit_inline .= 'line-height:'.$price_unit_line_height.'px;';
|
||||
|
||||
if($price_unit_font_color != '')
|
||||
$price_unit_inline .= 'color:'.$price_unit_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($price_unit_font_size)){
|
||||
$price_unit_font_size = 'desktop:'.$price_unit_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_unit_line_height)){
|
||||
$price_unit_line_height = 'desktop:'.$price_unit_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_unit_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_term', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_unit_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_unit_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_unit_data_list = get_ultimate_vc_responsive_media_css($price_table_price_unit_args);
|
||||
|
||||
// features
|
||||
if($features_font_family != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
$price_table_features_id = 'price-table-features-wrap-'.rand(1000, 9999);
|
||||
$price_table_features_args = array(
|
||||
'target' => '#'.$price_table_features_id.'', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_features_data_list = get_ultimate_vc_responsive_media_css($price_table_features_args);
|
||||
|
||||
/*-- min height-------*/
|
||||
$ult_price_table_ht='';
|
||||
if($min_ht != ''){
|
||||
$ult_price_table_ht.='ult_price_table_ht';
|
||||
$normal_style .= 'min-height:'.$min_ht.'px;';
|
||||
}
|
||||
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
$price_table_button_id = 'price-table-button-wrap-'.rand(1000, 9999);
|
||||
$price_table_button_args = array(
|
||||
'target' => '#'.$price_table_button_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_button_data_list = get_ultimate_vc_responsive_media_css($price_table_button_args);
|
||||
|
||||
/*$args = array(
|
||||
$package_name_font_family, $subheading_font_family, $price_font_family, $features_font_family, $button_font_family
|
||||
);
|
||||
enquque_ultimate_google_fonts($args);*/
|
||||
|
||||
/* End Typography */
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_design_5 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_price_box).'">
|
||||
<div class="ult_pricing_table '.esc_attr($ult_price_table_ht).'" style="'.esc_attr($normal_style).'">';
|
||||
$output .= '<div id="'.esc_attr($price_table_id).'" class="ult_pricing_heading" style="'.esc_attr($featured_style).'">
|
||||
<'.$heading_tag.' class="price-heading ult-responsive cust-headformat" '.$price_table_data_list.' style="'.esc_attr($package_name_inline).'">'.$package_heading.'</'.$heading_tag.'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.$sub_heading_tag.' '.$price_table_subhead_data_list.' class="price-subheading ult-responsive cust-subhead" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.$sub_heading_tag.'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block" style="'.$featured_style.'">
|
||||
<div class="ult_price_body">
|
||||
<div id="'.esc_attr($price_table_price_id).'" class="ult_price">
|
||||
<span '.$price_table_price_data_list.' class="ult_price_figure ult-responsive" style="'.esc_attr($price_inline).'">'.esc_html($package_price).'</span>
|
||||
<span '.$price_table_price_unit_data_list.' class="ult_price_term ult-responsive" style="'.esc_attr($price_unit_inline).'">'.esc_html($package_unit).'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
$output .= '<div id="'.esc_attr($price_table_features_id).'" class="ult_price_features ult-responsive" '.$price_table_features_data_list.' style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($package_btn_text !== ""){
|
||||
$output .= '<div id="'.esc_attr($price_table_button_id).'" class="ult_price_link">
|
||||
<a '.$price_table_button_data_list.' '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button ult-responsive" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,380 @@
|
||||
<?php
|
||||
/*
|
||||
* Add-on Name: Stats Counter for WPBakery Page Builder
|
||||
* Template : Design layout 06
|
||||
*/
|
||||
if(!function_exists('ult_price_generate_design06')) {
|
||||
function ult_price_generate_design06($atts,$content = null){
|
||||
$package_heading = $heading_tag = $package_sub_heading = $sub_heading_tag = $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 = $target = $link_title = $rel = '';
|
||||
extract(shortcode_atts(array(
|
||||
"color_scheme" => "black",
|
||||
"package_heading" => "",
|
||||
"heading_tag"=> "h3",
|
||||
"package_sub_heading" => "",
|
||||
"sub_heading_tag"=> "h5",
|
||||
"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" => "",
|
||||
"css_price_box" => "",
|
||||
|
||||
),$atts));
|
||||
$css_price_box = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css_price_box, ' ' ), "ultimate_pricing", $atts );
|
||||
$css_price_box = esc_attr( $css_price_box );
|
||||
$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 !== ""){
|
||||
$href = vc_build_link($package_link);
|
||||
|
||||
$link = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url'] : '';
|
||||
$target = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attr( trim( $href['target'] ) ) : '';
|
||||
$link_title = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
|
||||
$rel = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
|
||||
} 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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $package_name_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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($sub_heading_tag == 'span')
|
||||
$sub_heading_inline .= 'display:block;';
|
||||
|
||||
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', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $subheading_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'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;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_line_height)){
|
||||
$price_line_height = 'desktop:'.$price_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_id = 'price-table-wrap-'.rand(1000, 9999);
|
||||
|
||||
$price_table_price_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_figure', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_data_list = get_ultimate_vc_responsive_media_css($price_table_price_args);
|
||||
|
||||
// price unit
|
||||
if($price_unit_font_family != '')
|
||||
{
|
||||
$price_unitfont_family = get_ultimate_font_family($price_unit_font_family);
|
||||
if($price_unitfont_family !== '')
|
||||
$price_unit_inline .= 'font-family:\''.$price_unitfont_family.'\';';
|
||||
}
|
||||
|
||||
$price_unit_inline .= get_ultimate_font_style($price_unit_font_style);
|
||||
|
||||
// if($price_unit_font_size != '')
|
||||
// $price_unit_inline .= 'font-size:'.$price_unit_font_size.'px;';
|
||||
|
||||
// if($price_unit_line_height != '')
|
||||
// $price_unit_inline .= 'line-height:'.$price_unit_line_height.'px;';
|
||||
|
||||
if($price_unit_font_color != '')
|
||||
$price_unit_inline .= 'color:'.$price_unit_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($price_unit_font_size)){
|
||||
$price_unit_font_size = 'desktop:'.$price_unit_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($price_unit_line_height)){
|
||||
$price_unit_line_height = 'desktop:'.$price_unit_line_height.'px;';
|
||||
}
|
||||
|
||||
$price_table_price_unit_args = array(
|
||||
'target' => '#'.$price_table_price_id.' .ult_price_term', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $price_unit_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $price_unit_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_price_unit_data_list = get_ultimate_vc_responsive_media_css($price_table_price_unit_args);
|
||||
|
||||
// features
|
||||
if($features_font_family != '')
|
||||
{
|
||||
$featuresfont_family = get_ultimate_font_family($features_font_family);
|
||||
if($featuresfont_family !== '')
|
||||
$features_inline .= 'font-family:\''.$featuresfont_family.'\';';
|
||||
}
|
||||
|
||||
$features_inline .= get_ultimate_font_style($features_font_style);
|
||||
|
||||
// if($features_font_size != '')
|
||||
// $features_inline .= 'font-size:'.$features_font_size.'px;';
|
||||
|
||||
// if($features_line_height != '')
|
||||
// $features_inline .= 'line-height:'.$features_line_height.'px;';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($features_font_size)){
|
||||
$features_font_size = 'desktop:'.$features_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($features_line_height)){
|
||||
$features_line_height = 'desktop:'.$features_line_height.'px;';
|
||||
}
|
||||
$price_table_features_id = 'price-table-features-wrap-'.rand(1000, 9999);
|
||||
$price_table_features_args = array(
|
||||
'target' => '#'.$price_table_features_id.'', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $features_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $features_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_features_data_list = get_ultimate_vc_responsive_media_css($price_table_features_args);
|
||||
|
||||
/*-- min height-------*/
|
||||
$price_normal_style='';
|
||||
$ult_price_table_ht='';
|
||||
if($min_ht != ''){
|
||||
$ult_price_table_ht.='ult_price_table_ht';
|
||||
$price_normal_style .= 'min-height:'.$min_ht.'px;';
|
||||
}
|
||||
|
||||
|
||||
|
||||
// button
|
||||
if($button_font_family != '')
|
||||
{
|
||||
$buttonfont_family = get_ultimate_font_family($button_font_family);
|
||||
if($buttonfont_family !== '')
|
||||
$button_inline .= 'font-family:\''.$buttonfont_family.'\';';
|
||||
}
|
||||
|
||||
$button_inline .= get_ultimate_font_style($button_font_style);
|
||||
|
||||
// if($button_font_size != '')
|
||||
// $button_inline .= 'font-size:'.$button_font_size.'px;';
|
||||
|
||||
// if($button_line_height != '')
|
||||
// $button_inline .= 'line-height:'.$button_line_height.'px;';
|
||||
|
||||
if($button_font_color != '')
|
||||
$button_inline .= 'color:'.$button_font_color.';';
|
||||
|
||||
if($features_font_color != '')
|
||||
$features_inline .= 'color:'.$features_font_color.';';
|
||||
|
||||
//responsive param
|
||||
|
||||
if(is_numeric($button_font_size)){
|
||||
$button_font_size = 'desktop:'.$button_font_size.'px;';
|
||||
}
|
||||
|
||||
if(is_numeric($button_line_height)){
|
||||
$button_line_height = 'desktop:'.$button_line_height.'px;';
|
||||
}
|
||||
$price_table_button_id = 'price-table-button-wrap-'.rand(1000, 9999);
|
||||
$price_table_button_args = array(
|
||||
'target' => '#'.$price_table_button_id.' .ult_price_action_button', // set targeted element e.g. unique class/id etc.
|
||||
'media_sizes' => array(
|
||||
'font-size' => $button_font_size, // set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
|
||||
'line-height' => $button_line_height
|
||||
),
|
||||
);
|
||||
|
||||
$price_table_button_data_list = get_ultimate_vc_responsive_media_css($price_table_button_args);
|
||||
|
||||
/*$args = array(
|
||||
$package_name_font_family, $subheading_font_family, $price_font_family, $features_font_family, $button_font_family
|
||||
);
|
||||
enquque_ultimate_google_fonts($args);*/
|
||||
|
||||
/* End Typography */
|
||||
|
||||
$output .= '<div class="ult_pricing_table_wrap ult_design_6 '.esc_attr($featured).' ult-cs-'.esc_attr($color_scheme).' '.esc_attr($el_class).' '.esc_attr($css_price_box).'">
|
||||
<div class="ult_pricing_table '.esc_attr($ult_price_table_ht).'" style="'.esc_attr($normal_style).' '.esc_attr($price_normal_style).'">';
|
||||
$output .= '<div id="'.esc_attr($price_table_id).'" class="ult_pricing_heading" style="'.esc_attr($featured_style).'">
|
||||
<'.$heading_tag.' class="price-heading ult-responsive cust-headformat" '.$price_table_data_list.' style="'.esc_attr($package_name_inline).'">'.$package_heading.'</'.$heading_tag.'>';
|
||||
if($package_sub_heading !== ''){
|
||||
$output .= '<'.$sub_heading_tag.' '.$price_table_subhead_data_list.' class="price-subheading ult-responsive cust-subhead" style="'.esc_attr($sub_heading_inline).'">'.$package_sub_heading.'</'.$sub_heading_tag.'>';
|
||||
}
|
||||
$output .= '</div><!--ult_pricing_heading-->';
|
||||
$output .= '<div class="ult_price_body_block" style="'.esc_attr($featured_style).'">
|
||||
<div class="ult_price_body">
|
||||
<div id="'.esc_attr($price_table_price_id).'" class="ult_price">
|
||||
<span '.$price_table_price_data_list.' class="ult_price_figure ult-responsive" style="'.esc_attr($price_inline).'">'.esc_html($package_price).'</span>
|
||||
<span '.$price_table_price_unit_data_list.' class="ult_price_term ult-responsive" style="'.esc_attr($price_unit_inline).'">'.esc_html($package_unit).'</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--ult_price_body_block-->';
|
||||
$output .= '<div id="'.esc_attr($price_table_features_id).'" class="ult_price_features ult-responsive" '.$price_table_features_data_list.' style="'.esc_attr($features_inline).'">
|
||||
'.wpb_js_remove_wpautop(do_shortcode($content), true).'
|
||||
</div><!--ult_price_features-->';
|
||||
if($package_btn_text !== ""){
|
||||
$output .= '<div id="'.esc_attr($price_table_button_id).'" class="ult_price_link" style="'.esc_attr($normal_style).'">
|
||||
<a '.$price_table_button_data_list.' '. Ultimate_VC_Addons::uavc_link_init($link, $target, $link_title, $rel ).' class="ult_price_action_button ult-responsive" style="'.esc_attr($featured_style).' '.esc_attr($button_inline).'">'.$package_btn_text.'</a>
|
||||
</div><!--ult_price_link-->';
|
||||
}
|
||||
$output .= '<div class="ult_clr"></div>
|
||||
</div><!--pricing_table-->
|
||||
</div><!--pricing_table_wrap-->';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
$output = $title = $tab_id = $font_icons_position= $icon_type= $icon= $icon_color= $icon_hover_color=
|
||||
$icon_size= $icon_background_color=$icon_margin_bottom=$icon_margin_left='';
|
||||
|
||||
extract(shortcode_atts($this->predefined_atts, $atts));
|
||||
|
||||
//wp_enqueue_script('jquery_ui_tabs_rotate');
|
||||
//wp_enqueue_script('imd_ui_tabs_rotate');
|
||||
|
||||
global $tabarr;
|
||||
|
||||
$tabarr[]=array(
|
||||
'title'=>$title,
|
||||
'tab_id'=>$tab_id,
|
||||
'font_icons_position'=>$font_icons_position,
|
||||
'icon_type'=>$icon_type,
|
||||
'icon'=>$icon,
|
||||
'icon_color'=>$icon_color,
|
||||
'icon_hover_color'=>$icon_hover_color,
|
||||
'icon_size'=>$icon_size,
|
||||
'content'=>$content,
|
||||
'icon_margin'=>$icon_margin,
|
||||
);
|
||||
|
||||
|
||||
if( current_user_can('editor') || current_user_can('administrator') ) {
|
||||
|
||||
$admn="Empty tab. Edit page to add content here.";
|
||||
}
|
||||
else{
|
||||
$admn="";
|
||||
}
|
||||
$tabcont=wpb_js_remove_wpautop($content);
|
||||
|
||||
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_tab ui-tabs-panel wpb_ui-tabs-hide vc_clearfix ult_back', $this->settings['base'], $atts );
|
||||
$output .= "\n\t\t\t" . '<div class="ult_tabitemname" >';
|
||||
$output .= ($content=='' || $content==' ') ? __($admn, "js_composer") : "\n\t\t\t\t" . wpb_js_remove_wpautop($content);
|
||||
$output .= "\n\t\t\t" . '</div> ' ;
|
||||
//do_shortcode($content);
|
||||
echo $output;
|
||||
@@ -0,0 +1,481 @@
|
||||
<?php
|
||||
/* main shortcode for Tab Element*/
|
||||
|
||||
$output = $title = $interval = $el_class = $shadow_color=$shadow_width='';
|
||||
extract( shortcode_atts( array(
|
||||
//'maintitle' => '',
|
||||
'title_color' =>'',
|
||||
'auto_rotate' =>'',
|
||||
'interval' => 0,
|
||||
'tab_style' =>'',
|
||||
'tab_bottom_border' => '',
|
||||
'border_color' => '',
|
||||
'border_thickness' => '',
|
||||
'tab_title_color' => '',
|
||||
'tab_hover_title_color' => '',
|
||||
'tab_background_color' => '',
|
||||
'tab_hover_background_color'=>'',
|
||||
'container_width' => '',
|
||||
'el_class' => '',
|
||||
'container_width' =>'',
|
||||
'main_heading_font_family' =>'',
|
||||
'title_font_size' =>'',
|
||||
'title_font_wt' =>'',
|
||||
'title_line_ht' =>'',
|
||||
'desc_font_family' =>'',
|
||||
'desc_font_size' =>'',
|
||||
'desc_font_style' =>'',
|
||||
'desc_line_ht' =>'',
|
||||
'shadow_color' =>'',
|
||||
'shadow_width' =>'',
|
||||
'enable_bg_color' =>'',
|
||||
'resp_style' =>'',
|
||||
'container_border_style' =>'',
|
||||
'container_color_border' =>'',
|
||||
'cont_border_size' =>'',
|
||||
'tabs_border_radius' =>'',
|
||||
'tab_animation' =>'',
|
||||
'tab_describe_color' =>'',
|
||||
'title_font_style' =>'',
|
||||
'css' =>'',
|
||||
'act_icon_color' =>'',
|
||||
'acttab_background' =>'',
|
||||
'acttab_title' =>'',
|
||||
'resp_type' =>'',
|
||||
'resp_width' =>'',
|
||||
'resp_style' =>'',
|
||||
'ac_tabs' =>'',
|
||||
), $atts ) );
|
||||
global $tabarr;
|
||||
$tabarr = array();
|
||||
do_shortcode($content);
|
||||
|
||||
if($acttab_background==''){
|
||||
$acttab_background=$tab_hover_background_color;
|
||||
}
|
||||
if($acttab_title==''){
|
||||
$acttab_title=$tab_hover_title_color;
|
||||
}
|
||||
|
||||
/*---------------padding---------------------*/
|
||||
$css_class='';
|
||||
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), "ult_tab_element", $atts );
|
||||
$css_class = esc_attr( $css_class );
|
||||
|
||||
|
||||
if($tabs_border_radius!=''){
|
||||
//echo $tabs_border_radius;
|
||||
}
|
||||
/*-------------------font style------------------*/
|
||||
|
||||
$container_style=$ult_style=$tab_style_no='';
|
||||
if($tab_bottom_border=='Disable'){
|
||||
$border_thickness="0";
|
||||
$border_color="transparent";
|
||||
}
|
||||
if($container_width!=''){
|
||||
$container_style='width:'.$container_width.'px;';
|
||||
}
|
||||
$border_Style=$mhfont_family=$border_style ='';
|
||||
|
||||
$tabs_nav_style='';
|
||||
|
||||
if($title_font_size!='')
|
||||
$tabs_nav_style .= 'font-size:'.$title_font_size.'px;';
|
||||
if($title_line_ht!='')
|
||||
$tabs_nav_style .='line-height:'.$title_line_ht.'px;';
|
||||
|
||||
if (function_exists('get_ultimate_font_family')) {
|
||||
|
||||
$mhfont_family = get_ultimate_font_family($main_heading_font_family);
|
||||
if($mhfont_family!='')
|
||||
$tabs_nav_style .= 'font-family:'.$mhfont_family.';';
|
||||
|
||||
}
|
||||
if (function_exists('get_ultimate_font_style')) {
|
||||
if($title_font_style!='')
|
||||
$tabs_nav_style .= get_ultimate_font_style($title_font_style);
|
||||
}
|
||||
|
||||
|
||||
/*-------------------auto rotate------------------*/
|
||||
|
||||
if($auto_rotate=='Disables'){
|
||||
$interval=0;
|
||||
$autorotate='no';
|
||||
}
|
||||
else{
|
||||
$autorotate='yes';
|
||||
}
|
||||
|
||||
if($tab_background_color=='')
|
||||
{
|
||||
$tab_background_color="transparent";
|
||||
}
|
||||
|
||||
$element = 'wpb_tabs';
|
||||
if ( 'vc_tour' == $this->shortcode ) $element = 'wpb_tour';
|
||||
$ul_style=$tabs_nav = $style='';
|
||||
|
||||
/*------------------- style------------------*/
|
||||
|
||||
if($tab_style=='Style_1'){
|
||||
|
||||
$style='style1';
|
||||
}
|
||||
else if($tab_style=='Style_2'){
|
||||
|
||||
$style='style2';
|
||||
|
||||
}
|
||||
else if($tab_style=='Style_3'){
|
||||
|
||||
$style='style3';
|
||||
|
||||
}
|
||||
else if($tab_style=='Style_4'){
|
||||
$ult_style='ult_tab_style_4';
|
||||
$style='style1';
|
||||
}
|
||||
else if($tab_style=='Style_5'){
|
||||
$ult_style='ult_tab_style_5';
|
||||
$style='style1';
|
||||
}
|
||||
foreach ($tabarr as $key => $value) {
|
||||
$icon_value=$value["icon_size"];
|
||||
if (is_numeric($icon_value)) {
|
||||
$icon_value1[]=$value["icon_size"];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------- border style-----------*/
|
||||
$tab_border='';
|
||||
$tab_border .='color:'.$border_color.';';
|
||||
$tab_border .='border-bottom-color:'.$border_color.';';
|
||||
$tab_border .='border-bottom-width:'.$border_thickness.'px;';
|
||||
$tab_border .='border-bottom-style:solid;';
|
||||
if($tab_style=='Style_1'){
|
||||
$tab_border .='background-color:'.$tab_background_color.';';
|
||||
$tab_border .='border-top-left-radius:'.$tabs_border_radius.'px;';
|
||||
$tab_border .='border-top-right-radius:'.$tabs_border_radius.'px;';
|
||||
}
|
||||
if($tab_style=='Style_2'){
|
||||
$tab_border .='border-bottom-width:0px;';
|
||||
}
|
||||
if($tab_style=='Style_4'||$tab_style=='Style_5'){
|
||||
$tab_border .='border-bottom-width:0px;';
|
||||
|
||||
}
|
||||
|
||||
/*-----------------content baground-------------------*/
|
||||
|
||||
$contain_bg='';
|
||||
|
||||
/*---------------- description font family-----------*/
|
||||
if($desc_font_size!='')
|
||||
$contain_bg .= 'font-size:'.$desc_font_size.'px;';
|
||||
if($title_line_ht!='')
|
||||
$contain_bg .='line-height:'.$desc_line_ht.'px;';
|
||||
|
||||
if (function_exists('get_ultimate_font_family')) {
|
||||
|
||||
$dhfont_family = get_ultimate_font_family($desc_font_family);
|
||||
if($dhfont_family!='')
|
||||
$contain_bg .= 'font-family:'.$dhfont_family.';';
|
||||
|
||||
}
|
||||
if (function_exists('get_ultimate_font_style')) {
|
||||
if($desc_font_style!='')
|
||||
$contain_bg .= get_ultimate_font_style($desc_font_style);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$ult_top=$icon_top_link='';
|
||||
if($tab_style=='Style_1'){
|
||||
$ult_top='ult_top';
|
||||
$icon_top_link='icon_top_link';
|
||||
}
|
||||
else if($tab_style=='Style_2'){
|
||||
|
||||
$ult_top='ult_top';
|
||||
$icon_top_link='';
|
||||
}
|
||||
if($tab_style=='Style_4'){
|
||||
$tab_style_no.='Style_4';
|
||||
$ult_top='ult_top';
|
||||
$icon_top_link='style_4_top';
|
||||
}
|
||||
if($tab_style=='Style_5'){
|
||||
$tab_style_no.='Style_5';
|
||||
$icon_top_link='';
|
||||
|
||||
}if($tab_style=='Style_3'){
|
||||
$ult_top='ult_top';
|
||||
$icon_top_link='icon_top_link';
|
||||
}
|
||||
|
||||
if($enable_bg_color!='')
|
||||
{
|
||||
$contain_bg .='background-color:'.$enable_bg_color.';';
|
||||
}
|
||||
if($container_border_style!=''){
|
||||
$contain_bg .='border-style:'.$container_border_style.';';
|
||||
$contain_bg .='border-color:'.$container_color_border.';';
|
||||
$contain_bg .='border-width:'.$cont_border_size.'px;';
|
||||
$contain_bg .='border-top:none;';
|
||||
}
|
||||
if($tab_describe_color!=''){
|
||||
$contain_bg .='color:'.$tab_describe_color.';';
|
||||
}
|
||||
$acord ='';
|
||||
//echo $resp_style;
|
||||
$array_count='';
|
||||
$array_count=sizeof($tabarr);
|
||||
$newtab='';
|
||||
$newtab .='<ul class="ult_tabmenu '.esc_attr($style).' '.esc_attr($tab_style_no).'" style="'.esc_attr($tab_border).'">';
|
||||
$cnt=0;
|
||||
//print_r($tabarr );
|
||||
|
||||
$acord .='';
|
||||
$accontaint='';
|
||||
$ult_ac_border='';
|
||||
foreach ($tabarr as $key => $value) {
|
||||
$cnt++;
|
||||
|
||||
|
||||
$icon_position=$value['font_icons_position'];
|
||||
$tabicon=$value["icon"];
|
||||
$icon_color=$value["icon_color"];
|
||||
$icon_size=$value["icon_size"];
|
||||
$icon_hover_color=$value["icon_hover_color"];
|
||||
$margin=$value["icon_margin"];
|
||||
$accontaint=$value['content'];
|
||||
$accontaint=wpb_js_remove_wpautop( $accontaint );
|
||||
/*---icon style---*/
|
||||
if($icon_size==''){
|
||||
$icon_size="15";
|
||||
}
|
||||
$tab_icon_style='';
|
||||
$tab_icon_style .='color:'.$icon_color.';';
|
||||
$tab_icon_style .='font-size:'.$icon_size.'px;';
|
||||
$tab_icon_style .= $margin;
|
||||
$link_li_style='';
|
||||
$bgcolor='';
|
||||
if($tab_style!='Style_2'){
|
||||
$link_li_style.='background-color:'.$tab_background_color.';';
|
||||
}
|
||||
else{
|
||||
$bgcolor .='background-color:'.$tab_background_color.';';
|
||||
|
||||
}
|
||||
$style5bgcolor='';
|
||||
if($tab_style=='Style_5'){
|
||||
$style5bgcolor='border-color:'.$shadow_color.';';
|
||||
$ult_top='ult_top';
|
||||
}
|
||||
if($tab_style=='Style_4'){
|
||||
$ult_top='ult_top';
|
||||
$link_li_style.='';
|
||||
$link_li_style .='border-color:'.$border_color.';';
|
||||
$link_li_style .='border-width:'.$border_thickness.'px;';
|
||||
$link_li_style .='border-style:solid;';
|
||||
|
||||
}
|
||||
/*---------------- for tabs border -----------------*/
|
||||
|
||||
if($tab_style!='Style_2'){
|
||||
if($cnt==$array_count){
|
||||
$link_li_style.='border-top-right-radius:'.$tabs_border_radius.'px;';
|
||||
}
|
||||
else if($cnt==1){
|
||||
$link_li_style.='border-top-left-radius:'.$tabs_border_radius.'px;';
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
if($cnt==$array_count){
|
||||
$bgcolor .='border-top-right-radius:'.$tabs_border_radius.'px;';
|
||||
}
|
||||
else if($cnt==1){
|
||||
$bgcolor.='border-top-left-radius:'.$tabs_border_radius.'px;';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*------------ accordian border style --------------*/
|
||||
|
||||
$ult_ac_border .='border-bottom-color:'.$border_color.';';
|
||||
$ult_ac_border .='border-bottom-width:'.$border_thickness.'px;';
|
||||
$ult_ac_border .='border-bottom-style:solid;';
|
||||
|
||||
if(isset($value['title'])) {
|
||||
|
||||
if($icon_position=='Right')
|
||||
{
|
||||
$icon_position='right';
|
||||
$newtab .='<li class="ult_tab_li '.esc_attr($ult_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'" style="'.esc_attr($link_li_style).'">
|
||||
<a href="#" style="color:'.esc_attr($tab_title_color).';'.esc_attr($bgcolor).';'.esc_attr($style5bgcolor).'" class="ult_a '.esc_attr($css_class) .'">
|
||||
<span class="ult_tab_main '.esc_attr($resp_style).' ">
|
||||
<span class="ult-span-text" style="'.esc_attr($tabs_nav_style).'">'.$value['title'].'</span>
|
||||
<div class="aio-icon none " style="'.esc_attr($tab_icon_style).'">
|
||||
<i class=" '.esc_attr($tabicon).' ult_tab_icon" ></i>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
</a>
|
||||
</li>';
|
||||
|
||||
/*-------------------accordion right icon------------------*/
|
||||
|
||||
$acord.='<dt>
|
||||
<a class="ult-tabto-actitle withBorder ult_a" style="color:'.esc_attr($tab_title_color).';'.esc_attr($style5bgcolor).';background-color:'.esc_attr($tab_background_color).';'.esc_attr($ult_ac_border).'" href="#">
|
||||
<i class="accordion-icon">+</i>
|
||||
<span class="ult_tab_main ult_ac_main'.esc_attr($resp_style).'">
|
||||
<span class="ult-span-text ult_acordian-text" style="'.esc_attr($tabs_nav_style).';color:inherit " >'.$value['title'].'</span>
|
||||
</span>
|
||||
<div class="aio-icon none " style="'.esc_attr($tab_icon_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'">
|
||||
<i class=" '.esc_attr($tabicon).' ult_tab_icon" ></i>
|
||||
</div>
|
||||
</a></dt>
|
||||
<dd class="ult-tabto-accordionItem ult-tabto-accolapsed">
|
||||
<div class="ult-tabto-acontent" style="'.esc_attr($contain_bg).'">
|
||||
'.$accontaint .'
|
||||
</div>
|
||||
</dd>';
|
||||
|
||||
}
|
||||
else if($icon_position=='Left'){
|
||||
$icon_position='left';
|
||||
$newtab .='<li class="ult_tab_li '.esc_attr($ult_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'" style="'.esc_attr($link_li_style).'">
|
||||
<a href="#" style="color:'.esc_attr($tab_title_color).';'.$bgcolor.';'.esc_attr($style5bgcolor).'" class="ult_a '.esc_attr($css_class) .'">
|
||||
<span class="ult_tab_main '.esc_attr($resp_style).'">
|
||||
<div class="aio-icon none " style="'.esc_attr($tab_icon_style).'">
|
||||
<i class=" '.esc_attr($tabicon).' ult_tab_icon" ></i>
|
||||
</div>
|
||||
<span class="ult-span-text " style="'.esc_attr($tabs_nav_style).'">'.$value['title'].'</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>';
|
||||
|
||||
/*-------------------accordion left icon------------------*/
|
||||
|
||||
$acord.='<dt>
|
||||
<a class="ult-tabto-actitle withBorder ult_a" style="color:'.esc_attr($tab_title_color).';'.esc_attr($style5bgcolor).';background-color:'.esc_attr($tab_background_color).';'.esc_attr($ult_ac_border).'" href="#">
|
||||
<i class="accordion-icon">+</i>
|
||||
<span class="ult_tab_main ult_ac_main'.esc_attr($resp_style).'">
|
||||
<div class="aio-icon none " style="'.esc_attr($tab_icon_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'">
|
||||
<i class=" '.esc_attr($tabicon).' ult_tab_icon" ></i>
|
||||
</div>
|
||||
<span class="ult-span-text ult_acordian-text" style="'.esc_attr($tabs_nav_style).';color:inherit " >'.$value['title'].'</span>
|
||||
</span></a></dt>
|
||||
<dd class="ult-tabto-accordionItem ult-tabto-accolapsed">
|
||||
<div class="ult-tabto-acontent" style="'.esc_attr($contain_bg).'">
|
||||
'.$accontaint .'
|
||||
</div>
|
||||
</dd>';
|
||||
}
|
||||
else if($icon_position=='Top')
|
||||
{
|
||||
$newtab .='<li class="ult_tab_li '.esc_attr($ult_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'" style="'.esc_attr($link_li_style).'">
|
||||
<a href="#" style="color:'.esc_attr($tab_title_color).';'.$bgcolor.';'.esc_attr($style5bgcolor).'" class="ult_a '.esc_attr($icon_top_link).' '.esc_attr($css_class) .'">
|
||||
<span class="ult_tab_main '.esc_attr($ult_top).' '.esc_attr($resp_style).' ">
|
||||
<div class="aio-icon none icon-top " style="'.esc_attr($tab_icon_style).'">
|
||||
<i class=" '.esc_attr($tabicon).' ult_tab_icon" ></i>
|
||||
</div>
|
||||
<span class="ult-span-text" style="'.esc_attr($tabs_nav_style).'">'.$value['title'].'</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>';
|
||||
|
||||
/*-------------------accordion top icon------------------*/
|
||||
|
||||
$acord.='<dt>
|
||||
<a class="ult-tabto-actitle withBorder ult_a" style="color:'.esc_attr($tab_title_color).';'.esc_attr($style5bgcolor).';background-color:'.esc_attr($tab_background_color).';'.esc_attr($ult_ac_border).'" href="#">
|
||||
<i class="accordion-icon">+</i>
|
||||
<span class="ult_tab_main ult_ac_main ult_top ' .esc_attr($resp_style).'">
|
||||
<div class="aio-icon none icon-top" style="'.esc_attr($tab_icon_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'">
|
||||
<i class=" '.esc_attr($tabicon).' ult_tab_icon" ></i>
|
||||
</div>
|
||||
<span class="ult-span-text ult_acordian-text" style="'.esc_attr($tabs_nav_style).';color:inherit " >'.$value['title'].'</span>
|
||||
</span></a></dt>
|
||||
<dd class="ult-tabto-accordionItem ult-tabto-accolapsed">
|
||||
<div class="ult-tabto-acontent" style="'.esc_attr($contain_bg).'">
|
||||
'.$accontaint .'
|
||||
</div>
|
||||
</dd>';
|
||||
|
||||
}
|
||||
else {
|
||||
$icon_position='none';
|
||||
$newtab .='<li class="ult_tab_li '.esc_attr($ult_style).'" data-iconcolor="'.esc_attr($icon_color).'" data-iconhover="'.esc_attr($icon_hover_color).'" style="'.esc_attr($link_li_style).'">
|
||||
<a href="#" style="color:'.esc_attr($tab_title_color).';'.esc_attr($bgcolor).';'.esc_attr($style5bgcolor).'" class="ult_a '.esc_attr($ult_style).' '.esc_attr($css_class) .'">
|
||||
<span class="ult_tab_main '.esc_attr($resp_style).' ">
|
||||
<div class="aio-icon none " style="width:0px;padding-left:0px;">
|
||||
|
||||
</div>
|
||||
<span class="ult-span-text no_icon ult_tab_display_text" style="'.esc_attr($tabs_nav_style).';padding-right:10px;">'.$value['title'].'</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>';
|
||||
|
||||
/*-------------------accordion without icon------------------*/
|
||||
|
||||
$acord.='<dt>
|
||||
<a class="ult-tabto-actitle withBorder ult_a" style="color:'.esc_attr($tab_title_color).';'.esc_attr($style5bgcolor).';background-color:'.esc_attr($tab_background_color).';'.esc_attr($ult_ac_border).'" href="#">
|
||||
<i class="accordion-icon">+</i>
|
||||
<span class="ult_tab_main ult_ac_main ult_noacordicn' .esc_attr($resp_style).'">
|
||||
|
||||
<span class="ult-span-text no_icon ult_acordian-text" style="'.esc_attr($tabs_nav_style).';color:inherit " >'.$value['title'].'</span>
|
||||
</span></a></dt>
|
||||
<dd class="ult-tabto-accordionItem ult-tabto-accolapsed">
|
||||
<div class="ult-tabto-acontent" style="'.esc_attr($contain_bg).'">
|
||||
'.$accontaint .'
|
||||
</div>
|
||||
</dd>';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$newtab .='</ul>';
|
||||
|
||||
$newtabcontain='';
|
||||
$newtabcontain .='<div class="ult_tabitemname" style="color:inherit">';
|
||||
$newtabcontain .=wpb_js_remove_wpautop( $content );
|
||||
$newtabcontain .='</div>';
|
||||
|
||||
$op='';
|
||||
$op .='<div class="ult_tabs '.esc_attr($el_class).' " style="'.esc_attr($container_style).'" data-tabsstyle="'.$style.'"
|
||||
data-titlebg="'.esc_attr($tab_background_color).'" data-titlecolor="'.esc_attr($tab_title_color).'"
|
||||
data-titlehoverbg="'.esc_attr($tab_hover_background_color).'" data-titlehovercolor="'.esc_attr($tab_hover_title_color).'"
|
||||
data-rotatetabs="'.esc_attr($interval).'" data-responsivemode="'.esc_attr($resp_style).'" data-animation="'.esc_attr($tab_animation).'"
|
||||
data-activetitle="'.esc_attr($acttab_title).'" data-activeicon="'.esc_attr($act_icon_color).'" data-activebg="'.esc_attr($acttab_background).'" data-respmode="'.esc_attr($resp_type).'" data-respwidth="'.esc_attr($resp_width).'">';
|
||||
$op .=$newtab;
|
||||
$op .='<div class="ult_tabcontent '.esc_attr($style).'" style="'.esc_attr($contain_bg).'">';
|
||||
$op .=wpb_js_remove_wpautop( $content );
|
||||
$op .='</div>';
|
||||
$op .='</div>';
|
||||
echo $op;
|
||||
|
||||
|
||||
/*---------------- for acordian -----------------*/
|
||||
$actab='';
|
||||
$actab .='<div class="ult_acord">
|
||||
<div class="ult-tabto-accordion " style="width:;"
|
||||
data-titlecolor="'.esc_attr($tab_title_color).'" data-titlebg="'.esc_attr($tab_background_color).'"
|
||||
data-titlehoverbg="'.esc_attr($tab_hover_background_color).'" data-titlehovercolor="'.esc_attr($tab_hover_title_color).'" data-animation="'.esc_attr($tab_animation).'"
|
||||
data-activetitle="'.esc_attr($acttab_title).'" data-activeicon="'.esc_attr($act_icon_color).'" data-activebg="'.esc_attr($acttab_background).'">
|
||||
<dl>';
|
||||
|
||||
$actab .=$acord;
|
||||
$actab .='
|
||||
</dl>
|
||||
<!--<div class="extraborder" style="background-color:'.$tab_hover_background_color.'"></div>-->
|
||||
</div>
|
||||
|
||||
</div>';
|
||||
echo $actab;
|
||||
Reference in new issue
Block a user