コード例 #1
0
ファイル: _vitalstats.php プロジェクト: silky/littlesis
<!-- NAME-VALUE PAIRS -->
<?php 
include_partial('global/section', array('title' => 'Basic Info', 'action' => array('text' => 'edit', 'url' => EntityTable::getInternalUrl($entity, 'edit'))));
?>

<div class="padded margin_bottom">
<?php 
include_partial('extension/' . strtolower($entity['primary_ext']) . 'data', array('entity' => $entity, 'label_width' => '100px'));
?>

<?php 
$networkLinks = array();
if (EntityTable::isLocal($entity['id'])) {
    ?>
  <?php 
    $networks = EntityTable::getNetworksById($entity['id']);
    ?>
  <?php 
    foreach ($networks as $network) {
        ?>
    <?php 
        $networkLinks[] = network_link($network);
        ?>
  <?php 
    }
}
?>

<?php 
$addressLinks = array();
if ($entity['primary_ext'] == 'Org') {