Ejemplo n.º 1
0
    return HtmlProgress::setContent('');
});
Larakit\Twig::register_function('html_map', function ($name, $id = null) {
    return \HtmlMap::setName($name)->setId($id ? $id : $name);
});
Larakit\Twig::register_function('html_progress_bar', function () {
    return HtmlProgressBar::setContent('');
});
Larakit\Twig::register_function('html_a', function ($url) {
    return HtmlA::setHref($url)->setContent($url);
});
Larakit\Twig::register_function('html_audio', function ($src) {
    return HtmlAudio::setSrc($src);
});
Larakit\Twig::register_function('html_abbr', function ($abbr, $fulltext) {
    return HtmlAbbr::setContent($abbr)->setTitle($fulltext);
});
Larakit\Twig::register_function('html_blockquote', function ($content, $author = null) {
    return HtmlBlockquote::setContent($content)->setAuthor($author);
});
Larakit\Twig::register_function('html_button', function ($content) {
    return HtmlButton::setContent($content);
});
Larakit\Twig::register_function('html_div', function ($content = null) {
    return HtmlDiv::setContent($content);
});
Larakit\Twig::register_function('html_i', function ($content = null) {
    return HtmlI::setContent($content);
});
Larakit\Twig::register_function('html_span', function ($content = null) {
    return HtmlSpan::setContent($content);
Ejemplo n.º 2
0
 function getCreatedAtAttribute()
 {
     return \HtmlAbbr::setContent($this->getCreatedAtDiffAttribute())->setTitle($this->getCreatedAtDateAttribute());
 }