Skip to content

Instantly share code, notes, and snippets.

@ger86
Created March 4, 2019 17:56
Show Gist options
  • Save ger86/05f9e0134e6477580988a063daf07f05 to your computer and use it in GitHub Desktop.
Save ger86/05f9e0134e6477580988a063daf07f05 to your computer and use it in GitHub Desktop.
<?php
namespace App\Shortcode;
final class ButtonShortcode implements ShortcodeInterface {
public function getName(): string {
return 'well';
}
public function getArgs(): array {
return [];
}
public function apply(array $attrs, string $content): string {
return '<button>'.$content.'</button>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment