Skip to content

Instantly share code, notes, and snippets.

@nonohry
Created September 3, 2019 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nonohry/33869fdbc322604a167c3fa4c273eea4 to your computer and use it in GitHub Desktop.
Save nonohry/33869fdbc322604a167c3fa4c273eea4 to your computer and use it in GitHub Desktop.
Article Matrics
<div id="IssueFull">
<img src="https://1.bp.blogspot.com/-bI59Tfv3L2M/XW3uqpfOG7I/AAAAAAAAgnk/lWPVTOhxKDQBgCBZg54cOwKa5XoCOU5FQCLcBGAs/s1600/graph.png" height="15px">
{if is_a($article, 'PublishedArticle')}{assign var=galleys value=$article->getGalleys()}{/if}
<span> | {$totalViews}</span> <span>{translate key="article.abstract"} views:</span> <span><strong>{$article->getViews()}</strong></span>
{if $galleys}
{foreach from=$galleys item=galley name=galleyList}
<span> | <img src="(https://1.bp.blogspot.com/-8PoENXHuRM0/W6Bm4_-ECKI/AAAAAAAAZbE/r_91Jl_xujAXM281Dxx89i8QYHm2Xu4GgCPcBGAYYCw/s1600/pdf.png" height="15px"> {$galley->getGalleyLabel()} views:</span> <span><strong>{$galley->getViews()}</strong></span>
{/foreach}
{/if}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment