Permalink
Browse files

initial commit

  • Loading branch information...
KimNorgaard committed Dec 18, 2013
0 parents commit 00191b876b2e361009000782c5ac6abe59a7f68b
Showing with 1,127 additions and 0 deletions.
  1. +15 −0 404.php
  2. +59 −0 archive.php
  3. +30 −0 archives.php
  4. +50 −0 comments.php
  5. +37 −0 config/config.php
  6. +16 −0 footer.php
  7. +321 −0 functions.php
  8. +46 −0 header.php
  9. +128 −0 index.php
  10. +90 −0 lang/lang.php
  11. +38 −0 page.php
  12. BIN screenshot.png
  13. +33 −0 search.php
  14. +11 −0 searchform.php
  15. +253 −0 style.css
15 404.php
@@ -0,0 +1,15 @@
<?php
/*
Template Name: 404 Page
*/
get_header();
monolit_print_container('b');
headline(2, MSG_404);
include (TEMPLATEPATH . '/searchform.php');
monolit_print_container('e');
get_footer();
?>
@@ -0,0 +1,59 @@
<?php
/*
Template Name: Archive Pages
*/
/*
Remember to edit search.php - it's similar except for the headline
*/
get_header();
monolit_print_container('b');
if (have_posts()) :
// Hack. Set $post so that the_date() works.
$post = $posts[0];
// build and output title
$headline = MSG_ARCHIVE_HEADLINE . " &#8216;";
if (is_category()) : // If this is a category archive
$headline .= single_cat_title(null, false);
elseif (is_day()) : // If this is a daily archive
$headline .= get_the_time('F jS, Y');
elseif (is_month()) : // If this is a monthly archive
$headline .= get_the_time('F, Y');
elseif (is_year()) : // If this is a yearly archive
$headline .= get_the_time('Y');
elseif (is_author()) : // If this is an author archive
$headline .= MSG_AUTHOR;
elseif (isset($_GET['paged']) && !empty($_GET['paged'])) : // If this is a paged archive
$headline .= "blog";
endif;
$headline .= "&#8217;";
headline(2, $headline);
monolit_print_archivenavigation();
print "<div class=\"archives\">\n";
$number_of_thumbs = 0;
while (have_posts()) : the_post();
monolit_print_thumb();
$number_of_thumbs++;
if ($number_of_thumbs % MONOLIT_SET_THUMBS_PER_LINE == 0)
print "<br />\n";
endwhile;
print "</div>\n";
monolit_print_archivenavigation();
else :
headline(2, MSG_PAGE_NOT_FOUND);
include (TEMPLATEPATH . '/searchform.php');
endif;
monolit_print_container('e');
get_footer();
?>
@@ -0,0 +1,30 @@
<?php
/*
Template Name: Archives
*/
get_header();
monolit_print_container('b', null, 'class="bullet"');
headline(2, MSG_ARCHIVES_HEADLINE);
headline(3, MSG_ARCHIVES_BY_YEAR);
print "<ul>\n"; wp_get_archives('type=yearly'); print "</ul>\n";
headline(3, MSG_ARCHIVES_BY_MONTH);
print "<ul>\n"; wp_get_archives('type=monthly'); print "</ul>\n";
headline(3, MSG_ARCHIVES_BY_CATEGORIES);
print "<ul>\n"; wp_list_categories('title_li='); print "</ul>\n";
headline(3, MSG_PAGES_HEADLINE);
print "<ul>\n"; wp_list_pages('title_li='); print "</ul>\n";
include (TEMPLATEPATH . '/searchform.php');
monolit_print_container('e');
get_footer();
?>
@@ -0,0 +1,50 @@
<?php
/*
Template Name: Comments
*/
// Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (MSG_COMMENTS_DONT_LOAD);
if (!empty($post->post_password)) : // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : // and it doesn't match the cookie
print "<p>" . MSG_COMMENTS_POST_PASSWORD_PROTECTED . "</p>\n";
return;
endif;
endif;
if ($comments) :
print "<h3>";
comments_number(MSG_COMMENTS_NO_RESPONSES, MSG_COMMENTS_ONE_RESPONSE, MSG_COMMENTS_RESPONSES);
the_title('&nbsp;' . MSG_TO . ' &#8220;', '&#8221;');
print "</h3>\n";
print "<ol>\n";
foreach ($comments as $comment) :
monolit_print_comment();
endforeach;
print "</ol>\n";
else :
if ('open' == $post->comment_status) : // no comments posted yet but still open
headline(3, MSG_COMMENTS_NO_COMMENTS_POSTED);
else : // comments are closed
headline(3, MSG_COMMENTS_DISABLED);
endif;
endif;
// The "leave comment" form
if ('open' == $post->comment_status) :
headline(3, MSG_COMMENT_HEADLINE);
if ( get_option('comment_registration') && !$user_ID ) :
$loginurl = buildLink(get_option('siteurl').'/wp-login.php?redirect_to='.get_permalink(), MSG_COMMENT_LOGINURL);
$mustlogin = MSG_COMMENT_MUST_LOGIN;
$mustlogin = str_replace('%LOGINURL', $loginurl, $mustlogin);
print "<p>$mustlogin</p>\n";
else :
monolit_print_comments_form();
endif;
endif;
?>
@@ -0,0 +1,37 @@
<?php
/*
Template Name: Settings
*/
// Wordpress page titles
// ** IMPORTANT - CHANGE THESE **
define('MONOLIT_SET_ABOUT_WP_TITLE', 'about');
define('MONOLIT_SET_ARCHIVE_WP_TITLE','archives');
// Copyright string
// ** IMPORTANT - CHANGE THIS **
define('MONOLIT_SET_COPYRIGHT', 'Copyright &copy; 2007 Kim N&oslash;rgaard');
// Menu configuration (1 = yest, 0 = no)
define('MONOLIT_SET_SHOW_LATEST', 1);
define('MONOLIT_SET_SHOW_ARCHIVES', 0);
define('MONOLIT_SET_SHOW_RSS', 1);
define('MONOLIT_SET_SHOW_ABOUT', 0);
// Display information about monolit in the about page (1 = yes, 0 = no)
define('MONOLIT_SET_SHOW_ABOUT_CONTENT', 1);
// Display post timestamp in the about page (1 = yes, 0 = no)
define('MONOLIT_SET_SHOW_ABOUT_TIMESTAMP', 0);
// Image and thumbnail size control
define('MONOLIT_SET_MAX_HEIGHT', 600);
define('MONOLIT_SET_THUMB_WIDTH', 120);
define('MONOLIT_SET_THUMB_HEIGHT', 90);
// Show EXIF values
// ** NOTE SUPPORTED OR FINISHED YET - DON'T ENABLE ***
define('MONOLIT_SET_SHOW_EXIF', 0);
// Archives configuration
define('MONOLIT_SET_THUMBS_PER_LINE', 6);
?>
@@ -0,0 +1,16 @@
<?php
/*
Template Name: Footer
*/
?>
</div> <!-- class="cf" -->
<div id="footer">
<?php print MONOLIT_CONTENT_FOOTER."\n" ?>
</div> <!-- id="footer" -->
</div> <!-- class="whitebg"-->
</body>
</html>
<?php
if ( $_SESSION['monolit:info'] ) session_unregister('monolit:info');
?>
Oops, something went wrong.

0 comments on commit 00191b8

Please sign in to comment.