'.__('Settings updated.').'

'; } $ses_theme_list = ""; $ses_theme_list = get_option("ses_splittest_themes"); ?>

SES Theme Split Test Settings

Choose which themes will be used on your site for the split test. "; print_r($theme); echo ""; ?>
/>

" />
splittest = false; add_action('plugins_loaded',array(&$this,'detectsplittest')); add_action('wp_footer',array(&$this, 'output_themesetvar'),99); add_filter('stylesheet',array(&$this,'get_stylesheet')); add_filter('template',array(&$this,'get_template')); } function detectsplittest($query){ $ses_theme_list = get_option("ses_splittest_themes"); if (count($ses_theme_list) < 2) { return; } if($_COOKIE['wp_splittest1']) { $theme = $_COOKIE['wp_splittest1']; } // No cookie, or Theme is no longer part of split test - assign a new one if (!isset($theme) || !in_array($theme, $ses_theme_list)) { $id = rand(0,count($ses_theme_list)-1); $theme = $ses_theme_list[$id]; } setcookie("wp_splittest1",$theme,time()+(60*60*24*30),'/'); $this->splittest = $theme; } function get_stylesheet($stylesheet) { if ($this->splittest != "") { return $this->splittest; } else { return $stylesheet; } } function get_template($template) { if ($this->splittest != "") { return $this->splittest; } else { return $template; } } function output_themesetvar() { if ($this->splittest != "") { echo ''; } } } $ses_splittest = new ses_splittest(); ?>