You can also use {cycle} to set your text alignment. But you maybe need to use the name attribute so they don't conflict with each other.
Maybe something like this [untested]:
Code: Select all
<!-- Start News Display Template -->
{foreach from=$items item=entry}
<div class="row{cycle name='reverse' values=' flex-md-row-reverse,'} justify-content-center no-gutters press-black mb-5 mb-lg-0">
<div class="col-lg-6">
...
<div class="project-text w-100 my-auto text-center{cycle name='aligment' values=' text-lg-right,'}">
...
</div>
...
</div>
<div class="col-lg-6">
...
</div>
</div>
{/foreach}
https://www.smarty.net/docsv2/en/langua ... .cycle.tpl