Generating Lorum Text
Posted: Wed May 08, 2013 10:30 am
I Use Lorum text to fill websites in production.
I've created a UDT, so it works easier...
1) Make u UDT named "lorum"
2) enter this code3) Call the UDT by {lorum par="x"} where x is the numer of paragraphs you want.
I've created a UDT, so it works easier...
1) Make u UDT named "lorum"
2) enter this code
Code: Select all
$par = isset($params['par']) ? $params['par'] : '1';
for ($i=1; $i<=$par; $i++)
{
echo "<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><br />";
}