Login   Register  
PHP Classes
elePHPant
Icontem

File: testplugin.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  Flex Lorem  >  testplugin.php  >  Download  
File: testplugin.php
Role: Example script
Content type: text/plain
Description: example for plugin creator
Class: Flex Lorem
Generate bogus content to test page layouts
Author: By
Last change:
Date: 2012-08-05 07:49
Size: 532 bytes
 

Contents

Class file image Download
<?php

include_once 'element.php';
include_once 
'lorem.php';


echo 
lorem::createPlugin("test", array(
    
"sugar" => array(
        
"parameters" => array(),
        
"source" => '<div class="test">
                <span>{Lorem.text,3}</span>
                <h1>{Lorem.text,5}</h1>
                {lorem.para}
                {lorem.separator}
                </div>
                '
    
),
    
"choco" => array(
        
"parameters" => array(),
        
"source" => '<div class="test">
                <span>{Lorem.text,4}</span>
                <h2>{Lorem.text,5}</h2>
                {lorem.para}
                {lorem.separator}
                </div>
                '
    
)
));