document macros for subscription items
This commit is contained in:
parent
c2c16438f1
commit
30b05c41c4
4 changed files with 100 additions and 0 deletions
18
lib/WebGUI/Help/SubscriptionItem.pm
Normal file
18
lib/WebGUI/Help/SubscriptionItem.pm
Normal file
|
|
@ -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;
|
||||||
18
lib/WebGUI/Help/SubscriptionItemPurchaseUrl.pm
Normal file
18
lib/WebGUI/Help/SubscriptionItemPurchaseUrl.pm
Normal file
|
|
@ -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;
|
||||||
43
lib/WebGUI/i18n/English/SubscriptionItem.pm
Normal file
43
lib/WebGUI/i18n/English/SubscriptionItem.pm
Normal file
|
|
@ -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|
|
||||||
|
|
||||||
|
<b>^SubscriptionItem(<i>subscriptionId</i>,[<i>templateId</i>]);</b><br>
|
||||||
|
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.
|
||||||
|
|
||||||
|
<p>
|
||||||
|
These variables are available in the template:<p>
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
<b>url</b><br/>
|
||||||
|
The URL to purchase a subscription to this item.
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
<b>name</b><br/>
|
||||||
|
The name of the item.
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
<b>description</b><br/>
|
||||||
|
The description of the item.
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
<b>price</b><br/>
|
||||||
|
The price of the item.
|
||||||
|
|
||||||
|
|,
|
||||||
|
lastUpdated => 1112547249,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
1;
|
||||||
21
lib/WebGUI/i18n/English/SubscriptionItemPurchaseUrl.pm
Normal file
21
lib/WebGUI/i18n/English/SubscriptionItemPurchaseUrl.pm
Normal file
|
|
@ -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|
|
||||||
|
|
||||||
|
<b>^SubscriptionItemPurchaseUrl(<i>subscriptionId</i>);</b><br>
|
||||||
|
This macro fetches the URL to purchase a subscription item identified
|
||||||
|
by its subscriptionId.
|
||||||
|
|,
|
||||||
|
lastUpdated => 1112548242,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
1;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue