/**
 * Adds a dropdown setting - label and select.
 *
 * @author Gary Jones
 * @param string $id ID of the element
 * @param string $label Displayed label
 * @param string $type One of the types allowed in {@link premise_create_options()}
 * @since 0.9.5
 * @return string HTML markup
 * @version 0.9.8
 */
function premise_add_select_setting($id, $label, $type)
{
    return premise_add_label($id, $label) . '<select id="' . $id . '" name="' . 'premise-design' . '[' . $id . ']" class="' . $type . '-option-types">' . premise_create_options(premise_get_fresh_design_option($id), $type) . '</select>';
}
Beispiel #2
0
					</tr>
					<tr>
						<th scope="row"><?php 
_e('Text Font', 'premise');
?>
</th>
						<td>
							<ul>
								<li>
									<label class="descriptor" for="button-editing-font-family"><?php 
_e('Font', 'premise');
?>
</label>
									<select name="button-editing[font-family]" id="button-editing-font-family">
										<?php 
echo premise_create_options($button['font-family'], 'family');
?>
									</select>
								</li>
								<li><?php 
$this->thickbox_button_color_picker('font-color', __('Color', 'premise'), $button['font-color']);
?>
</li> 
								<li><?php 
$this->thickbox_button_select('font-size', __('Size', 'premise'), $button['font-size'], 0, 50, 'px');
?>
</li>
							</ul>
						</td>
					</tr>
					<tr>