| @@ -1,22 +1,29 @@ | ||
| 1 | -<?php | |
| 2 | -// Create a section. | |
| 3 | -CSF::createSection( | |
| 4 | - $prefix, | |
| 5 | - [ | |
| 6 | - 'title' => __( 'Shortcodes', 'bbp-core' ), | |
| 7 | - 'icon' => 'dashicons dashicons-editor-code', | |
| 8 | - 'fields' => [ | |
| 9 | - [ | |
| 10 | - 'id' => 'bbpc_shortcode', | |
| 11 | - 'type' => 'text', | |
| 12 | - 'title' => esc_html__( 'My Profile URL', 'bbp-core' ), | |
| 13 | - 'subtitle' => esc_html__( 'Use this shortcode to get the user\'s own profile URL', 'bbp-core' ), | |
| 14 | - 'default' => '[bbpc_profile_link]', | |
| 15 | - 'attributes' => array( | |
| 16 | - 'readonly' => 'readonly', | |
| 17 | - ), | |
| 18 | - 'class' => 'st-pro-notice' | |
| 19 | - ] | |
| 20 | - ], | |
| 21 | - ] | |
| 1 | +<?php | |
| 2 | +// Create a section. | |
| 3 | +CSF::createSection( | |
| 4 | + $prefix, | |
| 5 | + [ | |
| 6 | + 'title' => __( 'Shortcodes', 'forumax' ), | |
| 7 | + 'icon' => 'dashicons dashicons-editor-code', | |
| 8 | + 'fields' => [ | |
| 9 | + [ | |
| 10 | + 'id' => 'bbpc_shortcode', | |
| 11 | + 'type' => 'text', | |
| 12 | + 'title' => esc_html__( 'My Profile URL', 'forumax' ), | |
| 13 | + 'subtitle' => esc_html__( 'Use this shortcode to get the user\'s own profile URL', 'forumax' ), | |
| 14 | + 'default' => '[forumax_profile_link]', | |
| 15 | + 'attributes' => array( | |
| 16 | + 'readonly' => 'readonly', | |
| 17 | + ), | |
| 18 | + 'class' => 'st-pro-notice' | |
| 19 | + ], | |
| 20 | + [ | |
| 21 | + 'title' => esc_html__('Login Form Shortcode', 'forumax'), | |
| 22 | + 'subtitle' => esc_html__('You can replace the default login form with your own login form shortcode.', 'forumax'), | |
| 23 | + 'id' => 'topic_login_shortcode', | |
| 24 | + 'type' => 'text', | |
| 25 | + 'default' => '[forumax_login_form]', | |
| 26 | + ] | |
| 27 | + ], | |
| 28 | + ] | |
| 22 | 29 | ); |