From: Ian Weller Date: Wed, 7 Sep 2016 14:10:20 +0000 (-0400) Subject: added the changes made for capstone X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ddc76e2c1f4305c869ed037929093687394ccd0d;p=web%2FGruntInit%2FglmThemeV6.git added the changes made for capstone We found out the hard way that having everything in a single index file is not as convinent as we thought. Laury broke it down into managable sections and I added them to the glmTheme. Not much difference than the way we had it before I think. --- diff --git a/root/index.php b/root/index.php index 92fe074..fa877a9 100644 --- a/root/index.php +++ b/root/index.php @@ -1,557 +1,40 @@ - - - - - - - - - - <?php wp_title(); ?> - - - - - - -
-
-
- - - -
-
- -
- -
-
- - - -
-
- - Menu -
-
- -
-
-
- - - -
    -
  • - -
  • -
  • , -
  • - - -
  • -
  • , -
  • - - -
  • - - - - - - - - -
  • - - -
  • - -
- -
- - -
- - - - - - - - - - -
-
- -
-
-
- -
-
- - -
- -
- -
-
-
- - -
- - - -
- -
- - -
-
- - -
- - - -
-
- - -
-
- - -
- - - -
-
-
- -
-
-
-
- - -
-
-
-
- - -
-

-
- -
- -
-
- - -
- - - -
-
- -

Please enter a query in the search box.

- -

Search Results for ""

-
- -
-
- - post_type=='page')) continue; ?> -
-
-
> -
-

- Posted on -
- - - - @'), array(' ', "\n"), apply_filters('the_content', $post->post_content))) : ''); - - // Search content for terms - $terms = $wp_query->query_vars['search_terms']; - if ( preg_match_all('/'.str_replace('/', '\/', join('|', $terms)).'/i', $content, $matches, PREG_OFFSET_CAPTURE) ) { - $padding = max($min_padding, $max_length / (2*count($matches[0]))); - - // Construct extract containing context for each term - $output = ''; - $last_offset = 0; - foreach ( $matches[0] as $match ) { - list($string, $offset) = $match; - $start = $offset-$padding; - $end = $offset+strlen($string)+$padding; - // Preserve whole words - while ( $start > 1 && preg_match('/[A-Za-z0-9\'"-]/', $content{$start-1}) ) $start--; - while ( $end < strlen($content)-1 && preg_match('/[A-Za-z0-9\'"-]/', $content{$end}) ) $end++; - $start = max($start, $last_offset); - $context = substr($content, $start, $end-$start); - if ( $start > $last_offset ) $context = '...'.$context; - $output .= $context; - $last_offset = $end; - } - - if ( $last_offset != strlen($content)-1 ) $output .= '...'; - } else { - $output = $content; - } - - if ( strlen($output) > $max_length ) { - $end = $max_length-3; - while ( $end > 1 && preg_match('/[A-Za-z0-9\'"-]/', $output{$end-1}) ) $end--; - $output = substr($output, 0, $end) . '...'; - } - - // Highlight matches - $context = nl2br(preg_replace('/'.str_replace('/', '\/', join('|', $terms)).'/i', '$0', $output)); - ?> - -

- -

-

- Read this entry -

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

-
- -
- - -
-
- - -
- - - -
-
-
- "; - bcn_display(); - echo "
"; - } - ?> -
-
- - -
-
- - - - - - - - -
- - - -
- -
-
- -
- - - - - - -
-
-
- - - - - - - - - - - - \ No newline at end of file + + + +
+
+
+ +
+
+
+
+ + + \ No newline at end of file diff --git a/root/sections/blog-archive.php b/root/sections/blog-archive.php new file mode 100644 index 0000000..1d3b1f8 --- /dev/null +++ b/root/sections/blog-archive.php @@ -0,0 +1,8 @@ +
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/root/sections/blog-home.php b/root/sections/blog-home.php new file mode 100644 index 0000000..90a0b4f --- /dev/null +++ b/root/sections/blog-home.php @@ -0,0 +1,8 @@ +
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/root/sections/blog-single.php b/root/sections/blog-single.php new file mode 100644 index 0000000..a7197c4 --- /dev/null +++ b/root/sections/blog-single.php @@ -0,0 +1,26 @@ +
+
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+

+
+ +
+ +
+
\ No newline at end of file diff --git a/root/sections/copyright.php b/root/sections/copyright.php new file mode 100644 index 0000000..b22d93c --- /dev/null +++ b/root/sections/copyright.php @@ -0,0 +1,11 @@ +
+ +
\ No newline at end of file diff --git a/root/sections/footer.php b/root/sections/footer.php new file mode 100644 index 0000000..b7b805c --- /dev/null +++ b/root/sections/footer.php @@ -0,0 +1,72 @@ + \ No newline at end of file diff --git a/root/sections/front-page.php b/root/sections/front-page.php new file mode 100644 index 0000000..e0e927c --- /dev/null +++ b/root/sections/front-page.php @@ -0,0 +1,112 @@ +
+
+
+ +
+
+
+
+ Training +
+

Let’s work together! Every team should have the best leaders equipped with the best solutions.

+
+
+
+ Partnering +
+

