Unverified Commit c2b5fc11 authored by Roland Denis's avatar Roland Denis
Browse files

Removing refresh link in the tweets

parent 9d248dae
......@@ -134,7 +134,7 @@
<ul class="list-inline">
<li id="twitter-date" class="list-inline-item m-0 px-1">Date</li>
<li id="twitter-hashtag" class="hashtag list-inline-item m-0 px-1">#hashtag</li>
<li class="list-inline-item m-0 px-1"> <img src="{{SITEURL}}/theme/img/twitter_refresh.png" />Rafraîchir</li>
<!--<li class="list-inline-item m-0 px-1"> <img src="{{SITEURL}}/theme/img/twitter_refresh.png" />Rafraîchir</li>-->
</ul>
<div class="container px-0">
......@@ -174,10 +174,16 @@
output_tweet.find('#twitter-text').html(input_tweet.find('p.timeline-Tweet-text').html());
output_tweet.find('#twitter-date').html(capitalizeFirstLetter(input_tweet.find('time').attr('aria-label').substring(7)));
output_tweet.find('#twitter-share').attr('href', input_tweet.find('a.timeline-ShareMenu-option').attr('href'));
output_tweet.find('#twitter-hashtag').html('');
// Hashtags
var hashtag_obj = output_tweet.find('#twitter-hashtag');
hashtag_obj.html('');
input_tweet.find('a.hashtag').each(function () {
output_tweet.find('#twitter-hashtag').append('<a href="' + $(this).attr('href') + '" target="_blank">' + $(this).text() + '</a> ');
hashtag_obj.append('<a href="' + $(this).attr('href') + '" target="_blank">' + $(this).text() + '</a> ');
});
if (hashtag_obj.html() == '') {
hashtag_obj.remove();
}
}
var customizeTweetMedia = function() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment