| 1 |
<?php |
| 2 |
/** |
| 3 |
* Timeline three block attributes file class 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 |
'timelineLayout' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => '', |
| 17 |
), |
| 18 |
'largeItemHeight' => array( |
| 19 |
'type' => 'string', |
| 20 |
'default' => '', |
| 21 |
), |
| 22 |
'gapBetweenPosts' => $this->ranger_attribute( 10 ), |
| 23 |
'timelineIconSource' => array( |
| 24 |
'type' => 'string', |
| 25 |
'default' => 'icon-font', |
| 26 |
), |
| 27 |
'timelineSize' => $this->ranger_attribute( 16 ), |
| 28 |
'timelineWidth' => $this->ranger_attribute( 32 ), |
| 29 |
'timelineHeight' => array( |
| 30 |
'type' => 'object', |
| 31 |
'default' => array( |
| 32 |
'device' => array( |
| 33 |
'Desktop' => '', |
| 34 |
'Tablet' => '', |
| 35 |
'Mobile' => '', |
| 36 |
), |
| 37 |
), |
| 38 |
), |
| 39 |
'timelineConnectorWidth' => $this->ranger_attribute( 2 ), |
| 40 |
'timelineConnectorColor' => array( |
| 41 |
'type' => 'object', |
| 42 |
'default' => array( |
| 43 |
'color' => '#E0E0E0', |
| 44 |
'active' => 'var(--smart-post-secondary)', |
| 45 |
), |
| 46 |
), |
| 47 |
'timelineIndicatorColor' => array( |
| 48 |
'type' => 'object', |
| 49 |
'default' => array( |
| 50 |
'color' => '#E0E0E0', |
| 51 |
'active' => 'var(--smart-post-secondary)', |
| 52 |
), |
| 53 |
), |
| 54 |
'timelineCircleBgColor' => array( |
| 55 |
'type' => 'object', |
| 56 |
'default' => array( |
| 57 |
'color' => '#FFFFFF', |
| 58 |
'active' => '#FFFFFF', |
| 59 |
), |
| 60 |
), |
| 61 |
'timelineIconColor' => array( |
| 62 |
'type' => 'object', |
| 63 |
'default' => array( |
| 64 |
'color' => '#333333', |
| 65 |
'active' => '#ffffff', |
| 66 |
), |
| 67 |
), |
| 68 |
'timelineIconBgColor' => array( |
| 69 |
'type' => 'object', |
| 70 |
'default' => array( |
| 71 |
'color' => '#333333', |
| 72 |
'active' => '#ffffff', |
| 73 |
), |
| 74 |
), |
| 75 |
'timelineConnectorBorder' => array( |
| 76 |
'type' => 'object', |
| 77 |
'default' => array( |
| 78 |
'style' => 'solid', |
| 79 |
'color' => '#E0E0E0', |
| 80 |
'activeColor' => 'var(--smart-post-secondary)', |
| 81 |
), |
| 82 |
), |
| 83 |
'timelineConnectorBorderWidth' => $this->spacing_attribute( 4, 4, 4, 4, 'px', true ), |
| 84 |
'timelineConnectorBorderRadius' => $this->spacing_attribute( 50, 50, 50, 50, 'px', true ), |
| 85 |
'postTimelineSubheadingLabel' => array( |
| 86 |
'type' => 'string', |
| 87 |
'default' => 'About Post Timeline', |
| 88 |
), |
| 89 |
); |
| 90 |
$post_timeline_attributes = array_merge( $post_timeline_attributes, $shared_attributes ); |
| 91 |
|
| 92 |
$post_timeline_three_attributes = array( |
| 93 |
'postTimelineNavArrow' => array( |
| 94 |
'type' => 'boolean', |
| 95 |
'default' => true, |
| 96 |
), |
| 97 |
'postTimelineAutoPlay' => array( |
| 98 |
'type' => 'boolean', |
| 99 |
'default' => true, |
| 100 |
), |
| 101 |
'postTimelineAutoPlayDelay' => array( |
| 102 |
'type' => 'object', |
| 103 |
'default' => array( |
| 104 |
'value' => 2000, |
| 105 |
'unit' => 'ms', |
| 106 |
), |
| 107 |
), |
| 108 |
'postTimelineTickerSpeed' => array( |
| 109 |
'type' => 'object', |
| 110 |
'default' => array( 'value' => 3000 ), |
| 111 |
), |
| 112 |
'carouselData' => array( |
| 113 |
'type' => 'string', |
| 114 |
'default' => '', |
| 115 |
), |
| 116 |
); |
| 117 |
return array_merge( $post_timeline_three_attributes, $post_timeline_attributes, $carousel_attributes ); |
| 118 |
|