function mla7websitecite($style, $medium, $contributors, $articletitleinput, $websitetitleinput, $publishersponsorinput, $urlwebsiteinput, $electronicpublishday, $electronicpublishmonth, $electronicpublishyear, $webaccessdateday, $webaccessdatemonth, $webaccessdateyear)
{
    //Add the contributors
    $html = mlaauthorformat($contributors);
    //Add the article title (if provided)
    if ($articletitleinput) {
        //Uppercase all words in article title, lowercase all art., prep., & conj., append a period, and encapsulate in double quotes
        $articletitle = uppercasewords($articletitleinput);
        $articletitle = forcearticlelower($articletitle);
        $articletitle = articleperiod($articletitle);
        $html .= '"' . $articletitle . '" ';
    }
    //Add the web site title (if provided)
    if ($websitetitleinput) {
        $html .= '<i>' . uppercasewords($websitetitleinput) . '</i>' . '. ';
    }
    //Add the web site publisher/sponsor (if provided)
    if ($publishersponsorinput) {
        $html .= uppercasewords($publishersponsorinput) . ', ';
    } else {
        $html .= 'N.p., ';
    }
    //Add the electronically published date (if provided)
    $html .= mlanewspublishdate($electronicpublishday, $electronicpublishmonth, $electronicpublishyear);
    //Add a period
    $html .= '. ';
    //Add the medium
    $html .= 'Web. ';
    //Add the access date (if provided)
    if ($webaccessdateday || $webaccessdatemonth || $webaccessdateyear) {
        $html .= mlaaccessdate($webaccessdateday, $webaccessdatemonth, $webaccessdateyear) . '. ';
    }
    //Add the URL (if provided)
    if ($urlwebsiteinput) {
        $html .= '&#60;';
        $html .= checkurlprepend($urlwebsiteinput);
        $html .= '&#62;';
        $html .= '. ';
    }
    echo $html;
}
function booktitleapaformat($booktitleinput, $addpunctuation)
{
    //Uppercase the first word in article title
    $html = uppercasefirstword($booktitleinput);
    //If the article title contains a subtitle, capitalize the first word after the colon
    if (preg_match('/:[ ]+[a-z]/', $html, $regs)) {
        $html = subtitleucfirst($html, $regs);
    }
    if ($addpunctuation == "yes") {
        //Punctuate after the book title, if necessary
        $html = articleperiod($html);
    }
    $html = '<i>' . $html . '</i>';
    return $html;
}