Question: I have a Django application running using Django CMS.
I am trying to make one specific submenu not clickable.

The menu is like this:

```
item1|item2|item3
            sub_item3
            sub_item3

```

What I want is that everything is clickable except for "item3" menu item.

How can I achieve this knowing item3 is a Django CMS page itself as are each of its children pages?

The idea behind this is to prevent that the user sees an empty page when he clicks on the top "item3" menuitem.

Answer: 
The `0x07` is 00000111 in binary. So you are masking the input value and getting just the right three bits. Then you are multiplying by 32 which is 2 \* 2 \* 2 \* 2 \* 2... which, if you think about it, shifting left by 1 is the same as multiplying by 2. So, shifting left five times is the same as multiplying by 32.
It's a bit obtuse but essentially you're anding with `0x07` and then multiplying by `32` which is the same as shifting by `5`. I'm not sure why a character literal is used rather than an integer literal but perhaps so that it is represented as a single byte rather than a word.

The equivalent would be:

```
( ( dw & 0x07 ) << 5 )

```

The `& 0x07` masks off the first 3 bits and `<< 5` does a left shift by 5 bits.