| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/themes/bridge/vc_templates/ |
Upload File : |
<?php
$args = array(
"title" => "",
"title_color" => "",
"title_font_size" => "",
"title_tag" => "h4",
"text" => "",
"text_color" => "",
"text_font_size" => "",
"price" => "0",
"price_color" => "",
"price_font_size" => "",
);
extract(shortcode_atts($args, $atts));
$headings_array = array('h2', 'h3', 'h4', 'h5', 'h6');
//get correct heading value. If provided heading isn't valid get the default one
$title_tag = (in_array($title_tag, $headings_array)) ? $title_tag : $args['title_tag'];
//init variables
$html = '';
$title_styles = '';
$text_styles = '';
$price_styles = '';
//generate title styles
if($title_color !== '') {
$title_styles .= 'color: '.$title_color.';';
}
if($title_font_size !== '') {
$title_styles .= 'font-size: '.$title_font_size.'px;';
}
//generate text styles
if($text_color !== '') {
$text_styles .= 'color: '.$text_color.';';
}
if($text_font_size !== '') {
$text_styles .= 'font-size: '.$text_font_size.'px;';
}
//generate price styles
if($price_color !== '') {
$price_styles .= 'color: '.$price_color.';';
}
if($price_font_size !== '') {
$price_styles .= 'font-size: '.$price_font_size.'px;';
}
$html .= '<li class="qode_pricing_list_item clearfix">';
$html .= '<div class="qode_pricing_item_text">';
$html .= '<'.$title_tag.' class="qode_pricing_item_title" style="'.$title_styles.'">'.$title.'</'.$title_tag.'>';
$html .= '<p style="'.$text_styles.'">'.$text.'</p>';
$html .= '</div>'; //close div.qode_pricing_item_text
$html .= '<div class="qode_pricing_item_price">';
$html .= '<div class="qode_pricing_item_price_inner">';
$html .= '<span style="'.$price_styles.'">'.$price.'</span>';
$html .= '</div>'; // close div.qode_pricing_item_price_inner
$html .= '</div>'; // close div.qode_pricing_item_price
$html .= '</li>'; // close li.qode_pricing_list_item
echo $html;