| 1 |
<?php |
| 2 |
/** |
| 3 |
* Timeline 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_timeline_attributes = array( |
| 14 |
'paginationEnable' => array( |
| 15 |
'type' => 'boolean', |
| 16 |
'default' => true, |
| 17 |
), |
| 18 |
'timelineLayout' => array( |
| 19 |
'type' => 'string', |
| 20 |
'default' => '', |
| 21 |
), |
| 22 |
'largeItemHeight' => array( |
| 23 |
'type' => 'string', |
| 24 |
'default' => '', |
| 25 |
), |
| 26 |
'gapBetweenPosts' => $this->ranger_attribute( 32 ), |
| 27 |
'timelineIconSource' => array( |
| 28 |
'type' => 'string', |
| 29 |
'default' => 'icon-font', |
| 30 |
), |
| 31 |
'timelineSize' => $this->ranger_attribute( 16 ), |
| 32 |
'timelineWidth' => $this->ranger_attribute( 32 ), |
| 33 |
'timelineHeight' => array( |
| 34 |
'type' => 'object', |
| 35 |
'default' => array( |
| 36 |
'device' => array( |
| 37 |
'Desktop' => '', |
| 38 |
'Tablet' => '', |
| 39 |
'Mobile' => '', |
| 40 |
), |
| 41 |
), |
| 42 |
), |
| 43 |
'timelineConnectorWidth' => $this->ranger_attribute( 2 ), |
| 44 |
'timelineConnectorColor' => array( |
| 45 |
'type' => 'object', |
| 46 |
'default' => array( |
| 47 |
'color' => '#E0E0E0', |
| 48 |
'active' => 'var(--smart-post-secondary)', |
| 49 |
), |
| 50 |
), |
| 51 |
'timelineIndicatorColor' => array( |
| 52 |
'type' => 'object', |
| 53 |
'default' => array( |
| 54 |
'color' => '#E0E0E0', |
| 55 |
'active' => 'var(--smart-post-secondary)', |
| 56 |
), |
| 57 |
), |
| 58 |
'timelineCircleBgColor' => array( |
| 59 |
'type' => 'object', |
| 60 |
'default' => array( |
| 61 |
'color' => '#FFFFFF', |
| 62 |
'active' => '#FFFFFF', |
| 63 |
), |
| 64 |
), |
| 65 |
'timelineIconColor' => array( |
| 66 |
'type' => 'object', |
| 67 |
'default' => array( |
| 68 |
'color' => '#333333', |
| 69 |
'active' => '#ffffff', |
| 70 |
), |
| 71 |
), |
| 72 |
'timelineIconBgColor' => array( |
| 73 |
'type' => 'object', |
| 74 |
'default' => array( |
| 75 |
'color' => '#333333', |
| 76 |
'active' => '#ffffff', |
| 77 |
), |
| 78 |
), |
| 79 |
'timelineConnectorBorder' => array( |
| 80 |
'type' => 'object', |
| 81 |
'default' => array( |
| 82 |
'style' => 'solid', |
| 83 |
'color' => '#E0E0E0', |
| 84 |
'activeColor' => 'var(--smart-post-secondary)', |
| 85 |
), |
| 86 |
), |
| 87 |
'timelineConnectorBorderWidth' => $this->spacing_attribute( 4, 4, 4, 4, 'px', true ), |
| 88 |
'timelineConnectorBorderRadius' => $this->spacing_attribute( 50, 50, 50, 50, 'px', true ), |
| 89 |
'postTimelineSubheadingLabel' => array( |
| 90 |
'type' => 'string', |
| 91 |
'default' => 'About Post Timeline', |
| 92 |
), |
| 93 |
); |
| 94 |
return array_merge( $post_timeline_attributes, $shared_attributes ); |
| 95 |
|