Skip to content

Instantly share code, notes, and snippets.

@zhabinka
Last active April 19, 2017 07:43
Show Gist options
  • Save zhabinka/465da54e3133be27987709ff25493036 to your computer and use it in GitHub Desktop.
Save zhabinka/465da54e3133be27987709ff25493036 to your computer and use it in GitHub Desktop.
Lable New, маркер Новинка, наложение текста на изображение
img.new {
left: -7px;
position: absolute;
top: -7px;
width: 150px;
}
//in product.row
{if $new?}
<img class="new" src="images/new.png">
{/if}
//in product template
{if $_modx->resource.new ?}
<img class="new" src="images/new.png">
{/if}
//image link
http://ancientwisdom.by/images/new.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment