لینک کوتاه اشتراک گذاری
با سلام چگونه میتونم مطالب وبلاک به صورتی که هر پست رو بتونم جداگانه تو شبکه های اجتماعی مختلف به اشتراک بزارم؟
با لاراول یا پی اچ پی منظور کدهایی میخوام که تو سمت بک اند باشه
ممنون
لینک کوتاه اشتراک گذاری
سلام. این کد php پروژه خودم بود شاید ***** بیاد. یه نگاه بندازی متوجه میشی چه مقادیریو توش باید جایگزین کنی
<div id="share" class="article-share">
<a target="_blank" href="https://twitter.com/share?text=<?php echo trim($article->title) ?>&url=http://yoursite.com/articles/article?id=<?= $article->id ?>" title="توییتر"><i class="fa fa-twitter"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=http://yoursite.com/articles/article?id=<?= $article->id ?>&t=<?php echo trim($article->title) ?>" title="فیسبوک"><i class="fa fa-facebook"></i></a>
<a target="_blank" href="https://plus.google.com/share?url=http://yoursite.com/articles/article?id=<?= $article->id ?>" onclick="window.open('https://plus.google.com/share?url=http://yoursite.com/articles/article?id=<?= $article->id ?>','gplusshare','width=600,height=400,left='+(screen.availWidth/2-225)+',top='+(screen.availHeight/2-150)+'');return false;" title="گوگل پلاس"><i class="fa fa-google-plus"></i></a>
<a href="mailto:?subject=<?php echo trim($article->title) ?>&body=http://yoursite.com/articles/article?id=<?= $article->id ?>" title="ایمیل"><i class="fa fa-envelope"></i></a>
</div>
لینک کوتاه اشتراک گذاری
ممنون آقای اصلانی