[theme-reviewers] A Question About Theme Review/Submission

Ryan Frankel ryan.frankel at gmail.com
Wed May 25 17:45:54 UTC 2011


All,
  After some thinking and going over all of your e-mails it looks like I am in the minority (read the only person) that thinks this should stay a theme.  Luckily,  the way this is coded will let us transition it to a plugin/theme combo pretty quickly.  Otto, following up on your ideas.....

Using get_template_part definitely wouldn't be an issue as that is what our current theme basically (loose term) does.  For me, it seems a lot more WordPressy to use a loop to display the tickets similar to posts...I am thinking like $ticket->ID.  That way queries, etc, etc would be handled exactly the same (plus our code it already set up this way so laziness gets a vote).

-Ryan

On May 24, 2011, at 9:19 PM, Otto wrote:

> On Tue, May 24, 2011 at 7:45 PM, Edward Caissie
> <edward.caissie at gmail.com> wrote:
>> It would simply require appropriate conditionals be added to the Theme
>> checking for the existence of your plugin that will be doing all of the
>> heavy lifting.
> 
> Ideally, one would hope that the plugin piece adds appropriate
> template rules. For example, it would call thread.php for a forum
> thread request, or forum.php to display a whole forum. Maybe
> ticket.php to display a ticket.. This would allow for a much simpler
> approach to theme design suited to these extension type plugins.
> 
> One could postulate the use of get_template_part() and
> get_query_template() for this as well. With proper use of the
> template_include filter and query processing (via rewrite rules), a
> plugin could easily define its own special templates, with fallbacks
> for themes that don't support it.
> 
> -Otto
> _______________________________________________
> 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