/** * Callback-method for registered static. * * @since 4.0.0 */ public function callback() { global $wp_customize; if (isset($wp_customize)) { echo cherry_get_site_logo('footer'); return; } $logo = get_transient('cherry_footer_logo'); if ($logo) { echo $logo; return; } $result = cherry_get_site_logo('footer'); echo $result; set_transient('cherry_footer_logo', $result, DAY_IN_SECONDS); }
/** * Get logo HTML * * @since 4.0.0 */ public function get_logo() { $result = sprintf('<div class="site-branding">%1$s %2$s</div>', cherry_get_site_logo('header'), cherry_get_site_description()); return $result; }
/** * Get site logo and description to show it via template macros * * @since 4.0.0 */ function cherry_get_the_post_logo() { $result = ''; if (cherry_get_site_logo() || cherry_get_site_description()) { $result = sprintf('<div class="site-branding">%1$s %2$s</div>', cherry_get_site_logo(), cherry_get_site_description()); } return $result; }
/** * Callback-method for registered static. * * @since 4.0.1 */ public function callback() { printf('<div class="site-branding">%1$s %2$s</div>', cherry_get_site_logo('header'), cherry_get_site_description()); }
/** * Callback-method for registered static. * * @since 4.0.1 */ public function callback() { echo cherry_get_site_logo('footer'); }