function essb3_prepare_color_customization_by_network($tab_id, $menu_id) { global $essb_networks; $checkbox_list_networks = array(); foreach ($essb_networks as $key => $object) { $checkbox_list_networks[$key] = $object['name']; } foreach ($checkbox_list_networks as $key => $text) { ESSBOptionsStructureHelper::field_section_start($tab_id, $menu_id, $text, ''); ESSBOptionsStructureHelper::field_color($tab_id, $menu_id, 'customizer_' . $key . '_bgcolor', __('Background color', ESSB3_TEXT_DOMAIN), __('Replace all buttons background color', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_color($tab_id, $menu_id, 'customizer_' . $key . '_textcolor', __('Text color', ESSB3_TEXT_DOMAIN), __('Replace all buttons text color', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_color($tab_id, $menu_id, 'customizer_' . $key . '_hovercolor', __('Hover background color', ESSB3_TEXT_DOMAIN), __('Replace all buttons hover background color', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_color($tab_id, $menu_id, 'customizer_' . $key . '_hovertextcolor', __('Hover text color', ESSB3_TEXT_DOMAIN), __('Replace all buttons hover text color', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_file($tab_id, $menu_id, 'customizer_' . $key . '_icon', __('Icon', ESSB3_TEXT_DOMAIN), __('Replace social icon', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_textbox($tab_id, $menu_id, 'customizer_' . $key . '_iconbgsize', __('Background size for regular icon', ESSB3_TEXT_DOMAIN), __('Provide custom background size if needed (for retina templates default used is 21px 21px)', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_file($tab_id, $menu_id, 'customizer_' . $key . '_hovericon', __('Hover icon', ESSB3_TEXT_DOMAIN), __('Replace social icon', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_textbox($tab_id, $menu_id, 'customizer_' . $key . '_hovericonbgsize', __('Hover background size for regular icon', ESSB3_TEXT_DOMAIN), __('Provide custom background size if needed (for retina templates default used is 21px 21px)', ESSB3_TEXT_DOMAIN)); ESSBOptionsStructureHelper::field_section_end($tab_id, $menu_id); } }