$display[] = '</select></div>'; $display[] = '<div class="margin-8-bottom one_third"><label style="display:block;" for="' . $option['id'] . '-style">' . __('Line Height:', 'cjtheme') . '</label>'; $display[] = '<input name="' . $option['id'] . '[line-height]" id="' . $option['id'] . '-line-height" style="width: 50px; border-radius:5px; border:1px solid #ddd; text-align:center; margin-right:5px;" value="' . $saved_font['line-height'] . '">px'; $display[] = '</div>'; $display[] = '</div>'; $display[] = '<div class="cj-info margin-5-top">' . __($option['info'], 'cjtheme') . '</div>'; $display[] = '</td>'; $display[] = '</tr>'; } if ($option['type'] == 'sortable') { $display[] = '<tr class="searchable"><td class="cj-label"><label for="' . sanitize_title($option['id']) . '">' . __($option['label'], 'cjtheme') . '</label></td>'; $display[] = '<td class="cj-panel">'; $display[] = '<ul id="' . $option['id'] . '">'; $opts = null; if ($option['default'] != '') { $opts = cjtheme_sortArrayByArray($option['options'], $option['default']); } else { $opts = $option['options']; } foreach ($opts as $key => $value) { $display[] = '<li class="ui-state-default padding-10" style="background:#f7f7f7;">' . $value . ' <input type="hidden" name="' . $option['id'] . '[]" value="' . $key . '" /> </li>'; } $display[] = '</ul> <script> jQuery(function() { jQuery( "#' . $option['id'] . '" ).sortable(); jQuery( "#' . $option['id'] . '" ).disableSelection(); }); </script>'; $display[] = '</td>'; $display[] = '</tr>';
$display[] = '</select></div>'; $display[] = '<div class="margin-8-bottom one_third"><label style="display:block;" for="' . $option['id'] . '-style">' . __('Line Height:', 'cjtheme') . '</label>'; $display[] = '<input name="' . $option['id'] . '[line-height]" id="' . $option['id'] . '-line-height" style="width: 50px; border-radius:5px; border:1px solid #ddd; text-align:center; margin-right:5px;" value="' . $saved_font['line-height'] . '">px'; $display[] = '</div>'; $display[] = '</div>'; $display[] = '<div class="cj-info margin-5-top">' . __($option['info'], 'cjtheme') . '</div>'; $display[] = '</td>'; $display[] = '</tr>'; } if ($option['type'] == 'sortable') { $display[] = '<tr class="searchable"><td class="cj-label"><label for="' . sanitize_title($option['id']) . '">' . __($option['label'], 'cjtheme') . '</label></td>'; $display[] = '<td class="cj-panel">'; $display[] = '<ul id="' . $option['id'] . '">'; $opts = null; if (cjtheme_get_option($option['id']) != '') { $opts = cjtheme_sortArrayByArray($option['options'], cjtheme_get_option($option['id'])); } else { $opts = $option['options']; } foreach ($opts as $key => $value) { $display[] = '<li class="ui-state-default padding-10" style="background:#f7f7f7;">' . $value . ' <input type="hidden" name="' . $option['id'] . '[]" value="' . $key . '" /> </li>'; } $display[] = '</ul> <script> jQuery(function() { jQuery( "#' . $option['id'] . '" ).sortable(); jQuery( "#' . $option['id'] . '" ).disableSelection(); }); </script>'; $display[] = '</td>'; $display[] = '</tr>';