Example #1
0
tag('small');
tag('div');
tag('p');
tag('span');
tag('pre');
tag('code');
tag('em');
tag('ul');
tag('li');
tag('h1');
tag('h2');
tag('h3');
tag('h4');
tag('h5');
tag('h6');
tag('blockquote');
tag('footer');
tag_open('tr_open');
HTML::macro('named_anchor', function ($name) {
    return HTML::a('', ['name' => $name]);
});
HTML::macro('pcode', function ($innards) {
    return HTML::p(HTML::code($innards));
});
HTML::macro('nbsp', function ($total = 1) {
    $html = '';
    for ($i = 0; $i < $total; $i++) {
        $html .= '&nbsp;';
    }
    return $html;
});
Example #2
0
function jquery($code)
{
    $str = tag_open('script');
    $str .= '$(document).ready(function(){';
    $str .= $code;
    $str .= '});';
    $str .= tag_close('script');
    return $str;
}