1
wishcraft
Using Lorea Ipsum in Workable Demos

I just want to share something with you, I have finished setting up my module demonstration again athttp://2.5.xoops.demo.labs.coop -- but to finish it off I added just a block below the menu that people can turn of for the demo; that constantly changes the Lorea Ipsum each refresh; this not only help with the score of the page or way visiblely to the search engines changing, it will also provide some control on the physical environment.

The code for that block is:-
for($y=1;$y<=2;$y++)
if (
mt_rand(-1,4)>=1)
{
    
$rows 1;
    echo 
"<p style='margin: 9px; padding: 3px; font-size: 0.89em; text-align: justify; text-shadow: 2px 1px -2px #e0033a;'>" implode("</p><p>"json_decode(file_get_contents("http://lipsum.labs.coop/v1/paragraphs/any/1/".$rows."/json.api"), true)) . "</p>";
} else {
    
$rows 1;
    foreach(
json_decode(file_get_contents("http://lipsum.labs.coop/v1/lists/any/".($items mt_rand(1,4))."/".$rows."/json.api"), true) as $list) {
        
$liststyle mt_rand(01)!=1?"ol":"ul";
        echo 
"<$liststyle style='margin: 9px; padding: 3px; font-size:  0.89em; text-align: justify; text-shadow: 2px 1px -2px #e0033a;'><li>" implode("</li><li>"$list) . "</li></$liststyle>";
    }
}


Thanks Enjoye !~ wishcraft

Login

Who's Online

174 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits