| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function get_settings_fields() { |
||
| 36 | $fields = array(); |
||
| 37 | |||
| 38 | // Intro. |
||
| 39 | $fields[] = array( |
||
| 40 | 'type' => 'html', |
||
| 41 | 'html' => sprintf( |
||
| 42 | /* translators: 1: TargetPay */ |
||
| 43 | __( 'Account details are provided by %1$s after registration. These settings need to match with the %1$s dashboard.', 'pronamic_ideal' ), |
||
| 44 | __( 'TargetPay', 'pronamic_ideal' ) |
||
| 45 | ), |
||
| 46 | ); |
||
| 47 | |||
| 48 | // Layout Code. |
||
| 49 | $fields[] = array( |
||
| 50 | 'filter' => FILTER_SANITIZE_STRING, |
||
| 51 | 'section' => 'general', |
||
| 52 | 'meta_key' => '_pronamic_gateway_targetpay_layoutcode', |
||
| 53 | 'title' => __( 'Layout Code', 'pronamic_ideal' ), |
||
| 54 | 'type' => 'text', |
||
| 55 | 'tooltip' => __( 'Layout code as mentioned at <strong>Sub accounts</strong> in the TargetPay dashboard.', 'pronamic_ideal' ), |
||
| 56 | ); |
||
| 57 | |||
| 58 | return $fields; |
||
| 59 | } |
||
| 61 |