/
proc
/
self
/
root
/
home
/
henzagold
/
server
/
vendor
/
thunderer
/
shortcode
/
src
/
Handler
/
File Upload :
llllll
Current File: //proc/self/root/home/henzagold/server/vendor/thunderer/shortcode/src/Handler/UrlHandler.php
<?php namespace Thunder\Shortcode\Handler; use Thunder\Shortcode\Shortcode\ShortcodeInterface; /** * @author Tomasz Kowalczyk <tomasz@kowalczyk.cc> */ final class UrlHandler { /** * [url="http://example.org"]Click![/url] * [url="http://example.org" /] * [url]http://example.org[/url] * * @param ShortcodeInterface $shortcode * * @return string */ public function __invoke(ShortcodeInterface $shortcode) { $url = $shortcode->getBbCode() ?: $shortcode->getContent(); return '<a href="'.(string)$url.'">'.(string)$shortcode->getContent().'</a>'; } }
Copyright ©2k19 -
Hexid
|
Tex7ure