| 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_two_attributes = array( |
| 14 |
'paginationEnable' => array( |
| 15 |
'type' => 'boolean', |
| 16 |
'default' => true, |
| 17 |
), |
| 18 |
'gridTwoColumns' => array( |
| 19 |
'type' => 'object', |
| 20 |
'default' => array( |
| 21 |
'device' => array( |
| 22 |
'Desktop' => 3, |
| 23 |
'Tablet' => '', |
| 24 |
'Mobile' => '', |
| 25 |
), |
| 26 |
), |
| 27 |
), |
| 28 |
'gridTwoHorizontalGap' => $this->ranger_attribute( 20 ), |
| 29 |
'gridLargeContentPosition' => array( |
| 30 |
'type' => 'string', |
| 31 |
'default' => 'left', |
| 32 |
), |
| 33 |
'gridTwoVerticalGap' => $this->ranger_attribute( 20 ), |
| 34 |
'contentOnHover' => array( |
| 35 |
'type' => 'boolean', |
| 36 |
'default' => false, |
| 37 |
), |
| 38 |
|
| 39 |
'titleOnHover' => array( |
| 40 |
'type' => 'boolean', |
| 41 |
'default' => false, |
| 42 |
), |
| 43 |
|
| 44 |
'taxonomyOnHover' => array( |
| 45 |
'type' => 'boolean', |
| 46 |
'default' => false, |
| 47 |
), |
| 48 |
|
| 49 |
'metaOnHover' => array( |
| 50 |
'type' => 'boolean', |
| 51 |
'default' => false, |
| 52 |
), |
| 53 |
|
| 54 |
'excerptOnHover' => array( |
| 55 |
'type' => 'boolean', |
| 56 |
'default' => false, |
| 57 |
), |
| 58 |
'readMoreOnHover' => array( |
| 59 |
'type' => 'boolean', |
| 60 |
'default' => false, |
| 61 |
), |
| 62 |
|
| 63 |
'socialShareOnHover' => array( |
| 64 |
'type' => 'boolean', |
| 65 |
'default' => false, |
| 66 |
), |
| 67 |
'contentHoverAnimate' => array( |
| 68 |
'type' => 'string', |
| 69 |
'default' => 'none', |
| 70 |
), |
| 71 |
|
| 72 |
'titleEffect' => array( |
| 73 |
'type' => 'string', |
| 74 |
'default' => 'none', |
| 75 |
), |
| 76 |
|
| 77 |
|
| 78 |
'titleUnderlineEffect' => array( |
| 79 |
'type' => 'string', |
| 80 |
'default' => 'leftToRight', |
| 81 |
), |
| 82 |
'titleEffectColor' => array( |
| 83 |
'type' => 'string', |
| 84 |
'default' => '#fff', |
| 85 |
), |
| 86 |
|
| 87 |
); |
| 88 |
return array_merge( $post_grid_two_attributes, $shared_attributes ); |
| 89 |
|