HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/tfgarchive/wpblogtest1.old/wp-content/themes/rt_nexus_wp/admin/rtpanel.php
<?php

	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'rtpanel.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');

?>

	<?php if($_GET['updated'] == 'true') { ?><div id="message" class="updated fade"><p>Theme settings saved.</p></div><?php } ?>
	
	<?php $option = get_option('nexus-options'); ?>
	
	<script type="text/javascript">
		var stylesList = new Hash({});
		var styleSelected = null;
		window.addEvent('domready', function() {
			styleSelected = $('preset_style').getValue();
			$('preset_style').empty();
			stylesList.set('style1', ['dark', 'light', 'light', 'yellow', 'dark']);
			stylesList.set('style2', ['light', 'light', 'light', 'lightblue', 'light']);
			stylesList.set('style3', ['dark', 'light', 'light', 'blue', 'dark']);
			stylesList.set('style4', ['dark', 'dark', 'dark', 'orange', 'dark']);
			stylesList.set('style5', ['light', 'light', 'light', 'green', 'dark']);
			stylesList.set('style6', ['dark', 'light', 'light', 'grey', 'dark']);
			stylesList.set('style7', ['light', 'dark', 'dark', 'brown', 'dark']);
			stylesList.set('style8', ['light', 'dark', 'dark', 'red', 'dark']);
			stylesList.set('style9', ['dark', 'dark', 'dark', 'darkblue', 'dark']);
			stylesList.set('style10', ['light', 'dark', 'dark', 'darkyellow', 'dark']);
		});
		
		/* START_DEBUG ONLY */
			var debug_only = function() {
				var td = new Element('td', {'id': 'toolbar-colorstyle', 'class': 'button'}).inject('toolbar-preview', 'before');
				var a = new Element('a', {'class': 'toolbar', 'href': '#'}).inject(td).setText('Custom style');
				
				var tr = new Element('tr').inject($('footer_style').getParent().getParent(), 'after');
				var td1 = new Element('td', {'class': 'paramlist_key', 'styles': 'width: 40%;'}).inject(tr);
				
				var td2 = new Element('td', {'class': 'paramlist_value'}).inject(tr);
				
				var scroll = new Fx.Scroll(window, {offset: {x: false, y: -5}});
				a.addEvent('click', function(e) {
					new Event(e).stop();
					var arr = [];
					
					var output = [
						$('header_style').getValue(),
						$('body_style').getValue(),
						$('showcase_style').getValue(),
						$('primary_color').getValue(),
						$('footer_style').getValue()
					];
					
					output = output.join('\', \'');
					
					tarea.setHTML('\'style_name\' => array(\''+output+'\')');
					
					tarea.focus();
					tarea.select();
					
					scroll.toElement(tarea);
				});
			};
			
			/* END_DEBUG ONLY */
			
			window.addEvent('domready', function() {
				
				debug_only();
				
				// Styles Combo
				var stylesCombo = $('preset_style');
				var header = $('header_style');
				var body = $('body_style');
				var showcase = $('showcase_style');
				var primary = $('primary_color');
				var footer = $('footer_style');
				
				stylesList.each(function(key, value) {
					var option = new Element('option', {'value': value.toLowerCase()}).setHTML(value.capitalize());
					if (value == styleSelected) option.setProperty('selected', 'selected');
					option.inject(stylesCombo);
				});
				var option = new Element('option', {'value': 'custom'}).setHTML('Custom').inject(stylesCombo);
				if (styleSelected == 'custom') option.setProperty('selected', 'selected');
				
				stylesCombo.addEvent('change', function(e) {
					new Event(e).stop();
					if (this.value == 'custom') return;
					header.getChildren().each(function(el) {
						if (el.value == stylesList.get(this.value)[0]) el.selected = true;
					}, this);
					body.getChildren().each(function(el) {
						if (el.value == stylesList.get(this.value)[1]) el.selected = true;
					}, this);
					
					showcase.getChildren().each(function(el) {
						if (el.value == stylesList.get(this.value)[2]) el.selected = true;
					}, this);
					
					primary.getChildren().each(function(el) {
						if (el.value == stylesList.get(this.value)[3]) el.selected = true;
					}, this);
					
					footer.getChildren().each(function(el) {
						if (el.value == stylesList.get(this.value)[4]) el.selected = true;
					}, this);

				});				
			});
		
		window.addEvent('domready', function() {		
			$$('#header_style', '#body_style', '#showcase_style', '#primary_color', '#footer_style').addEvent('change', function() {
				$('preset_style').selectedIndex = $('preset_style').getChildren().length - 1;
			});
		});
		
	</script>
	
	<!-- Important -->
	
	<table class="toolbar" style="display: none;">
		<tr>
			<td class="button" id="toolbar-preview">
			</td>
		</tr>
	</table>
	
	<!-- End Important -->

	<div id="rtpanel">
		
		<script type="text/javascript">
			RokTabsOptions.duration.push(600);
			RokTabsOptions.transition.push(Fx.Transitions.Quad.easeInOut);
			RokTabsOptions.auto.push(0);
			RokTabsOptions.delay.push(2000);
			RokTabsOptions.type.push('scrolling');
			RokTabsOptions.linksMargins.push(0);
		</script>
	
		<div class="tabs-top">
			<div class="roktabs-wrapper" style="width: 770px;">
				<div class="roktabs base">
				
					<form method="post" action="options.php">
    				<?php settings_fields('theme-options-array'); ?>
				
					<div id="top">
						<div id="rt-top-l" class="png"></div>
						<div id="rt-top-m" class="png">
							<div class='roktabs-links'>
								<ul class='roktabs-top'>
									<li class="first active"><a href="#" title="GENERAL" class="roktips topgeneral"><span class="rthide">General</span></a></li>
									<li><a href="#" title="STYLE" class="roktips topstyle"><span class="rthide">Style</span></a></li>
									<li class="last"><a href="#" title="LAYOUT" class="roktips toplayout"><span class="rthide">Layout</span></a></li>
								</ul>
							</div>
							<ul class="additional-button">
								<li><a href="http://www.rockettheme.com/forum/index.php?f=323&amp;rb_v=viewforum" target="_blank" title="FORUMS" class="roktips topforums"><span class="rthide">Forums</span></a></li>
							</ul>
							<div class="submit-wrapper png"><input type="submit" class="submit-button" value="<?php _e('Save Changes'); ?>" /></div>
						</div>
						<div id="rt-top-r" class="png"></div>
					</div>
					<div class="clr"></div>
		
					<div id="maincontent">
						
						<div class="roktabs-container-inner">
							<div class="roktabs-container-wrapper">
		
								<div class='roktabs-tab1 tabcont'>
									<div class='wrapper'>
										
										<?php include('general.php'); ?>
					
									</div>
								</div>
						
								<div class='roktabs-tab2 tabcont'>
									<div class='wrapper'>
					
										<?php include('style.php'); ?>
					
									</div>
								</div>
							
								<div class='roktabs-tab3 tabcont'>
									<div class='wrapper'>
		
										<?php include('layout.php'); ?>
					
									</div>
								</div>
								
								<div class='roktabs-tab4 tabcont'>
									<div class='wrapper'>
		
										<?php include('sections.php'); ?>
					
									</div>
								</div>
					
							</div>
						</div>				
					</div>
					<div class="clr"></div>
		
					<div id="bottom">
						<div id="rt-bot-l" class="png"></div>
						<div id="rt-bot-m" class="png">
							<div id="rocket" class="png"></div>
							<div class="submit-wrapper png"><input type="submit" class="submit-button" value="<?php _e('Save Changes'); ?>" /></div>
						</div>
						<div id="rt-bot-r" class="png"></div>
					</div>
					<div class="clr"></div>
					
					</form>
								
				</div>
			</div>
		</div>
	</div>