Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
111 views
in Q2A Core by
closed by

/* SHAREBOX */

function q_view_buttons($q_view) {

$shareUrl = qa_q_path($this->content['q_view']['raw']['postid'], $this->content['q_view']['raw']['title'], true);

$shareUrlKT = qa_opt('site_url').$this->content['q_view']['raw']['postid'];

$shareUrlEnc = urlencode($shareUrl);

$this->output('

<div class="sharebox">

<p>Know someone who can answer this question ? Share this on <a href="https://www.facebook.com/sharer.php?u='.$shareUrlEnc.'" target="_blank" rel="external nofollow">Facebook</a>,

<a href="https://www.twitter.com/share?url='.$shareUrlEnc.'" target="_blank" rel="external nofollow">Twitter</a>,

<a href="whatsapp://send?text='.$shareUrlEnc.'" target="_blank" rel="external nofollow">Whatsapp</a></p>

</div>');

// default method call

qa_html_theme_base::q_view_buttons($q_view);

}

closed with the note: Too Broad
by
+1
Cmon now Zeeshan, you've been frequenting this site for a while now. You should know better than this.

Your question is too broad. Provide more information. I don't think this is even considered a question as it is, right now. You're just saying "check this code," Are we suppose to look at it and move on? What are we checking it for? The question needs more explanation.
https://www.question2answer.org/qa/82349/how-to-ask-a-good-question?show=82351#a82351
...