Changeset 2100580
- Timestamp:
- 06/04/2019 06:09:28 PM (7 years ago)
- Location:
- post-thanks
- Files:
-
- 2 edited
-
tags/1.1/postthankyou.php (modified) (6 diffs)
-
trunk/postthankyou.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-thanks/tags/1.1/postthankyou.php
r2100577 r2100580 29 29 <br> 30 30 <br> 31 <div class="container" style="border:solid; border-color:blue; padding:15px;">31 <div class="container"> 32 32 <h2>Post Thank You ---- Menu</h2> 33 33 <form action="' . $_SERVER['REQUEST_URI'] . '" method="post"> … … 43 43 <div> 44 44 <p>Enter your text here:</p> 45 <textarea cols="21" rows="4"name="text">' . ( isset( $_POST['text']) ? $text : null ) . '</textarea>45 <textarea name="text">' . ( isset( $_POST['text']) ? $text : null ) . '</textarea> 46 46 </div> 47 47 <br> … … 50 50 <p>Select text color:</p> 51 51 <input type ="text" name="textcolor">' . ( isset( $_POST['textcolor']) ? $textcolor : null ) . ' 52 <br>(Color name or Hex codes supported.)53 52 </div> 54 53 <br> … … 61 60 62 61 if (!isset($_POST['text'])) { 63 echo '<div style="border:solid; padding:15px;">Current text active is: <br><div style="color:'.get_option( 'post_thanks_text_color' ).'">'. 64 get_option( 'post_thanks_text' ).'</div></div>'; 62 echo '<br><br>Please enter a custom text to update in all posts.'; 65 63 exit; 66 64 } else { … … 77 75 add_option( 'post_thanks_text_displayhide', $showhide ); 78 76 update_option( 'post_thanks_text_displayhide', $showhide ); 79 echo '<div style="border:solid; padding:15px;">Following text updated: <br><div style="color:'.get_option( 'post_thanks_text_color' ).'">'.80 get_option( 'post_thanks_text' ).'</div></div>';81 77 } 82 78 … … 89 85 90 86 if($post_thanks_text == ''){ 91 echo "Please enter text";87 return $content; 92 88 } 93 89 else { -
post-thanks/trunk/postthankyou.php
r2100577 r2100580 89 89 90 90 if($post_thanks_text == ''){ 91 echo "Please enter text";91 return $content; 92 92 } 93 93 else {
Note: See TracChangeset
for help on using the changeset viewer.