/** * Adds border width, color and style settings on one line. * * @author Gary Jones * @param string $id ID of the element * @param string $label Displayed label * @return string HTML markup * @since 1.0 */ function premise_add_border_setting($id, $label) { return array(premise_add_size_setting($id, $label), premise_add_color_setting($id . '_color', ''), premise_add_select_setting($id . '_style', '', 'border')); }
function premise_settings_social_share() { premise_setting_line(premise_add_background_color_setting('teaser_share_box_inside_background', 'Share Box Background')); premise_setting_line(premise_add_border_setting('teaser_share_box_border', 'Share Box Border')); premise_setting_line(premise_add_border_setting('teaser_share_box_inside_border', 'Share Box Inner Border')); premise_setting_line(premise_add_color_setting('teaser_share_box_color', 'Share Box Color')); premise_setting_line(premise_add_size_setting('teaser_share_box_border_radius', 'Share Box Rounded Corner Radius')); echo '<br />'; premise_setting_line(premise_add_background_color_setting('teaser_share_icons_background', 'Share Icons Background')); premise_setting_line(premise_add_color_setting('teaser_share_icons_border_color', 'Share Icons Border Color')); premise_setting_line(premise_add_color_setting('teaser_share_icons_color', 'Share Icons Color')); premise_setting_line(premise_add_background_color_setting('teaser_share_icons_hover_background', 'Share Icons Hover Background')); premise_setting_line(premise_add_color_setting('teaser_share_icons_hover_border_color', 'Share Icons Hover Border Color')); premise_setting_line(premise_add_color_setting('teaser_share_icons_hover_color', 'Share Icons Hover Color')); do_action('premise_settings_optin'); }