| 1 |
<?php |
| 2 |
namespace ABlocks\Blocks\LoopBuilder; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
use ABlocks\Classes\BlockBaseAbstract; |
| 9 |
use ABlocks\Classes\CssGenerator; |
| 10 |
|
| 11 |
class Block extends BlockBaseAbstract { |
| 12 |
protected $block_name = 'loop-builder'; |
| 13 |
|
| 14 |
public function build_css( $attributes ) { |
| 15 |
// Generate CSS start |
| 16 |
$css_generator = new CssGenerator( $attributes ); |
| 17 |
return $css_generator->generate_css(); |
| 18 |
} |
| 19 |
|
| 20 |
public function render_block_content( $attributes, $content, $block ) { |
| 21 |
return $content; |
| 22 |
} |
| 23 |
} |
| 24 |
|