/** * show text in admin. */ public function render() { $chosen = apply_filters('hello_kushimoto_admin_notices_word', $this->speaker->speak()); $name = strtolower(get_class($this->speaker)); ?> <p class="hello-kushimoto speaker-<?php echo esc_attr($name); ?> "><?php echo esc_html($chosen); ?> </p> <?php }
public function render() { ?> <div class="hello-kushimoto-dashboard-widget"> <div class="hello-kushimoto-dashboard-widget-avatar"> <?php echo $this->speaker->get_avatar(); ?> </div> <div class="hello-kushimoto-dashboard-widget-message"> <strong><?php echo esc_html($this->speaker->speak()); ?> </strong> </div> </div> <?php }
/** * Hello Kushimoto. * */ public function __invoke() { echo self::$speaker->speak(); echo "\n"; }
/** * show text in admin. */ public function render() { $chosen = apply_filters('hello_kushimoto_admin_notices_word', $this->speaker->speak()); $name = strtolower(get_class($this->speaker)); echo "<p class='hello-kushimoto speaker-" . esc_attr($name) . "'>{$chosen}</p>"; }
/** * show text in admin. */ public function render() { $chosen = $this->speaker->speak(); $name = $this->speaker->whoami(); echo "<p class='hello-kushimoto speaker-{$name}'>{$chosen}</p>"; }
/** * Hello Kushimoto. */ public function __invoke() { echo esc_html(self::$speaker->speak()); echo "\n"; }