You are here

function theme_classic_formfactor in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2

Same name and namespace in other branches
  1. 7 plugins/export_ui/sexybookmarks_profiles.inc \theme_classic_formfactor()
1 theme call to theme_classic_formfactor()
sexybookmarks_profiles_export_ui_form in plugins/export_ui/sexybookmarks_profiles.inc
SexyBookmarks profiles settings form.

File

plugins/export_ui/sexybookmarks_profiles.inc, line 413

Code

function theme_classic_formfactor($variables) {
  $form_element = $variables['form_element'];
  $default = $form_element['#default_value'];
  $checked1 = 'checked="checked"';
  $checked2 = 'checked="checked"';
  if ($default == 32) {
    $checked1 = '';
  }
  else {
    $checked2 = '';
  }
  return '<div id="classic_div"><div class="form-item form-type-radios form-item-config-classic-options" style="display: block;">
 <div class="form-radios" id="edit-config-classic-options"><div class="form-item form-type-radio form-item-config-classic-options">
 <input type="radio" class="form-radio"' . $checked1 . '  value="16" name="config[classic_options]" id="edit-config-classic-options-1">  <img src="http://www.shareaholic.com/media/images/classicbookmark_16x16.png">

</div>
<div class="form-item form-type-radio form-item-config-classic-options">
 <input type="radio" class="form-radio"' . $checked2 . '  value="32" name="config[classic_options]" id="edit-config-classic-options-2">  <img src="http://www.shareaholic.com/media/images/classicbookmark_32x32.png">

</div>
</div>
</div>
</div>';
}