Welcome Guest, Not a member yet? Register   Sign In
Adding multiple variables to calendar days

(This post was last modified: 08-05-2017, 04:10 AM by Wouter60.)

(08-05-2017, 03:32 AM)behnampmdg3 Wrote: Just not sure where this goes

PHP Code:
'cal_cell_start'    => '<td {css_class}>' 

Thanks Smile

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:
{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:
.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'

Messages In This Thread
RE: Adding multiple variables to calendar days - by Wouter60 - 08-05-2017, 04:08 AM

Theme © iAndrew 2016 - Forum software by © MyBB