<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&#39;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">&lt;<a href="mailto:otto@ottodestruct.com">otto@ottodestruct.com</a>&gt;</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&#39;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>
&lt;<a href="mailto:robert6292@gmail.com">robert6292@gmail.com</a>&gt; wrote:<br>
&gt; Hey,<br>
&gt;<br>
&gt; I would like to include in my theme a special demo configuration file for<br>
&gt; default settings that will be loaded when it matches the <a href="http://wp-themes.com" target="_blank">wp-themes.com</a> url,<br>
&gt; so that for example I can load some data that wont be available on a typical<br>
&gt; end user theme activation, i.e twitter username feed or a custom home page<br>
&gt; screen.<br>
&gt; the reason for this is because I do want to show the user what the theme is<br>
&gt; capable of and improve the overall demonstration process eventually, but i<br>
&gt; agree that those settings shouldn&#39;t be loaded as default for the end user as<br>
&gt; per theme reviewers suggestions and guidelines.<br>
&gt;<br>
&gt; i.e by doing this:<br>
&gt; $mframe[&#39;globals&#39;] = home_url() == $mframe[&#39;demo&#39;][&#39;server&#39;] ?<br>
&gt; wp_parse_args( $mframe[&#39;demo&#39;], $mframe[&#39;globals&#39;]) : $mframe[&#39;globals&#39;];<br>
&gt;<br>
&gt; the demo server url can be setup as anything, but for this example is<br>
&gt; obviously <a href="http://wp-themes.com" target="_blank">wp-themes.com</a> where we can view demo version of the theme.<br>
&gt;<br>
&gt; thanks!<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; theme-reviewers mailing list<br>
&gt; <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
&gt; <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
&gt;<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>