Exemplo n.º 1
0
$main_title_type = !empty($main_title_type) ? $main_title_type : '';
$main_title = !empty($main_title) ? $main_title : '';
$sub_title = !empty($sub_title) ? $sub_title : '';
if (intval($main_title_allocate) == 1) {
    $before_allocate = '<span class="widget-title-highlight">';
    $after_allocate = '</span>';
}
$title_class = 'widget-title';
if ($main_title_style) {
    $title_class .= ' widget-title-italic';
}
if (isset($main_title_align)) {
    $title_class .= ' ' . mvb_get_align_class($main_title_align);
}
if (isset($sub_title_align)) {
    $sub_title_class .= ' ' . mvb_get_align_class($sub_title_align);
}
if (intval($main_title_type) == 0) {
    if (class_exists('SB_Title_Allocate')) {
        $main_title = SB_Title_Allocate::wrap_rand_letter($main_title, $before_allocate, $after_allocate);
    }
    $before_title = '<h3 class="' . $title_class . '">';
    $after_title = '</h3>';
    $before_sub_title = '<h4 class="' . $sub_title_class . '">';
    $after_sub_title = '</h4>';
} else {
    if (class_exists('SB_Title_Allocate')) {
        $main_title = SB_Title_Allocate::wrap_last_worlds($main_title, $before_allocate, $after_allocate);
    }
    $before_title = '<h2 class="' . $title_class . '">';
    $after_title = '</h2>';
Exemplo n.º 2
0
<?php

if (!empty($effects)) {
    $cr_effect = ' cr-animate-gen"  data-gen="' . $effects . '" data-gen-offset="bottom-in-view';
} else {
    $cr_effect = '';
}
$text_align = !empty($text_align) ? $text_align : '';
# Text align
$textwidget_class = 'textwidget ' . mvb_get_align_class($text_align);
# Drop Caps
if (isset($dropcaps_enable) && $dropcaps_enable == 1) {
    $dropcaps_types = MVB_Text::dropcaps_types();
    $dropcaps_styles = MVB_Text::dropcaps_styles();
    if (empty($dropcaps_type)) {
        $dropcaps_type = $dropcaps_types[0];
    }
    if (empty($dropcaps_style)) {
        $dropcaps_style = $dropcaps_styles[0];
    }
    $textwidget_class .= " dropcaps dropcaps-type-{$dropcaps_type} dropcaps-style-{$dropcaps_style} ";
}
# Addition CSS styles
$addition_css_styles = '';
if (!empty($css_styles)) {
    $addition_css_styles .= $css_styles;
}
if (!empty($addition_css_styles)) {
    $addition_css_styles = 'style="' . $addition_css_styles . '"';
}
?>