このページは2007年 10月 18日, 00:01に更新されました by BrigetteK

Digg

From $1

This library contains functions for using Digg.com.  関連リンク: Extension Overview, DekiScript Overview, Extension Demos.

Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2007/06/digg

Functions:

  1. digg.news
  2. digg.this

digg.news(max : num, width : num, height : num, border : bool, theme : str) : xml

Embed the Digg News widget.

Parameters:

Name Type Description
max
num
Optional.  Max items to display (default: 10)
width
num
Optional.  Widget width (default: 300)
height
num
Optional.  Widget height (default: 350)
border
bool
Optional.  Show border (default: true)
theme
str
Optional.  Widget color theme (default: "digg-widget-theme1")

Remarks: Refer here for more information about the Digg News widget.

Samples:


Output

To embed the Digg News widget using the defaults:

{{ digg.news() }} 

./DefaultDiggNewsWidget.JPG

To embed the Digg News widget using the defaults, except for the theme
"digg-widget-theme4":

{{ digg.news{ theme: "digg-widget-theme4"} }}

./ThemedDiggNewsWidget.JPG


digg.this(uri : uri, compact : bool, bgcolor : str) : xml

Embed the 'Digg It' badge.

Parameters:

Name Type Description
uri
uri
Optional.  URI to digg (default: current page)
compact
bool
Optional.  Use compact visual style for button (default: false)
bgcolor
str
Optional.  CSS style for background color (default: white)

Samples:


Output

To embed the "Digg It" badge using the defaults:

{{ digg.this() }} 

./DefaultDiggItWidget.JPG

To embed the "Digg It" badge using the defaults, except for a green background color:

{{ digg.this{ bgcolor: "#0f0" } }}

./GreenDiggItWidget.JPG

 

ファイルサイズ日付添付したユーザ 
DefaultDiggItWidget.JPG
説明なし
1621 バイト2007年 10月 15日, 20:35BrigetteKアクション
DefaultDiggNewsWidget.JPG
説明なし
29.59 kB2007年 10月 15日, 19:39BrigetteKアクション
GreenDiggItWidget.JPG
説明なし
1901 バイト2007年 10月 15日, 20:34BrigetteKアクション
ThemedDiggNewsWidget.JPG
説明なし
26.88 kB2007年 10月 15日, 20:25BrigetteKアクション
コメント(0)
あなたはコメントを投稿するには ログイン しなければなりません。