[4604] trunk/htdocs/system/admin/formcontrols/tabcontrol_text.php: Add the ability to append help text to a tabcontrol_text field, similar to optionscontrol_text from the Options page.

0 views
Skip to first unread message

svn-N...@habariproject.org

unread,
Nov 21, 2010, 4:45:06 PM11/21/10
to habar...@googlegroups.com
Revision
4604
Author
chrismeller
Date
2010-11-21 21:45:05 +0000 (Sun, 21 Nov 2010)

Log Message

Add the ability to append help text to a tabcontrol_text field, similar to optionscontrol_text from the Options page. This should be expanded to the other controls, but this is the only one I need right now.

Modified Paths

Diff

Modified: trunk/htdocs/system/admin/formcontrols/tabcontrol_text.php (4603 => 4604)


--- trunk/htdocs/system/admin/formcontrols/tabcontrol_text.php	2010-11-21 21:44:13 UTC (rev 4603)
+++ trunk/htdocs/system/admin/formcontrols/tabcontrol_text.php	2010-11-21 21:45:05 UTC (rev 4604)
@@ -1,5 +1,16 @@
 
 <div class="container<?php echo ($class) ? ' ' . $class : ''?>">
 	<p class="pct25"><label for="<?php echo $id; ?>"><?php echo $this->caption; ?></label></p>
-	<p class="pct75"><input type="text" name="<?php echo $field; ?>" id="<?php echo $id; ?>" class="styledformelement" value="<?php echo Utils::htmlspecialchars( $value ); ?>"></p>
+	<p class="pct75">
+		<input type="text" name="<?php echo $field; ?>" id="<?php echo $id; ?>" class="styledformelement" value="<?php echo Utils::htmlspecialchars( $value ); ?>">
+		<?php 
+		
+			if ( isset( $helptext ) && !empty( $helptext ) ) {
+				?>
+					<span class="helptext"><?php echo Utils::htmlspecialchars( $helptext ); ?></span>
+				<?php
+			}
+		
+		?>
+	</p>
 </div>
Reply all
Reply to author
Forward
0 new messages