Code: Select all
{if $smarty.foreach.dategroup.index is div by 2}
<!-- Stuff for first, third, etc. entries here -->
{else}
<!-- Stuff for other entries here -->
{/if}
Code: Select all
{if $smarty.foreach.dategroup.index is div by 2}
<!-- Stuff for first, third, etc. entries here -->
{else}
<!-- Stuff for other entries here -->
{/if}
Code: Select all
{foreach blah blah blah}
blah blah blah (the important stuff)
{cycle values='true,false,false' print='false' assign='print_google'}
{if $print_google == 'true'}
<!-- Print Google, of course! -->
{/if}
{/foreach}
Code: Select all
{foreach from='$entries' item='dategroup'}
<div class="even_odd">{cycle values='odd,even'}</div>
<!-- Other entries stuff -->
{/foreach}
Code: Select all
{foreach from='$entries' item='dategroup'}
<div class="serendipity_entries">
<img src="{cycle values='wholenote,halfnote,quarternote,eigthnote'}.gif" />
<!-- other entry stuff -->
</div>
{/foreach}
Code: Select all
{foreach from='$entries' item='dategroup'}
<div style="background: {cycle values='white,black'};">
<!-- other entry stuff -->
</div>
{/foreach}
Code: Select all
{foreach from='$entries' item='dategroup'}
<div style="background: {cycle name='bgcolor' values='white,black'}; color: {cycle name='textcolor' values='black,white'};">
<!-- Other entry stuff -->
</div>
{/foreach}
Code: Select all
{if $smarty.foreach.dategroup.index is div by 2 }Code: Select all
{if $smarty.foreach.dategroup.index is div by 2 AND $smarty.foreach.outerdategroup.index is div by 2}I tried that plugin but it didn't work on my blog..garvinhicking wrote:Hi!
Now that carl mentions it: Did you have a look at the serendipity 'serendipity_event_includeentry' plugin ("Include entry blocks" or something like that). This actually allows you to post/use specific "blocks" after X entries.
Best regards,
Garvin