21 lines
567 B
PHP
21 lines
567 B
PHP
<?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;
|
|
}
|
|
} |