FEATURE: add missing templates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace Templates\Binarity\Shortcodes;
|
||||
|
||||
class TechnologiesWrapper {
|
||||
public function register($shortcode, $content, $compiler, $name)
|
||||
{
|
||||
$content = str_replace('<div>', '', $content);
|
||||
$content = str_replace('</div>', '', $content);
|
||||
return '<div class="what-we-know-holder">'.$content.'</div>';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace Templates\Binarity\Shortcodes;
|
||||
|
||||
class Technology
|
||||
{
|
||||
public function register($shortcode, $content, $compiler, $name)
|
||||
{
|
||||
$code = '<span class="what-we-know" title="' . $shortcode->title . '">';
|
||||
|
||||
if ($shortcode->img) {
|
||||
$code .= '<img src="' . asset_path($shortcode->img) . '" alt="' . $shortcode->title . '">';
|
||||
}
|
||||
|
||||
if ($content) {
|
||||
$code .= '<small style="position: absolute; top: 41%; left: 30%;">' . $content . '</small>';
|
||||
}
|
||||
$code .= '</span>';
|
||||
|
||||
return $code;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user