HEX
Server: Apache
System: Linux p3plzcpnl489499.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: dwauav0tm6jp (6177017)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dwauav0tm6jp/hosted/palmetto_old/wp-content/themes/palmettomain/functions/admin-options.php
<?php

	// Theme Setting
	$themename 				= "My Framework";
	$shortname 				= "my_framework";
	
	
	
	
	// Options Page Functions

	function themeoptions_admin_menu() 
	{
		// here's where we add our theme options page link to the dashboard sidebar
		add_theme_page("Theme Options", "Theme Options", 'edit_themes', basename(__FILE__), 'themeoptions_page');
	}
	
	function themeoptions_page() 
	{
		// here's the main function that will generate our options page
		
		if ( $_POST['update_themeoptions'] == 'true' ) { themeoptions_update(); }
		
		//if ( get_option() == 'checked'
		
		?>
		<div class="wrap">
			<div id="icon-themes" class="icon32"><br /></div>
			<h2>Theme Options</h2>
		
			<form method="POST" action="">
				<input type="hidden" name="update_themeoptions" value="true" />
        
        <h3>Logo Image</h3>
				<p><input type="text" name="logoimage" id="logoimage" size="60" value="<?php echo get_option('mytheme_logoimage'); ?>"/> Path to Logo Image</p>
        <h3>Favicon Image</h3>
        <p><input type="text" name="favicon" id="favicon" size="60" value="<?php echo get_option('mytheme_favicon'); ?>"/> Path to Favicon</p>
				
				
				<p><input type="submit" name="search" value="Update Options" class="button" /></p>
			</form>
		
		</div>
		<?php
	}
	
	function themeoptions_update()
	{
		// this is where validation would go
		
		update_option('mytheme_effect', 	$_POST['effect']);
		update_option('mytheme_animSpeed', 	$_POST['animSpeed']);
		update_option('mytheme_pauseTime', 	$_POST['pauseTime']);
		update_option('mytheme_startSlide', 	$_POST['startSlide']);
		update_option('mytheme_slices', 	$_POST['slices']);
		
		update_option('mytheme_directionNav', 	$_POST['directionNav']);
		update_option('mytheme_directionNavHide', 	$_POST['directionNavHide']);
		update_option('mytheme_controlNav', 	$_POST['controlNav']);
		update_option('mytheme_controlNavThumbs', 	$_POST['controlNavThumbs']);
		
		update_option('mytheme_keyboardNav', 	$_POST['keyboardNav']);
		update_option('mytheme_pauseOnHover', 	$_POST['pauseOnHover']);
		update_option('mytheme_captionOpacity', 	$_POST['captionOpacity']);
		
		
		update_option('mytheme_logoimage', 	$_POST['logoimage']);
		update_option('mytheme_favicon', 	$_POST['favicon']);
		
	
	}
	
	add_action('admin_menu', 'themeoptions_admin_menu');

?>