By JILL COLVIN, Associated Press

JUPITER, Fla. (AP) — President Donald Trump on Friday denounced the deadly mosque attack in Egypt and reached out to its president, asserting the world must crush terrorists by military means — and insisting the U.S. needs a southern border wall and the travel ban tied up in courts.

"Need the WALL, need the BAN!" Trump tweeted before his planned call to Egyptian President Abdel-Fattah el-Sissi. "God bless the people of Egypt."

That attack's aftermath played out as Trump mixed work and play in sunny Florida, golfing — quickly, he claimed — with pros Tiger Woods and Dustin Johnson, speaking with foreign leaders and tweeting briskly.

Trump spoke with Turkish President Recep Tayyip Erdogan, before his attention turned to the attack in Egypt, where at least 235 people were killed when Islamic militants attacked a crowded mosque during prayers in the Sinai Peninsula, setting off explosives and spraying worshippers with gunfire.

"The world cannot tolerate terrorism," Trump tweeted in response. He added, "We must defeat them militarily and discredit the extremist ideology that forms the basis of their existence!"

In his call with el-Sissi, the White House said Trump condemned the attack and "reiterated that the United States will continue to stand with Egypt in the face of terrorism."

"The international community cannot tolerate barbaric terrorist groups and must strengthen its efforts to defeat terrorism and extremism in all its forms," the White House said.

Trump also used the attack to renew his call for a wall along the southern border with Mexico and his efforts to bar people from certain Muslim-majority countries from coming to the U.S.

"We have to get TOUGHER AND SMARTER than ever before, and we will," he wrote. "Need the WALL, need the BAN! God bless the people of Egypt."

Trump's original travel ban sought to temporarily suspend the U.S. refugee program and block the entry of nationals from seven majority-Muslim counties into the U.S. The order sparked chaos at airports and a flurry of lawsuits, which led to the order's suspension. The administration has since made several attempts to revise the order to try to better hold up to legal scrutiny.

Trump spent more than four hours at Trump National Golf Club in Jupiter, Florida, where he'd earlier tweeted that he would be playing "golf (quickly) with Tiger Woods and Dustin Johnson" before returning to his private Mar-a-Lago club "for talks on bringing even more jobs and companies back to the USA!"

Trump and his aides often appear concerned about the perception that he is vacationing during his trips away from the White House, insisting that he is partaking in high level meetings and making calls while staying in Bedminster, New Jersey, or at his private Mar-a-Lago club in Palm Beach, Florida.

Despite plenty of photos posted on social media by club members, media traveling with the president were not permitted to observe or photograph the president and his companions on the greens.

In a break from the practice of past administrations, the Trump White House rarely discloses when the president is golfing, let alone whom he golfs with during frequent trips to courses he owns in Florida, New Jersey and Virginia.

Woods plans to return to competitive play next week after his most recent back surgery sidelined him for seven months.

Trump also complained again Friday about football players who kneel during the national anthem to protest racism and police brutality. "Can you believe that the disrespect for our Country, our Flag, our Anthem continues without penalty to the players," Trump said, accusing NFL commissioner Roger Goodell of having "lost control" of what he called a "hemorrhaging league" where "Players are the boss!"

Trump's tweet was in response to one from his social media chief, Dan Scavino. Scavino had shared a Breitbart News story about New York Giants player Olivier Vernon taking the knee during the anthem on Thanksgiving ahead of a game against the Redskins.

The website is run by Trump's former chief strategist.