<div dir="ltr">Thanks! i was double checking here so that i wont be doing stuff that later will discover that are not allowed! it's always good to be sure :)<div><br></div><div>Thanks again.<br><br><div class="gmail_quote">
On Mon, Jan 16, 2012 at 8:28 PM, Otto <span dir="ltr"><<a href="mailto:otto@ottodestruct.com">otto@ottodestruct.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not allowed. Please don't try this. Theme preview should show default<br>
as the end user will see the default.<br>
<br>
-Otto<br>
<div><div class="h5"><br>
<br>
<br>
On Mon, Jan 16, 2012 at 12:02 PM, Robert Ambartsumov<br>
<<a href="mailto:robert6292@gmail.com">robert6292@gmail.com</a>> wrote:<br>
> Hey,<br>
><br>
> I would like to include in my theme a special demo configuration file for<br>
> default settings that will be loaded when it matches the <a href="http://wp-themes.com" target="_blank">wp-themes.com</a> url,<br>
> so that for example I can load some data that wont be available on a typical<br>
> end user theme activation, i.e twitter username feed or a custom home page<br>
> screen.<br>
> the reason for this is because I do want to show the user what the theme is<br>
> capable of and improve the overall demonstration process eventually, but i<br>
> agree that those settings shouldn't be loaded as default for the end user as<br>
> per theme reviewers suggestions and guidelines.<br>
><br>
> i.e by doing this:<br>
> $mframe['globals'] = home_url() == $mframe['demo']['server'] ?<br>
> wp_parse_args( $mframe['demo'], $mframe['globals']) : $mframe['globals'];<br>
><br>
> the demo server url can be setup as anything, but for this example is<br>
> obviously <a href="http://wp-themes.com" target="_blank">wp-themes.com</a> where we can view demo version of the theme.<br>
><br>
> thanks!<br>
><br>
</div></div>> _______________________________________________<br>
> theme-reviewers mailing list<br>
> <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</blockquote></div><br></div></div>