Voltage controlled switch with an ATtiny85

I am still not clear on this . Can you just explain where the solar panel connects. Which terminal and where the battery connects ,which terminal.

I take it this is a MOSFET device controlled by the voltage input top left,and ATtiny , that makes a connection between the 6-35 Volt connection and the output terminals but its use with solar panels is not clear.

Will you supply a schematic and code ?