<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 22:08:43 +0000</lastBuildDate>
    <item>
      <title>(PHP) Nav with class="active" based on page - villagecreative</title>
      <link>https://snipplr.com/view/41829/nav-with-classactive-based-on-page</link>
      <description>&lt;p&gt;This is a way to have a navigation menu with active classes which are set according to what page is loaded. This only works on .php pages.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 07:46:54 UTC</pubDate>
      <guid>https://snipplr.com/view/41829/nav-with-classactive-based-on-page</guid>
    </item>
    <item>
      <title>(PHP) Ditto call to display documents by author - villagecreative</title>
      <link>https://snipplr.com/view/15197/ditto-call-to-display-documents-by-author</link>
      <description>&lt;p&gt;This Ditto snippet call does the following:&#13;
Parses through all the documents that have the parent document with the ID #12 (change this to reflect the id of the parent doc you are working with).&#13;
Filters out any documents that were not created by the author with the id of 1. The format is &amp;filter=`createdby,userID,1(not equal to)`.&#13;
Formats the output using the chunk "blog-post" as a template.&#13;
Displays 10 documents this way.&lt;/p&gt;</description>
      <pubDate>Wed, 20 May 2009 12:00:44 UTC</pubDate>
      <guid>https://snipplr.com/view/15197/ditto-call-to-display-documents-by-author</guid>
    </item>
  </channel>
</rss>
