apps-catalog-page.tpl.php in Apps 7
Output the server manifest in .md format.
Note that the spacing in this file is very important. New lines after an ending php tag (?>) are ignored so need double new lines.
Available variables: $title Title of the server $apps_render An array of apps including name, description, and conflicts. $server Array of server information. $apps Array of app information.
1 theme call to apps-catalog-page.tpl.php
- apps_catalog_page in ./
apps.pages.inc - Callpage for apps catelog page, an .md formatted app listing.
File
theme/apps-catalog-page.tpl.phpView source
<?php
/**
* @file
* Output the server manifest in .md format.
*
* Note that the spacing in this file is very important.
* New lines after an ending php tag (?>) are ignored so need double new lines.
*
* Available variables:
* $title
* Title of the server
* $apps_render
* An array of apps including name, description, and conflicts.
* $server
* Array of server information.
* $apps
* Array of app information.
*/
print t('@server App Catalog', array(
'@server' => $title,
));
?>
=======
<?php
foreach ($apps_render as $app) {
?>
<?php
print $app['name'];
?>
-----------
<?php
print $app['description'];
?>
<?php
if ($app['conflicts']) {
?>
### <?php
print t('Conflicts');
?>
<?php
foreach ($app['conflicts'] as $conflict) {
?>
* <?php
print $conflict;
?>
<?php
}
?>
<?php
}
}