| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function render_widget() { |
||
| 32 | $term_count = $this->term_count->get_term_count(); |
||
| 33 | if ( $term_count <= 0 ) { |
||
| 34 | return; |
||
| 35 | } |
||
| 36 | |||
| 37 | $match_terms_url = menu_page_url('wl-vocabulary-match-terms', false); |
||
| 38 | $term_count_link = "<a href='$match_terms_url'>" . Badge_Generator::get_formatted_count_string( $term_count ) . " term(s)</a>"; |
||
| 39 | $match_terms = __('Match terms', 'wordlift'); |
||
| 40 | $additional_text = __(' waiting to be matched with entities.', 'wordlift'); |
||
| 41 | echo <<<EOF |
||
| 42 | <div id="wl-match-terms" class="wl-dashboard__block wl-dashboard__block--match-terms"> |
||
| 43 | <header> |
||
| 44 | <h3>$match_terms</h3> |
||
| 45 | </header> |
||
| 46 | <p> |
||
| 47 | <strong>$term_count_link</strong> $additional_text |
||
| 48 | </p> |
||
| 49 | </div> |
||
| 50 | EOF; |
||
| 51 | } |
||
| 52 | |||
| 53 | } |