From: Laury GvR Date: Tue, 5 May 2015 19:52:57 +0000 (-0400) Subject: Initial Laury Commit (blog, search, slides, etc,.) X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a46f447f27247f9c422206cd7978fe77d5a9cf12;p=web%2FGruntInit%2FglmTheme.git Initial Laury Commit (blog, search, slides, etc,.) Blog works (home/single/archive). Search works (blog-only, global) Slideshow works. Pulls in posts for frontpage blocks (need styling) Inside page left sub-nav works. Whole bunch of HTML fixes/edits. General CSS styling work across the site. --- diff --git a/root/archive.php b/root/archive.php new file mode 100644 index 0000000..6b5c82a --- /dev/null +++ b/root/archive.php @@ -0,0 +1,79 @@ + +
+
id="interior"> + +
+
+
+ +
+
+
> +
+

+ Posted on +
+ +
+ $cat->name, 'slug' => $cat->slug ); + echo ', '. $cat->name .''; + } + echo '.'; + } + ?> +
+
+
+
+ + + +
+

+
+ +
+
+
+
+
+ +
+
+

Recent Posts

+
    + '5' ); + $recent_posts = wp_get_recent_posts( $args ); + foreach( $recent_posts as $recent ){ + echo '
  • ' . $recent["post_title"].'
  • '; + } + ?> +
+

Archive

+
    'monthly', 'limit' => 12 ) ); ?>
+

Categories

+ +
+
+
+ diff --git a/root/assets/search_button.jpg b/root/assets/search_button.jpg new file mode 100644 index 0000000..b788c5e Binary files /dev/null and b/root/assets/search_button.jpg differ diff --git a/root/functions.php b/root/functions.php index a0cab5a..262a49a 100644 --- a/root/functions.php +++ b/root/functions.php @@ -162,6 +162,22 @@ function glm_get_header() { // echo ''; +function glm_side_menu() { + global $post; + $parents = get_post_ancestors($post->ID); + $id = ($parents) ? $parents[count($parents)-1]: $post->ID; + $parent = get_page( $id ); + if ($id == 0) { + $ID = $post->ID; + } else { + $ID = $parent->ID; + } + echo '

'.get_the_title($ID).'

'; + echo ''."\n"; +} + add_action('wp_enqueue_scripts', 'glm_site_scripts'); ?> diff --git a/root/header.php b/root/header.php index ffb229b..c0bb978 100644 --- a/root/header.php +++ b/root/header.php @@ -23,6 +23,9 @@ +
+ +
diff --git a/root/home.php b/root/home.php index 7d6f1f9..6a3bd51 100644 --- a/root/home.php +++ b/root/home.php @@ -1,59 +1,85 @@ -
-
-
-
-

If this is an emergency, please call 9-1-1

-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
> -
- -

- Posted on - - -
- - -
-
-
-
-
-
- - - -
-

-
- -
-
-
- \ No newline at end of file + + diff --git a/root/parts/glm-kitchen-sink.php b/root/parts/glm-kitchen-sink.php index 37fb81a..25aec41 100644 --- a/root/parts/glm-kitchen-sink.php +++ b/root/parts/glm-kitchen-sink.php @@ -41,10 +41,10 @@
-
header +
header -
search +
search