| | \def\citationtext{} |
| | \newcommand{\recipecredit}[2][]{% |
| | + \gdef\@recipecredittext{% |
| | + \ifblank{#1}{#2}{\href{#1}{#2}}} |
| | } |
| | \newcommand{\recipelicense}[2][]{% |
| | + \gdef\@recipelicensetext{, % |
| | + \ifblank{#1}{#2}{\href{#1}{#2}}} |
| | } |
| | \newcommand{\photocredit}[2][]{% |
 |
| | |
| | \AtEndEnvironment{recipe}{% |
| | - \ifdefempty{\@photocredittext}{}{\apptocmd{\citationtext}{Photo courtesy \@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}.}{}{}} |
| | + \ifdefempty{\@recipecredittext}{}{\apptocmd{\citationtext}{By \@recipecredittext\ifdefempty{\@recipelicensetext}{}{\@recipelicensetext}.}{}{}} |
| | + \ifdefempty{\@photocredittext}{}{\apptocmd{\citationtext}{ Photo courtesy \@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}.}{}{}} |
| | \iftoggle{footercitations}{% |
| | \ifdefempty{\citationtext}{}{\blfootnote{\citationtext}} |