 
			
			 
			
			
			
			
			
				 
			
			 
			
				 
			
			 
			
			 
			
				
//---------------------------------- PRIVATE MESSAGE SYSTEM FORM --------------------------------------
  function new_message_fep_shortcode($atts){
     global $user_ID, $post, $wp;
     
     $token = fep_create_nonce('fep_message');
 
     $to_id = $post->post_author;
     $to = get_the_author_meta('user_login', $to_id);
     $current_url = home_url(add_query_arg(array(),$wp->request));
 
     ob_start();
     ?>
     <form class="form_contact" action="<?php echo esc_url( home_url( 'messages/?fepaction=newmessage' ) ) ?>" method="post" enctype="multipart/form-data">
          <input type="hidden" id="fep-message-top" name="message_top" autocomplete="off" value="<?php echo get_the_author_meta('display_name', $to_id); ?>">
          <input type="hidden" id="fep-message-to" name="message_to" autocomplete="off" value="<?php echo $to; ?>">
               
               <label>Subject</label><br />
               <input type="text" id="enq" name="message_title" placeholder="Subject" maxlength="65" value="" class="text">
               <div class="clr"></div>
            <label>Message</label><br />
            <textarea id="enq" name="message_content" class="text"></textarea>
       
        
        <input type='hidden' name='message_from' value='<?php echo $user_ID; ?>' />
        <input type='hidden' name='parent_id' value='<?php echo $parent_id; ?>' />
        <input type='hidden' name='token' value='<?php echo $token; ?>' /><br/>
        <input type='hidden' name='redirect' value='<?php echo $current_url; ?>' /><div class="clr"></div>
        <button type="submit" class="fep-button btn_orange" name="fep_action" value="newmessage">Send Message</button>
    </form>
    <?php
    $newMsg .= ob_get_contents();
    ob_end_clean();
    echo $newMsg;
    return $newMsg;
   }
  add_shortcode( 'new_message_fep', 'new_message_fep_shortcode' );


 
			
			 
			
			
			
			
			
				 
			
			 
			
				 
			
			 
			
			 
			
				 
                    
                
                
					
					
				
			

 
			
			 
			
			
			
			
			
				 
			
			 
			
				 
			
			 
			
			
			
			
			
				 
			
			 
			
				 
			
			 
			
			 
			
				

hzmhzm (February 6th, 2019)
 
			
			 
			
			 
			
				

 
			
			 
			
			
			
			
			
				 
			
			 
			
				 
			
			 
			
			 
			
				


june172014 (April 16th, 2017)
There are currently 1 users browsing this thread. (0 members and 1 guests)