[Config]
Name = Digg
Summary = Extracts metadata embedded in Digg feeds.

[Description]
This module supports metadata inserted into feeds generated by
<a href="http://www.digg.com/" target="_blank">digg.com</a>.

[Namespaces]
digg = http://digg.com/docs/diggrss/
; Why are they using different namespaces?! Sigh...
digg2 = docs/diggrss/

[Item Metadata 1]
digg/submitter/name = digg:submitter/digg:username 
digg/submitter/image/url = digg:submitter/digg:userimage
digg/category/name = digg:category
digg/comments/count = digg:commentCount
digg/count = digg:diggCount

[Item Metadata 2]
digg/submitter/name = digg2:submitter/digg2:username 
digg/submitter/image/url = digg2:submitter/digg2:userimage
digg/category/name = digg2:category
digg/comments/count = digg2:commentCount
digg/count = digg2:diggCount

[Item Pane Columns]
_AvailabilityMsg=Available for channels that embed Digg-style information into their feed items.
Dugg by=digg/submitter/name
Category={%ITEM-METADATA% digg/category/name} ({%ITEM-METADATA% digg/count})

[Item Details Template Block]
{%?ITEM-METADATA% digg}
    <div class="mm-digg">
        {%?ITEM-METADATA% digg/submitter/image/url}
            <img src="{%@% encode=attr}" />
        {%ENDIF%}
        <a href="{%ITEM-METADATA% url encode=attr}">Dugg</a>
        by {%?ITEM-METADATA% digg/submitter/name} <em>{%@%}</em> {%ELSE%} <em>anonymous</em> {%ENDIF%}
        {%?ITEM-METADATA% digg/category/name} in <em>{%@%}</em> {%ENDIF%}
        {%?ITEM-METADATA% digg/count} ({%@%} diggs) {%ENDIF%}
    </div>
{%ENDIF%}

