Give citation title classes, have URL link, and get spacing just perfect

Ref #10
This commit is contained in:
benjamin melançon 2019-09-29 10:20:35 -04:00
parent d3d09f56ca
commit c58fa4b7a8

View file

@ -84,17 +84,17 @@ function geo_citation_pseudo_field($entity) {
$markup .= '<div class="geo-citation">'; $markup .= '<div class="geo-citation">';
$tooltip = t("When citing this article, please use the following format:") $tooltip = t("When citing this article, please use the following format:");
$markup .= '<h4><abbr title="' . $tooltip . '">' . t("Citations") . '</abbr></h4>'; $markup .= '<h4 class="title is-4"><abbr title="' . $tooltip . '">' . t("Citations") . '</abbr></h4>';
$markup .= '<p>'; $markup .= '<p>';
$markup .= "$authors ($year).&puncsp; $title"; $markup .= "$authors ($year).&#8198; $title";
if ($subtitle) { if ($subtitle) {
$markup .= ":&puncsp; $subtitle"; $markup .= ":&#8198; $subtitle";
} }
$markup .= ".&puncsp; "; $markup .= ".&#8198; ";
$markup .= t("Grassroots Economic Organizing (GEO)."); $markup .= t("Grassroots Economic Organizing (GEO).");
$markup .= "&puncsp; $url"; $markup .= "&#8198; <a href='$url'>$url</a>'";
$markup .= '</p>'; $markup .= '</p>';
$markup .= '</div>'; $markup .= '</div>';