本文整理汇总了PHP中Varien_Data_Form_Element_Abstract::getComment方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Data_Form_Element_Abstract::getComment方法的具体用法?PHP Varien_Data_Form_Element_Abstract::getComment怎么用?PHP Varien_Data_Form_Element_Abstract::getComment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Varien_Data_Form_Element_Abstract
的用法示例。
在下文中一共展示了Varien_Data_Form_Element_Abstract::getComment方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getElementHtml
/**
* Override method to output our custom HTML with JavaScript
*
* @param Varien_Data_Form_Element_Abstract $element
*
* @return String
*/
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
// Only do validation if module is installed and active
if ($this->helper('bronto_common')->isModuleInstalled('Bronto_Verify')) {
$_html = array();
// Create form object to grab scope details
$form = new Mage_Adminhtml_Block_System_Config_Form();
$scope = $form->getScope();
$scopeId = $form->getScopeId();
$element->setData('onchange', "validateToken(this.form, this);");
$element->setData('after_element_html', "\n <span id=\"loadingMask\" style=\"display: none; width: 100px;\">\n <span class=\"loader\" id=\"loading-mask-loader\" style=\"background: url(" . $this->getSkinUrl('bronto/images/ajax-loader-tr.gif') . ") no-repeat 0 50%; background-size: 20px; padding:3px 0 3px 25px;\">" . $this->__(' Verifying...') . "</span>\n <span id=\"loading-mask\"></span>\n </span>\n <script>\n /**\n * Function to Toggle Form Elements Disabled Status Based On Token Status\n */\n function toggleDisabled(form, element) {\n // Get Status Text Element\n var statusText = \$('bronto-validation-status-text');\n // If Status Text Element has Class of 'invalid' or empty, set boolean disabled value\n var disabled = (statusText.className == 'invalid' || statusText.className == '');\n\n // Cycle through form elements and disable/enable elements\n for (i = 0; i < form.length; i++) {\n if (form.elements[i].id != '{$element->getId()}' &&\n form.elements[i].id != 'bronto_settings_enabled' &&\n form.elements[i].id != 'verify-button' &&\n form.elements[i].type != 'hidden' &&\n form.elements[i].name.indexOf('groups') == 0) {\n form.elements[i].disabled = disabled;\n }\n }\n\n // Get Last Element of Form, and if the class name is 'note', empty the html value\n var last = element.parentNode.lastChild;\n if (last.className == 'note') {\n last.innerHTML = '';\n }\n }\n\n function trim1 (str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*\$/, '');\n }\n\n function validateToken(form, element) {\n var token = trim1(\$('{$element->getId()}').value);\n var statusText = \$('bronto-validation-status');\n var reloadUrl = '{$this->getUrl('*/apitoken/ajaxvalidation')}';\n\n statusText.innerHTML = \$('loadingMask').innerHTML;\n statusText.removeClassName('valid').removeClassName('invalid');\n\n new Ajax.Request(reloadUrl, {\n method: 'post',\n parameters: {token: token, scope: '{$scope}', scopeid: '{$scopeId}'},\n onComplete: function(transport) {\n Element.hide('loadingMask');\n statusText.innerHTML = transport.responseText;\n\n toggleDisabled(form, element);\n }\n });\n\n return false;\n }\n </script>\n ");
if (!$this->helper('bronto_common')->getApiToken()) {
$element->setComment('<span style="color:red;font-weight:bold">Please enter your Bronto API key here.</span>');
$buttonHtml = "";
} else {
$button = $this->getLayout()->createBlock('bronto_verify/adminhtml_widget_button_runtoken')->toHtml();
$buttonHtml = "<p class=\"form-buttons\" id=\"verify-button\">{$button}</p>";
}
// Show Roundtrip Install Verification Status
$_html[] = $buttonHtml . '<style>' . ' #bronto-validation-status { color:grey; font-weight:bold; }' . ' #bronto-validation-status .valid { color: green; }' . ' #bronto-validation-status .invalid { color: red; }' . '</style>' . '<strong style="float: left; width: 80px">Last Status:</strong> ' . '<span id="bronto-validation-status">' . $this->helper('bronto_verify/apitoken')->getAdminScopedApitokenStatusText() . '</span>';
// Show everything Else
if (!empty($_html)) {
$elementHtml = $element->getElementHtml();
if ($element->getComment()) {
$elementHtml .= '<p class="note"><span>' . $element->getComment() . '</span></p>';
$element->setComment(null);
}
$elementHtml .= '<div style="margin-top:10px">';
$elementHtml .= implode('<br />', $_html);
$elementHtml .= '</div>';
return $elementHtml;
}
}
return parent::_getElementHtml($element);
}
示例2: render
/**
* Render element html
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$origData = $element->getOriginalData();
$html = sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4>%s</td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), isset($origData['note']) ? '<div style="margin-top:10px">' . $origData['note'] . '</div>' : '');
if ($element->getComment()) {
$html .= '<p class="note"><span>' . $element->getComment() . '</span></p>';
}
return $html;
}
示例3: render
/**
* render config row
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$id = $element->getHtmlId();
$html = '<tr id="row_' . $id . '">' . '<td class="label" colspan="3">';
$marginTop = $element->getComment() ? $element->getComment() : '0px';
$html .= '<div style="margin-top: ' . $marginTop . '; font-weight: bold; border-bottom: 1px solid #dfdfdf;">';
$html .= $element->getLabel();
$html .= '</div></td></tr>';
return $html;
}
示例4: _getHeaderCommentHtml
/**
* Return header comment part of html for fieldset
* Add the Export Settings button
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
protected function _getHeaderCommentHtml($element)
{
$html = $element->getComment() ? '<div class="comment">' . $element->getComment() . '</div>' : '';
$url = Mage::helper('adminhtml')->getUrl('adminhtml/ExportAdyenSettings');
$html .= <<<HTML
<div class="button-container">
<button type="button" class="button" id="{$element->getHtmlId()}-export" onclick="location.href='{$url}'">
{$this->__('Export Settings')}
</button>
</div>
HTML;
return $html;
}
示例5: render
/**
* Renders element
*
* @param Varien_Data_Form_Element_Abstract $element Element to render
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$logoSrc = $this->getSkinUrl('monitoring/images/firegento.jpg');
$html = '
<tr id="row_%s">
<td colspan="2">
<div class="box">
<p>
<a href="' . self::URL . '" target="_blank" title="' . $this->__('Go to Firegento Website') . '">
<img src="' . $logoSrc . '" alt="' . $this->__('Firegento') . '" />
</a>
</p>
<p>%s</p>
<ul>%s</ul>
</div>
</td>
</tr>
';
$linksHtml = '';
/** @var $links Mage_Core_Model_Config_Element */
$links = $element->getFieldConfig()->links;
if ($links) {
foreach ($links->children() as $_link) {
$_linkLabel = $this->__((string) $_link->label);
$linksHtml .= sprintf('<li><a href="%s" target="_blank">%s</a>', $_link->url, $_linkLabel) . '</li>';
}
}
return sprintf($html, $element->getHtmlId(), $element->getComment(), $linksHtml);
}
示例6: render
public function render(Varien_Data_Form_Element_Abstract $element)
{
$html = '';
$html .= '<td class="" colspan="4">';
$html .= '<div class="comment">' . $element->getComment() . '</div>';
$html .= '</td>';
return $this->_decorateRowHtml($element, $html);
}
示例7: render
/**
* Render element html
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$useContainerId = $element->getData('use_container_id');
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" style="max-width:580px;"><h4 id="%s">%s</h4><p class="subheading-note" style="font-size:11px;font-style:italic;color:#999;"><span>%s</span></p></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), $element->getComment());
//Original:
/*return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h2 id="%s">%s</h2></td></tr>',
$element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
);*/
}
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:15,代码来源:Glace_Menumobile_Block_Adminhtml_System_Config_Form_Field_Heading.php
示例8: render
/**
* @see parent
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$exampleCode = 'ABC123';
$store = Mage::app()->getStore();
$helper = Mage::helper('bronto_common/coupon');
$comment = $element->getComment();
$comment = str_replace('{baseUrl}', $store->getUrl('/'), $comment);
$comment = str_replace('{code}', $helper->getCouponParam(), $comment);
$comment = str_replace('{example}', $exampleCode, $comment);
$comment = str_replace('{error}', $helper->getErrorCodeParam(), $comment);
$element->setComment($comment);
return parent::render($element);
}
示例9: _getHeaderCommentHtml
/**
* Return header comment part of html for fieldset
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
protected function _getHeaderCommentHtml($element)
{
$info = array('easypdfinvoice' => array('label' => Mage::helper('pdfpro')->__('Easy PDF Invoice Version'), 'value' => Mage::helper('pdfpro')->getVersion()));
$html = '
<div style="margin-bottom: 20px; display: block; padding: 5px; position: relative; border: 1px dashed #FF0000;">
<table class="form-list" cellspacing="0">
';
$transport = new Varien_Object($info);
Mage::dispatchEvent('ves_pdfpro_config_version', array('transport' => $transport));
$info = $transport->getData();
foreach ($info as $row) {
$html .= '<tr><td class="label">' . $row['label'] . '</td><td class="value"><strong style="color: #1f5e00;">' . $row['value'] . '</strong></td></tr>';
}
$html .= '
</table>
</div>';
return $html . $element->getComment();
}
示例10: getElementComment
/**
* Getter for element comment
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function getElementComment(Varien_Data_Form_Element_Abstract $element)
{
return $element->getComment();
}
示例11: _getHeaderCommentHtml
/**
* Return header comment part of html for fieldset
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
protected function _getHeaderCommentHtml($element)
{
return $element->getComment() ? '<div class="comment">' . $element->getComment() . '</div>' : '';
}
示例12: render
/**
* Render fieldset html
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$html = $element->getComment();
if (!$html) {
$html = $element->getText();
}
$lruserdataempty = true;
// get id here
$customerId = $this->getRequest()->getParam('id');
if (!empty($customerId)) {
?>
<style type="text/css">
.sociallogin_table {
background-color: #efefef;
border: 1px solid #ccc;
margin-bottom: 10px;
border-collapse: collapse;
font-family: sans-serif;
font-size: 12px;
line-height: 1.4em;
margin-left: 2px;
width: 100%;
clear: both
}
.sociallogin_table th {
padding: 10px;
text-align: left;
vertical-align: top;
width: 200px;
word-break: break-all;
}
.ui-tabs {
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
padding: .2em;
}
.ui-tabs .ui-tabs-nav {
margin: 0;
padding: .2em .2em 0;
}
.ui-tabs .ui-tabs-nav li {
list-style: none;
float: left;
position: relative;
top: 0;
margin-right: 6px;
border-bottom-width: 0;
padding: 0;
white-space: nowrap;
}
.ui-tabs .ui-tabs-nav li a {
float: left;
padding: .5em 1em;
text-decoration: none;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
margin-bottom: -1px;
padding-bottom: 1px;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
.ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
cursor: text;
}
.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
cursor: pointer;
}
.ui-tabs .ui-tabs-panel {
display: block;
border-width: 0;
dding-left: 3px;
background: none;
}
.ui-tooltip {
padding: 8px;
position: absolute;
z-index: 9999;
max-width: 300px;
-webkit-box-shadow: 0 0 5px #aaa;
box-shadow: 0 0 5px #aaa;
}
body .ui-tooltip {
border-width: 2px;
}
ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
border: 1px solid #d3d3d3;
background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
font-weight: normal;
color: #555555;
}
//.........这里部分代码省略.........
示例13: render
/**
* Render element html
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5">' . '<div id="system-fieldset-sub-head-comment">%s</div></td></tr>', $element->getHtmlId(), $element->getComment());
}
示例14: render
/**
* Render fieldset html
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$html = $element->getComment();
if (!$html) {
$html = $element->getText();
}
?>
<fieldset class="loginRadiusFieldset" style="margin-right:13px; background-color:#EAF7FF; border-color:rgb(195, 239, 250); padding-bottom:25px; width:65%">
<h4 style="color:#000"><strong><?php
echo $this->__('Thank you for installing the LoginRadius Social Plugin!');
?>
</strong></h4>
<p><?php
echo $this->__('To activate the extension, you will need to first configure it (manage your desired social networks, etc.) from your LoginRadius account. If you do not have an account, click');
?>
<a target="_blank" href="http://www.loginradius.com/"><?php
echo $this->__('here');
?>
</a> <?php
echo $this->__('and create one for FREE!');
?>
</p>
<p>
<?php
echo $this->__('We also offer Social Plugins for');
?>
<a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#wordpress-plugin" target="_blank">Wordpress</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#joomla-extension" target="_blank">Joomla</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#drupal-module" target="_blank">Drupal</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#vbullentin-plugin" target="_blank">vBulletin</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#vanilla-add-ons" target="_blank">VanillaForum</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#oscommerce-add-ons" target="_blank">osCommerce</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#prestashop-module" target="_blank">PrestaShop</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#xcart-extension" target="_blank">X-Cart</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#zencart-plugin" target="_blank">Zen-Cart</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#dotnetnuke-module" target="_blank">DotNetNuke</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms/#smf" target="_blank">SMF</a> <?php
echo $this->__('and');
?>
<a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms/#phpbb" target="_blank">phpBB</a> !
</p>
<div style="margin-top:10px">
<a style="text-decoration:none;" href="https://www.loginradius.com/" target="_blank">
<input class="form-button" type="button" value="<?php
echo $this->__('Set up my FREE account!');
?>
">
</a>
<a class="loginRadiusHow" target="_blank" href="http://support.loginradius.com/customer/portal/articles/593954">(<?php
echo $this->__('How to set up an account?');
?>
)</a>
</div>
</fieldset>
<!-- Get Updates -->
<fieldset class="loginRadiusFieldset" style="width:26%; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); padding-bottom:6px;">
<h4 style="border-bottom:#d7d7d7 1px solid;"><strong><?php
echo $this->__('Get Updates');
?>
</strong></h4>
<p><?php
echo $this->__('To receive updates on new features, future releases, etc, please connect with us via Facebook');
?>
</p>
<div>
<div style="float:left">
<iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 46px;
height: 61px; margin-right:10px" src="//www.facebook.com/plugins/like.php?app_id=194112853990900&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLoginRadius%2F119745918110130&send=false&layout=box_count&width=90&show_faces=false&action=like&colorscheme=light&font=arial&height=90" data-original-title="Like us on Facebook"></iframe>
</div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</fieldset>
<!-- Help & Documentation -->
<fieldset class="loginRadiusHelpDiv" style="margin-right:13px; width:65%">
<h4 style="border-bottom:#d7d7d7 1px solid;"><strong><?php
echo $this->__('Help & Documentations');
?>
</strong></h4>
<ul style="float:left; margin-right:43px">
<li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/1056696-magento-social-login-installation-configuration-and-troubleshooting"><?php
echo $this->__('Extension Installation, Configuration and Troubleshooting');
?>
</a></li>
<li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/677100-how-to-get-loginradius-api-key-and-secret"><?php
echo $this->__('How to get LoginRadius API Key & Secret');
?>
</a></li>
<li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/1056696-magento-social-login-installation-configuration-and-troubleshooting#multisite"><?php
echo $this->__('Magento Multisite Feature');
?>
</a></li>
<li><a target="_blank" href="https://www.loginradius.com/loginradius/product-overview"><?php
echo $this->__('LoginRadius Products');
?>
</a></li>
</ul>
<ul style="float:left; margin-right:43px">
<li><a target="_blank" href="http://community.loginradius.com/"><?php
echo $this->__('Discussion Forum');
?>
</a></li>
<li><a target="_blank" href="https://www.loginradius.com/loginradius/team"><?php
echo $this->__('About LoginRadius');
//.........这里部分代码省略.........
示例15: render
/**
* Render fieldset html
*
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
public function render(Varien_Data_Form_Element_Abstract $element)
{
$html = $element->getComment();
if (!$html) {
$html = $element->getText();
}
?>
<fieldset class="loginRadiusFieldset" style="margin-right:13px; background-color:#EAF7FF; border-color:rgb(195, 239, 250); padding-bottom:25px; width:65%">
<h4 style="color:#000"><strong>Thank you for installing the LoginRadius Social Plugin!</strong></h4>
<p>To activate the plugin, you will need to first configure it (manage your desired social networks, etc.) from your LoginRadius account. If you do not have an account, click <a target="_blank" href="http://www.loginradius.com/">here</a> and create one for FREE!</p>
<p>
We also offer Social Plugins for <a href="http://ish.re/8PE6" target="_blank">Joomla</a>, <a href="http://ish.re/8PE9" target="_blank">Drupal</a>, <a href="http://ish.re/ADDT" target="_blank">WordPress</a>, <a href="http://ish.re/8PED" target="_blank">vBulletin</a>, <a href="http://ish.re/8PEE" target="_blank">VanillaForum</a>, <a href="http://ish.re/8PEG" target="_blank">osCommerce</a>, <a href="http://ish.re/8PEH" target="_blank">PrestaShop</a>, <a href="http://ish.re/8PFQ" target="_blank">X-Cart</a>, <a href="http://ish.re/8PFR" target="_blank">Zen-Cart</a>, <a href="http://ish.re/8PFS" target="_blank">DotNetNuke</a>, <a href="http://ish.re/8PFT" target="_blank">SMF</a> <?php
echo __('and');
?>
<a href="http://ish.re/8PFV" target="_blank">phpBB</a> !
</p>
<div style="margin-top:10px">
<a style="text-decoration:none;" href="https://www.loginradius.com/" target="_blank">
<input class="form-button" type="button" value="Set up my FREE account!">
</a>
<a class="loginRadiusHow" target="_blank" href="http://ish.re/ATM4">(How to set up an account?)</a>
</div>
</fieldset>
<!-- Get Updates -->
<fieldset class="loginRadiusFieldset" style="width:26%; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); padding-bottom:6px;">
<h4 style="border-bottom:#d7d7d7 1px solid;"><strong>Get Updates</strong></h4>
<p>To receive updates on new features, future releases, etc, please connect with us via Facebook</p>
<div>
<div style="float:left">
<iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 50px;
height: 61px; margin-right:10px" src="//www.facebook.com/plugins/like.php?app_id=194112853990900&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLoginRadius%2F119745918110130&send=false&layout=box_count&width=90&show_faces=false&action=like&colorscheme=light&font=arial&height=90" data-original-title="Like us on Facebook"></iframe>
</div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</fieldset>
<!-- Help & Documentation -->
<fieldset class="loginRadiusHelpDiv" style="margin-right:13px; width:65%">
<h4 style="border-bottom:#d7d7d7 1px solid;"><strong>Help & Documentations</strong></h4>
<ul style="float:left; margin-right:43px">
<li><a target="_blank" href="http://ish.re/9WC9">Extension Installation, Configuration and Troubleshooting</a></li>
<li><a target="_blank" href="http://ish.re/9VBI">How to get LoginRadius API Key & Secret</a></li>
<li><a target="_blank" href="http://ish.re/9Z34">Magento Multisite Feature</a></li>
<li><a target="_blank" href="http://ish.re/96M9">LoginRadius Products</a></li>
</ul>
<ul style="float:left; margin-right:43px">
<li><a target="_blank" href="http://ish.re/8PG2">Discussion Forum</a></li>
<li><a target="_blank" href="http://ish.re/96M7">About LoginRadius</a></li>
<li><a target="_blank" href="http://ish.re/8PG8">Social Plugins</a></li>
<li><a target="_blank" href="http://ish.re/6JMW">Social SDKs</a></li>
</ul>
</fieldset>
<!-- Support Us -->
<fieldset class="loginRadiusFieldset" style="margin-right:5px; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); width:26%; height:112px">
<h4 style="border-bottom:#d7d7d7 1px solid;"><strong>Support Us</strong></h4>
<p>
If you liked our FREE open-source plugin, please send your feedback/testimonial to <a href="mailto:feedback@loginradius.com">feedback@loginradius.com</a> !</p>
</fieldset>
<div style='clear:both'></div>
<div id="loginRadiusKeySecretNotification" style="background-color: rgb(255, 255, 224); border: 1px solid rgb(230, 219, 85); padding: 5px; margin-bottom: 11px; display:none">To activate the <strong>Social Login</strong>, insert LoginRadius API Key and Secret in the <strong>Social Login Basic Settings</strong> section below. <strong>Social Sharing does not require API Key and Secret</strong>.</div>
<div style='clear:both'></div>
<script type="text/javascript">
window.onload = function(){
// set 'maxlength' attribute of the tweet textarea
document.getElementById('sociallogin_advanced_postMessage_tweet').setAttribute('maxlength', '140');
// set 'maxlength' attribute of the LinkedIn post message textarea
document.getElementById('sociallogin_advanced_postMessage_linkedinParamsMessage').setAttribute('maxlength', '500');
// object having social profile data fields to show in the premium "Social Profile Data" option
var loginRadiusProfileFields = [{value: 'basic',
text: 'Basic Profile Data (All Plans) <a href="javascript:void(0)" title="Data fields include: Social ID, Social ID Provider, First Name, Middle Name, Last Name, Full Name, Nick Name, Profile Name, Birthdate, Gender, Country Code, Country Name, Thumbnail Image Url, Image Url, Local Country, Profile Country" style="text-decoration:none">(?)</a>'},
{value: 'ex_location',
text: 'Extended Location Data (Pro and Premium Plans) <a href="javascript:void(0)" title="Data fields include: Main Address, Hometown, State, City, Local City, Profile City, Profile Url, Local Language, Language" style="text-decoration:none">(?)</a>'},
{value: 'ex_profile',
text: 'Extended Profile Data (Pro and Premium Plans) <a href="javascript:void(0)" title="Data fields include: Website, Favicon, Industry, About, Timezone, Verified, Last Profile Update, Created, Relationship Status, Favorite Quote, Interested In, Interests, Religion, Political View, HTTPS Image Url, Followers Count, Friends Count, Is Geo Enabled, Total Status Count, Number of Recommenders, Honors, Associations, Hirable, Repository Url, Age, Professional Headline, Provider Access Token, Provider Token Secret, Positions, Companies, Education, Phone Numbers, IM Accounts, Addresses, Sports, Inspirational People, Skills, Current Status, Certifications, Courses, Volunteer, Recommendations Received, Languages, Patents, Favorites" style="text-decoration:none">(?)</a>'},
{value: 'linkedin_companies',
text: 'Followed Companies on LinkedIn (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of all the companies this user follows on LinkedIn." style="text-decoration:none">(?)</a>'},
{value: 'events',
text: 'Facebook Profile Events (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of events (birthdays, invitation, etc.) on the Facebook profile of user" style="text-decoration:none">(?)</a>'},
{value: 'status',
text: 'Status Messages (Pro and Premium Plans) <a href="javascript:void(0)" title="Facebook wall activity, Twitter tweets and LinkedIn status of the user, including links" style="text-decoration:none">(?)</a>'},
{value: 'posts',
text: 'Facebook Posts (Pro and Premium Plans) <a href="javascript:void(0)" title="Facebook posts of the user, including links" style="text-decoration:none">(?)</a>'},
{value: 'mentions',
text: 'Twitter Mentions (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of tweets that the user is mentioned in." style="text-decoration:none">(?)</a>'},
{value: 'groups',
text: 'Groups (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of the Facebook groups of user." style="text-decoration:none">(?)</a>'},
{value: 'contacts',
text: 'Contacts/Friend Data (Premium Plans) <a href="javascript:void(0)" title="For email providers (Google and Yahoo), a list of the contacts of user in his/her address book. For social networks (Facebook, Twitter, and LinkedIn), a list of the people in the network of user." style="text-decoration:none">(?)</a>'},
];
// get the reference to the <td> corressponding to the Social Profile Data option
var loginRadiusSocialProfileTds = document.getElementById('row_sociallogin_advanced_socialProfileData_profileDataCheckboxes').getElementsByTagName('td');
// list these profile fields in the Social Profile Data option
for(var ps = 0; ps < loginRadiusProfileFields.length; ps++){
var checkbox = document.createElement('input');
checkbox.setAttribute('type', 'checkbox');
//.........这里部分代码省略.........