Source for file tos.php
Documentation is available at tos.php
* @subpackage User.profile
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* @subpackage User.profile
* Method to get the field label markup.
* @return string The field label markup.
// Get the label text from the XML element, defaulting to the element name.
// Set required to true as this field is not displayed at all if not required.
// Add CSS and JS for the TOS field
$css =
"#jform_profile_tos {width: 18em; margin: 0 !important; padding: 0 2px !important;}
#jform_profile_tos input {margin:0 5px 0 0 !important; width:10px !important;}
#jform_profile_tos label {margin:0 15px 0 0 !important; width:auto;}
$doc->addStyleDeclaration($css);
// Build the class for the label.
$class =
$class .
' required';
// Add the opening label tag and main attributes attributes.
$label .=
'<label id="' .
$this->id .
'-lbl" for="' .
$this->id .
'" class="' .
$class .
'"';
// If a description is specified, use it to build a tooltip.
$tosarticle =
$this->element['article'] ? (int)
$this->element['article'] :
1;
$link =
'<a class="modal" title="" href="index.php?option=com_content&view=article&layout=modal&id=' .
$tosarticle .
'&tmpl=component" rel="{handler: \'iframe\', size: {x:800, y:500}}">' .
$text .
'</a>';
// Add the label text and closing tag.
$label .=
'>' .
$link .
'<span class="star"> *</span></label>';
Documentation generated on Tue, 19 Nov 2013 15:15:55 +0100 by phpDocumentor 1.4.3