3 <?php
echo Notifications
::read(); ?
>
5 <section
class="content">
7 <form method
="post" action
="<?php echo Url::current(); ?>" novalidate
>
10 <label
for="sitename">Site name
:</label
>
11 <input id
="sitename" name
="sitename" value
="<?php echo Input::post('name', $metadata->sitename); ?>">
13 <em
>Your site
&rsquo
;s name
.</em
>
17 <label
for="description">Site description
:</label
>
18 <textarea id
="description" name
="description"><?php
echo Input
::post('description', $metadata->description
); ?
></textarea
>
20 <em
>A short paragraph to describe your site
.</em
>
24 <label
>Home Page
:</label
>
25 <select id
="home_page" name
="home_page">
26 <?php
foreach($pages as $page): ?
>
27 <?php
$selected = (Input
::post('home_page', $metadata->home_page
) == $page->id
) ?
' selected' : ''; ?
>
28 <option value
="<?php echo $page->id; ?>"<?php
echo $selected; ?
>>
29 <?php
echo $page->name
; ?
>
34 <em
>Your current home page
.</em
>
38 <label
>Posts Page
:</label
>
39 <select id
="posts_page" name
="posts_page">
40 <?php
foreach($pages as $page): ?
>
41 <?php
$selected = (Input
::post('posts_page', $metadata->posts_page
) == $page->id
) ?
' selected' : ''; ?
>
42 <option value
="<?php echo $page->id; ?>"<?php
echo $selected; ?
>>
43 <?php
echo $page->name
; ?
>
48 <em
>Your page that will show your posts
.</em
>
52 <label
for="posts_per_page">Posts per page
:</label
>
53 <input id
="posts_per_page" name
="posts_per_page" value
="<?php echo Input::post('posts_per_page', $metadata->posts_per_page); ?>">
55 <em
>The number of posts to display per page
.</em
>
59 <label
>Current theme
:</label
>
60 <select id
="theme" name
="theme">
61 <?php
foreach($themes as $theme => $about): ?
>
62 <?php
$selected = (Input
::post('theme', $metadata->theme
) == $theme) ?
' selected' : ''; ?
>
63 <option value
="<?php echo $theme; ?>"<?php
echo $selected; ?
>>
64 <?php
echo $about['name']; ?
> by
<?php
echo $about['author']; ?
>
69 <em
>Your current theme
.</em
>
73 <label
for="auto_published_comments">Auto publish comments
:</label
>
74 <?php
$checked = Input
::post('auto_published_comments', $metadata->auto_published_comments
) ?
' checked' : ''; ?
>
75 <input name
="auto_published_comments" type
="checkbox" value
="1"<?php
echo $checked; ?
>>
79 <label
for="twitter">Twitter
:</label
>
80 <input id
="twitter" name
="twitter" value
="<?php echo Input::post('twitter', $metadata->twitter); ?>">
82 <em
>Your twitter account
. Displayed
as @<span id
="output"><?php
echo $metadata->twitter
; ?
></span
>.</em
>
87 <button name
="save" type
="submit">Save changes
</button
>
93 <script src
="//ajax.googleapis.com/ajax/libs/mootools/1.4.1/mootools-yui-compressed.js"></script
>
94 <script
>window
.MooTools || document
.write('<script src="<?php echo theme_url('assets
/js
/mootools
.js
'); ?>"><\/script>');</script
>
95 <script src
="<?php echo theme_url('assets/js/helpers.js'); ?>"></script
>
98 var tweet
= $
('twitter'), output
= $
('output');
100 // call the function to init the input text
101 formatTwitter(tweet
, output
);
104 tweet
.addEvent('keyup', function() {formatTwitter(tweet
, output
)});