# jobwp/1.3/core/single-styles.php

JobWP – Job Board Plugin for WordPress | Job Listings, Career Page &amp; Applications, version 1.3. 48 lines.

- Page: https://pluginprobe.com/plugins/jobwp/1.3/code/core/single-styles.php
- Raw: https://pluginprobe.com/plugins/jobwp/1.3/raw/core/single-styles.php
- Modified: 2022-07-28T17:47:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jobwp/1.3/code/core/single-styles.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
* Trait: Single Styles Settings
*/
trait Jobwp_Single_Styles_Settings
{
    protected $fields, $settings, $options;
    
    protected function jobwp_set_single_styles_settings( $post ) {

        $this->fields   = $this->jobwp_single_styles_option_fileds();

        $this->options  = $this->jobwp_build_set_settings_options( $this->fields, $post );

        $this->settings = apply_filters( 'jobwp_single_styles', $this->options, $post );

        return update_option( 'jobwp_single_styles', $this->settings );

    }

    function jobwp_get_single_styles_settings() {

        $this->fields   = $this->jobwp_single_styles_option_fileds();
		$this->settings = get_option('jobwp_single_styles');
        
        return $this->jobwp_build_get_settings_options( $this->fields, $this->settings );
	}

    protected function jobwp_single_styles_option_fileds() {

        return [
            [
                'name'      => 'jobwp_single_title_font_color',
                'type'      => 'text',
                'default'   => '#242424',
            ],
            [
                'name'      => 'jobwp_single_title_font_size',
                'type'      => 'number',
                'default'   => '28',
            ],
        ];
    }
}
```
