Mount them where you want them to be then wire it to the headlights. You can probably wire it directly to the headlamp, or you can try doing it through the headlight relay under the hood in the relay box
do not wire them directly into the head light. these are not your cars of yesterday. Almost everything is control by relays, transistors through the BCM or other modules, If you wire things like you did on your old cars you're going to fry modules. This is the age of computer technologies, keep up.
This is my suggestion: if you don't fully understand the following before attempting the install have someone who does do the install.
you need a wiring diagram and a standard bosch relay. you're going to have to either find a empty spot in a fuse panel and run your power from there or run your own fused power from the battery. find the control circuit for the headlights and splice into it to operate the relay. The fogs will have to be wired in parallel so make up a wire with 1 into 2 (Y) a leg running to each light. and then run separate grounds for them.
wiring for the relay
fused wire from battery goes to pin 30.
wire from relay to lights pin 87
wire from headlight control circuit goes to pin 86
from ground to relay pin 85
pin 87a not used