Пример #1
0
function sb_widget_display($instance, $widget, $args)
{
    if (!class_exists('SB_Title_Allocate')) {
        return $instance;
    }
    if (isset($instance['title_allocate']) && intval($instance['title_allocate']) === 1) {
        if (isset($instance['title'])) {
            $instance['title'] = SB_Title_Allocate::wrap_rand_letter($instance['title'], '<span class="widget-title-highlight">', '</span>');
        }
    }
    return $instance;
}
Пример #2
0
    $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>';
    $before_sub_title = '<h3 class="' . $sub_title_class . '">';
    $after_sub_title = '</h3>';
}
if (!empty($main_title)) {
    echo $before_title . $main_title . $after_title;
}
if (!empty($sub_title)) {
    echo $before_sub_title . $sub_title . $after_sub_title;
}
Пример #3
0
                </div>
            </div>
        </div>
    </div>
    <?php 
if (DfdThemeSettings::get('stan_header')) {
    echo '</div>';
}
?>

<section id="layout">
    <div class="row">
        <div class="nine columns">
			
			<h3 class="widget-title"><?php 
_e(SB_Title_Allocate::wrap_rand_letter('The best offers', '<span class="widget-title-highlight">', '</span>'), 'dfd');
?>
</h3>
			
            <?php 
global $post;
$shop_page_id = woocommerce_get_page_id('shop');
$shop_page = get_post($shop_page_id);
if (is_post_type_archive()) {
    echo '<div class="shop__main_desc">';
    $content = apply_filters('the_content', $shop_page->post_content);
    echo $content;
    echo '</div>';
}
?>