IT enthusiast & web developer from Switzerland
Every shortcode is a PHP class and looks like this:
<?php
namespace Grav\Plugin\Shortcodes;
use Grav\Common\Utils;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
class ClearBothShortcode extends Shortcode
{
public function init()
{
$this->shortcode->getHandlers()->add('clearboth', function (ShortcodeInterface $sc) {
// Get shortcode content and parameters
$str = $sc->getContent();
$output = '<div style="clear: both;"></div>';
return $output;
});
}
}
with that, it should be possible to only call these classes.
I’d just import it as TwitterIcon
I’m using Brave cause I love and need Chromium. Firefox and Vivaldi are great options too.
You could use a PiHole or nextdns.io too as a DNS blocker against ads and trackers.
Actual definitions (my opinion):
︎ ︎ ︎ ned
RIP to people who never shutdown or restart their PCs
there aren’t.
& most people don’t even know what/ who C418 is…
less really is more with more features. and more IS less with less features
did you know there is a vim tutor for learning how to vim?
Hey thanks for the comment!
The plugins don’t get maintained by me, they’re getting maintained by the Grav team. I’m not very good in PHP too.
I plan to create an issue on GitHub if I know more and probably identified the code causing the problem.