logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Theming the Pager

22/02/2025, by Anonymous (not verified)
Forums

What is this nonsense?? To customize the pagination, I need to write a function interceptor and assemble an array there???? HOW IS THAT POSSIBLE?????? 

<br>

if ( $li_previous ) $items[] = array( 'class' => 'pager-previous', 'data' => $li_previous );
if ( $show_first && $li_first ) $items[] = array( 'class' => 'pager-first', 'data' => $li_first );

<br>

WHAT THE??? What if I want to change the entire structure??? Why do I even have to intercept functions and add my own arrays?? Couldn't it have been done simply? Just provide an array or object with fields, and then lay it out in the HTML file??? I'm completely shocked by DRUPAL. So I have to know what is being intercepted and what isn't. Moreover, I will also have to know which array to describe and for which moment of theming???