Hello again,
The $context lines are set in the Sources/shop/Shop.php file. For example, the bank link is defined like so:
if ($modSettings['shopBankEnabled']) {
$context['shop_bank_link'] = "<a href='$scripturl?action=shop;do=bank'>{$txt['shop_bank']}</a><br />";
} else {
$context['shop_bank_link'] = "";
}
This is so if the bank is turned off, no link appears for it in the shop. I use $context[] variables a lot, usually to store data to pass to the template (when I started making SMFShop, I didn't know of any *proper* way to pass the data, so I stored it in $context[] variables).
Anyway, to finish answering your question, the variables are set in Sources/shop/Shop.php, and used in Templates/default/Shop.template.php.
Some of the variables I use include the variable $context['shop_buy_message']
, which has a message (like the message after you purchase an item, etc.). I also use $context['shop_items_list']
, which is used on the 'Buy Stuff' and Inventory listings.
I hope this helped you,
--daniel15