Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Use short open tags in the templates
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 1, 2015
1 parent 29dae15 commit 30f9991
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 56 deletions.
6 changes: 3 additions & 3 deletions src/Resources/contao/templates/modules/mod_faqlist.html5
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<?php $this->block('content'); ?>

<?php foreach($this->faq as $category): ?>
<h2><?php echo $category['headline']; ?></h2>
<ul class="<?php echo $category['class']; ?>">
<h2><?= $category['headline'] ?></h2>
<ul class="<?= $category['class'] ?>">
<?php foreach ($category['items'] as $faq): ?>
<li class="<?php echo $faq['class']; ?>"><a href="<?php echo $faq['href']; ?>" title="<?php echo $faq['title']; ?>"><?php echo $faq['question']; ?></a></li>
<li class="<?= $faq['class'] ?>"><a href="<?= $faq['href'] ?>" title="<?= $faq['title'] ?>"><?= $faq['question'] ?></a></li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/contao/templates/modules/mod_faqlist.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<?php $this->block('content'); ?>

<?php foreach($this->faq as $category): ?>
<h2><?php echo $category['headline']; ?></h2>
<ul class="<?php echo $category['class']; ?>">
<h2><?= $category['headline'] ?></h2>
<ul class="<?= $category['class'] ?>">
<?php foreach ($category['items'] as $faq): ?>
<li class="<?php echo $faq['class']; ?>"><a href="<?php echo $faq['href']; ?>" title="<?php echo $faq['title']; ?>"><?php echo $faq['question']; ?></a></li>
<li class="<?= $faq['class'] ?>"><a href="<?= $faq['href'] ?>" title="<?= $faq['title'] ?>"><?= $faq['question'] ?></a></li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>
Expand Down
24 changes: 12 additions & 12 deletions src/Resources/contao/templates/modules/mod_faqpage.html5
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
<?php $this->block('content'); ?>

<?php foreach($this->faq as $category): ?>
<article class="<?php echo $category['class']; ?>">
<h2><?php echo $category['headline']; ?></h2>
<article class="<?= $category['class'] ?>">
<h2><?= $category['headline'] ?></h2>

<?php foreach ($category['items'] as $faq): ?>
<section class="<?php echo $faq->class; ?>">
<h3 id="<?php echo $faq->alias; ?>"><?php echo $faq->question; ?></h3>
<section class="<?= $faq->class ?>">
<h3 id="<?= $faq->alias ?>"><?= $faq->question ?></h3>
<div class="ce_text block">

<?php if (!$faq->addBefore): ?>
<?php echo $faq->answer; ?>
<?= $faq->answer ?>
<?php endif; ?>

<?php if ($faq->addImage): ?>
<figure class="image_container<?php echo $faq->floatClass; ?>"<?php if ($faq->margin): ?> style="<?php echo $faq->margin; ?>"<?php endif; ?>>
<figure class="image_container<?= $faq->floatClass ?>"<?php if ($faq->margin): ?> style="<?= $faq->margin ?>"<?php endif; ?>>

<?php if ($faq->href): ?>
<a href="<?php echo $faq->href; ?>"<?php echo $faq->attributes; ?> title="<?php echo $faq->alt; ?>">
<a href="<?= $faq->href ?>"<?= $faq->attributes ?> title="<?= $faq->alt ?>">
<?php endif; ?>

<?php $this->insert('picture_default', $faq->picture); ?>
Expand All @@ -29,31 +29,31 @@
<?php endif; ?>

<?php if ($faq->caption): ?>
<figcaption class="caption"><?php echo $faq->caption; ?></figcaption>
<figcaption class="caption"><?= $faq->caption ?></figcaption>
<?php endif; ?>

</figure>
<?php endif; ?>

<?php if ($faq->addBefore): ?>
<?php echo $faq->answer; ?>
<?= $faq->answer ?>
<?php endif; ?>

</div>

<?php if ($faq->enclosure): ?>
<div class="enclosure">
<?php foreach ($faq->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon"> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<p><img src="<?= $enclosure['icon'] ?>" width="18" height="18" alt="<?= $enclosure['mime'] ?>" class="mime_icon"> <a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>

<p class="info"><?php echo $faq->info; ?></p>
<p class="info"><?= $faq->info ?></p>
</section>
<?php endforeach; ?>

<p class="toplink"><a href="<?php echo $this->request; ?>#top"><?php echo $this->topLink; ?></a></p>
<p class="toplink"><a href="<?= $this->request ?>#top"><?= $this->topLink ?></a></p>
</article>
<?php endforeach; ?>

Expand Down
24 changes: 12 additions & 12 deletions src/Resources/contao/templates/modules/mod_faqpage.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
<?php $this->block('content'); ?>

<?php foreach($this->faq as $category): ?>
<div class="<?php echo $category['class']; ?>">
<h2><?php echo $category['headline']; ?></h2>
<div class="<?= $category['class'] ?>">
<h2><?= $category['headline'] ?></h2>

<?php foreach ($category['items'] as $faq): ?>
<div class="<?php echo $faq->class; ?>">
<h3 id="<?php echo $faq->alias; ?>"><?php echo $faq->question; ?></h3>
<div class="<?= $faq->class ?>">
<h3 id="<?= $faq->alias ?>"><?= $faq->question ?></h3>
<div class="ce_text block">

<?php if (!$faq->addBefore): ?>
<?php echo $faq->answer; ?>
<?= $faq->answer ?>
<?php endif; ?>

<?php if ($faq->addImage): ?>
<div class="image_container<?php echo $faq->floatClass; ?>"<?php if ($faq->margin): ?> style="<?php echo $faq->margin; ?>"<?php endif; ?>>
<div class="image_container<?= $faq->floatClass ?>"<?php if ($faq->margin): ?> style="<?= $faq->margin ?>"<?php endif; ?>>

<?php if ($faq->href): ?>
<a href="<?php echo $faq->href; ?>"<?php echo $faq->attributes; ?> title="<?php echo $faq->alt; ?>">
<a href="<?= $faq->href ?>"<?= $faq->attributes ?> title="<?= $faq->alt ?>">
<?php endif; ?>

<?php $this->insert('picture_default', $faq->picture); ?>
Expand All @@ -29,31 +29,31 @@
<?php endif; ?>

<?php if ($faq->caption): ?>
<div class="caption"><?php echo $faq->caption; ?></div>
<div class="caption"><?= $faq->caption ?></div>
<?php endif; ?>

</div>
<?php endif; ?>

<?php if ($faq->addBefore): ?>
<?php echo $faq->answer; ?>
<?= $faq->answer ?>
<?php endif; ?>

</div>

<?php if ($faq->enclosure): ?>
<div class="enclosure">
<?php foreach ($faq->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<p><img src="<?= $enclosure['icon'] ?>" width="18" height="18" alt="<?= $enclosure['mime'] ?>" class="mime_icon" /> <a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>

<p class="info"><?php echo $faq->info; ?></p>
<p class="info"><?= $faq->info ?></p>
</div>
<?php endforeach; ?>

<p class="toplink"><a href="<?php echo $this->request; ?>#top"><?php echo $this->topLink; ?></a></p>
<p class="toplink"><a href="<?= $this->request ?>#top"><?= $this->topLink ?></a></p>
</div>
<?php endforeach; ?>

Expand Down
26 changes: 13 additions & 13 deletions src/Resources/contao/templates/modules/mod_faqreader.html5
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<?php $this->block('content'); ?>

<?php if ($this->error): ?>
<?php echo $this->error; ?>
<?= $this->error ?>
<?php else: ?>
<h1><?php echo $this->question; ?></h1>
<h1><?= $this->question ?></h1>
<div class="ce_text block">

<?php if (!$this->addBefore): ?>
<?php echo $this->answer; ?>
<?= $this->answer ?>
<?php endif; ?>

<?php if ($this->addImage): ?>
<figure class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin): ?> style="<?php echo $this->margin; ?>"<?php endif; ?>>
<figure class="image_container<?= $this->floatClass ?>"<?php if ($this->margin): ?> style="<?= $this->margin ?>"<?php endif; ?>>

<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<a href="<?= $this->href ?>"<?= $this->attributes ?> title="<?= $this->alt ?>">
<?php endif; ?>

<?php $this->insert('picture_default', $this->picture); ?>
Expand All @@ -26,38 +26,38 @@
<?php endif; ?>

<?php if ($this->caption): ?>
<figcaption class="caption"><?php echo $this->caption; ?></figcaption>
<figcaption class="caption"><?= $this->caption ?></figcaption>
<?php endif; ?>

</figure>
<?php endif; ?>

<?php if ($this->addBefore): ?>
<?php echo $this->answer; ?>
<?= $this->answer ?>
<?php endif; ?>

</div>

<?php if ($this->enclosure): ?>
<div class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon"> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<p><img src="<?= $enclosure['icon'] ?>" width="18" height="18" alt="<?= $enclosure['mime'] ?>" class="mime_icon"> <a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>

<p class="info"><?php echo $this->info; ?></p>
<p class="info"><?= $this->info ?></p>

<!-- indexer::stop -->
<p class="back"><a href="<?php echo $this->referer; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
<p class="back"><a href="<?= $this->referer ?>" title="<?= $this->back ?>"><?= $this->back ?></a></p>
<!-- indexer::continue -->
<?php endif; ?>

<?php if ($this->allowComments): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<<?= $this->hlc ?>><?= $this->addComment ?></<?= $this->hlc ?>>
<?= implode('', $this->comments) ?>
<?= $this->pagination ?>
<?php include $this->getTemplate('mod_comment_form', 'html5'); ?>
</div>
<?php endif; ?>
Expand Down
26 changes: 13 additions & 13 deletions src/Resources/contao/templates/modules/mod_faqreader.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<?php $this->block('content'); ?>

<?php if ($this->error): ?>
<?php echo $this->error; ?>
<?= $this->error ?>
<?php else: ?>
<h1><?php echo $this->question; ?></h1>
<h1><?= $this->question ?></h1>
<div class="ce_text block">

<?php if (!$this->addBefore): ?>
<?php echo $this->answer; ?>
<?= $this->answer ?>
<?php endif; ?>

<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin): ?> style="<?php echo $this->margin; ?>"<?php endif; ?>>
<div class="image_container<?= $this->floatClass ?>"<?php if ($this->margin): ?> style="<?= $this->margin ?>"<?php endif; ?>>

