Example #1
0
?>
</label>
						<select name="button-settings[font-weight]" id="button-editing-font-weight">
							<?php 
echo mab_create_options($button['font-weight'], 'weight');
?>
						</select>
					</li>
					<li>
						<label for="button-editing-font-transform"><?php 
_e('Font Transform', 'mab');
?>
</label>
						<select name="button-settings[font-transform]" id="button-editing-font-transform">
							<?php 
echo mab_create_options($button['font-transform'], 'transform');
?>
						</select>
					</li>
					<li><?php 
$MabButton->buttonColorPicker('font-color', __('Color', 'mab'), $button['font-color']);
?>
</li>
					<li><?php 
$MabButton->buttonSelect('font-size', __('Size', 'mab'), $button['font-size'], 0, 50, 'px');
?>
</li>
				</ul>
			</td>
		</tr>
		<!-- TEXT SHADOW 1-->
Example #2
0
/**
 * 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 mab_create_options()}
 * @since 0.9.5
 * @return string HTML markup
 * @version 0.9.8
 */
function mab_add_select_setting($id, $label, $type)
{
    return mab_add_label($id, $label) . '<select id="' . $id . '" name="' . 'mab-design' . '[' . $id . ']" class="' . $type . '-option-types">' . mab_create_options(mab_get_fresh_design_option($id), $type) . '</select>';
}