mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Revert "Added sharing buttons for BlueSky, Mastodon, and GoToSocial"
This reverts commit fd20f558c6.
This commit is contained in:
parent
fd20f558c6
commit
ebc4730658
10 changed files with 12 additions and 147 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
|
|
@ -72,27 +72,7 @@
|
|||
<span class="share pull-right">
|
||||
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
|
||||
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
|
||||
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
|
||||
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
|
||||
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-gotosocial"></i></a>
|
||||
</span>
|
||||
<script>
|
||||
function shareToFediverse(platformName, encodedText) {
|
||||
var input = window.prompt('Enter your ' + platformName + ' server domain (for example: mastodon.social)');
|
||||
if (!input) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var domain = input.trim().replace(/^https?:\/\//i, '').replace(/\/+$/, '');
|
||||
if (!domain) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var shareUrl = 'https://' + domain + '/share?text=' + encodedText;
|
||||
window.open(shareUrl, '_blank', 'noopener,noreferrer');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
</div><!--//item-->
|
||||
|
|
|
|||
|
|
@ -52,27 +52,7 @@
|
|||
<span class="share pull-right">
|
||||
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
|
||||
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
|
||||
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
|
||||
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
|
||||
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
|
||||
</span>
|
||||
<script>
|
||||
function shareToFediverse(platformName, encodedText) {
|
||||
var input = window.prompt('Enter your ' + platformName + ' server domain (for example: mastodon.social)');
|
||||
if (!input) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var domain = input.trim().replace(/^https?:\/\//i, '').replace(/\/+$/, '');
|
||||
if (!domain) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var shareUrl = 'https://' + domain + '/share?text=' + encodedText;
|
||||
window.open(shareUrl, '_blank', 'noopener,noreferrer');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
<div style="margin-top:30px;position:relative;">
|
||||
|
|
|
|||
|
|
@ -727,7 +727,7 @@ aside .copyright p {
|
|||
.share {
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
width: 170px;
|
||||
width: 120px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
|
@ -742,7 +742,6 @@ aside .copyright p {
|
|||
-moz-transition: all .3s;
|
||||
-webkit-transition: all .3s;
|
||||
-ms-transition: all .3s;
|
||||
transition: all .3s;
|
||||
text-indent: -9999em;
|
||||
}
|
||||
|
||||
|
|
@ -754,18 +753,6 @@ aside .copyright p {
|
|||
background: url(../../../system/resources/images/share-facebook.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.bluesky {
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='52' viewBox='0 0 18 52'%3E%3Crect width='18' height='26' rx='3' fill='%230086ff'/%3E%3Cpath d='M4.1 8.4c1.4 1 2.9 3 3.6 4.3.7-1.3 2.2-3.3 3.6-4.3 1-.7 2.7-1.2 2.7.7 0 .4-.2 3.2-.3 3.7-.3 1.7-1.4 2.1-2.4 1.9 1.8.3 2.2 1.2 1.2 2.1-1.9 1.7-2.7-.4-2.9-1-.1-.2-.1-.3-.2-.3s-.1.1-.2.3c-.3.6-1.1 2.7-2.9 1-1-.9-.6-1.8 1.2-2.1-1 .2-2.1-.2-2.4-1.9-.1-.5-.3-3.3-.3-3.8 0-1.9 1.7-1.4 2.7-.6z' fill='white'/%3E%3Crect y='26' width='18' height='26' rx='3' fill='%23005ebd'/%3E%3Cpath d='M4.1 34.4c1.4 1 2.9 3 3.6 4.3.7-1.3 2.2-3.3 3.6-4.3 1-.7 2.7-1.2 2.7.7 0 .4-.2 3.2-.3 3.7-.3 1.7-1.4 2.1-2.4 1.9 1.8.3 2.2 1.2 1.2 2.1-1.9 1.7-2.7-.4-2.9-1-.1-.2-.1-.3-.2-.3s-.1.1-.2.3c-.3.6-1.1 2.7-2.9 1-1-.9-.6-1.8 1.2-2.1-1 .2-2.1-.2-2.4-1.9-.1-.5-.3-3.3-.3-3.8 0-1.9 1.7-1.4 2.7-.6z' fill='white'/%3E%3C/svg%3E") left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.mastodon {
|
||||
background: url(../../../system/resources/images/share-mastodon.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.gotosocial {
|
||||
background: url(../../../system/resources/images/share-gotosocial.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a:hover {
|
||||
background-position: left -26px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,29 +50,11 @@
|
|||
<?php echo $author->about ?>
|
||||
</div>
|
||||
<div class="share">
|
||||
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
|
||||
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
|
||||
<a class="bluesky" target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>">Bluesky</a>
|
||||
<a class="mastodon" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');">Mastodon</a>
|
||||
<a class="gotosocial" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');">GoToSocial</a>
|
||||
<a class="twitter" target="_blank"
|
||||
href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
|
||||
<a class="facebook" target="_blank"
|
||||
href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
|
||||
</div>
|
||||
<script>
|
||||
function shareToFediverse(platformName, encodedText) {
|
||||
var input = window.prompt('Enter your ' + platformName + ' server domain (for example: mastodon.social)');
|
||||
if (!input) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var domain = input.trim().replace(/^https?:\/\//i, '').replace(/\/+$/, '');
|
||||
if (!domain) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var shareUrl = 'https://' + domain + '/share?text=' + encodedText;
|
||||
window.open(shareUrl, '_blank', 'noopener,noreferrer');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h4><?php echo i18n('Related_posts'); ?></h4>
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ ul li, ol li {
|
|||
}
|
||||
|
||||
.share {
|
||||
width: 240px;
|
||||
width: 140px;
|
||||
margin-left: 1em;
|
||||
float: right;
|
||||
}
|
||||
|
|
@ -548,7 +548,6 @@ ul li, ol li {
|
|||
-moz-transition: all .3s;
|
||||
-webkit-transition: all .3s;
|
||||
-ms-transition: all .3s;
|
||||
transition: all .3s;
|
||||
text-indent: -9999em;
|
||||
border: none;
|
||||
}
|
||||
|
|
@ -561,18 +560,6 @@ ul li, ol li {
|
|||
background: url(../../../system/resources/images/share-facebook.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.bluesky {
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='52' viewBox='0 0 18 52'%3E%3Crect width='18' height='26' rx='3' fill='%230086ff'/%3E%3Cpath d='M4.1 8.4c1.4 1 2.9 3 3.6 4.3.7-1.3 2.2-3.3 3.6-4.3 1-.7 2.7-1.2 2.7.7 0 .4-.2 3.2-.3 3.7-.3 1.7-1.4 2.1-2.4 1.9 1.8.3 2.2 1.2 1.2 2.1-1.9 1.7-2.7-.4-2.9-1-.1-.2-.1-.3-.2-.3s-.1.1-.2.3c-.3.6-1.1 2.7-2.9 1-1-.9-.6-1.8 1.2-2.1-1 .2-2.1-.2-2.4-1.9C4.9 12.3 4.7 9.5 4.7 9c0-1.9 1.7-1.4 2.7-.6z' fill='white'/%3E%3Crect y='26' width='18' height='26' rx='3' fill='%23005ebd'/%3E%3Cpath d='M4.1 34.4c1.4 1 2.9 3 3.6 4.3.7-1.3 2.2-3.3 3.6-4.3 1-.7 2.7-1.2 2.7.7 0 .4-.2 3.2-.3 3.7-.3 1.7-1.4 2.1-2.4 1.9 1.8.3 2.2 1.2 1.2 2.1-1.9 1.7-2.7-.4-2.9-1-.1-.2-.1-.3-.2-.3s-.1.1-.2.3c-.3.6-1.1 2.7-2.9 1-1-.9-.6-1.8 1.2-2.1-1 .2-2.1-.2-2.4-1.9-.1-.5-.3-3.3-.3-3.8 0-1.9 1.7-1.4 2.7-.6z' fill='white'/%3E%3C/svg%3E") left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.mastodon {
|
||||
background: url(../../../system/resources/images/share-mastodon.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.gotosocial {
|
||||
background: url(../../../system/resources/images/share-gotosocial.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a:hover {
|
||||
background-position: left -26px;
|
||||
border: none;
|
||||
|
|
|
|||
|
|
@ -49,31 +49,13 @@
|
|||
<h4><?php echo i18n('Posts_by');?> <strong><?php echo $author->name ?></strong></h4>
|
||||
<?php echo $author->about ?>
|
||||
</div>
|
||||
<div class="share">
|
||||
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
|
||||
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
|
||||
<a class="bluesky" target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>">Bluesky</a>
|
||||
<a class="mastodon" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');">Mastodon</a>
|
||||
<a class="gotosocial" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');">GoToSocial</a>
|
||||
<div class="share">
|
||||
<a class="twitter" target="_blank"
|
||||
href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
|
||||
<a class="facebook" target="_blank"
|
||||
href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function shareToFediverse(platformName, encodedText) {
|
||||
var input = window.prompt('Enter your ' + platformName + ' server domain (for example: mastodon.social)');
|
||||
if (!input) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var domain = input.trim().replace(/^https?:\/\//i, '').replace(/\/+$/, '');
|
||||
if (!domain) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var shareUrl = 'https://' + domain + '/share?text=' + encodedText;
|
||||
window.open(shareUrl, '_blank', 'noopener,noreferrer');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div class="related">
|
||||
<h4><?php echo i18n('Related_posts');?></h4>
|
||||
<?php echo get_related($p->related)?>
|
||||
|
|
|
|||
|
|
@ -585,7 +585,7 @@ h1.title-post a:hover, h2.title-index a:hover {
|
|||
}
|
||||
|
||||
.share {
|
||||
width: 170px;
|
||||
width: 140px;
|
||||
margin-right: 1em;
|
||||
float: right;
|
||||
}
|
||||
|
|
@ -601,7 +601,6 @@ h1.title-post a:hover, h2.title-index a:hover {
|
|||
-moz-transition: all .3s;
|
||||
-webkit-transition: all .3s;
|
||||
-ms-transition: all .3s;
|
||||
transition: all .3s;
|
||||
text-indent: -9999em;
|
||||
}
|
||||
|
||||
|
|
@ -613,18 +612,6 @@ h1.title-post a:hover, h2.title-index a:hover {
|
|||
background: url(../img/share-facebook.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.bluesky {
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='52' viewBox='0 0 18 52'%3E%3Crect width='18' height='26' rx='3' fill='%230086ff'/%3E%3Cpath d='M4.1 8.4c1.4 1 2.9 3 3.6 4.3.7-1.3 2.2-3.3 3.6-4.3 1-.7 2.7-1.2 2.7.7 0 .4-.2 3.2-.3 3.7-.3 1.7-1.4 2.1-2.4 1.9 1.8.3 2.2 1.2 1.2 2.1-1.9 1.7-2.7-.4-2.9-1-.1-.2-.1-.3-.2-.3s-.1.1-.2.3c-.3.6-1.1 2.7-2.9 1-1-.9-.6-1.8 1.2-2.1-1 .2-2.1-.2-2.4-1.9-.1-.5-.3-3.3-.3-3.8 0-1.9 1.7-1.4 2.7-.6z' fill='white'/%3E%3Crect y='26' width='18' height='26' rx='3' fill='%23005ebd'/%3E%3Cpath d='M4.1 34.4c1.4 1 2.9 3 3.6 4.3.7-1.3 2.2-3.3 3.6-4.3 1-.7 2.7-1.2 2.7.7 0 .4-.2 3.2-.3 3.7-.3 1.7-1.4 2.1-2.4 1.9 1.8.3 2.2 1.2 1.2 2.1-1.9 1.7-2.7-.4-2.9-1-.1-.2-.1-.3-.2-.3s-.1.1-.2.3c-.3.6-1.1 2.7-2.9 1-1-.9-.6-1.8 1.2-2.1-1 .2-2.1-.2-2.4-1.9-.1-.5-.3-3.3-.3-3.8 0-1.9 1.7-1.4 2.7-.6z' fill='white'/%3E%3C/svg%3E") left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.mastodon {
|
||||
background: url(../../../system/resources/images/share-mastodon.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.gotosocial {
|
||||
background: url(../../../system/resources/images/share-gotosocial.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.share a.googleplus {
|
||||
background: url(../img/share-googleplus.png) left top no-repeat;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,27 +52,7 @@
|
|||
<div class="share">
|
||||
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
|
||||
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
|
||||
<a class="bluesky" target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>">Bluesky</a>
|
||||
<a class="mastodon" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');">Mastodon</a>
|
||||
<a class="gotosocial" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');">GoToSocial</a>
|
||||
</div>
|
||||
<script>
|
||||
function shareToFediverse(platformName, encodedText) {
|
||||
var input = window.prompt('Enter your ' + platformName + ' server domain (for example: mastodon.social)');
|
||||
if (!input) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var domain = input.trim().replace(/^https?:\/\//i, '').replace(/\/+$/, '');
|
||||
if (!domain) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var shareUrl = 'https://' + domain + '/share?text=' + encodedText;
|
||||
window.open(shareUrl, '_blank', 'noopener,noreferrer');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h4><?php echo i18n('Related_posts');?></h4>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue