if ('' !== $item['title']) { ?> <h4 class="builder-gallery-title"> <?php echo apply_filters('the_title', $item['title']); ?> </h4> <?php } ?> <?php if ('' !== $item['description']) { ?> <div class="builder-gallery-description"> <?php ttfmake_get_builder_save()->the_builder_content($item['description']); ?> </div> <?php } elseif (has_excerpt($item['image-id'])) { ?> <div class="builder-gallery-description"> <?php echo ttfmake_sanitize_text(get_post($item['image-id'])->post_excerpt); ?> </div> <?php } ?> </div> <?php
/** * Get the class for a banner section. * * @since 1.0.0. * * @param array $ttfmake_section_data The section data. * @param array $sections The list of sections. * @return string The class. */ function ttfmake_builder_get_banner_class($ttfmake_section_data, $sections) { $banner_class = ''; if (ttfmake_builder_is_section_type('banner', $ttfmake_section_data)) { $banner_class .= ' ' . ttfmake_get_builder_save()->section_classes($ttfmake_section_data, $sections); } // Test for background padding $bg_color = isset($ttfmake_section_data['background-color']) && !empty($ttfmake_section_data['background-color']); $bg_image = isset($ttfmake_section_data['background-image']) && 0 !== absint($ttfmake_section_data['background-image']); if (true === $bg_color || true === $bg_image) { $banner_class .= ' has-background'; } /** * Filter the class for the banner section. * * @since 1.2.3. * * @param string $banner_class The banner class. * @param array $ttfmake_section_data The section data. */ return apply_filters('make_builder_banner_class', $banner_class, $ttfmake_section_data); }
echo apply_filters('the_title', $column['title']); ?> </<?php echo $header_level; ?> > </header> <?php } ?> <?php if ('' !== $column['content']) { ?> <?php ttfmake_get_builder_save()->the_builder_content($column['content']); ?> <?php } ?> </div> <?php } } ?> </section> <?php if ($section_has_wrapper) { echo '</div>'; }
<h3 class="builder-section-title builder-blank-section-title"> <?php echo apply_filters('the_title', $ttfmake_section_data['title']); ?> </h3> </header> <?php } ?> <?php if (!empty($ttfmake_section_data['content'])) { ?> <div class="builder-section-content"> <?php if ('' !== $ttfmake_section_data['content']) { ?> <div class="builder-blank-content"> <?php ttfmake_get_builder_save()->the_builder_content($ttfmake_section_data['content']); ?> </div> <?php } ?> </div> <?php } ?> </section>
echo ttfmake_builder_banner_slide_style($slide, $ttfmake_section_data); ?> "> <?php if (!empty($slide['slide-url'])) { ?> <a href="<?php echo esc_url($slide['slide-url']); ?> "><?php } ?> <div class="builder-banner-content"> <div class="builder-banner-inner-content"> <?php ttfmake_get_builder_save()->the_builder_content($slide['content']); ?> </div> </div> <?php if (0 !== absint($slide['darken'])) { ?> <div class="builder-banner-overlay"></div> <?php } ?> <?php if (!empty($slide['slide-url'])) { ?> </a><?php }
/** * Get the class for a banner section. * * @since 1.0.0. * * @param array $ttfmake_section_data The section data. * @param array $sections The list of sections. * @return string The class. */ function ttfmake_builder_get_banner_class($ttfmake_section_data, $sections) { $banner_class = ''; if (ttfmake_builder_is_section_type('banner', $ttfmake_section_data)) { $banner_class .= ' ' . ttfmake_get_builder_save()->section_classes($ttfmake_section_data, $sections); } /** * Filter the class for the banner section. * * @since 1.2.3. * * @param string $banner_class The banner class. * @param array $ttfmake_section_data The section data. */ return apply_filters('make_builder_banner_class', $banner_class, $ttfmake_section_data); }