| 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
/* Blockquote item shortcode */
if (!function_exists('blockquote')) {
function blockquote($atts, $content = null) {
$args = array(
"text" => "",
"text_color" => "",
"width" => "",
"line_height" => "",
"background_color" => "",
"border_color" => "",
"quote_icon_color" => "",
"show_quote_icon" => ""
);
extract(shortcode_atts($args, $atts));
//init variables
$html = "";
$blockquote_styles = "";
$blockquote_classes = "";
$heading_styles = "";
$quote_icon_styles = "";
if($show_quote_icon == 'yes') {
$blockquote_classes .= ' with_quote_icon';
}
if($width != "") {
$blockquote_styles .= "width: ".$width."%;";
}
if($border_color != "") {
$blockquote_styles .= "border-left-color: ".$border_color.";";
}
if($background_color != "") {
$blockquote_styles .= "background-color: ".$background_color.";";
}
if($text_color != "") {
$heading_styles .= "color: ".$text_color.";";
}
if($line_height != "") {
$heading_styles .= " line-height: ".$line_height."px;";
}
if($quote_icon_color != "") {
$quote_icon_styles .= "color: ".$quote_icon_color.";";
}
$html .= "<blockquote class='".$blockquote_classes."' style='".$blockquote_styles."'>"; //open blockquote
if($show_quote_icon == 'yes') {
$html .= "<i class='fa fa-quote-right pull-left' style='".$quote_icon_styles."'></i>";
}
$html .= "<h5 class='blockquote-text' style='".$heading_styles."'>".$text."</h5>";
$html .= "</blockquote>"; //close blockquote
return $html;
}
add_shortcode('blockquote', 'blockquote');
}