Changeset 2100582
- Timestamp:
- 06/04/2019 06:12:49 PM (7 years ago)
- Location:
- post-thanks
- Files:
-
- 2 edited
-
tags/1.1/postthankyou.php (modified) (5 diffs)
-
trunk/postthankyou.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-thanks/tags/1.1/postthankyou.php
r2100580 r2100582 29 29 <br> 30 30 <br> 31 <div class="container" >31 <div class="container" style="border:solid; border-color:blue; padding:15px;"> 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 name="text">' . ( isset( $_POST['text']) ? $text : null ) . '</textarea>45 <textarea cols="21" rows="4" 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.) 52 53 </div> 53 54 <br> … … 60 61 61 62 if (!isset($_POST['text'])) { 62 echo '<br><br>Please enter a custom text to update in all posts.'; 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>'; 63 65 exit; 64 66 } else { … … 75 77 add_option( 'post_thanks_text_displayhide', $showhide ); 76 78 update_option( 'post_thanks_text_displayhide', $showhide ); 79 echo '<div style="border:solid; padding:15px;">Following text added in end of all posts: <br><div style="color:'.get_option( 'post_thanks_text_color' ).'">'. 80 get_option( 'post_thanks_text' ).'</div></div>'; 77 81 } 78 82 -
post-thanks/trunk/postthankyou.php
r2100580 r2100582 77 77 add_option( 'post_thanks_text_displayhide', $showhide ); 78 78 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' ).'">'.79 echo '<div style="border:solid; padding:15px;">Following text added in end of all posts: <br><div style="color:'.get_option( 'post_thanks_text_color' ).'">'. 80 80 get_option( 'post_thanks_text' ).'</div></div>'; 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.