| 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/includes/shortcodes/shortcode-elements/ |
Upload File : |
<?php
/* Custom font shortcode */
if (!function_exists('custom_font')) {
function custom_font($atts, $content = null) {
$args = array(
"font_family" => "",
"font_size" => "",
"line_height" => "",
"font_style" => "",
"font_weight" => "",
"color" => "",
"text_decoration" => "",
"text_shadow" => "",
"letter_spacing" => "",
"background_color" => "",
"padding" => "",
"margin" => "",
"border_color" => "",
"border_width" => "",
"text_align" => "left"
);
extract(shortcode_atts($args, $atts));
$html = '';
$html .= '<div class="custom_font_holder" style="';
if($font_family != "") {
$html .= 'font-family: '.$font_family.';';
}
if($font_size != "") {
$html .= ' font-size: '.$font_size.'px;';
}
if($line_height != "") {
$html .= ' line-height: '.$line_height.'px;';
}
if($font_style != "") {
$html .= ' font-style: '.$font_style.';';
}
if($font_weight != "") {
$html .= ' font-weight: '.$font_weight.';';
}
if($color != ""){
$html .= ' color: '.$color.';';
}
if($text_decoration != "") {
$html .= ' text-decoration: '.$text_decoration.';';
}
if($text_shadow == "yes") {
$html .= ' text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);';
}
if($letter_spacing != "") {
$html .= ' letter-spacing: '.$letter_spacing.'px;';
}
if($background_color != "") {
$html .= ' background-color: '.$background_color.';';
}
if($padding != "") {
$html .= ' padding: '.$padding.';';
}
if($margin != "") {
$html .= ' margin: '.$margin.';';
}
$border = '';
if($border_color != '') {
$border .= 'border: 1px solid '.$border_color.';';
if($border_width != '') {
$border .= 'border-width: '.$border_width.'px;';
}
} elseif($border_width != '') {
$border .= 'border: '.$border_width.'px solid;';
}
$html .= $border;
$html .= ' text-align: ' . $text_align . ';';
$html .= '">' . $content . '</div>';
return $html;
}
add_shortcode('custom_font', 'custom_font');
}