First line replaces the {year} in site.Copyright with the current year and sets $footerline to that replaced string. Second line “pipes” $footerline into the replace function (this replaces the first parameter) and replaces {title} with site.Title.
Note the := on the first line - you initiate the variable - and the = in the subsequent line (and all that might follow) - you change the variable.