From a46f447f27247f9c422206cd7978fe77d5a9cf12 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 5 May 2015 15:52:57 -0400 Subject: [PATCH] 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. --- root/archive.php | 79 ++++++++++++++++++ root/assets/search_button.jpg | Bin 0 -> 1470 bytes root/functions.php | 16 ++++ root/header.php | 3 + root/home.php | 140 +++++++++++++++++++------------- root/parts/glm-kitchen-sink.php | 4 +- root/scss/_blog.scss | 133 ++++++++++++++++++------------ root/scss/_mixins.scss | 5 -- root/scss/_plugins.scss | 1 + root/scss/_search.scss | 51 ++++++++++++ root/scss/_sidebar.scss | 26 +++++- root/scss/_structure.scss | 3 + root/scss/app.scss | 2 + root/scss/plugins/_nextgen.scss | 6 ++ root/search.php | 100 ++++++++++++++++------- root/sidebar.php | 8 +- root/single.php | 17 ++-- 17 files changed, 434 insertions(+), 160 deletions(-) create mode 100644 root/archive.php create mode 100644 root/assets/search_button.jpg create mode 100644 root/scss/_plugins.scss create mode 100644 root/scss/_search.scss create mode 100644 root/scss/plugins/_nextgen.scss 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 0000000000000000000000000000000000000000..b788c5e6d412c0484a79bf3f56feaca112d6c9b1 GIT binary patch literal 1470 zcma)5e@q)y9Dmnd+k=$Sb3|N>dK@tsN_)Md9rUClr9WabOBj-XL?Y#SgR|@1<$AS+ zWzooD)R}A1~!pi0Jt~KMY;e2P-yl8kiMa%I#pF>DN2l4Lt&|% zw{lXHN`_>Lw%RCAU6YhUT!dGNcD_RpUF6c|Uy+0mc9Bhvpe-nS_)g);ZiRokyRMPz zj&RN}S+j?zPO{0U9Ocyzk&GS?V{FnzW}UNepD|M;k)@~+7wOJKC7Ofvghx_%!eMn- zI2%I~l};<|a8y<@@s!&o5066+GxP|_mCN^>5(e2h~BSrsIa$aoC3OL5gj!c6}uAu4aU zy=Sks5QD-0rbeTg24vmF)CPVt-+MZaHFn87)xgK3xWe&}UYZfhtViKPs-!eZ(t%tT z>pLY?igijd;qhd4YDnbxfY(JrFIGVav$a0IhuQ6~aC;fM|7k1Y)Zh)}b*24WdOM zKlcaGppXji`wTmZO6YwggW>;{;prcM5lS?;76&!p#ZNVL(~GyieB|K3+OIn9+1`Ow zd-rm5?fGQ8@3p6nT@IfmmS>v5&cy8X!4dQm>(Y;{Gvk*RC+ilzDQ~cqT|MnRap=;+ z&qU%aw|JrGX2rQ(cdHu%P{ApHwKNnw{JvV!SzJb35G$G-WG7MINhZz3lr)8GFMN94%C literal 0 HcmV?d00001 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