Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/dynamic-styles/global/pagination.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + $option_prefix = $prefix;
4 +
5 + // Author and categories pagination settings are the same as blog pagination settings
6 + if ($prefix === 'author' || $prefix === 'categories') {
7 + $option_prefix = 'blog';
8 + }
9 +
10 + $paginationSpacing = blocksy_get_theme_mod($option_prefix . '_paginationSpacing', '60px');
11 +
12 + if ($paginationSpacing !== '60px') {
13 + blocksy_output_responsive([
14 + 'css' => $css,
15 + 'tablet_css' => $tablet_css,
16 + 'mobile_css' => $mobile_css,
17 + 'selector' => blocksy_prefix_selector('.ct-pagination', $prefix),
18 + 'variableName' => 'spacing',
19 + 'value' => $paginationSpacing,
20 + 'unit' => '',
21 + 'previousUnit' => 'px',
22 + ]);
23 + }
24 +
25 + blocksy_output_border([
26 + 'css' => $css,
27 + 'selector' => blocksy_prefix_selector('.ct-pagination[data-divider]', $prefix),
28 + 'variableName' => 'pagination-divider',
29 + 'value' => blocksy_get_theme_mod($option_prefix . '_paginationDivider'),
30 + 'default' => [
31 + 'width' => 1,
32 + 'style' => 'none',
33 + 'color' => [
34 + 'color' => 'rgba(224, 229, 235, 0.5)',
35 + ],
36 + ],
37 + 'skip_none' => true
38 + ]);
39 +
40 + blocksy_output_spacing([
41 + 'css' => $css,
42 + 'tablet_css' => $tablet_css,
43 + 'mobile_css' => $mobile_css,
44 + 'selector' => blocksy_prefix_selector('.ct-pagination', $prefix),
45 + 'property' => 'theme-button-border-radius',
46 + 'value' => blocksy_get_theme_mod(
47 + $option_prefix . '_pagination_border_radius',
48 + blocksy_spacing_value()
49 + ),
50 + 'empty_value' => 4,
51 + ]);
52 +
53 +
54 + blocksy_output_colors([
55 + 'value' => blocksy_get_theme_mod($option_prefix . '_simplePaginationFontColor', []),
56 + 'default' => [
57 + 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
58 + 'active' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
59 + 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
60 + ],
61 + 'css' => $css,
62 + 'variables' => [
63 + 'default' => [
64 + 'selector' => blocksy_prefix_selector(
65 + '[data-pagination="simple"], [data-pagination="next_prev"]',
66 + $prefix
67 + ),
68 + 'variable' => 'theme-text-color'
69 + ],
70 +
71 + 'active' => [
72 + 'selector' => blocksy_prefix_selector(
73 + '[data-pagination="simple"]',
74 + $prefix
75 + ),
76 + 'variable' => 'theme-text-active-color'
77 + ],
78 +
79 + 'hover' => [
80 + 'selector' => blocksy_prefix_selector(
81 + '[data-pagination="simple"], [data-pagination="next_prev"]',
82 + $prefix
83 + ),
84 + 'variable' => 'theme-link-hover-color'
85 + ],
86 + ],
87 + ]);
88 +
89 + blocksy_output_colors([
90 + 'value' => blocksy_get_theme_mod($option_prefix . '_paginationButtonText', []),
91 + 'default' => [
92 + 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
93 + 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
94 + ],
95 + 'css' => $css,
96 + 'variables' => [
97 + 'default' => [
98 + 'selector' => blocksy_prefix_selector(
99 + '[data-pagination="load_more"]',
100 + $prefix
101 + ),
102 + 'variable' => 'theme-button-text-initial-color'
103 + ],
104 +
105 + 'hover' => [
106 + 'selector' => blocksy_prefix_selector(
107 + '[data-pagination="load_more"]',
108 + $prefix
109 + ),
110 + 'variable' => 'theme-button-text-hover-color'
111 + ],
112 + ],
113 + ]);
114 +
115 + blocksy_output_colors([
116 + 'value' => blocksy_get_theme_mod($option_prefix . '_paginationButton', []),
117 + 'default' => [
118 + 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
119 + 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
120 + ],
121 + 'css' => $css,
122 + 'variables' => [
123 + 'default' => [
124 + 'selector' => blocksy_prefix_selector(
125 + '[data-pagination="load_more"]',
126 + $prefix
127 + ),
128 + 'variable' => 'theme-button-background-initial-color'
129 + ],
130 +
131 + 'hover' => [
132 + 'selector' => blocksy_prefix_selector(
133 + '[data-pagination="load_more"]',
134 + $prefix
135 + ),
136 + 'variable' => 'theme-button-background-hover-color'
137 + ],
138 + ],
139 + ]);
140 +