(08-05-2017, 03:32 AM)behnampmdg3 Wrote: Just not sure where this goes
PHP Code:
'cal_cell_start' => '<td {css_class}>'
Thanks 
In the $prefs['template'] part. The example shows how to assign a value if you pass the template as an array. You are passing it as a string.
You've done it the right way:
Code:
{cal_cell_start}<td {css_class} style = "padding:0px; border:none; line-height:2.2">{/cal_cell_start}
I just wonder why you have a class name AND a style at the same time. I think it's better to have the style attributes as part of the css class (in your css file). Remember that you can combine multiple classes, separated by spaces:
Code:
.cal_cell { padding: 0; border: none; line-height: 2.2em; }
.cal_red { background-color: red; }
.cal_blue { background-color: blue; }
PHP Code:
$css = array(
3 => 'cal_cell cal_red',
7 => 'cal_cell cal_blue'
);