Home Page

How to make a 1-Fact page?

  • Using a form to email it:
    • It would be nice to have the words be words and not an impage
  • Using their own email
    • Still not to have words be words, but they can’t use HTML to look nice
  • It seems like for both we should have:
    • A graph with the Fact words in one big (400w x 600h) image
    • The fact words as words either above or below.
  • Perhaps just the use-your-own email method.
    • it includes the following automatically
      • Subject = menu title
      • See the fact here: URL-of-Page
      • To include the fact as an image just copy and paste it in here.
add_shortcode(‘send_to_friend’, ‘email_to_friend’);
function email_to_friend($atts)
{
    global $post;
    extract(shortcode_atts(array(
        ‘anchor_text’ => ‘Send to Friend’,
    ), $atts));
 
    $post_title = htmlspecialchars( $post->post_title );
    $email_subject = ‘Sur ‘.htmlspecialchars(get_bloginfo(‘name’)).‘ : ‘.$post_title;
    $email_body = ‘I recommend this page : ‘.$title.‘. You can read it on : ‘.get_permalink($post->ID);
    $send_button = ‘<a class=”send-button” rel=”nofollow” href=”mailto:?subject=’.rawurlencode($email_subject).‘&amp;body=’.rawurlencode($email_body).‘” title=”‘.$anchor_text.‘ : ‘.$title.‘”>’.$text.‘</a>’;
    
    return $send_button;
}

Comments

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>