| 1 |
<?php |
| 2 |
// Grid should never be null. Construct just allows easy access to WPUPG_Grid functions in IDE. |
| 3 |
if( is_null( $grid ) ) $grid = new WPUPG_Grid(0); |
| 4 |
?> |
| 5 |
|
| 6 |
<?php |
| 7 |
if( $grid->post()->post_status !== 'publish' ) { |
| 8 |
_e( 'You have to publish the grid first.', 'wp-ultimate-post-grid' ); |
| 9 |
} else { |
| 10 |
?> |
| 11 |
<strong>Grid</strong><br/> |
| 12 |
[wpupg-grid id="<?php echo $grid->post()->post_name; ?>"] |
| 13 |
<?php |
| 14 |
if( $grid->filter_type() !== 'none' ) { |
| 15 |
?> |
| 16 |
<br/><br/> |
| 17 |
<strong>Filter</strong><br/> |
| 18 |
[wpupg-filter id="<?php echo $grid->post()->post_name; ?>"] |
| 19 |
<?php } ?> |
| 20 |
<?php } ?> |