/** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function shapely_customize_register($wp_customize) { $wp_customize->get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; $wp_customize->get_setting('header_textcolor')->transport = 'postMessage'; $wp_customize->get_setting('custom_logo')->transport = 'refresh'; // Abort if selective refresh is not available. if (!isset($wp_customize->selective_refresh)) { return; } $wp_customize->selective_refresh->add_partial('blogname', array('selector' => '.site-title', 'render_callback' => function () { bloginfo('name'); })); $wp_customize->selective_refresh->add_partial('footer_callout_text', array('selector' => '.footer-callout', 'render_callback' => function () { shapely_footer_callout(); })); $wp_customize->selective_refresh->add_partial('footer_callout_btntext', array('selector' => '.footer-callout', 'render_callback' => function () { shapely_footer_callout(); })); $wp_customize->selective_refresh->add_partial('footer_callout_link', array('selector' => '.footer-callout', 'render_callback' => function () { shapely_footer_callout(); })); $wp_customize->selective_refresh->add_partial('blog_name', array('selector' => '.header-callout', 'render_callback' => function () { shapely_top_callout(); })); $wp_customize->selective_refresh->add_partial('header_textcolor', array('selector' => '.header-callout', 'render_callback' => function () { shapely_top_callout(); })); }
* The template for displaying the footer. * * Contains the closing of the #content div and all content after. * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Shapely */ ?> </div><!-- #main --> </section><!-- section --> <div class="footer-callout"> <?php shapely_footer_callout(); ?> </div> <footer id="colophon" class="site-footer footer bg-dark" role="contentinfo"> <div class="container footer-inner"> <div class="row"> <?php get_sidebar('footer'); ?> </div> <div class="row"> <div class="site-info col-sm-6"> <div class="copyright-text"> <?php