1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-23 01:30:09 +01:00
This commit is contained in:
Sarah Etter 2015-10-01 17:48:59 -06:00
parent 646fb51858
commit ca272794fe
8 changed files with 55 additions and 20 deletions

View File

@ -1408,7 +1408,7 @@ header + .chevron-divider {
vertical-align: top;
padding-right: 30px;
font-size: 15px;
width: 14.28571429%;
width: 16.66666667%;
}
@media screen and (max-width: 768px) {
.blog header + nav li,
@ -1417,6 +1417,13 @@ header + .chevron-divider {
width: 33%;
}
}
@media screen and (max-width: 375px) {
.blog header + nav li,
.archive header + nav li,
.single-post header + nav li {
width: 50%;
}
}
.blog header + nav a,
.archive header + nav a,
.single-post header + nav a {
@ -1840,6 +1847,9 @@ header + .chevron-divider {
line-height: 19px;
text-align: center;
}
.team .column-container {
text-align: left;
}
.team .intro {
margin-bottom: 60px;
text-align: left;
@ -1863,8 +1873,6 @@ header + .chevron-divider {
}
.team img {
border-radius: 100%;
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
.team h1 {
color: #000000;
@ -2314,6 +2322,9 @@ article.post .meta {
.blog-sidebar .sidebar-blog-features .blog {
margin-bottom: 70px;
}
.blog-sidebar .sidebar-blog-features .blog:hover {
opacity: 0.3;
}
@media screen and (max-width: 570px) {
.blog-sidebar {
width: 50%;

File diff suppressed because one or more lines are too long

View File

@ -118,7 +118,7 @@ header + .chevron-divider {
.column-container;
}
li {
.ttl-columns.column-7;
.ttl-columns.column-6;
}
a {
display: block;
@ -492,6 +492,10 @@ header + .chevron-divider {
.copyTextSmall;
text-align: center;
.column-container {
text-align: left;
}
.intro {
margin-bottom: 60px;
text-align: left;
@ -506,7 +510,6 @@ header + .chevron-divider {
}
img {
border-radius: 100%;
filter: grayscale(100%);
}
h1 {
.teamName;
@ -854,6 +857,10 @@ article.post {
}
.blog {
margin-bottom: 70px;
&:hover {
opacity: 0.3;
}
}
}

View File

@ -16,6 +16,10 @@ if( empty($fname)){
$full_name = "{$fname} {$lname}";
}
if (strlen($full_name) <= 0) {
$full_name = 'ascribe';
}
?>
<article <?php post_class(); ?>>
@ -26,10 +30,9 @@ if( empty($fname)){
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post');
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'blog-crop');
echo "<img src='{$thumb[0]}' alt='{$title} image'>";
}
?>
</div>

View File

@ -214,12 +214,17 @@ class Subtemplate {
$galleriesImgUrl = get_sub_field('galleries_image')['url'];
$galleriesImgAlt = get_sub_field('galleries_image')['alt'];
$galleryMarkup = '';
if ($galleryLink) {
$galleryMarkup = "<a href='{$galleryLink}' class='button white-blue'>Read more</a>";
}
$result = "<section class='subtemplate galleries-marketplaces'>
<div class='centered-content'>
<h1>{$subtemplateTitle}</h1>
<img src='{$galleriesImgUrl}' alt='{$galleriesImgAlt}'>
<a href='{$galleryLink}' class='button white-blue'>Read more</a>
{$galleryMarkup}
</div>
</section>";
@ -235,7 +240,7 @@ class Subtemplate {
$feature = get_sub_field('post');
$postTitle = $feature->post_title;
$url = get_permalink($feature->ID);
$content = substr($feature->post_content, 144);
$content = substr($feature->post_content, 0, 144) . '...';
$date = date('F Y',$feature->post_date);
$image = wp_get_attachment_image_src(get_post_thumbnail_id($feature->ID),'large')[0];
@ -539,7 +544,8 @@ class Subtemplate {
$args = array(
'post_type' => 'presscoverage',
'order' => 'ASC'
'order' => 'ASC',
'posts_per_page' => 50
);
@ -677,7 +683,7 @@ class Subtemplate {
'order' => 'DESC',
'orderby' => 'meta_value',
'meta_key' => 'date',
'posts_per_page' => 20,
'posts_per_page' => 10,
'meta_query' => array(
array(
'key' => 'date',
@ -717,10 +723,6 @@ class Subtemplate {
}
}
$result = "<section class='subtemplate upcoming-events'>
<div class='centered-content-padding'>
<div class='centered-content'>
@ -732,7 +734,7 @@ class Subtemplate {
<div class='chevron-divider'></div>
<section class='subtemplate past-events'>
<div class='centered-content-padding'>
<div class='centered-content'>
<div class='centered-content' id='content'>
<h1>Past Events</h1>
<div>{$pastMarkup}</div>
</div>

View File

@ -88,3 +88,12 @@ function new_excerpt_more($more) {
return '... <a class="moretag" href="'. get_permalink($post->ID) . '"> Read More</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
// THUMBNAIL ADD CUSTOM SIZE
add_action( 'after_setup_theme', 'ttl_image_setup' );
function ttl_image_setup() {
add_image_size( 'blog-crop', 600, 350, true ); //(cropped)
}

View File

@ -15,7 +15,10 @@ if ( have_posts() ) {
else {
get_template_part( 'content', 'noposts' );
}
?>
<div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
<div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
<?php
echo '</div>';
get_sidebar('blog');

View File

@ -1 +1 @@
{"/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribe.css":"2015-09-26T02:07:07.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribe.min.css":"2015-09-26T02:07:07.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//readme.md":"2015-09-17T22:31:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/ascribe.less":"2015-09-26T02:07:04.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribe.js":"2015-09-24T23:54:44.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribe.min.js":"2015-09-24T23:54:44.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//src/ascribe.js":"2015-09-24T23:53:14.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/readme.md":"2015-09-17T22:31:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//helpers/helpers.less":"2015-09-26T02:06:45.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/branding.less":"2015-09-26T01:45:23.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/colorbox.css":"2015-08-30T20:38:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/normalize.less":"2015-08-25T22:42:14.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/print.less":"2015-07-02T21:25:38.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/retina/retina.min.js":"2015-08-18T23:30:10.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//controller.inc.php":"2015-09-17T22:47:24.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//init.php":"2015-09-21T22:45:13.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//classes/Subtemplate.php":"2015-09-24T23:27:17.000Z"}
{"/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribe.css":"2015-10-01T23:08:13.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribe.min.css":"2015-10-01T23:08:14.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//readme.md":"2015-09-17T22:31:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/ascribe.less":"2015-10-01T23:08:11.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribe.js":"2015-09-24T23:54:44.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribe.min.js":"2015-09-24T23:54:44.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//src/ascribe.js":"2015-09-24T23:53:14.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/readme.md":"2015-09-17T22:31:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//helpers/helpers.less":"2015-09-26T02:06:45.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/branding.less":"2015-09-26T01:45:23.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/colorbox.css":"2015-08-30T20:38:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/normalize.less":"2015-08-25T22:42:14.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/print.less":"2015-07-02T21:25:38.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/retina/retina.min.js":"2015-08-18T23:30:10.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//controller.inc.php":"2015-09-17T22:47:24.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//init.php":"2015-09-21T22:45:13.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//classes/Subtemplate.php":"2015-09-24T23:27:17.000Z"}