initial commit
authorroot <root@mogosanu.ro>
Fri, 2 Mar 2012 19:30:22 +0000 (21:30 +0200)
committerroot <root@mogosanu.ro>
Fri, 2 Mar 2012 19:30:22 +0000 (21:30 +0200)
14 files changed:
archives-draw.php [new file with mode: 0644]
archives.php [new file with mode: 0644]
comments.php [new file with mode: 0644]
draw.php [new file with mode: 0644]
favicon.ico [new file with mode: 0644]
functions.php [new file with mode: 0644]
header.php [new file with mode: 0644]
hedgehog.png [new file with mode: 0644]
index.php [new file with mode: 0644]
links.php [new file with mode: 0644]
main-draw.php [new file with mode: 0644]
main.php [new file with mode: 0644]
screenshot.png [new file with mode: 0644]
style.css [new file with mode: 0644]

diff --git a/archives-draw.php b/archives-draw.php
new file mode 100644 (file)
index 0000000..0aacd1b
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+function drawarchives()
+{
+?>
+    <div id="date">
+      <h3>Categorii</h3>
+       <ul class="categories">
+       <?php wp_list_categories('title_li=&show_count=1'); ?>
+       </ul>
+      <h3>Arhiva pe luni</h3>
+      <ul>
+        <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
+      </ul>
+     
+    </div>
+<?php
+}
+?>
diff --git a/archives.php b/archives.php
new file mode 100644 (file)
index 0000000..0830042
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+/*
+ * Template name: archives
+ */
+?>
+<?php require("header.php"); ?>
+<?php require("draw.php");
+       draw("archives");
+?>
diff --git a/comments.php b/comments.php
new file mode 100644 (file)
index 0000000..6089c25
--- /dev/null
@@ -0,0 +1,12 @@
+<?php if ( $comments ) : ?>
+  <div id="comments">
+    <h3>Comments</h3>
+    <?php wp_list_comments(); ?>
+    <div class="pagination"><?php paginate_comments_links(); ?></div>
+  </div><!-- comments -->
+<?php endif; ?>
+<?php if ( comments_open() || pings_open() ) : ?>
+  <?php comment_form( 'comment_notes_before=&comment_notes_after=' ); ?>
+<?php else ://if ( $comments ) : ?>
+  <div id="respond"><p id="closed">Comentariile sunt dezactivate.</p></div>
+<?php endif; ?>
diff --git a/draw.php b/draw.php
new file mode 100644 (file)
index 0000000..87512f6
--- /dev/null
+++ b/draw.php
@@ -0,0 +1,93 @@
+<?php
+require("archives-draw.php");
+require("main-draw.php");
+function draw_index()
+{
+?>
+
+      <div id="content">
+        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
+          <div <?php post_class(); ?>>
+            <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
+                       <div id="subtitle"><p><?php the_date('l, j M Y, H:i'); ?></p></div>
+                       <?php the_content(); ?>
+            <?php if ( !is_singular() && get_the_title() == '' ) : ?>
+              <a href="<?php the_permalink(); ?>">(more...)</a>
+            <?php endif; ?>
+            <?php if ( is_singular() ) : ?>
+              <div class="pagination"><?php wp_link_pages(); ?></div>
+            <?php endif; ?>
+            <div class="clear"> </div>
+          </div><!-- post_class() -->
+          <?php if ( is_singular() && !is_page() ) : ?>
+            <div class="meta">
+              <p>Publicat de <?php the_author_posts_link(); ?>
+              <a href="<?php the_permalink(); ?>"><?php the_date('l, j F Y'); ?></a>
+              în <?php the_category( ', ' ); ?><?php the_tags( ', ' ); ?></p>
+            </div><!-- meta -->
+            <?php comments_template(); ?>
+          <?php endif; ?>
+        <?php endwhile; else: ?>
+          <div class="hentry">
+                       <h2>Patru sute patru, n-am găsit.</h2>
+                       <p> Adicătelea nu-i aici.
+                       Cauți o pagină inexistentă sau încă blocată în prepuțul gândirii.
+                       </p>
+                 </div>
+        <?php endif; ?>
+        <?php if ( is_active_sidebar( 'widgets' ) ) : ?>
+          <div class="widgets"><?php dynamic_sidebar( 'widgets' ); ?></div>
+        <?php endif; ?>
+        <?php if ( is_singular() || is_404() ) : ?>
+          <div class="left"><a href="<?php bloginfo( 'url' ); ?>">&laquo; Acasă</a></div>
+        <?php else : ?>
+          <div class="left"><?php next_posts_link( '&laquo; Articole mai vechi' ); ?></div>
+          <div class="right"><?php previous_posts_link( 'Articole mai noi &raquo;' ); ?></div>
+        <?php endif; ?>
+        <div class="clear"> </div>
+      </div><!-- content -->
+    </div><!-- container: in header.php -->
+    <?php wp_footer(); ?>
+  </body>
+</html>
+
+<?php
+}
+
+function draw($what)
+{
+?>
+      <div id="content">
+          <div <?php post_class(); ?>>
+                 <?php if ($what != "home") {
+                 ?>
+            <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
+                       <?php } ?>
+<?php
+               switch($what) {
+                       case "links":
+wp_list_bookmarks('show_images=0&title_before=<h3>&title_after=</h3>&show_description=1&link_after=<br />&category=12&categorize=0&title_li='); 
+                               break;
+                       case "archives":
+                               drawmain();
+                               drawarchives();
+                               break;
+                       case "home":
+                               drawmain();
+                               break;
+                       default:
+                               echo "Wait, what?";
+               }
+?>
+            <?php if ( is_singular() ) : ?>
+              <div class="pagination"><?php wp_link_pages(); ?></div>
+            <?php endif; ?>
+        <div class="clear"> </div>
+      </div><!-- content -->
+    </div><!-- container: in header.php -->
+    <?php wp_footer(); ?>
+  </body>
+</html>
+<?php
+}
+?>
diff --git a/favicon.ico b/favicon.ico
new file mode 100644 (file)
index 0000000..3943681
Binary files /dev/null and b/favicon.ico differ
diff --git a/functions.php b/functions.php
new file mode 100644 (file)
index 0000000..8e9be6d
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+  if ( !isset( $content_width ) ) $content_width = 768;
+  if ( function_exists( 'add_theme_support' ) ) add_theme_support( 'automatic-feed-links' );
+  if ( function_exists( 'register_nav_menu' ) ) register_nav_menu( 'menu', 'Menu' );
+  if ( function_exists('register_sidebar') ) register_sidebar( array(
+    'name' => __( 'Widgets', 'simplest' ),
+    'id' => 'widgets',
+    'before_widget' => '<div class="widget">',
+    'after_widget' => '</div><!-- widget -->',
+    'before_title' => '<h4>',
+    'after_title' => '</h4>') );
+?>
\ No newline at end of file
diff --git a/header.php b/header.php
new file mode 100644 (file)
index 0000000..f31de13
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html <?php language_attributes(); ?>>
+  <head>
+    <meta charset="<?php bloginfo( 'charset' ); ?>" />
+    <link rel="profile" href="http://gmpg.org/xfn/11" />
+       <link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
+    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
+    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
+       <link rel="trackback" href="<?php trackback_url(); ?>" />
+       <link rel="shortcut icon" href="<?php bloginfo('url'); ?>/wp-content/themes/simplest/favicon.ico" />
+    <title><?php bloginfo( 'name' ); ?><?php wp_title( '&mdash;' ); ?></title>
+    <?php if ( is_singular() && get_option( 'thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?>
+
+    <?php wp_head(); ?>
+  </head>
+  <body <?php body_class(); ?>>
+    <div id="container">
+      <div id="header">
+        <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo( 'name' ); ?></a></h1>
+        <p id="description"><?php bloginfo( 'description' ); ?></p>
+        <?php if ( has_nav_menu( 'menu' ) ) : wp_nav_menu(); else : ?>
+          <ul><?php wp_list_pages( 'title_li=&depth=-1&exclude=2922' ); ?></ul>
+        <?php endif; ?>
+      </div><!-- header -->
diff --git a/hedgehog.png b/hedgehog.png
new file mode 100644 (file)
index 0000000..b5c5dc7
Binary files /dev/null and b/hedgehog.png differ
diff --git a/index.php b/index.php
new file mode 100644 (file)
index 0000000..63c01ff
--- /dev/null
+++ b/index.php
@@ -0,0 +1,4 @@
+<?php require("header.php"); ?>
+<?php require("draw.php");
+       draw_index();
+?>
diff --git a/links.php b/links.php
new file mode 100644 (file)
index 0000000..cbb7e5b
--- /dev/null
+++ b/links.php
@@ -0,0 +1,9 @@
+<?php
+/*
+ * Template name: links
+ */
+?>
+<?php require("header.php"); ?>
+<?php require("draw.php");
+       draw("links");
+?>
diff --git a/main-draw.php b/main-draw.php
new file mode 100644 (file)
index 0000000..796505d
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+function drawmain()
+{
+?>
+   <h3>Articole Recente</h3>
+
+    <?php query_posts('cat=&showposts=4'); ?>
+    <ul id="recentPosts">
+
+               <?php while (have_posts()) : the_post(); ?>
+
+       <li>
+         <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
+         <div class="postDate"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_date('F j, Y') ?></abbr></div>
+       </li>
+
+               <?php endwhile; ?>
+
+         <p></p>
+     </ul>
+
+     <div id="cattags">
+      <h3>Etichete</h3>
+      <?php wp_tag_cloud('number=42&smallest=0.6&largest=1.4&unit=em&format=flat'); ?>
+    </div>
+
+<!--   <div id="web">
+      <h3>Web</h3>
+         <ul>
+         <li><a href="http://lucian.mogosanu.ro" title="root">root</a>,</li>
+         <li><a href="<?php echo get_permalink(1342); ?>" title="others">alții</a></li>
+         </ul>
+       </div> -->
+<?php
+}
+?>
diff --git a/main.php b/main.php
new file mode 100644 (file)
index 0000000..101cb2a
--- /dev/null
+++ b/main.php
@@ -0,0 +1,9 @@
+<?php
+/*
+ * Template name: home
+ */
+?>
+<?php require("header.php"); ?>
+<?php require("draw.php");
+       draw("home");
+?>
diff --git a/screenshot.png b/screenshot.png
new file mode 100644 (file)
index 0000000..6879ad0
Binary files /dev/null and b/screenshot.png differ
diff --git a/style.css b/style.css
new file mode 100644 (file)
index 0000000..6433eea
--- /dev/null
+++ b/style.css
@@ -0,0 +1,81 @@
+/*
+Theme Name: Simplest
+Description: Just about the simplest possible theme for WordPress: 83 lines of PHP and 75 lines of CSS in 4 files.
+Author: Trevor Turk
+Author URI: http://trevorturk.com/
+Theme URI: http://trevorturk.com/2010/09/20/new-wordpress-theme-simplest/
+Version: 1.3
+Tags: light, white, one-column
+License: GNU General Public License v2.0
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+*/
+
+/* http://meyerweb.com/eric/tools/css/reset */
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent; font-family: sans-serif;}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
+
+/* simplest */
+p,dl,hr,h1,h4,h5,h6,ol,ul,pre,table,address,fieldset {margin-bottom:1em;}
+h2 {margin-bottom:0.2em;}
+h3 {margin-bottom:1em;}
+li {list-style:square; margin:0.5em 0 0 2em;}
+dt {margin:1em 0; font-weight:bold;}
+dd {margin:0 1em; padding-left:1em; border-left:1px solid #ddd;}
+th, td {padding:0.5em; border:1px solid #ddd;}
+blockquote {margin:0 1em; padding-left:1em; border-left:1px solid #ddd;}
+pre {font-family:monospace; background:#f8f8ff; padding:0.5em; overflow:auto;}
+sup, sub {height:0; line-height:1; vertical-align:baseline; position:relative; font-size:10px;}
+sup {bottom:1ex;}
+sub {top:0.5ex;}
+.left {float:left;}
+.right {float:right;}
+.clear {clear:both;}
+
+body {color:#111;}
+a {color:#111;}
+p {line-height:1.3em;}
+h1 {font-size:1.7em;}
+h2 {font-size:1.3em;}
+h3 {font-size:1.1em;}
+h1 a {text-decoration:none;}
+h1 a:hover {text-decoration:underline;}
+h1,h2,h3,h4,h5,h6 {clear:both;}
+
+#subtitle {font-size:0.9em;font-weight:bold;}
+#container {width:768px; margin:2em auto;}
+#header #description {margin-top:-1.4em;}
+#header li {display:inline; margin:0 0.5em 0 0;}
+#content {margin-top:4em; text-align:justify; text-justify:newspaper;}
+.hentry, .meta, #respond {margin-bottom:2em; padding-bottom:1em; border-bottom:1px solid #ddd;}
+.hentry h2, .hentry h3, .hentry h4 {margin-top:2em;}
+
+.widgets {margin-bottom:2em; border-bottom:1px solid #ddd;}
+.widget {margin-bottom:2em;}
+.pagination {text-align:center; margin:2em auto 1em auto;}
+.pagination a {padding:3px 8px; border: 1px solid #ddd;}
+
+.alignleft {display:inline; float:left; margin:0 1em 1em 0;}
+.alignright {display:inline; float:right; margin:0 0 1em 1em;}
+.aligncenter {display:block; margin:1em auto;}
+.wp-caption {text-align:center; padding:0.5em; background:#ddd;}
+.wp-caption-text, .gallery-caption {font-size:0.7em; margin:3px 0;}
+
+#comments {margin-bottom:2em; border-bottom:1px solid #ddd;}
+#comments h3, #respond h3 {margin-bottom:2em;}
+#comments li {list-style-type:none; margin:0 0 2em 0;}
+#comments .avatar {vertical-align:middle; margin-right:2px; padding:2px; border:1px solid #ddd;}
+#comments .comment-author {margin-bottom:1em;}
+#comments .comment-author cite {font-weight:bold; font-style:normal; margin-top:1em;}
+#comments .comment-meta {margin-bottom:1em;}
+#comments .reply a {font-size:0.7em;}
+#comments .children {margin:2em;}
+#comments .pagination {margin-bottom:2em;}
+
+#respond label {display:block;}
+#respond .required {display:none;}
+#respond #closed {font-style:italic;}
+#comments li.comment #respond {margin:2em;}
+#comments li.comment #respond h3 {padding-top:2em; border-top:1px solid #ddd;}
+#comments li.comment #respond #cancel-comment-reply-link {font-size:0.7em; margin-left:1em;}
+
+
+