Update footer.php
[clinton/MarylandElectronicPetitionSignature.git] / footer.php
index d517f71..a20725d 100644 (file)
@@ -1,20 +1,17 @@
 <?PHP
-$copy = 'MEPS';
+$copy = '&copy; Patrick McGuire';
 if ($_COOKIE['invite'] != ''){
- $copy = 'MEPS - '.strtoupper($_COOKIE['invite']); 
+ $copy = '&copy; Patrick McGuire - '.strtoupper($_COOKIE['invite']); 
 }  
 ?>
-
+  
 <div class='row'>
- <div class='col-sm-12' style='text-align:center;'> &COPY; 2020 <?PHP echo $copy;?></div>
+ <div class='col-sm-10' style='text-align:center;'><button type="button" class="btn btn-info btn-lg btn-block" onclick="window.open('share.php')">Before you leave click here to share the petition.</button></div>
 </div>
 
-
-  <meta property="og:url"           content="http://md-petition.com/index.php" />
-  <meta property="og:type"          content="website" />
-  <meta property="og:title"         content="Maryland Electronic Petition Software" />
-  <meta property="og:description"   content="Socially Distant Petitions" />
-  <meta property="og:image"         content="http://md-petition.com/files/Flag_of_Maryland.svg" />
+<div class='row'>
+ <div class='col-sm-10' style='text-align:center;'><?PHP echo $copy;?></div>
+</div>
 
 
 <div id="fb-root"></div>
@@ -26,50 +23,37 @@ if ($_COOKIE['invite'] != ''){
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));</script>
 
-
 <div class='row'>
- <div class='col-sm-3' style='text-align:center;'> Share MGP
-  <div class="fb-share-button" 
-     data-href="http://md-petition.com/index.php?invite=MGP" 
-     data-layout="button_count">
-   </div>
- </div>
- <div class='col-sm-3' style='text-align:center;'> Share MLP 
-  <div class="fb-share-button" 
-     data-href="http://md-petition.com/index.php?invite=MLP" 
-     data-layout="button_count">
-   </div>
- </div>
- <div class='col-sm-3' style='text-align:center;'> Share BTEC
-  <div class="fb-share-button" 
-     data-href="http://md-petition.com/index.php?invite=BTEC" 
-     data-layout="button_count">
-   </div>
- </div>
- <div class='col-sm-3' style='text-align:center;'> Share PJ
-  <div class="fb-share-button" 
-     data-href="http://md-petition.com/index.php?invite=PJ" 
-     data-layout="button_count">
-   </div>
- </div>
-</div>
-
-
-  <div class='col-sm-12' style='text-align:center;'>
+  <div class='col-sm-10' style='text-align:center;'>
    <?PHP if($_COOKIE['debug'] == 'on'){ ?> 
     <pre><?PHP print_r($_GET); ?></pre>
     <pre><?PHP print_r($_POST); ?></pre> 
     <pre><?PHP print_r($_COOKIE); ?></pre>
    <?PHP } ?>
   </div>
-
-
 </div>
 
+</div><!-- close container -->
 
 
+<?PHP /*
 <footer class="site-footer">
-  Moving footer html here...
+ <center>&COPY; 2020 <?PHP echo $copy;
+  /* ?>
+ <table border="1" cellpadding="2" cellspacing="0"><tr>
+ <?PHP
+ $q2 = "SELECT * FROM petitions";
+ $r2 = $petition->query($q2);
+ while($d2 = mysqli_fetch_array($r2)){
+  echo "<td align='center'><small>$d2[petition_name]<small><br>
+  <div class=\"fb-share-button\" 
+     data-href=\"http://md-petition.com/index.php?invite=$d2[web_short_name]\" 
+     data-layout=\"button_count\">
+   </div></td>";
+ }
+  ?></tr>
+ </table><?PHP * / ?>
+ </center>
 </footer>
 
 
@@ -87,4 +71,5 @@ if ($_COOKIE['invite'] != ''){
         if (d.readyState == 'complete') { l(); }
     }(window, document, 'script'));
 </script>
+<?PHP } ?>
 </body>