-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
55 lines (51 loc) · 2.24 KB
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
echo head(array('bodyclass' => 'error404', 'title' => __('404: Page Not Found')));
echo flash();
?>
<p><?php echo __('You’ve tried to access a page that does not seem to exist. Sometimes this happens. Below is a quick break-down of the items, collections, and exhibits on this site.'); ?></p>
<p>
<?php
$siteAdministratorEmail = '<a href="mailto:'. option('administrator_email') . '">' . __('site administrator') . '</a>';
echo __('If this does not help, try contacting the %s.', $siteAdministratorEmail);
?>
</p>
<section class="five columns alpha">
<div class="panel">
<h2><?php echo __('Recent Items'); ?></h2>
<?php
set_loop_records('items', get_recent_items(5));
foreach (loop('items') as $item):
?>
<div class="recent-row">
<p class="recent"><?php echo link_to_item(); ?></p>
<?php if (is_allowed($item, 'edit')): ?>
<p class="dash-edit"><?php echo link_to_item(__('Edit'), array(), 'edit'); ?></p>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php if (is_allowed('Items', 'add')): ?>
<div class="add-new-link"><p><a class="add-new-link" href="<?php echo html_escape(url('items/add')); ?>"><?php echo __('Add a new item'); ?></a></p></div>
<?php endif; ?>
</div>
</section>
<section class="five columns omega">
<div class="panel">
<h2><?php echo __('Recent Collections'); ?></h2>
<?php
$collections = get_recent_collections(5);
set_loop_records('collections', $collections);
foreach (loop('collections') as $collection):
?>
<div class="recent-row">
<p class="recent"><?php echo link_to_collection(); ?></p>
<?php if (is_allowed($collection, 'edit')): ?>
<p class="dash-edit"><?php echo link_to_collection(__('Edit'), array(), 'edit'); ?></p>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php if (is_allowed('Collections', 'add')): ?>
<div class="add-new-link"><p><a class="add-collection" href="<?php echo html_escape(url('collections/add')); ?>"><?php echo __('Add a new collection'); ?></a></p></div>
<?php endif; ?>
</div>
</section>
<?php echo foot(); ?>