# templately/3.6.2/includes/Admin/Settings.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 3.6.2. 31 lines.

- Page: https://pluginprobe.com/plugins/templately/3.6.2/code/includes/Admin/Settings.php
- Raw: https://pluginprobe.com/plugins/templately/3.6.2/raw/includes/Admin/Settings.php
- Modified: 2025-05-25T12:01: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/templately/3.6.2/code/includes/Admin/Settings.php#L10-L20`.

```php
<?php

namespace Templately\Admin;

use Templately\Utils\Base;
use Templately\Utils\Helper;

class Settings extends Base  {

	public function __construct() {
		add_action('admin_menu', [$this, 'admin_menu']);
		add_action('wp_head', [$this, 'add_custom_css']);
	}

	public function admin_menu() {
		add_submenu_page( 'templately', 'Settings', 'Settings', 'delete_posts', 'templately_settings', [$this, 'display_settings'], '58.7' );
	}


	public function display_settings() {
		Helper::views( 'settings' );
	}

	public function add_custom_css() {
		$custom_css = get_option('templately_custom_css');
		if($custom_css){
			echo "\n<style id='templately-custom-css'>\n".$custom_css."\n</style>\n";
		}
	}
}

```
