|
4 | 4 | <input |
5 | 5 | id="searchInput" |
6 | 6 | name="{{ app.request.attributes.get('_route') }}-searchInput" |
7 | | - class="form-control bg-dark text-light form-control-sm" |
| 7 | + class="form-control bg-{{ themeColor1 }} text-{{ themeColor2 }} form-control-sm" |
8 | 8 | type="text" |
9 | 9 | autocomplete="off" |
10 | 10 | > |
|
83 | 83 |
|
84 | 84 | {% macro link(params) %} |
85 | 85 | {% if params.class is not defined %} |
86 | | - {% set params = params|merge({'class': 'text-light'}) %} |
| 86 | + {% set params = params|merge({'class': 'text-' ~ themeColor2}) %} |
87 | 87 | {% endif %} |
88 | 88 |
|
89 | 89 | <a class="{{ params.class }}" href="{{ params.url }}">{{ params.title }}</a> |
|
92 | 92 | {% macro sort(params) %} |
93 | 93 | {% if true == params.cat_sort %} |
94 | 94 | {% if params.class is not defined %} |
95 | | - {% set params = params|merge({'class': 'text-light'}) %} |
| 95 | + {% set params = params|merge({'class': 'text-' ~ themeColor2}) %} |
96 | 96 | {% endif %} |
97 | 97 |
|
98 | 98 | {% if '?' in params.url %} |
|
176 | 176 | </button> |
177 | 177 | <div class="modal fade" id="modal{{ params.id }}" tabindex="-1" role="dialog" aria-labelledby="modalLabel{{ params.id }}" aria-hidden="true"> |
178 | 178 | <div class="modal-dialog" role="document"> |
179 | | - <div class="modal-content bg-dark"> |
| 179 | + <div class="modal-content bg-{{ themeColor1 }}"> |
180 | 180 | <div class="modal-header"> |
181 | 181 | <h5 class="modal-title" id="modalLabel{{ params.id }}">{{ params.title }}{% if params.badge is defined %}{{ _self.badge(params.badge) }}{% endif %}</h5> |
182 | 182 | <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="{{ 'cancel'|trans }}"></button> |
|
236 | 236 | <ul class="pagination"> |
237 | 237 | {% if params.previous %} |
238 | 238 | <li class="page-item"> |
239 | | - <a class="page-link bg-dark text-light" rel="prev" href="{{ path(params.route, parameters|merge({'page': params.previous})) }}">« {{ 'previous'|trans }}</a> |
| 239 | + <a class="page-link bg-{{ themeColor1 }} text-{{ themeColor2 }}" rel="prev" href="{{ path(params.route, parameters|merge({'page': params.previous})) }}">« {{ 'previous'|trans }}</a> |
240 | 240 | </li> |
241 | 241 | {% else %} |
242 | 242 | <li class="page-item disabled"> |
243 | | - <span class="page-link bg-dark text-secondary">« {{ 'previous'|trans }}</span> |
| 243 | + <span class="page-link bg-{{ themeColor1 }} text-secondary">« {{ 'previous'|trans }}</span> |
244 | 244 | </li> |
245 | 245 | {% endif %} |
246 | 246 |
|
247 | 247 | {% if params.first %} |
248 | 248 | <li class="page-item"> |
249 | | - <a class="page-link bg-dark text-light" rel="next" href="{{ path(params.route, parameters|merge({'page': params.first})) }}">{{ params.first }}</a> |
| 249 | + <a class="page-link bg-{{ themeColor1 }} text-{{ themeColor2 }}" rel="next" href="{{ path(params.route, parameters|merge({'page': params.first})) }}">{{ params.first }}</a> |
250 | 250 | </li> |
251 | 251 | {% if params.first != params.start_page - 1 %} |
252 | 252 | <li class="page-item disabled"> |
253 | | - <span class="page-link bg-dark text-secondary">…</span> |
| 253 | + <span class="page-link bg-{{ themeColor1 }} text-secondary">…</span> |
254 | 254 | </li> |
255 | 255 | {% endif %} |
256 | 256 | {% endif %} |
257 | 257 |
|
258 | 258 | {% for page in params.pages_slice %} |
259 | 259 | {% if page != params.page %} |
260 | 260 | <li class="page-item"> |
261 | | - <a class="page-link bg-dark text-light" href="{{ path(params.route, parameters|merge({'page': page})) }}">{{ page }}</a> |
| 261 | + <a class="page-link bg-{{ themeColor1 }} text-{{ themeColor2 }}" href="{{ path(params.route, parameters|merge({'page': page})) }}">{{ page }}</a> |
262 | 262 | </li> |
263 | 263 | {% else %} |
264 | 264 | <li class="page-item active"> |
265 | | - <span class="page-link bg-light text-dark border border-light">{{ page }}</span> |
| 265 | + <span class="page-link bg-{{ themeColor2 }} text-{{ themeColor1 }} border border-{{ themeColor2 }}">{{ page }}</span> |
266 | 266 | </li> |
267 | 267 | {% endif %} |
268 | 268 | {% endfor %} |
269 | 269 |
|
270 | 270 | {% if params.last %} |
271 | 271 | {% if params.last != params.end_page + 1 %} |
272 | 272 | <li class="page-item disabled"> |
273 | | - <span class="page-link bg-dark text-secondary">…</span> |
| 273 | + <span class="page-link bg-{{ themeColor1 }} text-secondary">…</span> |
274 | 274 | </li> |
275 | 275 | {% endif %} |
276 | 276 | <li class="page-item"> |
277 | | - <a class="page-link bg-dark text-light" rel="next" href="{{ path(params.route, parameters|merge({'page': params.last})) }}">{{ params.last }}</a> |
| 277 | + <a class="page-link bg-{{ themeColor1 }} text-{{ themeColor2 }}" rel="next" href="{{ path(params.route, parameters|merge({'page': params.last})) }}">{{ params.last }}</a> |
278 | 278 | </li> |
279 | 279 | {% endif %} |
280 | 280 |
|
281 | 281 | {% if params.next %} |
282 | 282 | <li class="page-item"> |
283 | | - <a class="page-link bg-dark text-light" rel="next" href="{{ path(params.route, parameters|merge({'page': params.next})) }}">{{ 'next'|trans }} »</a> |
| 283 | + <a class="page-link bg-{{ themeColor1 }} text-{{ themeColor2 }}" rel="next" href="{{ path(params.route, parameters|merge({'page': params.next})) }}">{{ 'next'|trans }} »</a> |
284 | 284 | </li> |
285 | 285 | {% else %} |
286 | 286 | <li class="page-item disabled"> |
287 | | - <span class="page-link bg-dark text-secondary">{{ 'next'|trans }} »</span> |
| 287 | + <span class="page-link bg-{{ themeColor1 }} text-secondary">{{ 'next'|trans }} »</span> |
288 | 288 | </li> |
289 | 289 | {% endif %} |
290 | 290 | </ul> |
|
0 commit comments