				<!-- Footer -->
                    <footer id="footer">
						<section contenteditable="true">
							<h2>Aliquam sed mauris</h2>
							<p>Sed lorem ipsum dolor sit amet et nullam consequat feugiat consequat magna adipiscing tempus etiam dolore veroeros. eget dapibus mauris. Cras aliquet, nisl ut viverra sollicitudin, ligula erat egestas velit, vitae tincidunt odio.</p>
							<ul class="actions">
								<li><a href="generic.php" class="buttonwebsite">Learn More</a></li>
							</ul>
						</section>
						<section contenteditable="true">
							<h2>Etiam feugiat</h2>
							<dl class="alt">
								<dt>Address</dt>
								<dd><?php echo $mysoc->getFullAddress(1, '<br>'); ?></dd>
								<dt>Phone</dt>
								<dd><?php echo $mysoc->phone; ?></dd>
								<dt>Email</dt>
								<dd><a href="mailto:<?php echo $mysoc->email; ?>"><?php echo $mysoc->email; ?></a></dd>
							</dl>
							<ul class="icons">
	                          <ul class="list-inline">
                              <?php foreach($mysoc->socialnetworks as $key => $value) {
                                print '<li><a target="_blank" class="icon alt fab fa-'.$key.'" href="'.(preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="label">'.ucfirst($key).'</span></a></li>';
                              } ?>
                            </ul>
						</section>
						<div class="copyright">&copy; Untitled. Design: <a href="https://html5up.net">HTML5 UP</a> adapted for <a href="https://www.dolibarr.org">Dolibarr</a> by <a href="https://www.dolicloud.com">DoliCloud</a>.</div>
					</footer>


<script>
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
  console.log("Execute code for scroll Top button");
  if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
    document.getElementById("myBtnToTop").style.display = "block";
  } else {
    document.getElementById("myBtnToTop").style.display = "none";
  }
}

// When the user clicks on the button, scroll to the top of the document
function topFunction() {
  document.body.scrollTop = 0; // For Safari
  document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
</script>

<button onclick="topFunction()" id="myBtnToTop" title="Go to top">Top</button>
