[theme-reviewers] Special demo config for wp-themes.com, allowed?

Otto otto at ottodestruct.com
Mon Jan 16 18:28:27 UTC 2012


Not allowed. Please don't try this. Theme preview should show default
as the end user will see the default.

-Otto



On Mon, Jan 16, 2012 at 12:02 PM, Robert Ambartsumov
<robert6292 at gmail.com> wrote:
> Hey,
>
> I would like to include in my theme a special demo configuration file for
> default settings that will be loaded when it matches the wp-themes.com 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.
> 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.
>
> i.e by doing this:
> $mframe['globals'] = home_url() == $mframe['demo']['server'] ?
> wp_parse_args( $mframe['demo'], $mframe['globals']) : $mframe['globals'];
>
> the demo server url can be setup as anything, but for this example is
> obviously wp-themes.com where we can view demo version of the theme.
>
> thanks!
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>


More information about the theme-reviewers mailing list