Skip to content

Commit

Permalink
Updated social links
Browse files Browse the repository at this point in the history
  • Loading branch information
annajayne committed Nov 23, 2024
1 parent ccfeb56 commit a64f264
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 21 deletions.
4 changes: 4 additions & 0 deletions Projects/TDoR/src/images/social/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions Projects/TDoR/src/images/social/mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Projects/TDoR/src/images/social/threads.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions Projects/TDoR/src/modules/tweets_sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*/
?>

<!-- sidebar -->
<aside>
<a class="twitter-timeline" href="https://twitter.com/TDoRinfo">Tweets by TDoRinfo</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</aside><!-- #end sidebar -->
<!-- sidebar -->
<aside>
<link rel="stylesheet" href="https://embedbsky.com/embedbsky.com-master-min.css" />
<div id="embedbsky-com-timeline-embed"></div>
<script>let containerWidth=0,containerHeight=1200;const getHtml=async t=>{const e=await fetch(t);return 200!==e.status?'<p><strong>No feed data could be located</p></strong>':e.text()};document.addEventListener('DOMContentLoaded',(async()=>{const t=(new Date).toISOString(),e=document.getElementById('embedbsky-com-timeline-embed');e.style.width="100%",e.style.height=`${containerHeight}px`;const n=await getHtml(`https://embedbsky.com/feeds/a981e051ec0ddb38f3332e2d18e72b5ab54c50fb57c4a113fc54c201308266a0.html?v=${t}`);e.innerHTML=n}));</script>
</aside><!-- #end sidebar -->

8 changes: 5 additions & 3 deletions Projects/TDoR/src/views/display_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,15 +827,17 @@ function show_social_links($url, $text = '', $qrcode_uid = '')

echo '<div id="social_links">';
echo "<a href='https://www.facebook.com/sharer/sharer.php?u=$encoded_url' title='Share on Facebook' target='_blank' rel='noopener'><img src='/images/social/facebook.svg' /></a>";
echo "<a href='https://twitter.com/intent/tweet?text=$text' title='Tweet about this' target='_blank' rel='noopener'><img src='/images/social/twitter.svg' /></a>";
echo "<a href='https://bsky.app/intent/compose?text=$text' title='Share on BlueSky' target='_blank' rel='noopener'><img src='/images/social/bluesky.svg' /></a>";
echo "<a href='https://mastodonshare.com/?text=$text' title='Share on Mastodon' target='_blank' rel='noopener'><img src='/images/social/mastodon.svg' /></a>";
echo "<a href='https://threads.net/intent/post?text=$text' title='Share on Threads' target='_blank' rel='noopener'><img src='/images/social/threads.svg' /></a>";
echo "<a href='https://twitter.com/intent/tweet?text=$text' title='Share on Twitter' target='_blank' rel='noopener'><img src='/images/social/twitter.svg' /></a>";

if (!empty($qrcode_uid) )
{
$qrcode_url = "javascript:show_id('qrcode_$qrcode_uid');";

echo '<a href="'.$qrcode_url.'"><img src="/images/scan_qrcode.png" /></a>';
echo '<a href="'.$qrcode_url.'"><img src="/images/scan_qrcode.png" title="Scan this QR code to link directly to this page" /></a>';
}

echo '</div>';
}

Expand Down
15 changes: 13 additions & 2 deletions Projects/TDoR/src/views/pages/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<li><a href="https://www.pghlesbian.com/2024/11/read-this-qa-with-anna-jayne-metcalfe-theresearchers/" target="_blank" title="The Researchers Investigating Missing, Murdered, Unclaimed, and Unidentified Trans and Queer Neighbors Around the World - Anna-Jayne Metcalfe">Read This Q&A with Anna-Jayne Metcalfe #TheResearchers</a></li></ul>


</p>

<p>&nbsp;</p>
<h3>Open Sourced Code and Data</h3>

Expand All @@ -58,7 +60,7 @@
<p>&nbsp;</p>
<h3>Can You Help?</h3>

