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
Actual definitions (my opinion):
︎ ︎ ︎ ned
i will never hear “alpha male” the same from now on.
but you are right!😂
Great idea for when you start in IT! Always had trouble first year in my apprenticeship when i had accidentally opened vim. Ask for first time and after 2 months not used.
Did someone already open a pull request?
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.