<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<a href="<?= $this->href ?>"<?= $this->attributes ?> title="<?= $this->alt ?>">
<?php endif; ?>

<?php $this->insert('picture_default', $this->picture); ?>
Expand All @@ -26,38 +26,38 @@
<?php endif; ?>

<?php if ($this->caption): ?>
<div class="caption"><?php echo $this->caption; ?></div>
<div class="caption"><?= $this->caption ?></div>
<?php endif; ?>

</div>
<?php endif; ?>

<?php if ($this->addBefore): ?>
<?php echo $this->answer; ?>
<?= $this->answer ?>
<?php endif; ?>

</div>

<?php if ($this->enclosure): ?>
<div class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<p><img src="<?= $enclosure['icon'] ?>" width="18" height="18" alt="<?= $enclosure['mime'] ?>" class="mime_icon" /> <a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>

<p class="info"><?php echo $this->info; ?></p>
<p class="info"><?= $this->info ?></p>

<!-- indexer::stop -->
<p class="back"><a href="<?php echo $this->referer; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
<p class="back"><a href="<?= $this->referer ?>" title="<?= $this->back ?>"><?= $this->back ?></a></p>
<!-- indexer::continue -->
<?php endif; ?>

<?php if ($this->allowComments): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<<?= $this->hlc ?>><?= $this->addComment ?></<?= $this->hlc ?>>
<?= implode('', $this->comments) ?>
<?= $this->pagination ?>
<?php include $this->getTemplate('mod_comment_form', 'xhtml'); ?>
</div>
<?php endif; ?>
Expand Down

0 comments on commit 30f9991

Please sign in to comment.