function __optional_require($file) { global $app; $path = __path($file); if (is_file($path)) { require $path; } }
<main class="collection edges"> <?php require __path('edge_header.php'); ?> <div class="main-body"> <?php if (empty($edges)) { ?> <p><?php __(_m('edge_collection_empty', $edge_schema->getDisplayName())); ?> </p> <?php } else { if ($prev_page) { $query_string = http_build_query(array('p' => $prev_page)); if (!empty($properties)) { $query_string .= http_build_query($properties); } ?> <p><a class="crud-button paging prev" href="?<?php __($query_string); ?> "><?php __(_m('collection_prev_page')); ?> </a></p> <?php } ?> <nav class="collection edges">
<main class="new object node"> <article class="object node <?php __class('node-' . $node_schema->getName()); ?> "> <?php require __path('node_header.php'); ?> <div class="main-body object node"> <?php if (!empty($error)) { ?> <p class="error"><?php __(_m('create_node_error', $error->getMessage())); ?> </p> <?php } ?> <form enctype="<?php __formenc($node_schema); ?> " class="create object node <?php __class('node-' . $node_schema->getName()); ?> " action="<?php __(_e($node_schema->getCollectionPath())); ?> " method="POST"> <?php foreach ($properties as $property) {
<!DOCTYPE html> <html lang="<?php __(__locale()); ?> "<?php if (isset($document_classes)) { ?> class="<?php foreach ($document_classes as $document_class) { __class($document_class); } ?> "<?php } ?> > <?php require __path('header_head.php'); ?> <body itemscope itemtype="http://schema.org/WebPage"> <?php require __path('header_header.php');
<?php require __path('footer_footer.php'); __optional_require('footer_analytics.php'); ?> </body> </html>
<header class="application-header"> <a href="/" title="<?php __(_a('application_title')); ?> " class="application-title-link"> <h1 class="application-title"><?php __(_m('application_title')); ?> </h1> </a> <?php require __path('header_menu.php'); require __path('header_search.php'); ?> </header>
} if (!empty($properties)) { ?> <form enctype="<?php __formenc($node_schema); ?> " class="update object node <?php __class('node-' . $node_schema->getName()); ?> " action="<?php __(_e($node->getPath())); ?> " method="POST"> <?php foreach ($properties as $property) { require __path('property_edit.php'); } ?> <input type="hidden" name="_METHOD" value="PUT"> <hr> <input class="crud-button update" type="submit" value="<?php __(_m('update_node_button_text')); ?> "> </form> <?php } ?> <form class="delete object node <?php __class('node-' . $node_schema->getName()); ?>
if (empty($properties)) { ?> <p><?php __(_m('node_no_properties')); ?> </p> <?php } else { ?> <dl class="object-properties node-properties" title="<?php __(_m('object_properties_title')); ?> "> <?php foreach ($properties as $property) { require __path('property.php'); } ?> </dl> <?php } ?> </div> <footer class="main-footer object node"> <section class="edges"> <a name="<?php __(_m('node_edges_anchor')); ?> "><h1 class="section-title"><?php __(_m('node_edges_title')); ?>
<?php $type_class = 'type-' . $property->getSchema()->getType(); if ($property->getSchema()->isMultiValue()) { $type_class .= ' multivalue'; } ?> <dt class="<?php __($type_class); ?> "><?php __label($property); ?> </dt> <dd class="<?php __($type_class); ?> "> <?php require __path('types/' . $property->getSchema()->getType() . '.php'); ?> </dd>
<?php $property_id = __class('edit-node-property-' . $property->getName(), false); require __path('property_label.php'); if ($property->getSchema()->isMultiValue()) { ?> <div class="multivalue"> <?php } require __path('types/' . $property->getSchema()->getType() . '_input.php'); require __path('property_error.php'); if ($property->getSchema()->isMultiValue()) { ?> </div> <?php }