<p>Supporting a website like this is difficult and time consuming, so if you can help in any way (be it research, editing or coding) you would be most welcome. If you would like to collaborate to help us to develop things further, <b>please contact us</b>, either by <a href='/pages/contact' rel='nofollow'>email</a> or via <a href="https://twitter.com/TDoRinfo" target="_blank" rel="noopener">Twitter</a>. Links to relevant news reports can also be posted to <a href="https://www.facebook.com/groups/1570448163283501/" target="_blank" rel="noopener">Trans Violence News</a> on Facebook.</i></p>
<p>Supporting a website like this is difficult and time consuming, so if you can help in any way (be it research, editing or coding) you would be most welcome. If you would like to collaborate to help us to develop things further, <b>please contact us</b>, either by <a href='/pages/contact' rel='nofollow'>email</a> or via <a href="https://bsky.app/profile/tdorinfo.bsky.social" target="_blank" rel="noopener">BlueSky</a> or <a href="https://twitter.com/TDoRinfo" target="_blank" rel="noopener">Twitter</a>. Links to relevant news reports, social media posts etc. can also be posted to <a href="https://www.facebook.com/groups/1570448163283501/" target="_blank" rel="noopener">Trans Violence News</a> (a private group, membership of which requires admin approval) on Facebook.</i></p>



Expand All @@ -73,5 +75,14 @@

<p>We hope that one day things will change for the better and a site like this will no longer be needed.</p>

<div><a href='/pages/contact' rel='nofollow' class='button-green'>Contact us</a></div>
<?php
$svg_attributes = "width='43' style='margin: 10px 15px 10px 0px;'";

echo '<div>';
echo '<a href="/pages/contact" class="button-green" title="Contact us by email"><b>Contact Us</b></a>';

echo "<a href='https://bsky.app/profile/tdorinfo.bsky.social' title='TDoRInfo (BlueSky)' target='_blank' rel='noopener'><img src='/images/social/bluesky.svg' $svg_attributes /></a>";
echo "<a href='https://twitter.com/TDoRinfo' title='TDoRInfo (Twitter)' target='_blank' rel='noopener'><img src='/images/social/twitter.svg' $svg_attributes /></a>";
echo "<a href='https://www.facebook.com/groups/1570448163283501/' title='Trans Violence News Facebook group' target='_blank' rel='noopener'><img src='/images/social/facebook.svg' $svg_attributes /></a>";
echo '</div>';
?>
2 changes: 1 addition & 1 deletion Projects/TDoR/src/views/pages/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function onclick_query_report()

<div class="grid_12"><span id="api-key-caption">API key:</span><br /><input type="text" name="api-key" id="api-key" value="<?php echo $api_key; ?>" style="width:100%;" /></div>

<p>We hope that the format of the responses will prove to be self-explanatory. If you have any queries, please feel free to contact <a href="mailto:[email protected]">[email protected]</a> or <a href="https://www.twitter.com/tdorinfo" target="_blank" rel="noopener">@TDoRinfo</a>.</p>
<p>We hope that the format of the responses will prove to be self-explanatory. If you have any queries, please feel free to contact us by email at <a href="mailto:[email protected]">[email protected]</a> or via <b>@TDoRInfo</b> on <a href="https://bsky.app/profile/tdorinfo.bsky.social" target="_blank" rel="noopener">BlueSky</a> or <a href="https://www.twitter.com/tdorinfo" target="_blank" rel="noopener">Twitter</a>.</p>



Expand Down
2 changes: 1 addition & 1 deletion Projects/TDoR/src/views/pages/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function on_subject_changed()
<div style="grid_12">
<p>Please feel free to contact us by email via the form below if you would like to contact us, help out, notify us of a correction or send us additional information relating to a report presented on this site (or indeed tell us about someone we've lost who isn't yet listed).</p>

<p>Alternatively you can also send a direct email to <a href="mailto:[email protected]"><b>[email protected]</b></a>, tweet or send a direct message to <a href="https://twitter.com/tdorinfo" target="_blank" rel="noopener"><b>@TDoRInfo</b></a> on Twitter. Links to relevant news reports can also be posted to <a href="https://www.facebook.com/groups/1570448163283501/" target="_blank" rel="noopener"><b>Trans Violence News</b></a> on Facebook.</p>
<p>Alternatively you can also send a direct email to <a href="mailto:[email protected]"><b>[email protected]</b></a>, tweet or send a direct message to <b>TDoRInfo</b> on <a href="https://bsky.app/profile/tdorinfo.bsky.social" target="_blank" rel="noopener">BlueSky</a> or <a href="https://twitter.com/tdorinfo" target="_blank" rel="noopener">Twitter</a>. Links to relevant news reports can also be posted to <a href="https://www.facebook.com/groups/1570448163283501/" target="_blank" rel="noopener"><b>Trans Violence News</b></a> (a private group, membership of which requires admin approval) on Facebook.</p>


<?php
Expand Down
13 changes: 7 additions & 6 deletions Projects/TDoR/src/views/pages/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<p><b>[TRIGGER WARNING: VIOLENCE. MURDER]</b></p>

