Example #1
0
 /**
  * Get an HTML-formatted link to the PDF of the menu
  */
 protected function getMenuFormattedLink()
 {
     $menuURL = $this->getMenuURL();
     if (!is_null($menuURL)) {
         return getFormattedURL($this->getMenuURL(), $this->isDayMenu());
     } else {
         return getFallbackURL($this->getBaseMenuURL());
     }
 }
Example #2
0
function getFallbackURL($url)
{
    if (endsInsensitiveWith($url, '.pdf')) {
        return getFormattedURL(getBaseURL($url));
    }
    return getFormattedURL($url);
}