| 1 |
<?php |
| 2 |
/** |
| 3 |
* Post grid block attributes file for Smart Post Show Blocks. |
| 4 |
* |
| 5 |
* @package Smart_Post_Show_Pro |
| 6 |
* @subpackage Smart_Post_Show_Pro/blocks/includes |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
$post_grid_five_attributes = array( |
| 14 |
'paginationEnable' => array( |
| 15 |
'type' => 'boolean', |
| 16 |
'default' => true, |
| 17 |
), |
| 18 |
'postGridLayout' => array( |
| 19 |
'type' => 'string', |
| 20 |
'default' => 'grid-five-layout-one', |
| 21 |
), |
| 22 |
'gridFiveColumns' => array( |
| 23 |
'type' => 'object', |
| 24 |
'default' => array( |
| 25 |
'device' => array( |
| 26 |
'Desktop' => 3, |
| 27 |
'Tablet' => 2, |
| 28 |
'Mobile' => 1, |
| 29 |
), |
| 30 |
), |
| 31 |
), |
| 32 |
'gridFiveHorizontalGap' => $this->ranger_attribute( 16 ), |
| 33 |
'gridLargeContentPosition' => array( |
| 34 |
'type' => 'string', |
| 35 |
'default' => 'left', |
| 36 |
), |
| 37 |
'gridFiveVerticalGap' => $this->ranger_attribute( 16, '', 16 ), |
| 38 |
|
| 39 |
'titleEffect' => array( |
| 40 |
'type' => 'string', |
| 41 |
'default' => 'none', |
| 42 |
), |
| 43 |
|
| 44 |
|
| 45 |
'titleUnderlineEffect' => array( |
| 46 |
'type' => 'string', |
| 47 |
'default' => 'leftToRight', |
| 48 |
), |
| 49 |
'titleEffectColor' => array( |
| 50 |
'type' => 'string', |
| 51 |
'default' => '#fff', |
| 52 |
), |
| 53 |
); |
| 54 |
|
| 55 |
return array_merge( $post_grid_five_attributes, $shared_attributes ); |
| 56 |
|