function theme_perfoption in Share Buttons, Related Posts, Content Analytics - Shareaholic 7
Same name and namespace in other branches
- 7.2 plugins/export_ui/sexybookmarks_profiles.inc \theme_perfoption()
1 theme call to theme_perfoption()
- sexybookmarks_profiles_export_ui_form in plugins/
export_ui/ sexybookmarks_profiles.inc - SexyBookmarks profiles settings form.
File
- plugins/
export_ui/ sexybookmarks_profiles.inc, line 353
Code
function theme_perfoption($variables) {
$form_element = $variables['form_element'];
$default = $form_element['#default_value'];
$checked1 = 'checked="checked"';
$checked2 = 'checked="checked"';
if ($default == 0) {
$checked1 = '';
}
else {
$checked2 = '';
}
return '<div id="genopts" class="form-item form-type-radios form-item-config-perfOptionSetting">
<table><tbody>
<tr>
<td><span style="padding-bottom: 10px;color: #444444;display: block;font-weight: bold;margin-top: 10px;">Enable 3rd Party Services to use the following features:</span></td>
<td><label><input type="radio" value="1" id="edit-config-perfoptionsetting-1" name="config[perfOptionSetting]" ' . $checked1 . ' > Yes (recommended)</label></td>
<td><label><input type="radio" value="0" id="edit-config-perfoptionsetting-0" name="config[perfOptionSetting]" ' . $checked2 . ' > No</label></td>
</tr>
<tr>
<td><span style="display:block; font-size: 11px; color: #666666;margin-left: 30px;">Facebook, Twitter, LinkedIn and Delicious Share Counters</span></td>
<td><div class="icon-ok"></div></td>
<td><div class="icon-remove"></div></td>
</tr>
<tr>
<td><span style="display:block; font-size: 11px; color: #666666;margin-left: 30px;" >Shareaholic Social Analytics</span></td>
<td><div class="icon-ok"></div></td>
<td><div class="icon-remove"></div></td>
</tr>
<tr>
<td><span style="display:block; font-size: 11px; color: #666666;margin-left: 30px;">Google Analytics Social Tracking</span></td>
<td><div class="icon-ok"></div></td>
<td><div class="icon-remove"></div></td>
</tr>
</tbody></table>
</div>';
}