I have developed an netflix plugin for wordpress. http://www.jimmyoliver.net
I have a question about the best way to output the data for use by the masses. Right now, when mynetflix() function is called, I output the information directly wrapped in wptexturize. So in my index.php all i have to do is add a
<?PHP mynetflix(); ?>
and I get output like this
This works well since this it the structure for the kubrick theme sidebar. But if another theme is used, it will probably look strange since the first
<li>is nested inside a previousley declared
<ul>. So what I have been thinking is this. Either I output an assoc array. This will make formatting subject to whatever the theme is. This is more complicated since I till require more complex code in index.php.
Or I could offer 2 functions, 1 with formatted output, and 1 that returns an assoc array. Any thoughs on this? You can see an example of the plugin at my blog.
- The topic ‘Netflix Plugin and a Question’ is closed to new replies.