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 apa6websitecite($style, $medium, $contributors, $articletitleinput, $websitetitleinput, $publishersponsorinput, $urlwebsiteinput, $electronicpublishday, $electronicpublishmonth, $electronicpublishyear, $webaccessdateday, $webaccessdatemonth, $webaccessdateyear)
{
    //Add the contributors
    $html = apaauthorformat($contributors);
    //Add the publishing date
    $html .= apamagnewsdate($electronicpublishday, $electronicpublishmonth, $electronicpublishyear) . '. ';
    //Add the article title (if provided)
    if ($articletitleinput) {
        $html .= articletitleapaformat($articletitleinput) . ' ';
    }
    //Add the website title (if provided)
    if ($websitetitleinput) {
        $html .= 'Retrieved from ' . $websitetitleinput . ' ';
    }
    //Add the URL (if provided)
    if ($urlwebsiteinput) {
        $html .= 'website: ' . checkurlprepend($urlwebsiteinput);
    }
    echo $html;
}