Skip to content
Snippets Groups Projects
Commit ca5967da authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update visual output

parent fec28a1a
No related branches found
No related tags found
No related merge requests found
...@@ -7,16 +7,30 @@ function showExample($sPhpcode){ ...@@ -7,16 +7,30 @@ function showExample($sPhpcode){
eval("\$sOut=$sPhpcode;"); eval("\$sOut=$sPhpcode;");
return ' return '
<h3>PHP code</h3> <table class="table">
<pre>'.htmlentities($sPhpcode).'</pre> <thead>
<tr>
<h3>Output</h3> <th>Source</th>
visual output:<br> <th>Output</th>
<br> <th>Generated html code</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="language-php max-height-300 highlighter-rouge"><div class="highlight">
<pre class="highlight">'.htmlentities($sPhpcode).'</pre>
</div></div>
</td>
<td>
'.$sOut.' '.$sOut.'
<br> </td>
generated html code: <td>
<pre>'.htmlentities(str_replace([">", "</"], [">\n", "\n</"], $sOut)).'</pre> <pre>'.htmlentities(str_replace([">", "</"], [">\n", "\n</"], $sOut)).'</pre>
</td>
</tr>
</tbody>
</table>
'; ';
} }
\ No newline at end of file
...@@ -41,7 +41,7 @@ if(!isset($aComponents[$sComponent])){ ...@@ -41,7 +41,7 @@ if(!isset($aComponents[$sComponent])){
) )
.$renderAdminLTE->addRow( .$renderAdminLTE->addRow(
'<h3>Syntax</h3> '<h3>Syntax</h3>
<pre>echo $renderAdminLTE-><strong>'.$aComp['method'].'</strong>($aOptions)</pre> <code>echo $renderAdminLTE-><strong>'.$aComp['method'].'</strong>($aOptions)</code>
' '
); );
......
pre{background-color: #445; color: #f8f8f8};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment