Update printable_qr_code.php
[clinton/MarylandElectronicPetitionSignature.git] / share.php
index 4138c10..c652e3e 100644 (file)
--- a/share.php
+++ b/share.php
@@ -68,18 +68,21 @@ $d = mysqli_fetch_array($r);
     $link = $d2['landing_page']; 
    }
   echo "<tr>
-  <td align='center'><small>$d2[petition_name]<small></td>
+  <td align='center'><small>$d2[petition_name]<small><br> Constituents of $d2[eligibleVoterListField] $d2[eligibleVoterListEquals]</td>
   <td><div class=\"fb-share-button\" 
      data-href=\"https://www.md-petition.com/$link\" 
-     data-layout=\"box_count\" data-size=\"large\">
+     data-layout=\"button\" data-size=\"large\">
    </div></td>
    <td>
    <a class=\"twitter-share-button\"
-  href=\"https://twitter.com/intent/tweet?text=Can you spare a minute to sign $d2[petition_name] at https://www.md-petition.com/$link\"
-  data-size=\"large\">
+  href=\"https://twitter.com/intent/tweet\"
+  data-size=\"large\"
+  data-text=\"Can you spare a minute to sign $d2[petition_name]\"
+  data-url=\"https://www.md-petition.com/$link\">
 Tweet</a>
    </td>
    <td><input type='text' size='50' value='https://www.md-petition.com/$link' id='$d2[web_short_name]'><button onclick='myFunction(\"$d2[web_short_name]\")'>Copy Link</button></td>
+   <td><a href='printable_qr_code.php?short=$d2[web_short_name]'><img src='https://www.md-petition.com/qrcode.php?s=qrl&d=https://www.md-petition.com/$link'></a></td>
    </tr>";
  }
   ?>