From 30b05c41c488c869c6351663ce2d36b97cba8bc9 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 3 Apr 2005 18:03:20 +0000 Subject: [PATCH] document macros for subscription items --- lib/WebGUI/Help/SubscriptionItem.pm | 18 ++++++++ .../Help/SubscriptionItemPurchaseUrl.pm | 18 ++++++++ lib/WebGUI/i18n/English/SubscriptionItem.pm | 43 +++++++++++++++++++ .../English/SubscriptionItemPurchaseUrl.pm | 21 +++++++++ 4 files changed, 100 insertions(+) create mode 100644 lib/WebGUI/Help/SubscriptionItem.pm create mode 100644 lib/WebGUI/Help/SubscriptionItemPurchaseUrl.pm create mode 100644 lib/WebGUI/i18n/English/SubscriptionItem.pm create mode 100644 lib/WebGUI/i18n/English/SubscriptionItemPurchaseUrl.pm diff --git a/lib/WebGUI/Help/SubscriptionItem.pm b/lib/WebGUI/Help/SubscriptionItem.pm new file mode 100644 index 000000000..4a6ae80ca --- /dev/null +++ b/lib/WebGUI/Help/SubscriptionItem.pm @@ -0,0 +1,18 @@ +package WebGUI::Help::SubscriptionItem; + +our $HELP = { + + 'subscription item' => { + title => 'subscription item title', + body => 'subscription item body', + related => [ + { + tag => 'macros using', + namespace => 'Macros' + }, + ] + }, + +}; + +1; diff --git a/lib/WebGUI/Help/SubscriptionItemPurchaseUrl.pm b/lib/WebGUI/Help/SubscriptionItemPurchaseUrl.pm new file mode 100644 index 000000000..562648528 --- /dev/null +++ b/lib/WebGUI/Help/SubscriptionItemPurchaseUrl.pm @@ -0,0 +1,18 @@ +package WebGUI::Help::SubscriptionItemPurchaseUrl; + +our $HELP = { + + 'subscription item purchase url' => { + title => 'subscription item purchase url title', + body => 'subscription item purchase url body', + related => [ + { + tag => 'macros using', + namespace => 'Macros' + }, + ] + }, + +}; + +1; diff --git a/lib/WebGUI/i18n/English/SubscriptionItem.pm b/lib/WebGUI/i18n/English/SubscriptionItem.pm new file mode 100644 index 000000000..fd0c6f80a --- /dev/null +++ b/lib/WebGUI/i18n/English/SubscriptionItem.pm @@ -0,0 +1,43 @@ +package WebGUI::i18n::English::SubscriptionItem; + +our $I18N = { + + 'subscription item title' => { + message => q|Subscription Item Macro|, + lastUpdated => 1112547248, + }, + + 'subscription item body' => { + message => q| + +^SubscriptionItem(subscriptionId,[templateId]);
+This macro is used to display information about subscription items from your site. +It accepts two arguments, the Id of the subscription item and an optional +template to use instead of the default template, specified by a template Id +from the Macro/SubscriptionItem namespace. + +

+These variables are available in the template:

+ +

+url
+The URL to purchase a subscription to this item. + +

+name
+The name of the item. + +

+description
+The description of the item. + +

+price
+The price of the item. + +|, + lastUpdated => 1112547249, + }, +}; + +1; diff --git a/lib/WebGUI/i18n/English/SubscriptionItemPurchaseUrl.pm b/lib/WebGUI/i18n/English/SubscriptionItemPurchaseUrl.pm new file mode 100644 index 000000000..5edc9e356 --- /dev/null +++ b/lib/WebGUI/i18n/English/SubscriptionItemPurchaseUrl.pm @@ -0,0 +1,21 @@ +package WebGUI::i18n::English::SubscriptionItemPurchaseUrl; + +our $I18N = { + + 'subscription item purchase url title' => { + message => q|Subscription Item Purchase URL Macro|, + lastUpdated => 1112548245, + }, + + 'subscription item purchase url body' => { + message => q| + +^SubscriptionItemPurchaseUrl(subscriptionId);
+This macro fetches the URL to purchase a subscription item identified +by its subscriptionId. +|, + lastUpdated => 1112548242, + }, +}; + +1;