<p><i><b>Please note:</b> If you want to help out or notify us of a correction or additional information about a report presented here (or indeed tell us about someone who you think should be listed, but isn't as yet), please contact us by <a href="/pages/contact" rel="nofollow">email</a> or via <a href="https://twitter.com/TDoRinfo" target="_blank" rel="noopener">Twitter</a>. Links to relevant news reports can also be posted to <a href="https://www.facebook.com/groups/1570448163283501/" target="_blank" rel="noopener">Trans Violence News</a> on Facebook.</i></p>
<p><i><b>Please note:</b> If you want to help out or notify us of a correction or additional information about a report presented here (or indeed tell us about someone who you think should be listed, but isn't as yet), please contact us by <a href="/pages/contact" rel="nofollow">email</a> or via <a href="https://bsky.app/profile/tdorinfo.bsky.social" target="_blank" rel="noopener">BlueSky</a> or <a href="https://twitter.com/TDoRinfo" target="_blank" rel="noopener">Twitter</a>. Links to relevant news reports, social media posts etc.can also be shared to <a href="https://www.facebook.com/groups/1570448163283501/" target="_blank" rel="noopener">Trans Violence News</a> (a private group, membership of which requires admin approval) on Facebook.</i></p>

<?php
// Show the Reports, Facebook, Twitter and RSS feed buttons.
Expand All @@ -33,12 +33,13 @@
$svg_attributes = "width='43' style='margin: 10px 15px 10px 0px;'";

echo '<div>';
echo '<a href="'.$reports_url.'" class="button-dkred"><b>Reports</b></a>';
echo '<a href="/pages/contact" class="button-green"><b>Contact Us</b></a>';
echo '<a href="'.$reports_url.'" class="button-dkred" title="View memorial pages by year, country and category"><b>Reports</b></a>';
echo '<a href="/pages/contact" class="button-green" title="Contact us by email"><b>Contact Us</b></a>';

echo "<a href='https://www.facebook.com/sharer/sharer.php?u=$encoded_url' title='Share on Facebook' target='_blank' rel='noopener'><img src='/images/social/facebook.svg' $svg_attributes /></a>";
echo "<a href='https://twitter.com/home?status=$tweet_text' title='Tweet about this' target='_blank' rel='noopener'><img src='/images/social/twitter.svg' $svg_attributes /></a>";
echo "<a href='$rss_feed_url' target='_blank' rel='noopener'><img src='/images/rss.svg' alt='RSS' $svg_attributes /></a>";
echo "<a href='https://bsky.app/profile/tdorinfo.bsky.social' title='TDoRInfo (BlueSky)' target='_blank' rel='noopener'><img src='/images/social/bluesky.svg' $svg_attributes /></a>";
echo "<a href='https://twitter.com/TDoRinfo' title='TDoRInfo (Twitter)' target='_blank' rel='noopener'><img src='/images/social/twitter.svg' $svg_attributes /></a>";
echo "<a href='https://www.facebook.com/groups/1570448163283501/' title='Trans Violence News Facebook group' target='_blank' rel='noopener'><img src='/images/social/facebook.svg' $svg_attributes /></a>";
echo "<a href='$rss_feed_url' target='_blank' rel='noopener'><img src='/images/rss.svg' title='RSS feed' alt='RSS feed' $svg_attributes /></a>";
echo '</div>';

?>
4 changes: 2 additions & 2 deletions Projects/TDoR/src/views/reports/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@
echo '<textarea name="description" id="description" style="width:100%; height:500px;" onkeyup="javascript:set_text_colours()">'.$report->description.'</textarea>';
echo '</div>';

// Tweet text (optional)
// Post text (optional)
echo '<div class="grid_12">';
echo '<label for="tweet">Tweet text (optional):</label><br>';
echo '<label for="tweet">Post text (optional):</label><br>';
echo '<textarea name="tweet" id="tweet" maxlength="260" style="width:100%; height:100px;" onkeyup="javascript:set_text_colours()">'.$report->tweet.'</textarea>';
echo '<p>';
echo '<input type="button" name="default_tweet_text" id="default_tweet_text" value="Default" class="btn btn-success" style="width:10%;" />&nbsp;';
Expand Down
2 changes: 1 addition & 1 deletion Projects/TDoR/src/views/reports/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function show_menu_links_for_reports($params)

$menuitems[] = array('href' => $base_url.'action=get_tweet_text&sortup=1',
'rel' => 'nofollow',
'text' => 'Download Tweets');
'text' => 'Download Posts');
}

if (!$edits_disabled || $is_admin)
Expand Down

0 comments on commit a64f264

Please sign in to comment.