notice; $json['docs'] = (array) $this->docs; $json['plugin'] = (string) $this->plugin; $json['install'] = (array) $this->install; $json['dismiss'] = (array) $this->dismiss; $json['active'] = (array) $this->active; return $json; } /** * Outputs the Underscore.js template. */ protected function render_template() { ?>
{{ data.notice.p1 }} {{ data.docs.text }}, {{ data.notice.p2 }} {{ data.plugin }}
<# } #> <# if ( data.active.check !== true ) { #><# if ( data.install != '' ) { #> {{ data.install.text }} <# } #> <# if ( data.dismiss != '' ) { #> {{ data.dismiss.text }} <# } #>
<# } else { #>{{ data.active.msg }}
<# } #>