HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/l/y/slyfwmm/foar/wp-content/themes/flexfit/framework/functions/options.php
<?php
/**
 * A unique identifier is defined to store the options in the database and reference them from the theme.
 * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
 * If the identifier changes, it'll appear as if the options have been reset.
 */

function optionsframework_option_name() {

	// This gets the theme name from the stylesheet
	$themename = get_option( 'stylesheet' );
	$themename = preg_replace("/\W/", "_", strtolower($themename) );

	$optionsframework_settings = get_option( 'optionsframework' );
	$optionsframework_settings['id'] = $themename;
	update_option( 'optionsframework', $optionsframework_settings );
}

/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
 *
 * If you are making your theme translatable, you should replace 'options_framework_theme'
 * with the actual text domain for your theme.  Read more:
 * http://codex.wordpress.org/Function_Reference/load_theme_textdomain
 */

function optionsframework_options() {

	$bgrepeat_array = array(
			'stretch' => __('stretch', 'options_framework_theme'),
			'repeat' => __('repeat', 'options_framework_theme'),
			'repeat-x' => __('repeat-x', 'options_framework_theme'),
			'repeat-y' => __('repeat-y', 'options_framework_theme'),
			'no-repeat' => __('no-repeat', 'options_framework_theme')
	);
	$bgposition_array = array(
			'top left' => __('top left', 'options_framework_theme'),
			'top center' => __('top center', 'options_framework_theme'),
			'top right' => __('top right', 'options_framework_theme'),
			'center center' => __('center center', 'options_framework_theme'),
			'bottom left' => __('bottom left', 'options_framework_theme'),
			'bottom center' => __('bottom center', 'options_framework_theme'),
			'bottom right' => __('bottom right', 'options_framework_theme')
	);

	// If using image radio buttons, define a directory path
	$imagepath =  get_template_directory_uri() . '/framework/images/';

	$options = array();
	
/* ----------------------------------------------------- */
/* General Settings */
/* ----------------------------------------------------- */
	
	$options[] = array( "name" => "General Settings",
						"type" => "heading");
						
	$options[] = array( "name" => "Header Logo",
						"desc" => "Upload your Header Logo",
						"id" => "logo_upload",
						"type" => "upload");
						
	$options[] = array( "name" => "Footer Logo",
						"desc" => "Upload your Footer Logo",
						"id" => "footerlogo_upload",
						"type" => "upload");
						
	$options[] = array( "name" => "Footer Text",
						"desc" => "Descriptive Text (under Footer Logo)",
						"id" => "footer_text",
						"std" => "Flexfit is an incredibly powerful &amp; ultra responsive WordPress Theme.",
						"type" => "textarea");
	
	$options[] = array( "name" => "Favicon",
						"desc" => "Upload a 16x16px Favicon (ico/png/gif). Check out <a href='http://www.favicon.cc/' target='_blank'>http://www.favicon.cc/</a> to generate fully compatible Favicons.",
						"id" => "favicon_upload",
						"type" => "upload");										
						
	$options[] = array( "name" => "Google Analytics Code",
						"desc" => "Insert your Google Analytics Code",
						"id" => "analytics_code",
						"std" => "",
						"type" => "textarea");
						
/* ----------------------------------------------------- */
/* Home Page Settings */
/* ----------------------------------------------------- */
	
	$options[] = array( "name" => "Home Page",
						"type" => "heading");
						
	$options[] = array( "name" => "Show last projects on Home Page.",
						"desc" => "Show last projects on Home Page.",
						"id" => "latestwork_checkbox",
						"std" => "1",
						"type" => "checkbox"); 
	
	$options[] = array( "name" => "Last Projects descriptive text.",
						"desc" => "Descriptive Text for Last Projects on Home Page",
						"id" => "latestwork_text",
						"std" => "Maecenas a mi nibh, eu euismod orci. Vivamus viverra lacus vitae tortor molestie malesuada.",
						"type" => "textarea");
	
	$options[] = array( "name" => "Show last Blog posts on Home Page",
						"desc" => "Show last Blog posts on Home Page",
						"id" => "latestposts_checkbox",
						"std" => "1",
						"type" => "checkbox"); 
						
	$options[] = array( "name" => "Last Blog Posts descriptive text.",
						"desc" => "Descriptive Text of Latest Posts on Home Page",
						"id" => "latestposts_text",
						"std" => "Maecenas a mi nibh, eu euismod orci. Vivamus viverra lacus vitae tortor molestie malesuada.",
						"type" => "textarea");
						
/* ----------------------------------------------------- */
/* Contact Settings */
/* ----------------------------------------------------- */
	
	$options[] = array( "name" => "Contact",
						"type" => "heading");
	
	$options[] = array( "name" => "Header Contact Information",
						"desc" => "Short Contact informations appearing in the header",
						"id" => "shortcontact_text",
						"std" => "E: info@yoursite.com | T: +44 123 456 78",
						"type" => "text");	
						
	$options[] = array( "name" => "Contact E-Mail",
						"desc" => "Contact Form E-Mail Address",
						"id" => "contact_email",
						"std" => "",
						"type" => "text");
						
	$wp_editor_settings = array(
		'wpautop' => true, // Default
		'textarea_rows' => 12,
		'tinymce' => array( 'plugins' => 'wordpress' )
	);
	
	$options[] = array(
		'name' => 'Contact Template Informations',
		'desc' => 'Insert your Contact Information here. This will be display beside the contact form.',
		'id' => 'contact_text',
		'type' => 'editor',
		'std' => '<h3>Contact Information</h3>
John Doe, Inc. <br />
1234 Main Street Anywhere, <br />
USA<br /><br />

Phone: 123 456 7890<br />
Fax: +49 123 456 7891<br />
Email: hello@example.com<br />
Web: example.com<br />',
		'settings' => $wp_editor_settings );
		
/* ----------------------------------------------------- */
/* Social Media */
/* ----------------------------------------------------- */
						
	$options[] = array( "name" => "Social Media",
						"type" => "heading");
	
	$options[] = array( "name" => "Twitter",
						"desc" => "Twitter Username",
						"id" => "twitter_url",
						"std" => "",
						"type" => "text");
						
	$options[] = array( "name" => "Facebook",
						"desc" => "Facebook Url",
						"id" => "facebook_url",
						"std" => "",
						"type" => "text");
						
	$options[] = array( "name" => "Dribbble",
						"desc" => "Dribbble Url",
						"id" => "dribbble_url",
						"std" => "",
						"type" => "text");
	
	$options[] = array( "name" => "Flickr",
						"desc" => "Flickr Url",
						"id" => "flickr_url",
						"std" => "",
						"type" => "text");
	
	$options[] = array( "name" => "Google",
						"desc" => "Google Url",
						"id" => "google_url",
						"std" => "",
						"type" => "text");
						
	$options[] = array( "name" => "Vimeo",
						"desc" => "Vimeo Url",
						"id" => "vimeo_url",
						"std" => "",
						"type" => "text");
						
	$options[] = array( "name" => "Youtube",
						"desc" => "Youtube Url",
						"id" => "youtube_url",
						"std" => "",
						"type" => "text");
	
	$options[] = array( "name" => "LinkedIn",
						"desc" => "LinkedIn Url",
						"id" => "linkedin_url",
						"std" => "",
						"type" => "text");
						
	$options[] = array( "name" => "Pinterest",
						"desc" => "Pinterest Url",
						"id" => "pinterest_url",
						"std" => "",
						"type" => "text");
						
/* ----------------------------------------------------- */
/* Styling Settings */
/* ----------------------------------------------------- */
	
	$options[] = array( "name" => "Styling",
						"type" => "heading");
						
	$options[] = array( "name" => "Color Scheme",
						"desc" => "Selected your Color.",
						"id" => "primary_colorpicker",
						"std" => "#ec7100",
						"type" => "color");
						
	$options[] = array( "name" => "Default Background Image",
						"desc" => "Choose Default Background Image",
						"id" => "bgimage_upload",
						"type" => "upload");
	
	$options[] = array( 'name' => "Background Repeat / Stretch",
						'id' => 'bgrepeat_select',
						'std' => 'stretch',
						'type' => 'select',
						'class' => 'mini', //mini, tiny, small
						'options' => $bgrepeat_array);
	
	$options[] = array( 'name' => "Background Position (if repeated)",
						'id' => 'bgposition_select',
						'std' => 'top left',
						'type' => 'select',
						'class' => 'mini', //mini, tiny, small
						'options' => $bgposition_array);
	
	$options[] = array( "name" => "Custom CSS Code",
						"desc" => "Insert your Custom CSS",
						"id" => "css_code",
						"std" => "",
						"type" => "textarea");	

	return $options;
}