Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author theArab

    (@thearab)

    Open the file _includes/sm-functions
    find the function: SM_create_calendar()

    Find this code in the function:
    case “Sun”: $blank = 0; break;
    case “Mon”: $blank = 1; break;
    case “Tue”: $blank = 2; break;
    case “Wed”: $blank = 3; break;
    case “Thu”: $blank = 4; break;
    case “Fri”: $blank = 5; break;
    case “Sat”: $blank = 6; break;

    Change to this:
    case “Sun”: $blank = 6; break;
    case “Mon”: $blank = 0; break;
    case “Tue”: $blank = 1; break;
    case “Wed”: $blank = 2; break;
    case “Thu”: $blank = 3; break;
    case “Fri”: $blank = 4; break;
    case “Sat”: $blank = 5; break;

    We are forcing Monday to be the first day(0) and Sunday to be the last day (6).

    You will also have to edit the html where the weekdays are coded.
    Search for this:
    //——- show weekdays on column headers
    The code is right under there. Just change Sun to Mon ect.
    I think this should work for you.

    Thread Starter ruben2016

    (@ruben2016)

    Thanks, it is very pretty.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Day of Week: Monday’ is closed to new replies.