Welcome Guest, Not a member yet? Register   Sign In
Calendar CSS manipulate pseudo variables in template
#11

[eluser]federico_jacobi[/eluser]
I know it's way late, but i just ran into the same problem myself, and here's a solution without modifying the core.

Change the template to start the cell with nothing, add <td> to each case with the class you want and leave the rest alone ... works beautiful too:

Code:
$prefs['template'] = '

   {table_open}<table class="cycle_cal">{/table_open}

   {heading_row_start}<tr>{/heading_row_start}

   {heading_previous_cell}<th>{previous_url}</th>{/heading_previous_cell}
   {heading_title_cell}<th colspan="{colspan}">{heading}</th>{/heading_title_cell}
   {heading_next_cell}<th>{next_url}</th>{/heading_next_cell}

   {heading_row_end}</tr>{/heading_row_end}

   {week_row_start}<tr>{/week_row_start}
   {week_day_cell}<td class="dayLabel">{week_day}</td>{/week_day_cell}
   {week_row_end}</tr>{/week_row_end}

   {cal_row_start}<tr>{/cal_row_start}
   {cal_cell_start}{/cal_cell_start}

   {cal_cell_content}<td class="contentLabel">{day}{/cal_cell_content}
   {cal_cell_content_today}<td class="todayLabel">{day}{/cal_cell_content_today}

   {cal_cell_no_content}<td>{day}</td>{/cal_cell_no_content}
   {cal_cell_no_content_today}<td class="todayLabel">{day}{/cal_cell_no_content_today}

   {cal_cell_blank}<td>&nbsp;{/cal_cell_blank}

   {cal_cell_end}</td>{/cal_cell_end}
   {cal_row_end}</tr>{/cal_row_end}

   {table_close}</table>{/table_close}
';
// Links removed to allow CI forum posting




Theme © iAndrew 2016 - Forum software by © MyBB