Settings' . "\n"; echo '
' . "\n"; settings_fields( 'settings_group' ); do_settings_sections( 'borderless' ); submit_button(); echo '
' . "\n"; echo '
' . "\n"; ?>'; echo '

' . __( 'Pick a primary color for the elements.', 'borderless' ) . '

'; } function render_secondary_color_field() { // Retrieve data from the database. $options = get_option( 'borderless' ); // Set default value. $value = isset( $options['secondary_color'] ) ? $options['secondary_color'] : '#3379fc'; // Field output. echo ''; echo '

' . __( 'Pick a secondary color for the elements.', 'borderless' ) . '

'; } function render_text_color_field() { // Retrieve data from the database. $options = get_option( 'borderless' ); // Set default value. $value = isset( $options['text_color'] ) ? $options['text_color'] : ''; // Field output. echo ''; echo '

' . __( 'Pick a text color for the elements.', 'borderless' ) . '

'; } function render_accent_color_field() { // Retrieve data from the database. $options = get_option( 'borderless' ); // Set default value. $value = isset( $options['accent_color'] ) ? $options['accent_color'] : '#3379fc'; // Field output. echo ''; echo '

' . __( 'Pick a accent color for the elements.', 'borderless' ) . '

'; } function render_elementor_field() { // Retrieve data from the database. $options = get_option( 'borderless' ); // Set default value. $value = isset( $options['elementor'] ) ? $options['elementor'] : true; // Field output. echo ' ' . __( '', 'borderless' ); echo '' . __( 'Enable or Disable Elementor Support', 'borderless' ) . ''; } function render_related_posts_field() { // Retrieve data from the database. $options = get_option( 'borderless' ); // Set default value. $value = isset( $options['related_posts'] ) ? $options['related_posts'] : ''; // Field output. echo ' ' . __( '', 'borderless' ); echo '' . __( 'Enable or Disable Related Posts', 'borderless' ) . ''; } } new BorderlessDashboard;