function freeourbills_share_page() { $data = freeourbills_share_details(); echo '<div id="col1">'; echo '<p>'; freeourbills_email_friends_link(); echo '</p>'; echo '<p>Share with friends on a social networking site that you use, click below:</p>'; share_form_social($data['url'], $data['title']); /*echo '<h3 style="margin-top: 1em">' . _('Email') . '</h3>'; share_form_email($data['email_url'], $data['name'], $data['email']); */ echo '</div>'; }
function share_form($url, $title, $email_url, $name, $email) { ?> <div id="share_form"> <a href="#" onclick="$('#share_form').hide(); return false" class="share_close"><?php echo _('Close'); ?> </a> <ul class="share_tabs"> <li id="share_tab1" class="selected" onclick="share_tab('1');"><?php echo _('Social Web'); ?> </li> <li id="share_tab2" onclick="share_tab('2');"><?php echo _('Email'); ?> </li> </ul> <div class="clear"></div> <?php share_form_social($url, $title); share_form_email($email_url, $name, $email); }