'expiry-text', 'title' => __( 'Expiry Msgs', 'affiliate-coupon-lite'), 'fields' => array( array( 'id' => 'text', 'name' => 'expiry_msg', 'title' => __( 'Enter The Expiry Msg To Display Before Expiry Date', 'affiliate-coupon-lite') ), array( 'id' => 'text', 'name' => 'expiry_no_msg', 'title' => __( 'Enter The Expiry Msg For The Coupon Which Has No Expiry Date', 'affiliate-coupon-lite') ), ), ), array( 'id' => 'button-text', 'title' => __( 'Coupon/Deal Button', 'affiliate-coupon-lite'), 'fields' => array( array( 'id' => 'text', 'name' => 'coupon_hover_text', 'title' => __( 'Enter Coupon Button Hover Text', 'affiliate-coupon-lite') ), array( 'id' => 'text', 'name' => 'deal_hover_text', 'title' => __( 'Enter Deal Button Hover Text', 'affiliate-coupon-lite') ), array( 'id' => 'text', 'name' => 'deal_activated_text', 'title' => __( 'Enter Deal Activated Text', 'affiliate-coupon-lite') ), ), ), array( 'id' => 'button-color', 'title' => __( 'Coupon/Deal Button Color', 'affiliate-coupon-lite'), 'fields' => array( array( 'id' => 'color', 'name' => 'coupon_btn_color', 'title' => __( 'Enter Coupon Button Color', 'affiliate-coupon-lite') ), array( 'id' => 'color', 'name' => 'coupon_code_bg_color', 'title' => __( 'Enter Coupon Code Background Color', 'affiliate-coupon-lite') ), array( 'id' => 'color', 'name' => 'deal_button_color', 'title' => __( 'Enter Deal Button Color', 'affiliate-coupon-lite') ), array( 'id' => 'color', 'name' => 'deal_button_hover_color', 'title' => __( 'Enter Deal Button Hover Color', 'affiliate-coupon-lite') ), array( 'id' => 'color', 'name' => 'deal_activated_bg_color', 'title' => __( 'Enter Deal Activated Background Color', 'affiliate-coupon-lite') ), ), ), ); return $conf; } /** * Custom Setting Section Markup * * @since 1.0.0 * * @param string $page on which section will be seen * * @return void */ function custom_do_settings_sections( $page ) { global $wp_settings_sections, $wp_settings_fields; if ( ! isset( $wp_settings_sections[ $page ] ) ) { return; } foreach ( (array) $wp_settings_sections[ $page ] as $section ) { if ( $section['callback'] ) { call_user_func( $section['callback'], $section ); } if ( ! isset( $wp_settings_fields ) || ! isset( $wp_settings_fields[ $page ] ) || ! isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) { continue; } echo '
');
} else {
_e( '