Let’s work together! Your journey is our passion.

+
+
+
+ Speaking +
+

Let’s work together! To inspire positive change.

+
+
+
+ Planning +
+

Let’s work together! Your great vision deserves a great plan.

+
+
+
+
+
+
+ $number, + 'orderby' => 'title', + 'order' => 'ASC', + 'hide_empty' => $hide_empty, + 'include' => $ids + ); + $product_categories = get_terms( 'product_cat', $args ); + $count = count($product_categories); + if ( $count > 0 ){ + foreach ( $product_categories as $product_category ) { ?> +
+
+
+ +
+
+ ' . $product_category->name . ''; + $args = array( + 'posts_per_page' => -1, + 'tax_query' => array( + 'relation' => 'AND', + array( + 'taxonomy' => 'product_cat', + 'field' => 'slug', + // 'terms' => 'white-wines' + 'terms' => $product_category->slug + ) + ), + 'post_type' => 'product', + 'orderby' => 'title,' + ); + $products = new WP_Query( $args ); + echo "
    "; + + while ( $products->have_posts() ) { + + $products->the_post(); + ?> +
  • + + + +
  • + have_posts()) { + echo "TBD"; + } + echo "
";?> +
+
+
+ + +
+
+
+ +
+
+
+ +
+
+
+
\ No newline at end of file diff --git a/root/sections/header.php b/root/sections/header.php new file mode 100644 index 0000000..726f945 --- /dev/null +++ b/root/sections/header.php @@ -0,0 +1,15 @@ +
+
+
+ +
+
+ +

You Want Healthcare to be Great. We Do Too.

+

Let's Work Together.

+
+
+

Let's Work Together.

+
+
+
\ No newline at end of file diff --git a/root/sections/interior-page.php b/root/sections/interior-page.php new file mode 100644 index 0000000..2173b42 --- /dev/null +++ b/root/sections/interior-page.php @@ -0,0 +1,54 @@ +
+ ID ) == "partners-blocks") { ?> +
+ +
+ +
+ "; + bcn_display(); + echo "
"; + } + ?> +
+ +
+ + ID ) == "partners-blocks") { ?> + + ID); ?> + + + post_content) ; ?> + + + + + ID ) == "members-only") { ?> + + ID); ?> +
+ + +
+
+ post_content) ; ?> +
+ + +
+
+ "; + get_template_part('parts/main-content'); + echo "
"; + echo "
"; + get_sidebar(); + echo "
"; + } + ?> +
+ +
\ No newline at end of file diff --git a/root/sections/off-canvas.php b/root/sections/off-canvas.php new file mode 100644 index 0000000..bda0d38 --- /dev/null +++ b/root/sections/off-canvas.php @@ -0,0 +1,48 @@ +
+
+ + Menu +
+
+
+ + + + + + +
\ No newline at end of file diff --git a/root/sections/search.php b/root/sections/search.php new file mode 100644 index 0000000..3a63a71 --- /dev/null +++ b/root/sections/search.php @@ -0,0 +1,111 @@ + +
+
+ +

Please enter a query in the search box.

+ +

Search Results for ""

+
+ +
+
+ + post_type=='page')) continue; ?> +
+
+
> +
+

+ Posted on +
+ + + + @'), array(' ', "\n"), apply_filters('the_content', $post->post_content))) : ''); + + // Search content for terms + $terms = $wp_query->query_vars['search_terms']; + if ( preg_match_all('/'.str_replace('/', '\/', join('|', $terms)).'/i', $content, $matches, PREG_OFFSET_CAPTURE) ) { + $padding = max($min_padding, $max_length / (2*count($matches[0]))); + + // Construct extract containing context for each term + $output = ''; + $last_offset = 0; + foreach ( $matches[0] as $match ) { + list($string, $offset) = $match; + $start = $offset-$padding; + $end = $offset+strlen($string)+$padding; + // Preserve whole words + while ( $start > 1 && preg_match('/[A-Za-z0-9\'"-]/', $content{$start-1}) ) $start--; + while ( $end < strlen($content)-1 && preg_match('/[A-Za-z0-9\'"-]/', $content{$end}) ) $end++; + $start = max($start, $last_offset); + $context = substr($content, $start, $end-$start); + if ( $start > $last_offset ) $context = '...'.$context; + $output .= $context; + $last_offset = $end; + } + + if ( $last_offset != strlen($content)-1 ) $output .= '...'; + } else { + $output = $content; + } + + if ( strlen($output) > $max_length ) { + $end = $max_length-3; + while ( $end > 1 && preg_match('/[A-Za-z0-9\'"-]/', $output{$end-1}) ) $end--; + $output = substr($output, 0, $end) . '...'; + } + + // Highlight matches + $context = nl2br(preg_replace('/'.str_replace('/', '\/', join('|', $terms)).'/i', '$0', $output)); + ?> + +

+ +

+

+ Read this entry +

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

+
+ +
+ + +
+
\ No newline at end of file diff --git a/root/sections/top-bar.php b/root/sections/top-bar.php new file mode 100644 index 0000000..86b1a3a --- /dev/null +++ b/root/sections/top-bar.php @@ -0,0 +1,5 @@ + \ No newline at end of file