| 1 |
<?php |
| 2 |
|
| 3 |
class Meow_MGL_Builders_Raw extends Meow_MGL_Builders_Core { |
| 4 |
|
| 5 |
public function __construct( $atts, $infinite, $isPreview = false ) { |
| 6 |
parent::__construct( $atts, $infinite, $isPreview ); |
| 7 |
$this->layout = 'raw'; |
| 8 |
} |
| 9 |
|
| 10 |
function inline_css() { |
| 11 |
return null; |
| 12 |
} |
| 13 |
|
| 14 |
function build_inline_attributes( $id, $data ) { |
| 15 |
if ( isset( $data['meta'] ) && isset( $data['meta']['width'] ) && isset( $data['meta']['height'] ) ) { |
| 16 |
return ' data-mgl-id="' . $id . '" data-mgl-width="' . $data['meta']['width'] . '" data-mgl-height="' . |
| 17 |
$data['meta']['height'] . '"'; |
| 18 |
} |
| 19 |
return null; |
| 20 |
} |
| 21 |
|
| 22 |
function build_next_cell( $id, $data ) { |
| 23 |
$html = parent::build_next_cell( $id, $data ); |
| 24 |
return $html; |
| 25 |
} |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
?> |
| 30 |
|