<pre>
<?php
require dirname(__FILE__).'/_class_bib_smiles.php';
$bib_smiles = new bib_smiles();
echo 'folder:<br />'.$bib_smiles->get_folder().'<hr />';
echo 'folder for web:<br />'.$bib_smiles->get_folder_web().'<hr />';
$test_text = ':-) << two smiles >> :-D';
echo $test_text.'<hr />';
$bib_smiles->create_index();
$sets = $bib_smiles->get_list_sets();
foreach($sets as $key=>$value){
$i=0;
echo 'set # '.$key.'<br />';
echo '# smiles: '.count($sets[$key]['smiles']).'<br />';
echo 'folder: '.$sets[$key]['folder'].'<br />';
echo 'name: '.$sets[$key]['name'].'<br />';
echo 'description: '.$sets[$key]['description'].'<br />';
echo 'icon: '.($sets[$key]['icon']!=''?'<img src="'.$bib_smiles->get_folder_web().$sets[$key]['folder'].'/'.$sets[$key]['icon'].'" border="0" alt="" title="" />':'').$sets[$key]['icon'].'<br />';
echo 'author: '.$sets[$key]['author'].'<br />';
echo 'type: '.$sets[$key]['type'].'<br />';
echo 'example: '.$bib_smiles->smiles($test_text, $key).'<br />';
foreach($sets[$key]['smiles'] as $key1=>$value1){
if($i%25==0) echo '<br />';
echo '<img src="'.$bib_smiles->get_folder_web().$sets[$key]['smiles'][$key1]['pic'].'" border="0" alt="'.htmlentities($sets[$key]['smiles'][$key1]['desc']).'" title="'.htmlentities($sets[$key]['smiles'][$key1]['desc']).'" />';
$i++;
}
echo '<hr />'."\n";
}
?>
</pre>
|