Changeset 2100577
- Timestamp:
- 06/04/2019 06:00:41 PM (7 years ago)
- Location:
- post-thanks
- Files:
-
- 2 edited
-
tags/1.1/postthankyou.php (modified) (7 diffs)
-
trunk/postthankyou.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-thanks/tags/1.1/postthankyou.php
r2100545 r2100577 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 updated: <br><div style="color:'.get_option( 'post_thanks_text_color' ).'">'. 80 get_option( 'post_thanks_text' ).'</div></div>'; 77 81 } 78 82 … … 85 89 86 90 if($post_thanks_text == ''){ 87 return $content .= '<div style = "color: '.$post_thanks_text_color.'; display: '.$post_thanks_text_showhide.';" class="post_thanks">Thank you for reading!</div>';91 echo "Please enter text"; 88 92 } 89 93 else { … … 91 95 } 92 96 } 93 //Pending display: block or none not working yet. Color style code working. -
post-thanks/trunk/postthankyou.php
r2100545 r2100577 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 updated: <br><div style="color:'.get_option( 'post_thanks_text_color' ).'">'. 80 get_option( 'post_thanks_text' ).'</div></div>'; 77 81 } 78 82 … … 85 89 86 90 if($post_thanks_text == ''){ 87 return $content .= '<div style = "color: '.$post_thanks_text_color.'; display: '.$post_thanks_text_showhide.';" class="post_thanks">Thank you for reading!</div>';91 echo "Please enter text"; 88 92 } 89 93 else { … … 91 95 } 92 96 } 93 //Pending display: block or none not working yet. Color style code working.
Note: See TracChangeset
for help on using the changeset viewer.