XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier function.cycle.php

Espaces de nommage

 Smarty
 

Fonctions

 smarty_function_cycle ($params, &$smarty)
 

Documentation des fonctions

◆ smarty_function_cycle()

smarty_function_cycle (   $params,
$smarty 
)

Smarty {cycle} function plugin

Type: function
Name: cycle
Date: May 3, 2002
Purpose: cycle through given values
Input:

  • name = name of cycle (optional)
  • values = comma separated list of values to cycle, or an array of values to cycle (this can be left out for subsequent calls)
  • reset = boolean - resets given var to true
  • print = boolean - print var or not. default is true
  • advance = boolean - whether or not to advance the cycle
  • delimiter = the value delimiter, default is ","
  • assign = boolean, assigns to template var instead of printed.

Examples:

{cycle values="#eeeeee,#d0d0d0d"}
{cycle name=row values="one,two,three" reset=true}
{cycle name=row}

{cycle} (Smarty online manual) Monte Ohrt <monte at ohrt dot com> credit to Mark Priatel mpria.nosp@m.tel@.nosp@m.roger.nosp@m.s.co.nosp@m.m credit to Gerard gerar.nosp@m.d@in.nosp@m.terfo.nosp@m.ld.c.nosp@m.om credit to Jason Sweat jswea.nosp@m.t_ph.nosp@m.p@yah.nosp@m.oo.c.nosp@m.om 1.3 array Smarty string|null