# sharemypost/trunk/main/util.php

ShareMyPost, version trunk. 39 lines.

- Page: https://pluginprobe.com/plugins/sharemypost/trunk/code/main/util.php
- Raw: https://pluginprobe.com/plugins/sharemypost/trunk/raw/main/util.php
- Modified: 2026-07-13T09:56:42+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/sharemypost/trunk/code/main/util.php#L10-L20`.

```php
<?php

namespace ShareMyPost;

if(!defined('ABSPATH')){
	exit;
}

class Util{

	static function get_default_settings() {

		$all_networks = array_keys(\ShareMyPost\Helpers::get_networks());

		$defaults = [
			// General
			'mobile' => 1,
			'inline_enabled' => 1,

			// Inline
			'inline_position' => 'below',
			'inline_post_types' => ['post'],
			'inline_enabled_networks' => [ 'twitter','pinterest','whatsapp','facebook',],
			'inline_network_order' => $all_networks,
			'inline_button_color_type' => 'original',
			'inline_button_color' => '#1f75e1',
			'inline_show_labels' => 'icon_only',

			// Shared
			'container_width' => 'auto',
		];

		return apply_filters('sharemypost_default_settings', $defaults);
	}

	static function get_settings(){
		return wp_parse_args(get_option('sharemypost_settings', []), self::get_default_settings());
	}
}
```
