Plugin Directory

Changeset 1570860


Ignore:
Timestamp:
01/09/2017 04:00:12 AM (9 years ago)
Author:
Houghtelin
Message:

ace99d9 Merge pull request #143 from Gueststream-Inc/cs_cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vrpconnector/trunk/themes/mountainsunset/functions.php

    r1569951 r1570860  
    325325}
    326326
     327/**
     328 * @param string $start_date Start date in series.
     329 * @param int $num Number of dates in series.
     330 *
     331 * @return array
     332 */
    327333function date_series( $start_date, $num ) {
    328334    $dates = [];
     
    338344}
    339345
     346/**
     347 * @param int $from Unix time start date.
     348 * @param int $to Unit time end date.
     349 * @param bool $round Whether or not to round to the next day.
     350 *
     351 * @return float
     352 */
    340353function days_to( $from, $to, $round = true ) {
    341354    $from = strtotime( $from );
     
    350363 * Generate HTML Calendar for unit page.
    351364 *
    352  * @param     $r
    353  * @param int $total_months
     365 * @param array $r Calendar array.
     366 * @param int   $total_months Total Months to display.
    354367 *
    355368 * @return string
     
    393406
    394407        $ret .= $calendar->output_calendar( $nextyear, $nextmonth );
    395         if ( 3 == $x ) {
     408        if ( 3 === $x ) {
    396409            $ret .= '';
    397410            $x = - 1;
Note: See TracChangeset for help on using the changeset viewer.