break;
    case 'visible-tablet':
        $el_class .= ' visible-sm-inline visible-md-inline';
        break;
    case 'visible-pc':
        $el_class .= ' visible-lg-inline';
        break;
}
$settings = get_option('wpb_js_google_fonts_subsets');
$subsets = '';
if (is_array($settings) && !empty($settings)) {
    $subsets = '&subset=' . implode(',', $settings);
}
$heading_type_color = dh_format_color($heading_type_color);
if ($heading_type == 'typed_effect') {
    wp_enqueue_script('vendor-typed');
    $el_class .= ' heading-typed';
    list($word, $string) = dh_nth_word($text, 'last', false, true, $heading_type_color);
    $text = $word;
}
if ($heading_type == 'bold_first_word') {
    $el_class .= ' heading-bold-first-word';
    $text = dh_nth_word($text, 'first', false);
}
if ($inherit_style != 'yes') {
    wp_enqueue_style('vc_google_fonts_' . vc_build_safe_css_class($google_fonts_data['values']['font_family']), '//fonts.googleapis.com/css?family=' . $google_fonts_data['values']['font_family'] . $subsets);
}
$output .= '<' . $font_container_data['values']['tag'] . '' . (!empty($el_class) ? ' class="' . $el_class . '"' : '') . ($heading_type == 'typed_effect' ? ' data-typed-string="' . $string . '" ' : '') . ' style="' . implode(';', $styles) . '">';
$output .= $text;
$output .= '</' . $font_container_data['values']['tag'] . '>';
echo $output;
Exemple #2
0
">
												</a>
											</div>
											<div class="lookbook-info">
												<div class="lookbook-info-wrap">
													<span class="lookbook-small-title"><?php 
                echo esc_html($small_title);
                ?>
</span>
													<h3>
														<a href="<?php 
                echo get_term_link($lookbook, 'product_lookbook');
                ?>
">
															<?php 
                echo dh_nth_word(esc_html($lookbook->name), 'first', false);
                ?>
														</a>
													</h3>
													<?php 
                if ($description = $lookbook->description) {
                    ?>
													<div class="lookbook-description"><?php 
                    echo $description;
                    ?>
</div>
													<?php 
                }
                ?>
													<a class="btn btn-primary btn-icon-left btn-uppercase btn-style-outlined btn-effect-icon-slide-in btn-align-left lookbook-action" href="<?php 
                echo get_term_link($lookbook, 'product_lookbook');
">
						<div class="portfolio-caption-wrap">
							<h2 class="portfolio-title">
								<a href="<?php 
        echo esc_url($view_action);
        ?>
" <?php 
        echo $target;
        ?>
 title="<?php 
        echo esc_attr(get_the_title());
        ?>
">
									<?php 
        if ($style == 'lily' || $style == 'marley') {
            dh_nth_word(get_the_title());
        } else {
            the_title();
        }
        ?>
								</a>
							</h2>
							<div class="portfolio-meta">
								<?php 
        if ($layout == 'wall') {
            ?>
									<span>
									<?php 
            echo get_the_date();
            ?>
									</span>