title ) ) $this->title = trim( $job_data->title ); if ( isset( $job_data->angellist_url ) ) { $url = esc_url( $job_data->angellist_url, array( 'http', 'https' ) ); if ( $url ) $this->url = $url; unset( $url ); } } /** * HTML markup for a single job mention * * @since 1.2 * @param bool $schema_org output Schema.org markup * @param string $anchor_extra extra attributes such as browser context (target) to be applied to each anchor element * @return string HTML markup for a single list item or empty string if minimum requirements (name, role) not met */ public function render( $schema_org = true, $anchor_extra = '' ) { if ( ! isset( $this->title ) ) return ''; $html = '
  • title ) . '" />'; if ( isset( $this->url ) ) $html .= ''; } else $html .= '>'; if ( isset( $this->url ) ) $html .= '' . esc_html( $this->title ) . ''; else $html .= esc_html( $this->title ); $html .= '
  • '; return $html; } } ?>