Dear Sophia,
The entire period availed as maternity leave would be taken into account for the purpose of calculation of 240 days of continuous service which is the eligibility criterion for EL to be availed in the succeeding year.
Yet, as the employee does not work actually during these days of maternity leave, she will not earn any leave on these 26 weeks.