Advertisement
Guest User

Untitled

a guest
May 20th, 2014
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 46.07 KB | None | 0 0
  1. <?php
  2. /*
  3. if (!is_user_logged_in()) {
  4.  wp_redirect( 'http://www.lovedforever.org.uk/');
  5.  exit;
  6. } */
  7.  
  8.  
  9. /* varibles used in facbook shaRING */
  10.  
  11.  $t = 'Visit memorial of' . get_field('first_name')." ".get_field('last_name');
  12.  $Path=$_SERVER['REQUEST_URI'];
  13.  $URI='http://www.lovedforever.org.uk'.$Path;
  14.  
  15. /****************************/
  16.  
  17. $current_memorial_id = get_the_ID();
  18. $memorial_template = get_post_meta( get_the_ID(), 'memorial_template', true );
  19. $pre_img = get_field('memorial_photo');
  20. $img = $pre_img["sizes"]["thumbnail"];
  21.  
  22. //print_r($pre_img);
  23.  
  24. if(!$img){
  25.  $img =$template_uri.'/images/placeholder.png';
  26. }
  27.  
  28. $user_ID = get_current_user_id();
  29.  
  30. $deceased_name = get_field('first_name') . " " . get_field('last_name');
  31. $deceased_memorial_link = get_permalink();
  32. $deceased_comment_args = array(
  33.     'post_id' => get_the_ID(), // use post_id, not post_ID
  34. );
  35. $deceased_comments = get_comments($deceased_comment_args);
  36.  
  37. $post_id = get_the_ID();
  38. $posttypeattribute=$post_id;
  39. $args = array(
  40.   'post_type' => 'tribute',
  41.   'meta_key' => 'memorial_id',
  42.   'meta_value' => (string)$post_id
  43. );
  44.  
  45. // get results
  46. $the_query = new WP_Query( $args );
  47.  
  48.  
  49. if ( isset( $_POST['html-upload'] ) && !empty( $_FILES ) ) {
  50.  
  51.     $type = $_FILES['async-upload']['type'];
  52.     if ( preg_match( '#^image#', $type ) || preg_match( '#^audio#', $type ) ) {
  53.       require_once(ABSPATH . 'wp-admin/includes/admin.php');
  54.       $id = media_handle_upload('async-upload', $post_id); //post id of Client Files page
  55.       unset($_FILES);
  56.       if ( is_wp_error($id) ) {
  57.           $errors['upload_error'] = $id;
  58.           $id = false;
  59.       }
  60.       add_post_meta(  $id , 'user_gallery', $post_id , true ) || update_post_meta(   $id , 'user_gallery', $post_id  );
  61.       if (@$errors) {
  62.           echo '<p>'.$errors['upload_error'].'</p>';
  63.       } else {
  64.          
  65.           wp_redirect( get_permalink($post_id) );
  66.           exit();
  67.       }
  68.     }else{
  69.       echo "<p>Only images are accepted.</p>";
  70.     }
  71. }
  72.  
  73. if ( isset( $_POST['embed-submit']) ) {
  74.  
  75. }
  76.  
  77. $galargs = array(
  78.   'post_parent' => $post_id,
  79.   'post_type' => 'attachment',
  80.   'post_mime_type' => 'image',  
  81.   'meta_key' => 'user_gallery',
  82.   'meta_value' => (string)$post_id,
  83.   'post_status' => 'inherit',
  84.   'orderby' => 'date',
  85.   'order' => 'ASC'
  86. );
  87.  
  88. // get results
  89. $the_galquery = new WP_Query( $galargs );
  90.  
  91.  
  92. $audioargs = array(
  93.   'post_parent' => $post_id,
  94.   'post_type' => 'attachment',
  95.   'post_mime_type' => 'audio',  
  96.   'meta_key' => 'user_gallery',
  97.   'meta_value' => (string)$post_id,
  98.   'post_status' => 'inherit',
  99.   'orderby' => 'date',
  100.   'order' => 'ASC'
  101. );
  102.  
  103. // get results
  104. $the_audioquery = new WP_Query( $audioargs );
  105.  
  106. $vidargs = array(
  107.   'post_type' => '_user_video',
  108.   'meta_key' => 'memorial_id',
  109.   'meta_value' => (string)$post_id,
  110.   'post_status' => 'publish'
  111. );
  112.  
  113. // get results
  114. $the_vidquery = new WP_Query( $vidargs );
  115.  
  116. ?>
  117. <!DOCTYPE html>
  118.  
  119. <html>
  120. <head>
  121.     <title><?php the_field('first_name'); ?> <?php the_field('last_name'); ?> memorial</title>
  122.     <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  123.     <link href="<?php echo $template_uri; ?>/css/template<?php echo (empty($memorial_template) ? '1' :$memorial_template)?>.css" rel="stylesheet" type="text/css">
  124.     <link href="<?php echo $template_uri; ?>/css/memgolbal.css" rel="stylesheet"    type="text/css">
  125.       <link href="<?php echo $template_uri; ?>/css/jquery.fancybox.css" rel="stylesheet"    type="text/css">
  126.      <link href="<?php echo $template_uri; ?>/skins/premium-pixels/premium-pixels.css" rel="stylesheet"    type="text/css">
  127.     <link rel="stylesheet" href="<?php echo $template_uri; ?>/css/flexslider.css" type="text/css">
  128.     <link rel="stylesheet" id="wpml-styles-css" href="http://www.lovedforever.org.uk/wp-content/plugins/wp-modal-login/css/wp-modal-login.css?ver=2.0.6" type="text/css" media="screen">
  129.     <link rel="stylesheet" id="wpml-default-theme-css" href="http://www.lovedforever.org.uk/wp-content/plugins/wp-modal-login/css/default.css?ver=2.0.6" type="text/css" media="screen">
  130.  
  131.       <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
  132.       <script src="<?php echo $template_uri; ?>/js/jquery.fancybox.js"></script>
  133.       <script src="<?php echo $template_uri; ?>/js/helpers/jquery.fancybox-media.js"></script>
  134.       <script src="<?php echo $template_uri; ?>/js/jquery.fancybox.pack.js"></script>
  135.  
  136.       <script src="<?php echo $template_uri; ?>/js/jquery.flexslider-min.js"></script>
  137.       <script src="<?php echo $template_uri; ?>/js/jquery.jplayer.min.js"></script>
  138.       <script src="<?php echo $template_uri; ?>/js/jquery.jplayer.inspector.js"></script>
  139.       <script src="<?php echo $template_uri; ?>/js/jplayer.playlist.min.js"></script>
  140.        <script src="<?php echo $template_uri; ?>/js/demo.js"></script>
  141.        
  142. <style>
  143. img.ssba{ width:30px !important; margin:5px !important}
  144. </style>
  145.  
  146. <meta property="og:image" content="<?php echo $pre_img["url"]; ?>"/>
  147.  
  148. </head>
  149.  
  150. <body>
  151. <div id="fb-root"></div>
  152. <script>
  153. window.fbAsyncInit = function() {
  154. FB.init({appId: '756111577742257', status: true, cookie: true,
  155. xfbml: true});
  156. };
  157. (function() {
  158. var e = document.createElement('script'); e.async = true;
  159. e.src = document.location.protocol +
  160. '//connect.facebook.net/en_US/all.js';
  161. document.getElementById('fb-root').appendChild(e);
  162. }());
  163. </script>
  164. <script type="text/javascript">
  165. // jQuery(document).ready(function(){
  166. // jQuery('#shareb').click(function(e){
  167. // e.preventDefault();
  168. // FB.ui(
  169. // {
  170. // method: 'feed',
  171. // name: 'This is the content of the "name" field.',
  172. // link: ' http://www.lovedforever.org.uk/',
  173. // picture: 'http://www.lovedforever.org.uk/external-xfbml/share-image.gif',
  174. // caption: 'This is the content of the "caption" field.',
  175. // description: 'This is the content of the "description" field, below the caption.',
  176. // message: ''
  177. // });
  178. // });
  179. // });
  180. </script>
  181.  
  182.  
  183.     <div id="wrapper">
  184.         <div id="memorialheader">
  185.              <div id="headmenu">
  186.  
  187.    
  188.             <a href="#" id="soundButton" onClick="toggleSound(this)" class="sound_on">Sound</a> | <a href='../../'>Home</a> | <a href='../../create-memorial/'>Edit Memorial</a> | <?php echo do_shortcode('[wp-modal-login login_text="login" logout_text="logout"]') ?>
  189.  
  190.             </div>
  191.              <div id="frame">
  192.               <div id="headimage">
  193.              <?php
  194.  
  195.               /*
  196.                *  Show selected image
  197.                *  Return value = URL
  198.                */
  199.  
  200.                ?>
  201.                 <img src='<?php echo $img; ?>' alt="" width='150', height='150'/>
  202.             </div>
  203.             </div>
  204.            
  205.             <div id="temp_title">
  206.               <h1><p><?php the_field('first_name'); ?>
  207.               <?php the_field('last_name'); ?>
  208.               <br><br>
  209.               <?php $dateOfBirth  = DateTime::createFromFormat('Ymd', get_field('Date_of_Birth'));
  210.                 $dateOfPassing  = DateTime::createFromFormat('Ymd', get_field('date_of_passing'));?>
  211.               <?php echo $dateOfBirth->format('Y'); ?> to <?php echo $dateOfPassing->format('Y'); ?></p>
  212.              
  213.               </h1><!-- .header-->
  214.             </div>        
  215.         </div><!-- <div id="navigation">
  216.             <p>This is the Menu</p>
  217.         </div>-->
  218.  
  219.         <div id="contentwrapper">
  220.             <div id="contentliquid">
  221.                 <div id="content">
  222.                     <div class="container">
  223.                         <ul class="tabs">
  224.                             <li><a href="#tab1">Tributes</a></li>
  225.  
  226.                             <li><a href="#tab2">Their Life</a></li>
  227.  
  228.                             <li><a href="#tab3">Gallery</a></li>
  229.  
  230.                             <li><a href="#tab4">Stories</a></li>
  231.                              
  232.                             <li><a href="#tab5">Music</a></li>
  233.                            
  234.                             <li><a href="#tab6">Memorial Flowers</a></li>
  235.                         </ul>
  236.  
  237.                         <div class="tab_container">
  238.                             <div class="tab_content" id="tab1">
  239.                                 <h2><?php the_field('first_name'); ?> <?php the_field('last_name'); ?></h2>
  240.                                 <br>
  241.                                
  242.                                  
  243.                                   <?php $dateOfBirth  = DateTime::createFromFormat('Ymd', get_field('Date_of_Birth'));
  244.                                   $dateOfPassing  = DateTime::createFromFormat('Ymd', get_field('date_of_passing'));?>
  245.                                 <br/>
  246.                                  <table style="width:300px">
  247.                                  <tr>
  248.                                  <td> Born</td>
  249.                                  <td><?php echo $dateOfBirth->format('d/m/Y'); ?></td>
  250.                                  </tr>
  251.                                  <tr>
  252.                                  <td>Passed Away</td>
  253.                                  <td><?php echo $dateOfPassing->format('d/m/Y'); ?></td>
  254.                                  </tr>
  255.                                  </table>
  256.                                  <div id="loveddets">
  257.                                  <?php the_field('Leave_a_brief_tribute'); ?>                                      
  258.                                  </div>
  259.                                  <br>
  260.                                  
  261.                                  <br>
  262.                                  <div id="tribtext">
  263.                                  
  264.                                  <p><h2>Memorial Tributes</h2></p>
  265.                                      
  266.                               <p>Leave Your Own Personal Tribute</p>
  267. <br>
  268. <?php if ( is_user_logged_in() ): ?>
  269.                          
  270.                              <form method='post'>
  271.                                     <textarea name='copy' rows="12" style="width:95%; height: 70px;" ></textarea>
  272.                                     <input type='hidden' name='post_id' value='<?php echo $posttypeattribute;?>'/>
  273.                                     <input type='submit' name='submit_tribute' value='Add Tribute' class="" />
  274.                                    </form>
  275. <?php else: ?>                            
  276.              
  277.               <form method='post' action="http://www.lovedforever.org.uk/register-your-self" >
  278.                                     <textarea name='copy' rows="12" style="width:95%; height: 70px;" ></textarea>
  279.                                     <input type='hidden' name='post_id' value='<?php echo $posttypeattribute;?>'/>
  280.                                     <input type='hidden' name='targeturi' value='<?php echo $targeturi;?>'/>
  281.                                     <input type='submit' name='submit' value='Add Tribute' class="" />
  282.                                    </form>
  283.                            
  284.                           <?php  endif ?>
  285.  
  286.                           <br>
  287.                          
  288.                             <?php if( $the_query->have_posts() ): ?>
  289.                      
  290.                               <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  291.                                 <div style='background:rgba(250, 250, 250, 0.5); margin-bottom:10px; padding:20px; border-radius: 10px; '>
  292.                                     <div> <img height="70" width="70" src="http://www.lovedforever.org.uk/wp-content/uploads/2014/03/candel3.png"><?php the_time('F jS, Y') ?></div>
  293.                                     <div><?php the_content(); ?> <br/>from <?php the_author(); ?>
  294.                                     <?php $sharecontent=get_the_content($post_id);?>
  295.                                     <div style="height:40px ; margin:5px; padding:0px;"  >
  296.                                     <span style="float:right; overflow:hidden !important" >
  297.                                     <?php  //echo do_shortcode('[ssba]');?>
  298.                                     <div class="ssba">
  299. <a class="ssba_twitter_share" href="http://twitter.com/share?url=http://www.lovedforever.org.uk/memorial/<?php echo get_the_title($post_id) ?>/&amp;text=www.lovedforever.org.uk+%7C+www.lovedforever.org.uk/memorial/<?php echo get_the_title($post_id) ?>+<?php echo str_replace('</p>','',str_replace('<p>','',get_the_content())); ?>" target="_blank">
  300. <img title="Twitter" class="ssba" alt="Tweet about this on Twitter" src="http://www.lovedforever.org.uk/wp-content/plugins/simple-share-buttons-adder/buttons/simple/twitter.png">
  301. </a>
  302. <a class="ssba_facebook_share" onclick="openFbPopUp('','<?php echo $URI; ?>','<?php echo $pre_img[url];?>','In memory of <?php echo get_the_title($post_id).' by '. get_the_author(); ?>','<?php echo strip_tags($sharecontent); ?>')" href="javascript:void(0)">
  303. <img title="Facebook" class="ssba" alt="Share on Facebook" src="http://www.lovedforever.org.uk/wp-content/plugins/simple-share-buttons-adder/buttons/simple/facebook.png">
  304. </a>
  305. <a class="ssba_pinterest_share" href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());">
  306. <img title="Pinterest" class="ssba" alt="Pin on Pinterest" src="http://www.lovedforever.org.uk/wp-content/plugins/simple-share-buttons-adder/buttons/simple/pinterest.png">
  307. </a>
  308. </div>
  309.                                      <!-- <a target="_blank"
  310.        href="https://www.facebook.com/dialog/feed?app_id=1407197776212391&display=popup&caption=In memory of <?php echo get_the_title($post_id).' by '. the_author(); ?>&link=http://www.lovedforever.org.uk/memorial/<?php echo get_the_title($post_id);?>&redirect_uri=http://www.lovedforever.org.uk/memorial/<?php echo get_the_title($post_id);?>&picture=<?php echo $pre_img[url];?>&description=<?php the_content(); ?>">
  311.          <img src="<?Php echo $img;?>"/>
  312.          </a>-->
  313.                                      <?php // do_action( 'addthis_widget' ); ?>
  314.                                      </span>
  315.                                      <?php     $summ = get_the_content();
  316.                                          /*echo $t;
  317.                                          echo "<br/> uri $URI";
  318.                                          echo "<br/> img $image";
  319.                                          echo "<br/> summ $summ";*/
  320.                                          
  321.                                          //$title=urlencode('Title of Your iFrame Tab');
  322.  
  323. //$url=urlencode('http://www.facebook.com/wordpressdesign');
  324.  
  325. //$summary=urlencode('Custom message that summarizes what your tab is about, or just a simple message to tell people to check out your tab.');
  326.  
  327. //$image=urlencode('http://www.yourdomain.com/images/share-thumbnail.jpg');
  328.                                          
  329.                                          
  330.                                          
  331.                                          
  332.                                                $title=urlencode( $t);
  333.                                                  $url=urlencode($URI);
  334.                                                 $summary="test" ;//urlencode($summ);
  335.                                                 $image=urlencode($img);  
  336.                                                 $targeturi=urlencode($URI);
  337.                                                
  338.                                                
  339.                                                 ?>
  340.          
  341.          <?php /****
  342.          <!--<a target="_blank"
  343.          href="http://www.facebook.com/sharer/sharer.php?s=100&amp;p[url]=<?php echo urlencode($URI); ?>&amp;p[images][0]=<?php echo $img; ?>&amp;p[title]=Creating Custom share buttons: Facebook, Twitter, Google+&amp;p[summary]=<?php echo "visit this link to give tribute";?>>
  344.          <img src="<?Php echo $img;?>"/>fb
  345.          </a>-->
  346.                 */?>                       
  347.                                      
  348.                                      
  349.                                     </div>
  350.                                     </div>                 
  351.                                    
  352.                                  </div>
  353.                                  
  354.                                  
  355.                        <div id="#shareb"> <p></p> </div>          
  356.                                  
  357.                                  
  358.                               <?php endwhile; ?>
  359.                             <?php endif; ?>
  360.                              
  361.                             <?php wp_reset_query();  // Restore global post data stomped by the_post(). ?>
  362.                          
  363.                          
  364.                          
  365.                           </div>
  366.                           </div>
  367.                           <div class="tab_content" id="tab2" >
  368.                             <div id="life" >
  369.  
  370.                                 <h2>Their Life</h2>
  371.  
  372.                                 <p><?php the_field('about_thier_life'); ?></p>
  373.                              </div>
  374.                             </div>
  375.  
  376. <div class="tab_content" id="tab3">
  377.      <h2>Gallery</h2>
  378.  
  379. <?php foreach (get_field('gallery') as $gallery_image) : ?>
  380. <?php $b[] = $gallery_image["sizes"]["thumbnail"]; ?>
  381. <a class="fancybox" rel="gallery1" href="<?php echo $gallery_image["sizes"]["medium"]; ?>" >
  382. <img width="150" height="150" class="attachment-thumbnail" src="<?php echo $gallery_image["sizes"]["thumbnail"]; ?>">
  383. </a>
  384. <?php endforeach; ?>
  385.  
  386. <?php if( $the_galquery->have_posts() ): ?>
  387. <?php while ( $the_galquery->have_posts() ) : $the_galquery->the_post(); ?>
  388.  
  389.     <?php $pre_b = wp_get_attachment_image_src( get_the_ID(), 'thumbnail'); ?>
  390.     <?php $b[] = $pre_b[0]; ?>
  391.     <a class="fancybox" rel="gallery1" href="<?php echo wp_get_attachment_url( get_the_ID()); ?>" >
  392.         <?php echo wp_get_attachment_image( get_the_ID(), 'thumbnail'); ?>
  393.     </a>
  394.  
  395.   <?php endwhile; ?>
  396. <?php endif; ?>
  397.  
  398. <?php // var_dump($b); ?>
  399.  
  400. <?php if ( !(get_field('gallery')) && !($the_galquery->have_posts() ) ):?>
  401.     <p>No Gallery images added</p>
  402. <?php endif ?>
  403.                          
  404. <h2 style='clear:both'>Videos</h2>
  405.                           <!-- Video loop -->
  406.                          
  407.                            <?php if( $the_vidquery->have_posts() ): ?>
  408.                               <?php while ( $the_vidquery->have_posts() ) : $the_vidquery->the_post(); ?>
  409.                              
  410.                                <a class="fancybox-media" rel="gallery1" href="http://<?php echo get_post_meta( get_the_ID(), 'video' , 'true'); ?>" ><img width='150' src="<?php echo get_post_meta( get_the_ID(), 'image_url' , 'true'); ?>"></a>
  411.                               <?php endwhile; ?>
  412.                             <?php endif ?>
  413.                             <!-- end if -->
  414.                            
  415.                              <?php
  416.                              if (get_field('visitors_allowed_to_add_content') && ( is_user_logged_in() ))
  417. {
  418.        echo '
  419.  
  420.                               <br><br><br><br><br><br><br><br>
  421.                               <p><h2>Add to Gallery</h2></P>
  422.                                <form  style="clear:both" id="file-form" enctype="multipart/form-data" action="'.$_SERVER['REQUEST_URI'].'" method="POST">
  423.                                  <p>Add image or mp3</p>
  424.                                  <p id="async-upload-wrap"><label for="async-upload">upload</label>
  425.                                  <input type="file" id="async-upload" name="async-upload"> <input type="submit" value="Upload" name="html-upload"></p>
  426.  
  427.                                  <p><input type="hidden" name="post_id" id="post_id" value="'.$post_id.'" />
  428.                                  '.wp_nonce_field('client-file-upload').'
  429.                                  <input type="hidden" name="redirect_to" value="'.$_SERVER['REQUEST_URI'].'" /></p>
  430.  
  431.                                  <p><input type="submit" value="Save all changes" name="save" style="display: none;"></p>
  432.                                </form>
  433.                                
  434.                                <form  style="clear:both" id="embed-form"  method="POST" enctype="multipart/form-data">
  435.                                  <p>Add video to gallery</p>
  436.                                  <p><label for="embed">YouTube / vimeo url:</label></p>
  437.                                  <p><textarea id="embed" name="embed"></textarea></p>
  438.                                  <p><input name="submit_video" type="submit" value="submit" onclick="MakeLinkSafe()" ><p>
  439.                                  <p>
  440.                                    <input type="hidden" name="post_id" id="post_id" value="'.$post_id.'" />
  441.                                  <input type="hidden" name="redirect_to" value="'.$_SERVER['REQUEST_URI'].'" /></p>
  442.                                </form>';
  443.                                 }
  444.  
  445.  
  446.                               ?>
  447.                              
  448.                            
  449.                                    
  450.                            
  451.                            
  452.                             </div>
  453.  
  454.                                      <div class="tab_content" id="tab4">
  455.                                 <h2>Stories</h2>
  456. <?php // comments_template(); ?>
  457.  
  458. <pre>
  459. <?php // var_dump($deceased_comments); ?>
  460. </pre>
  461. <?php if(get_field('visitors_allowed_to_add_content') )
  462. {
  463.        echo '
  464.                                <p>
  465. <form action="http://www.lovedforever.org.uk/wp-comments-post.php" method="post" id="commentform" class="comment-form">
  466.  
  467. <p class="comment-form-comment">
  468.  <label class="hide" for="comment">Add Story:</label><br><br>
  469.  <textarea id="comment" name="comment" cols="50" rows="10" aria-required="true"></textarea>
  470. </p>
  471. <p class="form-submit">
  472.  <input name="submit" type="submit" id="submit" value="Submit">
  473.  <input type="hidden" name="comment_post_ID" value="<?php echo $post_id; ?>" id="comment_post_ID">
  474.  <input type="hidden" name="comment_parent" id="comment_parent" value="0">
  475. </p>
  476. </form>
  477.        </p>
  478. ';
  479. }?>
  480.  
  481.  
  482. <ul>
  483. <?php foreach($deceased_comments as $new_comment) : ?>
  484.     <li style="height: auto; overflow: hidden; margin-bottom: 20px">
  485.     <div class="comment-container" Style="background:rgba(250, 250, 250, 0.5); padding:20px; border-radius: 10px; ">
  486.  
  487.  
  488.  
  489.         <!--<div class="avatar"><?php echo get_avatar( $new_comment->user_id, 50 ); ?></div>-->
  490.         <div style="font-size:11px">
  491.             <span class="name">Written by: <?php echo($new_comment->comment_author); ?></span>          
  492.             <span class="date">on <?php echo date("jS F, Y", strtotime( $new_comment->comment_date_gmt )); ?> at <?php echo date("h:i a", strtotime( $new_comment->comment_date_gmt )); ?></span>
  493.             <?php if ($user_ID == $new_comment->user_id && $new_comment->user_id != 0 ) : ?>
  494.                 <!--<span class="edit"><a class="comment-edit-link" href="<?php bloginfo('url'); ?>/wp-admin/comment.php?action=editcomment&amp;c=<?php echo($new_comment->comment_ID); ?>">Edit your story</a></span>-->
  495.             <?php endif; ?>
  496.         </div>
  497.         <p><?php echo($new_comment->comment_content); ?></p>
  498.    
  499.   </div>
  500.     </li>
  501. <?php endforeach; ?>
  502. </ul>
  503.  
  504. </div>
  505.                            
  506.                                     <div class="tab_content" id="tab5">
  507.                                     <h2>Audio</h2>
  508.                                    
  509.                              <script type="text/javascript">
  510.                             //<![CDATA[
  511.                             $(document).ready(function(){
  512.                            
  513.                                 new jPlayerPlaylist({
  514.                                     jPlayer: "#jquery_jplayer_2",
  515.                                     cssSelectorAncestor: "#jp_container_2"
  516.                                 }, [
  517.                                 <?php
  518.                                 // Default Audio File
  519.                                
  520.                                
  521.                                 //$mp3daudio =  get_post_meta ($post_id);
  522.  
  523.                                
  524.                                 $uploads = wp_upload_dir();
  525.                            
  526.                                             if (get_post_meta ($post_id, 'audio_default')) {
  527.                                            
  528.                                                     $mp3daudio =    get_post_meta ($post_id,'audio_default');
  529.                                                     $mp3daudio_title  = str_replace('.mp3',' ',$mp3daudio[0]);
  530.                                                    
  531.                                                    
  532.                                             echo '{
  533.                                        
  534.                                               title:"'.$mp3daudio_title.'",
  535.                                               mp3:"'. get_option('siteurl').'/wp-content/uploads/audio/'.$mp3daudio[0].'"
  536.                                        
  537.                                        
  538.                                             },';
  539.                                             }
  540.  
  541.                                 ?>
  542.                                
  543.                                 <?php if( $the_audioquery->have_posts() ): ?>
  544.                                 <?php while ( $the_audioquery->have_posts() ) : $the_audioquery->the_post(); ?>
  545.                                
  546.                                
  547.                                 {
  548.                            
  549.                                   title:"<?php the_title()?>",
  550.                                   mp3:" <?php echo wp_get_attachment_url( $post->ID ); ?>"
  551.                            
  552.                            
  553.                                 },
  554.                                 <?php endwhile; ?>
  555.                                 <?php endif ?>
  556.                                 ], {
  557.                                 playlistOptions: {
  558.                                 autoPlay:true,
  559.                                 },
  560.                            
  561.                                     swfPath: "../js",
  562.                                     supplied: "mp3",
  563.                                     wmode: "window",
  564.                                     smoothPlayBar: true,
  565.                                     keyEnabled: true,      
  566.                                     autoPlay: true
  567.                                
  568.                                 });
  569.                            
  570.                                 // $("#jplayer_inspector_2").jPlayerInspector({jPlayer:$("#jquery_jplayer_2")});
  571.                             });
  572.                             //]]>
  573.                             </script>
  574.  
  575.  
  576.                                
  577.            
  578.                                 <div id="skin-loader"></div>
  579.  
  580.                                 <div id="skin-wrapper" data-skin-name="premium-pixels">
  581.  
  582.                                     <div id="jquery_jplayer_2" class="jp-jplayer" style="width:0px; height:0px"></div>
  583.                                    
  584.                                     <div id="jp_container_2" class="jp-audio" style="width:600px;">
  585.                                    
  586.                                                 <div class="jp-type-playlist" id="jp-type-playlist">
  587.                                                
  588.                                                     <div class="jp-gui jp-interface">
  589.                                                         <ul class="jp-controls">
  590.                                                             <li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li>
  591.                                                             <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
  592.                                                             <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
  593.                                                             <li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li>
  594.                                                             <li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
  595.                                                              <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
  596.                                                             <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
  597.                                                             <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
  598.                                                         </ul>
  599.                                                         <div class="jp-progress">
  600.                                                             <div class="jp-seek-bar">
  601.                                                                 <div class="jp-play-bar"></div>
  602.                                                            </div>
  603.                                                       </div>
  604.                                                         <div class="jp-volume-bar">
  605.                                                             <div class="jp-volume-bar-value"></div>
  606.                                                         </div>
  607.                                                     </div>
  608.                                                    
  609.                                                     <div class="jp-playlist">
  610.                                                         <ul>
  611.                                                             <li></li>
  612.                                                         </ul>
  613.                                                     </div>
  614.                                                    
  615.                                                     <div class="jp-no-solution">
  616.                                                         <span>Update Required</span>
  617.                                                         To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
  618.                                                     </div>
  619.                                                    
  620.                                                 </div>
  621.                                      </div>
  622.                                    
  623.                                      <div id="jplayer_inspector_2"></div>
  624.                              </div>                                    
  625.                                
  626.                         </div>
  627.                            
  628.                             <div class="tab_content" id="tab6">
  629.                  
  630.                  
  631.                 <p>
  632.                 <h2>Memorial Flowers</h2>
  633.                  </p>
  634.                  <p>Memorial flowers gives you the option to buy and send real flowers via our partners Interflora/ FlowerAid or purchase virtual flowers.<br>
  635.                  When sending real flowers 10% of your spend will go to your nominated charity at no extra cost to yourself.</p>
  636.                  <p>When choosing virtual flowers you also have the option of donating to a charity of your chose and the flowers you choose will appear our memorial  garden!</p>  
  637.                  <p>To view : <a href="http://www.lovedforever.org.uk/memorial-garden/" target="_blank">Memorial Garden</a></p>
  638.                  <p>To choose or send flower go to : <a href="http://www.lovedforever.org.uk/product/donate-flowers/" target="_blank"> Gift Shop</a></p> 
  639.  
  640.                  <?php
  641.                   global $woocommerce;
  642.                  $flower_url = plugins_url();
  643.                  
  644.                   $flower_url  = $flower_url .'/nm-woocommerce-personalized-product-v3.6/images/flowers';
  645.                     $args = array('post_type'           => 'shop_order',
  646.                                'post_status'        => 'publish',
  647.                                'posts_per_page' => -1,
  648.                                
  649.                                'tax_query' => array(
  650.                                                    
  651.                                                     array(
  652.                                                           'taxonomy' => 'shop_order_status',
  653.                                                           'field' => 'slug',
  654.                                                           'terms' => array('processing')
  655.                                                         //  'terms' => array('completed')
  656.                                                           )
  657.                                                     )
  658.                                 );
  659.                
  660.                     $loop = new WP_Query( $args );
  661.                
  662.                     while ( $loop->have_posts() ) :
  663.                    
  664.                             $loop->the_post();
  665.                             $order_id = $loop->post->ID;
  666.                             $order = new WC_Order($order_id);
  667.                             $items = $order -> get_items();
  668.                
  669.                    
  670.                             $name = $order -> billing_first_name . " " . $order -> billing_last_name ;
  671.                             $flower = "";
  672.                             $country = "";
  673.                             $charity_home = "";
  674.                             $in_memory_of = "";
  675.                             $tribute = "";
  676.                             $postid = 0;
  677.                             foreach ( $items as $key => $item ){   
  678.                                     $flower         = $item['item_meta']['Select flowers'][0];
  679.                                     $country        =  $item['item_meta']['Select Country'][0];
  680.                                     $in_memory_of   =  $item['item_meta']['In memory of'][0];
  681.                                     $tribute        =  $item['item_meta']['Your Tribute'][0];
  682.                                     $charity_home   =  $item['item_meta']['Select Charity Home'][0];
  683.                                     $donation_amount    =  $item['item_meta']['donation-amount'][0];
  684.                                     $postid = $in_memory_of;
  685.                                         if ( $charity_home == 'others' )
  686.                                         {
  687.                                             $charity_home   =  $item['item_meta']['specify any other charity home (if any)'][0];
  688.                                         }
  689.                                         else
  690.                                         {
  691.                                             $charity_home   =  $item['item_meta']['Select Charity Home'][0];   
  692.                                         }
  693.                                        
  694.                                         if ( $debug)
  695.                                         {
  696.                                         echo '<pre>';
  697.                                         print_r($item);
  698.                                         echo '</pre>';
  699.                                         }
  700.                        
  701.                             }
  702.                             // echo "flower is $flower";
  703.                                      switch($flower ){
  704.          
  705.         case "Beautiful Pink":
  706.         $img_flower = $flower_url. "/beautifulpink.png";
  707.        
  708.         break;
  709.        
  710.         case "BlueSky Sunflower":
  711.         $img_flower = $flower_url. "/BlueSkySunflower.png";
  712.        
  713.         break;
  714.        
  715.         case "Bunch of PinkRose":
  716.         $img_flower = $flower_url. "/BunchofPinkRose.png";
  717.        
  718.         break;
  719.        
  720.         case "Buttercups and Poppies":
  721.         $img_flower = $flower_url. "/ButtercupsandPoppies.png";
  722.        
  723.         break;
  724.        
  725.         case "Heart of the Rose":
  726.         $img_flower = $flower_url. "/HeartoftheRose.png";
  727.        
  728.         break;
  729.        
  730.         case "Little Blues":
  731.         $img_flower = $flower_url. "/littleBlues.png";
  732.        
  733.         break;
  734.        
  735.         case "Pale Pink Roses":
  736.         $img_flower = $flower_url. "/PalePinkRoses.png";
  737.  
  738.         break;
  739.        
  740.         case "Pink and White Rose":
  741.         $img_flower = $flower_url. "/PinkandWhiteRose.png";
  742.  
  743.         break;
  744.        
  745.         case "Pink Buttercups":
  746.         $img_flower = $flower_url. "/PinkButtercups.png";
  747.  
  748.         break;
  749.        
  750.         case "Pink Rose":
  751.         $img_flower = $flower_url. "/PinkRose.png";
  752.  
  753.         break;
  754.        
  755.         case "Pink Roses":
  756.         $img_flower = $flower_url. "/PinkRoses.png";
  757.  
  758.         break;
  759.        
  760.         case "Poopy":
  761.         $img_flower = $flower_url. "/poopy.png";
  762.  
  763.         break;
  764.        
  765.         case "Purple Lights":
  766.         $img_flower = $flower_url. "/PurpleLights.png";
  767.  
  768.         break;
  769.        
  770.         case "Rainbow":
  771.         $img_flower = $flower_url. "/Rainbow.png";
  772.  
  773.         break;
  774.        
  775.         case "Red Roses":
  776.         $img_flower = $flower_url. "/redroses.jpg";
  777.  
  778.         break;
  779.        
  780.         case "Rose Heart":
  781.         $img_flower = $flower_url. "/roseheart.jpg";
  782.  
  783.         break;
  784.        
  785.         case "Single Pink":
  786.         $img_flower = $flower_url. "/SinglePink.png";
  787.        
  788.         break;
  789.        
  790.         case "Single Red Tulips":
  791.         $img_flower = $flower_url. "/SingleRedTulips.png";
  792.        
  793.         break;
  794.        
  795.         case "Sunflower Horizon":
  796.         $img_flower = $flower_url. "/SunflowerHorizon.png";
  797.        
  798.         break;
  799.        
  800.         case "Twin Rose":
  801.         $img_flower = $flower_url. "/TwinRose.png";
  802.  
  803.         break;
  804.        
  805.         case "White Lilies":
  806.         $img_flower = $flower_url. "/WhiteLilies.png";
  807.        
  808.         break;
  809.        
  810.         case "white Orchid":
  811.         $img_flower = $flower_url. "/whiteOrchid.png";
  812.  
  813.         break;
  814.        
  815.         case "White Rose":
  816.         $img_flower = $flower_url. "/WhiteRose.png";
  817.        
  818.         break;
  819.        
  820.         case "White Trumphets":
  821.         $img_flower = $flower_url. "/WhiteTrumphets.png";
  822.  
  823.         break;
  824.        
  825.         case "White Lilies":
  826.         $img_flower = $flower_url. "/whitelilies.jpg";
  827.        
  828.         break;
  829.        
  830.         case "Yellow Red Tulips":
  831.         $img_flower = $flower_url. "/YellowRedTulips.png";
  832.        
  833.         break;
  834.        
  835.         case "":
  836.         $img_flower = $flower_url. "/";
  837.        
  838.  
  839.         break;
  840.        
  841.         default:
  842.         $img_flower = $flower_url."/default.jpg";
  843.        
  844.         break;
  845.          
  846.         }
  847.  
  848.                            
  849.                            
  850.                             $template_uri = get_template_directory_uri();
  851.                           /*   
  852.                             query_posts( array( 'post_type' => 'memorial' ,'p' => $postid ) );
  853.                             if ( have_posts()):
  854.                             while (  have_posts() ) : the_post();
  855.                            
  856.                                     $pre_img = get_field('memorial_photo');
  857.                                     $img = $pre_img["sizes"]["thumbnail"];
  858.                                     if(!$img){ $img =$template_uri.'-child/memorials/images/placeholder.png';}
  859.                
  860.                             endwhile; // end of the loop.
  861.                             endif ;*/
  862.                
  863.                 if ( $in_memory_of == $current_memorial_id ) :
  864.                 ?>
  865.                    
  866.                  <div id="flower-box-memorial"  >
  867.                     <div class="pic-memorial">
  868.                         <!--<h3> <?php echo get_the_title($postid); ?> </h3>-->
  869.                  
  870.                         <img src="<?php echo $img_flower; ?>"  width="150" height="150" /><?php // echo "888".$img; ?>
  871.                         <?php// echo do_shortcode('[ssba]');?>
  872.                     </div><!-- pic ends -->
  873.                  
  874.                     <div class="description-memorial">
  875.                         <h5>Tribute</h5>
  876.                         <p><?php echo $tribute ?></p>
  877.                         <hr/>
  878.                         <p>&pound;<?php echo $donation_amount ?> doneted by <?php echo $name ?> to <?php echo  $charity_home  ?>,
  879.                             <?php echo  $country  ?> in memory of <?php echo get_the_title($postid); ?>
  880.                         </p>
  881.  
  882.                      <?php $share_content = "£".$donation_amount." donated by ".$name." to ". $charity_home ." ". $country ." in memory of ".get_the_title($postid); ?>
  883.  
  884.                     <div class="ssba">
  885. <a class="ssba_twitter_share" href="http://twitter.com/share?url=http://www.lovedforever.org.uk/memorial/<?php echo get_the_title($post_id) ?>/&amp;text=<?php echo $URI; ?>+%7C+<?php echo $share_content; ?>" target="_blank">
  886. <img title="Twitter" class="ssba" alt="Tweet about this on Twitter" src="http://www.lovedforever.org.uk/wp-content/plugins/simple-share-buttons-adder/buttons/simple/twitter.png">
  887. </a>
  888. <a class="ssba_facebook_share" onclick='openFbPopUp("","<?php echo $URI; ?>","<?php echo $img_flower;?>","In memory of <?php echo get_the_title($post_id)." by ". get_the_author(); ?>","<?php echo $share_content; ?>");' href="javascript:void(0)">
  889.  
  890. <img title="Facebook" class="ssba" alt="Share on Facebook" src="http://www.lovedforever.org.uk/wp-content/plugins/simple-share-buttons-adder/buttons/simple/facebook.png">
  891. </a>
  892. <a class="ssba_pinterest_share" href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());">
  893. <img title="Pinterest" class="ssba" alt="Pin on Pinterest" src="http://www.lovedforever.org.uk/wp-content/plugins/simple-share-buttons-adder/buttons/simple/pinterest.png">
  894. </a>
  895. </div>
  896.                
  897.                         <!--<?php echo $flower ?>-->
  898.                     </div><!-- discription ends -->
  899.                        
  900.                  </div><!-- flower-box ends -->  
  901.  
  902.         <?php endif;
  903.              
  904. ?>
  905.                
  906.                  <?php endwhile; ?>
  907.                  
  908.                  </div>      
  909.                         </div><br clear="left">
  910.                     </div>
  911.                 </div>    
  912.             </div>
  913.                  
  914.    
  915.             <div id="rightcolumn1">
  916.              <h4>Invite <br>Friends and Family</h4>
  917. <?php
  918. if (isset($_POST["iemail"])) {        
  919.  
  920.  
  921.         if (filter_var($_POST["mail"], FILTER_VALIDATE_EMAIL)) {
  922.                 $headers = array(
  923.                         'Content-type: text/html',
  924.                         'From: LovedForever <no-reply@lovedforever.com>'
  925.                 );
  926.  
  927.       $msg  = "<p>Hi</p>";
  928.       $msg .= "<p>You've been invited to view " . $deceased_name . "'s memorial page<br />";
  929.       $msg .= "Please view the link below:</p>";
  930.       $msg .= "<p><a href='" . $deceased_memorial_link . "'>" . $deceased_memorial_link . "</a></p>";
  931.       $msg .= "<p>Thank you</p>";
  932.  
  933.                 wp_mail($_POST["mail"], "Invitation to " . $deceased_name . "'s memorial page", $msg, $headers);
  934.                 echo "Your invitation has been sent to ".$_POST["mail"];
  935.         } else {
  936.                 echo "Your invitation was not sent as the email address is not valid.";
  937.         }
  938.   }
  939.  
  940. ?>
  941.              
  942.              <p>
  943.  
  944.                  <form method="post" action="#">
  945.              <input type="text" name="mail" value="" placeholder="E-mail">
  946.              <br/><br/>
  947.              <input type="submit" class="" name="iemail" value="Invite"  ></form>
  948.  
  949.              </p>
  950.                            
  951.         </div>
  952. <div id="rightcolumn2">
  953.  <!--slider starts-->
  954.              <!-- Start Photo Slider -->
  955.  
  956. <?php // var_dump($b); ?>
  957.  
  958. <?php if ($b) : ?>
  959. <div id="carousel" class="flexslider">
  960.     <ul class="slides">
  961.         <?php foreach ($b as $slider_gallery_image) :  ?>
  962.             <li><img src="<?php echo $slider_gallery_image; ?>"></li>
  963.         <?php endforeach; ?>
  964.     </ul>
  965. </div>
  966. <?php endif; ?>
  967.  
  968.  
  969.  
  970. <div id="single-gallery1">
  971.   <?php the_post_thumbnail('full'); ?>
  972. </div>
  973.  
  974. <!-- End Photo Slider -->
  975.  
  976.              </div>
  977.  
  978.  </div>
  979.         <div id="footer">
  980.            
  981.            <div id="footerlogo">
  982.             <img height="50" src=
  983.             "http://www.lovedforever.org.uk/wp-content/uploads/2013/09/logo-1.png"
  984.             width="160">
  985.             </div>
  986.             <div id="footmenu">
  987.             <a href='../../'>Home</a> | <a href='../../create-memorial/'>Edit Memorial</a> | <a href='../../account-4/'>Edit Account</a> | <?php echo do_shortcode('[wp-modal-login login_text="login" logout_text="logout"]') ?> | <a href="http://www.lovedforever.org.uk/privacy-policy/">Privacy Policy</a> | <a href="http://www.lovedforever.org.uk/terms-and-conditions/">Terms and Conditions</a>
  988. <br><br><?php echo do_shortcode('[addthis_shortcode_tool]') ?>
  989.             </div>
  990.            
  991.         </div>
  992.     </div>
  993.  
  994.  
  995. <script type="text/javascript">
  996.   // var $f = jQuery.noConflict(true);
  997.     $(window).load(function() {
  998.       // The slider being synced must be initialized first
  999.       $('#carousel').flexslider({
  1000.       animation: "slide",
  1001.       controlNav: false,
  1002.       animationLoop: true,
  1003.       slideshow: true,
  1004.       itemWidth: 150,
  1005.       itemMargin: 5,
  1006.       asNavFor: '#slider'
  1007.       });
  1008.        
  1009.       $('#slider').flexslider({
  1010.       animation: "slide",
  1011.       controlNav: false,
  1012.       animationLoop: false,
  1013.       slideshow: false,
  1014.       sync: "#carousel"
  1015.       });
  1016.     });
  1017. </script>
  1018.  
  1019.  
  1020.  
  1021.  
  1022.     <script type="text/javascript">
  1023.  
  1024.     $(document).ready(function() {
  1025.  
  1026.     $(".fancybox").fancybox({
  1027.         openEffect  : 'none',
  1028.         closeEffect : 'none'
  1029.     });
  1030.  
  1031.  
  1032.    
  1033.  $("a.fancybox-media").click(function() {
  1034.     $.fancybox({
  1035.             'padding'       : 0,
  1036.             'autoScale'     : false,
  1037.             'transitionIn'  : 'none',
  1038.             'transitionOut' : 'none',
  1039.             'title'         : this.title,
  1040.             'width'     : 680,
  1041.             'height'        : 495,
  1042.             'href'          : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
  1043.             'type'          : 'swf',
  1044.             'swf'           : {
  1045.                  'wmode'        : 'transparent',
  1046.                 'allowfullscreen'   : 'true'
  1047.             }
  1048.         });
  1049.  
  1050.     return false;
  1051. });
  1052.  
  1053.  
  1054.     //Default Action
  1055.     $(".tab_content").hide(); //Hide all content
  1056.     $("ul.tabs li:first").addClass("active").show(); //Activate first tab
  1057.     $(".tab_content:first").show(); //Show first tab content
  1058.      
  1059.     //On Click Event
  1060.     $("ul.tabs li").click(function() {
  1061.         $("ul.tabs li").removeClass("active"); //Remove any "active" class
  1062.         $(this).addClass("active"); //Add "active" class to selected tab
  1063.         $(".tab_content").hide(); //Hide all tab content
  1064.         var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
  1065.         $(activeTab).fadeIn(); //Fade in the active content
  1066.         return false;
  1067.     });
  1068.  
  1069.  
  1070.     });
  1071.  
  1072.     function trim(str, chars) {  
  1073.     return ltrim(rtrim(str, chars), chars);  
  1074. }  
  1075.  
  1076. function ltrim(str, chars) {  
  1077.     chars = chars || "\\s";  
  1078.     return str.replace(new RegExp("^[" + chars + "]+", "g"), "");  
  1079. }  
  1080.  
  1081. function rtrim(str, chars) {  
  1082.     chars = chars || "\\s";  
  1083.     return str.replace(new RegExp("[" + chars + "]+$", "g"), "");  
  1084. }  
  1085.  
  1086. function MakeLinkSafe(){  
  1087.     var e = document.getElementById('embed')  
  1088.     str = trim(e.value);  
  1089.     if(str.substr(0, 7) == 'http://'){  
  1090.         e.value = str.substr(7);  
  1091.     }  else if(str.substr(0, 8) == 'https://'){  
  1092.         e.value = str.substr(8);  
  1093.     }  
  1094.     return true;  
  1095. }  
  1096.  
  1097.  
  1098.         function toggleSound(data) {
  1099.             var currentClass = data.getAttribute("class");
  1100.  
  1101.             if (currentClass == "sound_on") {
  1102.                 $("#jquery_jplayer_2").jPlayer("mute");
  1103.                 $("#soundButton").removeClass("sound_on");
  1104.                 $("#soundButton").addClass("sound_off");
  1105.             } else if (currentClass == "sound_off") {
  1106.                 $("#jquery_jplayer_2").jPlayer("unmute");
  1107.                 $("#soundButton").removeClass("sound_off");
  1108.                 $("#soundButton").addClass("sound_on");
  1109.             }
  1110.         }
  1111.  
  1112.     </script>
  1113.  
  1114. <script type="text/javascript">
  1115. jQuery(function($) {
  1116.     $('.tabs a').click(function() {
  1117.         location.hash = $(this).attr('href');
  1118.     });
  1119.     var _hash = location.hash;
  1120.     $('a[href='+_hash+']').trigger('click');
  1121. });
  1122. </script>
  1123.  
  1124. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=4c2a989ffc05cd7e78b3d938916ad03f"></script>
  1125. <script type="text/javascript">
  1126. var addthis_config = {"data_track_clickback":false,"data_track_addressbar":false,"data_track_textcopy":false,"ui_atversion":"300"};
  1127. var addthis_product = 'wpp-3.5.9';
  1128. </script>
  1129. <script type="text/javascript" src="http://ct1.addthis.com/static/r07/core126.js"></script>
  1130. <script type="text/javascript">addthis.layers({});</script>
  1131. <script type="text/javascript" src="http://www.lovedforever.org.uk/wp-content/plugins/wp-modal-login/js/wp-modal-login.min.js?ver=2.0.6"></script>
  1132.  
  1133. <script>
  1134.  
  1135.   function openFbPopUp(name,link,image,caption,description) {
  1136.         FB.ui(
  1137.           {
  1138.             method: 'feed',
  1139.             name: name,
  1140.             link: link,
  1141.             redirect_uri: link,
  1142.             picture: image,
  1143.             caption: caption,
  1144.             description: description
  1145.           },
  1146.           function(response) {
  1147.           }
  1148.         );
  1149.     }
  1150.  
  1151. </script>
  1152.  
  1153. </body>
  1154. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement