Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeRDark
languagephp
linenumberstrue
$t->rows(
 "|<h1 style="\"text-align:">{NAME}</h1>~*&lt;img src="\"{IMAGE}\"" border="\"~*" align="\"LEFT\"" alt="" />{DESCRIPTION}<div style="|U",">{NAME}<br /><br /> &lt;img src="\"{IMAGE}\"" alt="" /><br /> {DESCRIPTION} <hr />"  );   $t->resolveurls();  $directors = $t->result;   $t->fetch("[http://blinkmobile.com.au/index.php/meet-the-team/staff");]  $t->rows(   "|~*<h1 style="\"text-align:">{NAME}</h1>~*&lt;img src="\"{IMAGE}alt=~*\"LEFT\"" alt="" />{DESCRIPTION}<div style="|U",">{NAME}<br /><br /> &lt;img src="\"{IMAGE}\"" alt="" /><br /> {DESCRIPTION} <hr />"  );   $t->resolveurls();   $t->prepend($directors);  return $t->result;</div></div>

 

 

$t->wrap( )

This is a function generated by the interaction builder Wrap will add any text or HTML in the Header and Footer fields of the interaction builder before and after the result returned in $t.

Often used to create a page header / footer this function can also be used to control or style display results as well as seen in the example below.

Parameters   

 
$mystring
A String.

Return Values   

 
$t->result
A String.
Returns source before and after $t->result 
Code Block
themeRDark
languagephp
linenumberstrue
$t->wrap("Text in the header", "Text in the footer");