| 1 |
<?php |
| 2 |
/** |
| 3 |
* Pagination block attributes 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 |
$pagination_attributes = array( |
| 14 |
'paginationEnable' => array( |
| 15 |
'type' => 'boolean', |
| 16 |
'default' => true, |
| 17 |
), |
| 18 |
'uniqueId' => array( 'type' => 'string' ), |
| 19 |
'dynamicCss' => array( 'type' => 'string' ), |
| 20 |
'paginationType' => array( |
| 21 |
'type' => 'string', |
| 22 |
'default' => 'load-more', |
| 23 |
), |
| 24 |
'loadMoreInfiniteScroll' => array( |
| 25 |
'type' => 'boolean', |
| 26 |
'default' => false, |
| 27 |
), |
| 28 |
'loadPerClick' => array( |
| 29 |
'type' => 'number', |
| 30 |
'default' => 9, |
| 31 |
), |
| 32 |
'loadMoreBtnLabel' => array( |
| 33 |
'type' => 'string', |
| 34 |
'default' => 'Load More', |
| 35 |
), |
| 36 |
'loadMoreEndMessage' => array( |
| 37 |
'type' => 'string', |
| 38 |
'default' => '', |
| 39 |
), |
| 40 |
'paginationAlign' => array( |
| 41 |
'type' => 'string', |
| 42 |
'default' => 'center', |
| 43 |
), |
| 44 |
'paginationTypography' => array( |
| 45 |
'type' => 'object', |
| 46 |
'default' => array( |
| 47 |
'googleFont' => array( |
| 48 |
'family' => 'Default', |
| 49 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 50 |
), |
| 51 |
'typography' => array( |
| 52 |
'family' => '', |
| 53 |
'fontWeight' => '', |
| 54 |
'style' => '', |
| 55 |
'transform' => '', |
| 56 |
'decoration' => '', |
| 57 |
), |
| 58 |
), |
| 59 |
), |
| 60 |
'paginationFontSize' => $this->ranger_attribute( '' ), |
| 61 |
'paginationLetterSpacing' => array( |
| 62 |
'type' => 'object', |
| 63 |
'default' => array( |
| 64 |
'device' => array( |
| 65 |
'Desktop' => '', |
| 66 |
'Tablet' => '', |
| 67 |
'Mobile' => '', |
| 68 |
), |
| 69 |
'unit' => array( |
| 70 |
'Desktop' => 'px', |
| 71 |
'Tablet' => 'px', |
| 72 |
'Mobile' => 'px', |
| 73 |
), |
| 74 |
), |
| 75 |
), |
| 76 |
'paginationWordSpacing' => array( |
| 77 |
'type' => 'object', |
| 78 |
'default' => array( |
| 79 |
'device' => array( |
| 80 |
'Desktop' => '', |
| 81 |
'Tablet' => '', |
| 82 |
'Mobile' => '', |
| 83 |
), |
| 84 |
'unit' => array( |
| 85 |
'Desktop' => 'px', |
| 86 |
'Tablet' => 'px', |
| 87 |
'Mobile' => 'px', |
| 88 |
), |
| 89 |
), |
| 90 |
), |
| 91 |
'paginationLineHeight' => array( |
| 92 |
'type' => 'object', |
| 93 |
'default' => array( |
| 94 |
'device' => array( |
| 95 |
'Desktop' => '', |
| 96 |
'Tablet' => '', |
| 97 |
'Mobile' => '', |
| 98 |
), |
| 99 |
), |
| 100 |
), |
| 101 |
'paginationColor' => array( |
| 102 |
'type' => 'object', |
| 103 |
'default' => array( |
| 104 |
'color' => '', |
| 105 |
'hoverColor' => '', |
| 106 |
'activeColor' => '', |
| 107 |
), |
| 108 |
), |
| 109 |
'paginationBGColor' => array( |
| 110 |
'type' => 'object', |
| 111 |
'default' => array( |
| 112 |
'color' => '', |
| 113 |
'hoverColor' => '', |
| 114 |
'activeColor' => '', |
| 115 |
), |
| 116 |
), |
| 117 |
'paginationBorder' => array( |
| 118 |
'type' => 'object', |
| 119 |
'default' => array( |
| 120 |
'color' => '', |
| 121 |
'style' => '', |
| 122 |
'hoverColor' => '', |
| 123 |
), |
| 124 |
), |
| 125 |
'paginationBorderWidth' => $this->spacing_attribute( '' ), |
| 126 |
'paginationSpaceBetween' => array( |
| 127 |
'type' => 'object', |
| 128 |
'default' => array( |
| 129 |
'device' => array( |
| 130 |
'Desktop' => 4, |
| 131 |
'Tablet' => '', |
| 132 |
'Mobile' => '', |
| 133 |
), |
| 134 |
'unit' => array( |
| 135 |
'Desktop' => 'px', |
| 136 |
'Tablet' => 'px', |
| 137 |
'Mobile' => 'px', |
| 138 |
), |
| 139 |
), |
| 140 |
), |
| 141 |
'paginationBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 142 |
'paginationPadding' => $this->spacing_attribute( 0, 8, 0, 8, 'px', false ), |
| 143 |
'paginationMargin' => $this->spacing_attribute( 48, 0, 0, 0, 'px', false ), |
| 144 |
'paginationStyle' => array( |
| 145 |
'type' => 'string', |
| 146 |
'default' => 'number-arrow', |
| 147 |
), |
| 148 |
'paginationPageLimit' => array( |
| 149 |
'type' => 'number', |
| 150 |
'default' => 8, |
| 151 |
), |
| 152 |
'paginationShorten' => array( |
| 153 |
'type' => 'boolean', |
| 154 |
'default' => false, |
| 155 |
), |
| 156 |
'paginationPrevLabel' => array( |
| 157 |
'type' => 'string', |
| 158 |
'default' => 'Previous', |
| 159 |
), |
| 160 |
'paginationNextLabel' => array( |
| 161 |
'type' => 'string', |
| 162 |
'default' => 'Next', |
| 163 |
), |
| 164 |
'navigationArrowSize' => $this->ranger_attribute( 16 ), |
| 165 |
'navigationArrowWidth' => $this->ranger_attribute( 40 ), |
| 166 |
'navigationArrowHeight' => $this->ranger_attribute( 40 ), |
| 167 |
'navigationArrowPosition' => array( |
| 168 |
'type' => 'string', |
| 169 |
'default' => 'bottom', |
| 170 |
), |
| 171 |
'navigationArrowStyle' => array( |
| 172 |
'type' => 'string', |
| 173 |
'default' => 'chevron-solid', |
| 174 |
), |
| 175 |
); |
| 176 |
|