4 <?php
echo Notifications
::read(); ?
>
6 <section
class="content">
8 <form method
="post" action
="<?php echo Url::current(); ?>" novalidate
>
11 <label
for="name">Name
:</label
>
12 <input id
="name" name
="name" value
="<?php echo Input::post('name'); ?>">
14 <em
>The name of your page
. This gets shown in the navigation
.</em
>
19 <input id
="title" name
="title" value
="<?php echo Input::post('title'); ?>">
21 <em
>The title of your page
, which gets shown in the
<code
><
;title
>
;</code
>.</em
>
25 <label
for="slug">Slug
:</label
>
26 <input id
="slug" autocomplete
="off" name
="slug" value
="<?php echo Input::post('slug'); ?>">
28 <em
>The slug
for your
post (<code
><?php
echo $_SERVER['HTTP_HOST']; ?
>/<span id
="output">slug
</span
></code
>).</em
>
32 <label
for="content">Content
:</label
>
33 <textarea id
="content" name
="content"><?php
echo Input
::post('content'); ?
></textarea
>
35 <em
>Your page
's content. Accepts valid HTML.</em>
39 <label>Status:</label>
40 <select id="status" name="status">
41 <?php foreach(array('draft
', 'archived
', 'published
') as $status): ?>
42 <option value="<?php echo $status; ?>" <?php if(Input::post('status
') == $status) echo 'selected
'; ?>>
43 <?php echo ucwords($status); ?>
48 <em>Do you want your page to be live (published), pending (draft), or hidden (archived)?</em>
53 <button type="submit">Create</button>
54 <a href="<?php echo admin_url('pages
'); ?>">Return to pages</a>
60 <script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.1/mootools-yui-compressed.js"></script>
61 <script>window.MooTools || document.write('<script src
="<?php echo theme_url('assets/js/mootools.js'); ?>"><\
/script
>');</script>
63 <script src="<?php echo theme_url('assets
/js
/helpers
.js
'); ?>"></script>
67 var slug = $('slug
'), output = $('output
');
69 // call the function to init the input text
70 formatSlug(slug, output);
73 slug.addEvent('keyup
', function() {formatSlug(slug, output)});