| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
global $template; |
|---|
| 10 |
$template_definitions; |
|---|
| 11 |
|
|---|
| 12 |
$template_definition[] = array( |
|---|
| 13 |
'id' => 'community_members', |
|---|
| 14 |
'name' => __gettext("Comminity Members admin page"), |
|---|
| 15 |
'description' => __gettext("A template for the community members admin page."), |
|---|
| 16 |
'glossary' => array( |
|---|
| 17 |
'{{members}}' => __gettext('Community members list') |
|---|
| 18 |
) |
|---|
| 19 |
); |
|---|
| 20 |
|
|---|
| 21 |
$template_definition[] = array( |
|---|
| 22 |
'id' => 'community_member', |
|---|
| 23 |
'name' => __gettext("Community member visualization"), |
|---|
| 24 |
'description' => __gettext("A template for the community member display"), |
|---|
| 25 |
'glossary' => array( |
|---|
| 26 |
'{{name}}' => __gettext("Member's name"), |
|---|
| 27 |
'{{link}}' => __gettext("Member's profile page"), |
|---|
| 28 |
'{{icon}}' => __gettext("Member's icon"), |
|---|
| 29 |
'{{functions}}' => __gettext("Member's functions") |
|---|
| 30 |
) |
|---|
| 31 |
); |
|---|
| 32 |
|
|---|
| 33 |
$template_definition[] = array( |
|---|
| 34 |
'id' => 'community_membership', |
|---|
| 35 |
'name' => __gettext("Community membership visualization"), |
|---|
| 36 |
'description' => __gettext("A template for the community membership display"), |
|---|
| 37 |
'glossary' => array( |
|---|
| 38 |
'{{name}}' => __gettext("Member's name"), |
|---|
| 39 |
'{{link}}' => __gettext("Member's profile page"), |
|---|
| 40 |
'{{icon}}' => __gettext("Member's icon"), |
|---|
| 41 |
'{{functions}}' => __gettext("Member's functions") |
|---|
| 42 |
) |
|---|
| 43 |
); |
|---|
| 44 |
|
|---|
| 45 |
$template_definition[] = array( |
|---|
| 46 |
'id' => 'community_create', |
|---|
| 47 |
'name' => __gettext("Community creation"), |
|---|
| 48 |
'description' => __gettext("A template for the community creation form"), |
|---|
| 49 |
'glossary' => array( |
|---|
| 50 |
'{{title}}' => __gettext("Page title"), |
|---|
| 51 |
'{{form_fields}}' => __gettext("Form fields") |
|---|
| 52 |
) |
|---|
| 53 |
); |
|---|
| 54 |
|
|---|
| 55 |
templates_add_context('community_members', "<div id=\"networktable\"><table width=\"80%\" cellspacing=\"5\"><tr>{{members}}</tr></table></div>", false); |
|---|
| 56 |
templates_add_context('community_member', 'mod/community/templates/community_member_view.html'); |
|---|
| 57 |
templates_add_context('community_membership', 'mod/community/templates/community_membership_view.html'); |
|---|
| 58 |
templates_add_context('community_create', 'mod/community/templates/community_create.html'); |
|---|
| 59 |
|
|---|
| 60 |
?> |
|---|
| 61 |
|
|---|