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
you forgot linux as an alternative to windows and mac;)
RIP to people who never shutdown or restart their PCs
there aren’t.
& most people don’t even know what/ who C418 is…
as a young IT with friends who dont know much about IT i have to say that most around 20 use reddit, instagram, … cause its the only thing they know. everyone they know uses them and many of them want likes, …
if they would join the fediverse:
=> give it a few more years and get your friends, family & collegues on here and see the fediverse grow
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?
Im aware of that, thanks. Its just that all my friends & collegues still use Instagram. And if I quit there I dont have any contact over internet at all with them except for a few.
I also have a PixelFed account but dont really use it.
I dont like Instagram at all, just all my friends are over there. And I hope some of them join here soon.
Yeah… todays social media is more a commercial ad platform than social media.
the fediverse is the new ‘futuristic’ social media since its main goal is to connect people and make social media more social
Glad you like it!
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.