FEATURE: add missing templates

This commit is contained in:
Michal Kváček
2016-10-02 16:28:37 +02:00
parent a9d5c0de28
commit 673531ae22
5 changed files with 98 additions and 23 deletions
@@ -0,0 +1,18 @@
<?php
namespace Templates\Binarity\Shortcodes;
class DarkBlock
{
public function register($shortcode, $content, $compiler, $name)
{
$content = str_replace('<div>', '', $content);
$content = str_replace('</div>', '', $content);
$code = '<div class="clearfix m-t-50"></div>
<div class="dark-background">
' . $content . '
</div>';
return $code;
}
}