mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 03:06:43 +02:00
feat(plugins): add aside with plugin metadata next to plugin's readme
- enhance plugin card ui - refactor components to be more consistent - invert toggler label for better UX - edit view components regex
This commit is contained in:
parent
e6bfdfc390
commit
dfb7888aeb
193 changed files with 1630 additions and 1346 deletions
|
|
@ -5,19 +5,11 @@ declare(strict_types=1);
|
|||
namespace Modules\Plugins;
|
||||
|
||||
use CodeIgniter\HTTP\URI;
|
||||
use League\CommonMark\Environment\EnvironmentInterface;
|
||||
use League\CommonMark\Event\DocumentParsedEvent;
|
||||
use League\CommonMark\Extension\CommonMark\Node\Inline\Link;
|
||||
|
||||
class ExternalLinkProcessor
|
||||
{
|
||||
private EnvironmentInterface $environment;
|
||||
|
||||
public function __construct(EnvironmentInterface $environment)
|
||||
{
|
||||
$this->environment = $environment;
|
||||
}
|
||||
|
||||
public function onDocumentParsed(DocumentParsedEvent $event): void
|
||||
{
|
||||
$document = $event->getDocument();
|
||||
|
|
@ -48,7 +40,6 @@ class ExternalLinkProcessor
|
|||
$host = parse_url($url, PHP_URL_HOST);
|
||||
|
||||
// TODO: load from environment's config
|
||||
// return $host != $this->environment->getConfiguration()->get('host');
|
||||
return $host !== (new URI(base_url()))->getHost();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue