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

Javascript Lesson 3 While, For Loops

16/04/2025, by Ivan

In this lesson, we will go over loops in JavaScript. As I mentioned earlier, the syntax of the PHP language is similar to JavaScript, so you can also take a look at loops in PHP:

PHP Lessons – Lesson 12 – Loops while, foreach, for

With one exception: JavaScript does not have a foreach() loop. Instead, we will use the each() method in jQuery to iterate over elements in the future.

Javascript Lesson 5 Arrays, Functions for Working with Arrays

16/04/2025, by Ivan

In this lesson, we’ll explore another JavaScript data type: arrays. We’ll also look at some functions for working with strings and arrays. The rest of the functions will be covered in the following lessons. For an introduction to arrays, you can check out the materials on PHP arrays:

PHP Lessons – Lesson 10 – Arrays

Javascript Lesson 6 Objects, Their Properties and Methods

16/04/2025, by Ivan

This is the final JavaScript lesson necessary before starting to learn jQuery. But it's not the last JavaScript lesson I'll make, because the JavaScript language is much broader and has far more to offer than what I’ve covered in these lessons.

In this lesson, we’ll look at another JavaScript data type: objects. Objects can be compared to arrays whose elements are variables and functions. The variables inside objects are called object properties, and the functions are called methods. You can read more about objects in PHP here:

Drupal and jQuery

16/04/2025, by Ivan

What is jQuery?

jQuery is a wonderful JavaScript library that allows you to create great web effects with just a few lines of code. As stated on the official jQuery website:

"jQuery is a JavaScript library whose motto is: writing JavaScript code should be fun. jQuery handles common, repetitive tasks, cleans up layouts, and keeps code short, beautiful, and understandable."

Drupal and jQuery. Lesson 1. Connecting a file with jQuery.

16/04/2025, by Ivan

jQuery is a very handy tool when you need to hide something, modify it, move it, insert it nicely, and disappear. Very, very convenient and very simple. Let's connect a JavaScript file. To attach files to a theme, we use the `.info` file in your theme. To include the file, add the following line to your theme's `.info` file:

scripts[] = js/custom.js

where `js/custom.js` is the path to the JavaScript file in your theme.