forked from MicrowaveDev/ModX-tehniques
-
Notifications
You must be signed in to change notification settings - Fork 0
/
for_chunk_and_template_examples.php
54 lines (45 loc) · 2.12 KB
/
for_chunk_and_template_examples.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[[!getResources? &parents=`-1` &tpl=`FooterProjectsItem` &resources=`[[#8.tv.multi-projects]]` &sortby=`{"menuindex":"ASC"}`
&includeTVs=`1` &processTVs=`1` &limit=`3`]]
[[!getResources? &parents=`[[+id]]` &depth=`0` &tpl=`GeneralListItem` &sortby=`{"menuindex":"ASC"}`
&includeTVs=`1` &processTVs=`1` &limit=`0` &totalVar=`count` &toPlaceholder=`results`]]
[[+count:isnt=`0`:then=`[[+results]]`]]
[[!getImageList? &tvname=`migx-faq` &docid=`57` &tpl=`FooterFAQ` &where=`{"active:=":"1","MIGX_id:=":"[[#8.tv.single-faq]]"}`]]
<ul>
[[!getImageList?
&tvname=`myMIGXtv`
&where=`{"active:=":"1"}`
&tpl=`@CODE:
<li>[[+idx]]<img src="[[+image]]"/><p>[[+title]]</p></li>
`]]
</ul>
[[+content_type:isnt=`1`:then=`<h4 class="download">`:else=`<h4 class="content-header">`]]
[[!%sitename.example? &namespace=`sitename` &language=`ru`]]
[[!FormIt?
&hooks=`email`
&emailTpl=`contactEmailTpl`
&emailSubject=`[Sitename] Сообщение с контактной формы сайта`
&emailTo=`[[#378.tv.email-responder?]]`
&submitVar=`contactForm`
]]
<form method="post" action="[[~[[*id]]]]">
<input type="text" name="fullname" required placeholder="[[!%sitename.fullname? &namespace=`sitename` &language=`ru`]]" class="req">
<input type="text" name="email" required placeholder="[[!%sitename.email? &namespace=`sitename` &language=`ru`]]" class="req">
<input class="btn" type="submit" value="[[!%sitename.submit? &namespace=`sitename` &language=`ru`]]" name="contactForm">
</form>
<base href="[[++site_url]]" />
<title>[[*seo-title:isempty=`[[++site_name]] - [[*pagetitle]]`]]</title>
<meta name="description" content="[[*meta-description:isempty=`[[*description]]`]]" />
<meta name="keywords" content="[[*meta-keywords?]]" />
<!-- Fenom example -->
<div class="col-md-4">
<a target="_blank" href="{$url}"><img src="{$image}"/></a>
</div>
{if $idx % 3 == 0 && $idx % 9 != 0}
</div><div class="row vertical-align">
{/if}
{if $idx % 9 == 0}
</div></div>
{/if}
{if $idx % 9 == 0 && $totalPartners > $idx}
<div class="vertical-align-xs"><div class="row vertical-align">
{/if}