-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into 152-custom-user-roles-ltw
- Loading branch information
Showing
10 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,4 +353,4 @@ | |
[class*=project-category] { | ||
background: @white; | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
wp-content/themes/currentorg/less/current-ltw-template.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// styling for LTW page template | ||
.page-template-template-page-ltw, | ||
.post-type-archive-projects { | ||
#site-header { | ||
.header_img { | ||
max-width: 20%; | ||
} | ||
@media (max-width: 768px) { | ||
display: inherit; | ||
.header_img { | ||
max-width: 50%; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Template Name: Local That Works Template | ||
* Description: No sidebars, only logo and page content. Does not include global, main and secondary navs. | ||
*/ | ||
wp_head(); | ||
|
||
// enqueue stylesheet for this template | ||
wp_enqueue_style('current-ltw-template-stylesheet'); | ||
|
||
// dequeue nav script since there is no nav here | ||
wp_dequeue_script('largo-navigation'); | ||
|
||
$queried_object = get_queried_object(); | ||
?> | ||
<body <?php body_class(); ?>> | ||
<div id="page" class="hfeed clearfix"> | ||
|
||
<?php | ||
do_action( 'largo_before_header' ); | ||
get_template_part( 'partials/largo-header' ); | ||
do_action( 'largo_after_header' ); | ||
?> | ||
<div id="main" class="row-fluid clearfix"> | ||
<div id="content" role="main"> | ||
<?php | ||
while ( have_posts() ) : the_post(); | ||
|
||
$shown_ids[] = get_the_ID(); | ||
|
||
$partial = ( is_page() ) ? 'page' : 'single'; | ||
|
||
get_template_part( 'partials/content', $partial ); | ||
|
||
if ( $partial === 'single' ) { | ||
|
||
do_action( 'largo_before_post_bottom_widget_area' ); | ||
|
||
do_action( 'largo_post_bottom_widget_area' ); | ||
|
||
do_action( 'largo_after_post_bottom_widget_area' ); | ||
|
||
do_action( 'largo_before_comments' ); | ||
|
||
comments_template( '', true ); | ||
|
||
do_action( 'largo_after_comments' ); | ||
} | ||
|
||
endwhile; | ||
?> | ||
</div> | ||
</div> | ||
|
||
<?php | ||
// End of page | ||
get_footer(); |