Last active
January 25, 2017 13:39
-
-
Save zhabinka/0f0024fcffc2fda649bb80cf9d354c49 to your computer and use it in GitHub Desktop.
Круглые изображения
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flex{ | |
float: left; | |
width: 220px; | |
text-align: center; | |
margin: 0 5px 20px 5px; | |
text-transform: uppercase; | |
font-size: 18px; | |
} | |
.flex img{ | |
padding: 0 0 10px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[pdoResources? | |
&parents=`885` | |
&depth=`1` | |
&tpl=`round_photos.tpl` | |
&includeTVs=`image` | |
&limit=`0` | |
&showLog = `0` | |
]] | |
{$_modx->runSnippet('pdoResources', [ | |
'parents' => '885', | |
'tpl' => '@FILE tpl/round_photos.tpl', | |
'sortby' => 'menuindex', | |
'sortdir' => 'ASC', | |
'limit' => 0, | |
'showLog' => 0, | |
'includeTVs' => 'image', | |
'includeContent' => 0 | |
])} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="flex"> | |
<a href="[[~[[+id]]]]"> | |
<img src="[[+tv.image:phpthumbon=`w=220&h=220&zc=1&fltr[]=ric|110|110&f=png`]]"> | |
<span>[[+pagetitle]]</span> | |
</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment