diff --git a/plugins/themes/default/styles/objects/article_details.less b/plugins/themes/default/styles/objects/article_details.less index 5ec4f6d73df..5ee8fc8ddad 100644 --- a/plugins/themes/default/styles/objects/article_details.less +++ b/plugins/themes/default/styles/objects/article_details.less @@ -10,15 +10,17 @@ */ .obj_article_details { - > .page_title { - margin: 0; - } - - > .subtitle { - margin: 0; - font-size: @font-base; - line-height: @line-lead; - font-weight: @normal; + .page_titles { + .page_title { + margin: 0; + } + + .subtitle { + margin: 0; + font-size: @font-base; + line-height: @line-lead; + font-weight: @normal; + } } .row { diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl index d27ab7457fc..20b01d88fa7 100755 --- a/templates/frontend/objects/article_details.tpl +++ b/templates/frontend/objects/article_details.tpl @@ -149,43 +149,43 @@ {/if} - {** Example usage of the language switcher, title and subtitle - * In h1, the attribute data-pkp-switcher-data="title" and, in h2, the attribute data-pkp-switcher-data="subtitle" are used to sync the text content in elements when - * the language is switched. - * The attribute data-pkp-switcher="titles" is the container for the switcher's buttons, it needs to match json's switcher-key's value, e.g. {"title":{"switcher":"titles"... - * The function wrapData wraps publication data for the json and the tpl, e.g. $pubLocaleData.title=$publication->getTitles('html')|wrapData:"titles":['strip_unsafe_html'], - * $pubLocaleData's title-key needs to match data-pkp-switcher-data'-attribute's value, e.g. data-pkp-switcher-data="title". This is for to sync the data in the correct element. - * See all the examples below. - * The rest of the work is handled by the js code. - *} - {* Publication title for json *} - {* array $data | wrapData : string $switcher : ?array $filters : ?string $separator (e.g. keywords) *} - {$pubLocaleData.title=$publication->getTitles('html')|wrapData:"titles":['strip_unsafe_html']} -

- {$pubLocaleData.title.data[$pubLocaleData.title.defaultLocale]} -

- - {if $publication->getSubTitles('html')} - {* Publication subtitle for json *} - {$pubLocaleData.subtitle=$publication->getSubTitles('html')|wrapData:"titles":['strip_unsafe_html']} -

+ {** Example usage of the language switcher, title and subtitle + * In h1, the attribute data-pkp-switcher-data="title" and, in h2, the attribute data-pkp-switcher-data="subtitle" are used to sync the text content in elements when + * the language is switched. + * The attribute data-pkp-switcher="titles" is the container for the switcher's buttons, it needs to match json's switcher-key's value, e.g. {"title":{"switcher":"titles"... + * The function wrapData wraps publication data for the json and the tpl, e.g. $pubLocaleData.title=$publication->getTitles('html')|wrapData:"titles":['strip_unsafe_html'], + * $pubLocaleData's title-key needs to match data-pkp-switcher-data'-attribute's value, e.g. data-pkp-switcher-data="title". This is for to sync the data in the correct element. + * See all the examples below. + * The rest of the work is handled by the js code. + *} + {* Publication title for json *} + {* array $data | wrapData : string $switcher : ?array $filters : ?string $separator (e.g. keywords) *} + {$pubLocaleData.title=$publication->getTitles('html')|wrapData:"titles":['strip_unsafe_html']} +

- {$pubLocaleData.subtitle.data[$pubLocaleData.subtitle.defaultLocale]} -

- {/if} - {* Title and subtitle common switcher *} - {if isset($pubLocaleData.opts.title)} - {switcherContainer} - {/if} + {$pubLocaleData.title.data[$pubLocaleData.title.defaultLocale]} + + + {if $publication->getSubTitles('html')} + {* Publication subtitle for json *} + {$pubLocaleData.subtitle=$publication->getSubTitles('html')|wrapData:"titles":['strip_unsafe_html']} +

+ {$pubLocaleData.subtitle.data[$pubLocaleData.subtitle.defaultLocale]} +

+ {/if} + {* Title and subtitle common switcher *} + {if isset($pubLocaleData.opts.title)} + {switcherContainer} + {/if} + {* Comma list separator for authors' affiliations and keywords *} {capture assign=commaListSeparator}{translate key="common.commaListSeparator"}{/capture} @@ -198,14 +198,13 @@

{translate key="article.authors"}