Permalink - http://pastebin.ws/8nw1gj - PHP - 194.176.xx.xx - Posted January 10, 2009, 1:50 am
Validate HTML - Validate CSS
Reply tree
- 8nw1gj - 1 year, 1 month, 4 hours, 46 minutes ago - by 194.176.xx.xx
- 652f70 - 1 year, 4 weeks, 1 day, 12 hours, 36 minutes ago - by 86.11.xx.xx
- 423j4f - 5 days, 5 hours, 18 minutes ago - by 174.0.xx.xx
- 1iq9h0 - 1 year, 4 weeks, 1 day, 11 hours, 18 minutes ago - by 86.11.xx.xx
- 4dogix - 1 year, 6 days, 11 hours, 40 minutes ago - by 66.190.xx.xx
- 5ylca7 - 4 weeks, 1 day, 21 hours, 6 minutes ago - by 78.26.xx.xx
- 8h49bh - 2 months, 1 week, 1 day, 20 hours, 20 minutes ago - by 99.3.xx.xx
- db4bf2 - 6 days, 6 hours, 2 minutes ago - by 94.224.xx.xx
- e2g2sr - 2 days, 22 hours, 56 minutes ago - by 93.174.xx.xx
- 652f70 - 1 year, 4 weeks, 1 day, 12 hours, 36 minutes ago - by 86.11.xx.xx
Dynamic Block for Pixie (http://www.getpixie.co.uk/), can be used to show news on any page (requires a dynamic page setting up, with the name 'news')
- <?php
- //*****************************************************************//
- // Pixie: The Small, Simple, Site Maker. //
- // ----------------------------------------------------------------//
- // Licence: GNU General Public License v3 //
- // Title: Display News. //
- //*****************************************************************//
- ?>
- <div id="block_news" class="block">
- <div class="block_header">
- <h4>News</h4>
- </div>
- <div class="block_body">
- <ul>
- <?php
- echo "\n";
- $page_name = "news";
- // how many news items to show
- $num = 10;
- $page_id = safe_field('page_id','pixie_core',"page_name='$page_name'");
- $rs = safe_rows_start("*", "pixie_dynamic_posts", "page_id = '$page_id' and public = 'yes' and posted < now() order by posted desc limit 0, $num");
- if ($rs) {
- while ($a = nextRow($rs)) {
- echo "\t\t\t\t\t\t\t<li><a href=\"".createURL($page_name, "permalink", $a['post_slug'])."\" rel=\"bookmark\">{$a['title']}</a></li>\n";
- }
- }
- ?>
- </ul>
- </div>
- <div class="block_footer">
- </div>
- </div>