<div dir="ltr">Hey,<div><br></div><div>I would like to include in my theme a special demo configuration file for default settings that will be loaded when it matches the <a href="http://wp-themes.com">wp-themes.com</a> url, so that for example I can load some data that wont be available on a typical end user theme activation, i.e twitter username feed or a custom home page screen.</div>
<div>the reason for this is because I do want to show the user what the theme is capable of and improve the overall demonstration process eventually, but i agree that those settings shouldn't be loaded as default for the end user as per theme reviewers suggestions and guidelines.</div>
<div><br></div><div>i.e by doing this:</div><div>$mframe['globals'] = home_url() == $mframe['demo']['server'] ? wp_parse_args( $mframe['demo'], $mframe['globals']) : $mframe['globals'];</div>
<div><br></div><div>the demo server url can be setup as anything, but for this example is obviously <a href="http://wp-themes.com">wp-themes.com</a> where we can view demo version of the theme.</div><div><br></div><div>thanks!</div>
</div>