function testimonial($atts, $content = null)
 {
     $html = "";
     extract(shortcode_atts(array("name" => "", "name_color" => "", "background_color" => "", "border_color" => ""), $atts));
     $html .= '<div id="testimonialimagelink' . $atts['id'] . '" class="testimonial_content"><div class="testimonial_text_holder"><div class="testimonial_text_inner"';
     if ($background_color != '' || $border_color != '') {
         $html .= ' style="background-color: ' . $background_color . '; border-color: ' . $border_color . ';"';
     }
     $html .= '>' . no_wpautop($content) . '<span class="testimonial_name"';
     if ($name_color != '') {
         $html .= ' style="color: ' . $name_color . ';"';
     }
     $html .= '>' . $name . '</span></div><span class="transparent_arrow"></span><span class="testimonial_arrow"';
     if ($background_color != '' || $border_color != '') {
         $html .= ' style="background-color: ' . $background_color . '; border-color: ' . $border_color . ';"';
     }
     $html .= '></span></div></div>';
     return $html;
 }
Example #2
0
 function service($atts, $content = null)
 {
     $args = array("type" => "top", "title" => "", "color" => "", "link" => "", "target" => "", "animate" => "");
     extract(shortcode_atts($args, $atts));
     //init variables
     $html = "";
     $service_classes = "circle_item circle_{$type}";
     $service_styles = "";
     //generate service classes
     if ($animate == "yes") {
         $service_classes .= " fade_in_circle_holder";
     }
     //generate service styles
     if ($color != "") {
         $service_styles .= "color: " . $color . ";";
     }
     //generate output
     $html .= '<div class="' . $service_classes . '">';
     //open service div
     if ($link == "") {
         $html .= '<div class="circle fade_in_circle" style="' . $service_styles . '">';
         //open circle div
         $html .= '<div>' . $title . '</div>';
         $html .= '</div>';
         //close circle div
     } else {
         $html .= '<div class="circle hover fade_in_circle">';
         //open circle div
         $html .= '<a href="' . $link . '" target="' . $target . '" style="' . $service_styles . '">';
         $html .= '<div>' . $title . '</div>';
         $html .= '</a>';
         //close circle link
         $html .= '</div>';
         //close circle div
     }
     $html .= '<div class="text">';
     $html .= no_wpautop($content);
     $html .= '</div>';
     //close text div
     $html .= '</div>';
     //close service div
     return $html;
 }
Example #3
0
 function service($atts, $content = null)
 {
     $html = "";
     extract(shortcode_atts(array("type" => "top", "title" => "", "link" => ""), $atts));
     $html .= '<div class="circle_item circle_' . $type . '">';
     if ($link == "") {
         $html .= '<div class="circle"><div style="padding: 70.5px 0px;">' . $title . '</div></div><div class="text">';
     } else {
         $html .= '<div class="circle"><div style="padding: 70.5px 0px;"><a href="' . $link . '">' . $title . '</a></div></div><div class="text">';
     }
     $html .= no_wpautop($content);
     $html .= '</div></div>';
     return $html;
 }
Example #4
0
function tabsline($atts, $content = null)
{
    $html = "";
    extract(shortcode_atts(array(), $atts));
    $html .= '<div class="tabs ' . (isset($atts['type']) ? $atts['type'] : '') . '">';
    $html .= '<ul class="tabs-nav">';
    $key = array_search(isset($atts['type']) ? $atts['type'] : '', $atts);
    if ($key !== false) {
        unset($atts[$key]);
    }
    foreach ($atts as $key => $tab) {
        if (stripos($key, "tabid") !== false) {
            $html .= '<li><a href="#' . $key . '">' . $tab . '</a></li>';
        }
    }
    $html .= '</ul>';
    $html .= '<div class="tabs-container">';
    $html .= no_wpautop($content) . '</div></div>';
    return $html;
}
 function counter($atts, $content = null)
 {
     extract(shortcode_atts(array("type" => "", "position" => "", "digit" => "", "font_size" => "", "font_color" => ""), $atts));
     $html = "";
     $html .= '<div class="counter_holder ' . $position . '"';
     $html .= '><span class="counter ' . $type . '"';
     if ($font_color != "" || $font_size != "") {
         $html .= 'style="color:' . $font_color . '; font-size:' . $font_size . 'px; height:' . $font_size . 'px; line-height:' . $font_size . 'px;"';
     }
     $html .= '>' . $digit . '</span>' . no_wpautop($content) . '</div>';
     return $html;
 }