mailing list area
This commit is contained in:
parent
4b85698070
commit
c1bfb6c9f7
504
front-page.php
504
front-page.php
@ -2,31 +2,31 @@
|
|||||||
|
|
||||||
<main class="st-main st-main-grid">
|
<main class="st-main st-main-grid">
|
||||||
<!-- LATEST SECTION -->
|
<!-- LATEST SECTION -->
|
||||||
<div class="st-article-section-topper"></div>
|
<div class="st-article-section-topper"></div>
|
||||||
<section class="st-article-section-grid">
|
<section class="st-article-section-grid">
|
||||||
<section class="st-article-section st-article-section-highlight">
|
<section class="st-article-section st-article-section-highlight">
|
||||||
<h2 class="st-article-section-title">Latest <a href="<?php echo home_url() . '/articles/'; ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title">Latest <a href="<?php echo home_url() . '/articles/'; ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
query_posts('showposts=1');
|
query_posts('showposts=1');
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-main-article">
|
<article class="st-article-section-main-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
||||||
<h3><?php the_title(); ?></h3>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
||||||
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
<a href="<?php echo get_author_posts_url($post->post_author); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
@ -42,74 +42,79 @@
|
|||||||
);
|
);
|
||||||
query_posts($post_section_two_args);
|
query_posts($post_section_two_args);
|
||||||
?><div class="st-article-section-sub-article-stack"><?php
|
?><div class="st-article-section-sub-article-stack"><?php
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article class="st-article-section-sub-article">
|
<article class="st-article-section-sub-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="st-article-section-sub-article__text-container">
|
<div class="st-article-section-sub-article__text-container">
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
|
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>">
|
||||||
</div>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</div>
|
||||||
<?php
|
</a>
|
||||||
endwhile;
|
</article>
|
||||||
endif;
|
<?php
|
||||||
wp_reset_postdata();
|
endwhile;
|
||||||
wp_reset_query();
|
endif;
|
||||||
|
wp_reset_postdata();
|
||||||
|
wp_reset_query();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="st-ad-section st-ad-section__top">
|
<section class="st-ad-section st-ad-section__top">
|
||||||
<?php
|
<?php
|
||||||
if(function_exists('the_ad_group')){
|
if (function_exists('the_ad_group')) {
|
||||||
the_ad_group(146);
|
the_ad_group(146);
|
||||||
the_ad_group(147);
|
the_ad_group(147);
|
||||||
the_ad_group(148);
|
the_ad_group(148);
|
||||||
}
|
}
|
||||||
?>
|
if (function_exists('dynamic_sidebar')) {
|
||||||
|
dynamic_sidebar('mailing_list');
|
||||||
|
}
|
||||||
|
?>
|
||||||
</section>
|
</section>
|
||||||
<!-- TECH SECTION -->
|
<!-- TECH SECTION -->
|
||||||
<section class="st-article-section st-article-section-bottom">
|
<section class="st-article-section st-article-section-bottom">
|
||||||
<?php
|
<?php
|
||||||
$section_category = 'News';
|
$section_category = 'News';
|
||||||
$section_category_id = get_cat_ID( $section_category );
|
$section_category_id = get_cat_ID($section_category);
|
||||||
?>
|
?>
|
||||||
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link( $section_category_id ); ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
$post_section_three_featured_args = array(
|
$post_section_three_featured_args = array(
|
||||||
'showposts' => 1,
|
'showposts' => 1,
|
||||||
'category_name' => $section_category,
|
'category_name' => $section_category,
|
||||||
'orderby' => 'post_date',
|
'orderby' => 'post_date',
|
||||||
'order' => 'DESC',
|
'order' => 'DESC',
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
'post_status' => 'publish'
|
'post_status' => 'publish'
|
||||||
);
|
);
|
||||||
query_posts($post_section_three_featured_args);
|
query_posts($post_section_three_featured_args);
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-main-article">
|
<article class="st-article-section-main-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
||||||
<h3><?php the_title(); ?></h3>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
||||||
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
<a href="<?php echo get_author_posts_url($post->post_author); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
@ -126,26 +131,28 @@
|
|||||||
);
|
);
|
||||||
query_posts($post_section_two_args);
|
query_posts($post_section_two_args);
|
||||||
?><div class="st-article-section-sub-article-stack"><?php
|
?><div class="st-article-section-sub-article-stack"><?php
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-sub-article">
|
<article class="st-article-section-sub-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="st-article-section-sub-article__text-container">
|
<div class="st-article-section-sub-article__text-container">
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
|
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>">
|
||||||
</div>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</div>
|
||||||
<?php
|
</a>
|
||||||
endwhile;
|
</article>
|
||||||
endif;
|
<?php
|
||||||
wp_reset_postdata();
|
endwhile;
|
||||||
wp_reset_query();
|
endif;
|
||||||
?>
|
wp_reset_postdata();
|
||||||
|
wp_reset_query();
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -153,86 +160,88 @@
|
|||||||
<!-- FLAT HORIZONTAL SECTION HERE -->
|
<!-- FLAT HORIZONTAL SECTION HERE -->
|
||||||
<section class="st-article-section st-article-section-wide">
|
<section class="st-article-section st-article-section-wide">
|
||||||
<?php
|
<?php
|
||||||
$section_category = 'Cycling';
|
$section_category = 'Cycling';
|
||||||
$section_category_id = get_cat_ID( $section_category );
|
$section_category_id = get_cat_ID($section_category);
|
||||||
?>
|
?>
|
||||||
<h2 class="st-article-section-title"><?php echo $section_category; ?><a href="<?php echo get_category_link( $section_category_id ); ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title"><?php echo $section_category; ?><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
$post_section_three_featured_args = array(
|
$post_section_three_featured_args = array(
|
||||||
'showposts' => 4,
|
'showposts' => 4,
|
||||||
'category_name' => $section_category,
|
'category_name' => $section_category,
|
||||||
'orderby' => 'post_date',
|
'orderby' => 'post_date',
|
||||||
'order' => 'DESC',
|
'order' => 'DESC',
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
'post_status' => 'publish'
|
'post_status' => 'publish'
|
||||||
);
|
);
|
||||||
query_posts( $post_section_three_featured_args );
|
query_posts($post_section_three_featured_args);
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-wide-article">
|
<article class="st-article-section-wide-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-wide-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-wide-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="st-article-section-wide-article__text-container">
|
<div class="st-article-section-wide-article__text-container">
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-wide-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-wide-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-wide-article__title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
|
<a class="st-article-section-wide-article__title" href="<?php the_permalink(); ?>">
|
||||||
<p class="st-article-section-wide-article__excerpt"><?php the_excerpt(); ?></p>
|
<h3><?php the_title(); ?></h3>
|
||||||
</div>
|
</a>
|
||||||
</a>
|
<p class="st-article-section-wide-article__excerpt"><?php the_excerpt(); ?></p>
|
||||||
</article>
|
</div>
|
||||||
|
</a>
|
||||||
|
</article>
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
wp_reset_query();
|
wp_reset_query();
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
<section class="st-ad-section-long">
|
<section class="st-ad-section-long">
|
||||||
<?php
|
<?php
|
||||||
if(function_exists('the_ad_group')){
|
if (function_exists('the_ad_group')) {
|
||||||
the_ad_group(149);
|
the_ad_group(149);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
<!-- LATEST SECTION -->
|
<!-- LATEST SECTION -->
|
||||||
<section class="st-article-section-grid">
|
<section class="st-article-section-grid">
|
||||||
<section class="st-article-section st-article-section-highlight">
|
<section class="st-article-section st-article-section-highlight">
|
||||||
<?php
|
<?php
|
||||||
$section_category = 'Industry';
|
$section_category = 'Industry';
|
||||||
$section_category_id = get_cat_ID( $section_category );
|
$section_category_id = get_cat_ID($section_category);
|
||||||
?>
|
?>
|
||||||
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link( $section_category_id ); ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
$post_section_three_featured_args = array(
|
$post_section_three_featured_args = array(
|
||||||
'showposts' => 1,
|
'showposts' => 1,
|
||||||
'category_name' => $section_category,
|
'category_name' => $section_category,
|
||||||
'orderby' => 'post_date',
|
'orderby' => 'post_date',
|
||||||
'order' => 'DESC',
|
'order' => 'DESC',
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
'post_status' => 'publish'
|
'post_status' => 'publish'
|
||||||
);
|
);
|
||||||
query_posts($post_section_three_featured_args);
|
query_posts($post_section_three_featured_args);
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-main-article">
|
<article class="st-article-section-main-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
||||||
<h3><?php the_title(); ?></h3>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
||||||
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
<a href="<?php echo get_author_posts_url($post->post_author); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
@ -249,74 +258,79 @@
|
|||||||
);
|
);
|
||||||
query_posts($post_section_two_args);
|
query_posts($post_section_two_args);
|
||||||
?><div class="st-article-section-sub-article-stack"><?php
|
?><div class="st-article-section-sub-article-stack"><?php
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article class="st-article-section-sub-article">
|
<article class="st-article-section-sub-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="st-article-section-sub-article__text-container">
|
<div class="st-article-section-sub-article__text-container">
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
|
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>">
|
||||||
</div>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</div>
|
||||||
<?php
|
</a>
|
||||||
endwhile;
|
</article>
|
||||||
endif;
|
<?php
|
||||||
wp_reset_postdata();
|
endwhile;
|
||||||
wp_reset_query();
|
endif;
|
||||||
|
wp_reset_postdata();
|
||||||
|
wp_reset_query();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="st-ad-section st-ad-section__top">
|
<section class="st-ad-section st-ad-section__top">
|
||||||
<?php
|
<?php
|
||||||
if(function_exists('the_ad_group')){
|
if (function_exists('the_ad_group')) {
|
||||||
the_ad_group(146);
|
the_ad_group(146);
|
||||||
the_ad_group(147);
|
the_ad_group(147);
|
||||||
the_ad_group(148);
|
the_ad_group(148);
|
||||||
}
|
}
|
||||||
?>
|
if (function_exists('dynamic_sidebar')) {
|
||||||
|
dynamic_sidebar('mailing_list');
|
||||||
|
}
|
||||||
|
?>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="st-article-section st-article-section-bottom">
|
<section class="st-article-section st-article-section-bottom">
|
||||||
<?php
|
|
||||||
$section_category = 'Running';
|
|
||||||
$section_category_id = get_cat_ID( $section_category );
|
|
||||||
?>
|
|
||||||
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link( $section_category_id ); ?>" class="st-article-section-category-link">></a></h2>
|
|
||||||
<?php
|
<?php
|
||||||
$post_section_three_featured_args = array(
|
$section_category = 'Running';
|
||||||
'showposts' => 1,
|
$section_category_id = get_cat_ID($section_category);
|
||||||
'category_name' => $section_category,
|
?>
|
||||||
'orderby' => 'post_date',
|
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
|
||||||
'order' => 'DESC',
|
<?php
|
||||||
'post_type' => 'post',
|
$post_section_three_featured_args = array(
|
||||||
'post_status' => 'publish'
|
'showposts' => 1,
|
||||||
);
|
'category_name' => $section_category,
|
||||||
query_posts($post_section_three_featured_args);
|
'orderby' => 'post_date',
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
'order' => 'DESC',
|
||||||
|
'post_type' => 'post',
|
||||||
|
'post_status' => 'publish'
|
||||||
|
);
|
||||||
|
query_posts($post_section_three_featured_args);
|
||||||
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-main-article">
|
<article class="st-article-section-main-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-main-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-main-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
<a class="st-article-section-main-article__title" href="<?php the_permalink(); ?>">
|
||||||
<h3><?php the_title(); ?></h3>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
<p class="st-article-section-main-article__excerpt"><?php echo get_the_excerpt(); ?></p>
|
||||||
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
<a href="<?php echo get_author_posts_url($post->post_author); ?>" class="st-article-section-main-article__author-link">by <?php echo $author->display_name; ?>, <?php the_time('F j, Y'); ?></a>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
@ -333,25 +347,27 @@
|
|||||||
);
|
);
|
||||||
query_posts($post_section_two_args);
|
query_posts($post_section_two_args);
|
||||||
?><div class="st-article-section-sub-article-stack"><?php
|
?><div class="st-article-section-sub-article-stack"><?php
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-sub-article">
|
<article class="st-article-section-sub-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-sub-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="st-article-section-sub-article__text-container">
|
<div class="st-article-section-sub-article__text-container">
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-sub-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
|
<a class="st-article-section-sub-article__title" href="<?php the_permalink(); ?>">
|
||||||
</div>
|
<h3><?php the_title(); ?></h3>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</div>
|
||||||
<?php
|
</a>
|
||||||
endwhile;
|
</article>
|
||||||
endif;
|
<?php
|
||||||
wp_reset_postdata();
|
endwhile;
|
||||||
wp_reset_query();
|
endif;
|
||||||
|
wp_reset_postdata();
|
||||||
|
wp_reset_query();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -362,41 +378,43 @@
|
|||||||
<!-- FLAT HORIZONTAL SECTION HERE -->
|
<!-- FLAT HORIZONTAL SECTION HERE -->
|
||||||
<section class="st-article-section st-article-section-wide">
|
<section class="st-article-section st-article-section-wide">
|
||||||
<?php
|
<?php
|
||||||
$section_category = 'Training';
|
$section_category = 'Training';
|
||||||
$section_category_id = get_cat_ID( $section_category );
|
$section_category_id = get_cat_ID($section_category);
|
||||||
?>
|
?>
|
||||||
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link( $section_category_id ); ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
$post_section_three_featured_args = array(
|
$post_section_three_featured_args = array(
|
||||||
'showposts' => 4,
|
'showposts' => 4,
|
||||||
'category_name' => $section_category,
|
'category_name' => $section_category,
|
||||||
'orderby' => 'post_date',
|
'orderby' => 'post_date',
|
||||||
'order' => 'DESC',
|
'order' => 'DESC',
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
'post_status' => 'publish'
|
'post_status' => 'publish'
|
||||||
);
|
);
|
||||||
query_posts($post_section_three_featured_args);
|
query_posts($post_section_three_featured_args);
|
||||||
if (have_posts()) : while (have_posts()) : the_post();
|
if (have_posts()) : while (have_posts()) : the_post();
|
||||||
$category = get_the_category()[0];
|
$category = get_the_category()[0];
|
||||||
$author = get_userdata( $post->post_author );
|
$author = get_userdata($post->post_author);
|
||||||
?>
|
?>
|
||||||
<article class="st-article-section-wide-article">
|
<article class="st-article-section-wide-article">
|
||||||
<a href="<?php the_permalink(); ?>" class="st-article-section-wide-article__image-link">
|
<a href="<?php the_permalink(); ?>" class="st-article-section-wide-article__image-link">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="st-article-section-wide-article__text-container">
|
<div class="st-article-section-wide-article__text-container">
|
||||||
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-wide-article__category-link"><?php echo $category->name; ?></a>
|
<a href="<?php echo home_url($category->slug); ?>" class="st-article-section-wide-article__category-link"><?php echo $category->name; ?></a>
|
||||||
<a class="st-article-section-wide-article__title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
|
<a class="st-article-section-wide-article__title" href="<?php the_permalink(); ?>">
|
||||||
<p class="st-article-section-wide-article__excerpt"><?php the_excerpt(); ?></p>
|
<h3><?php the_title(); ?></h3>
|
||||||
</div>
|
</a>
|
||||||
</a>
|
<p class="st-article-section-wide-article__excerpt"><?php the_excerpt(); ?></p>
|
||||||
</article>
|
</div>
|
||||||
|
</a>
|
||||||
|
</article>
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
wp_reset_query();
|
wp_reset_query();
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
@ -31,6 +31,16 @@ function slowtwitch_menus() {
|
|||||||
register_nav_menus($locations);
|
register_nav_menus($locations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action( 'widgets_init', 'st_widgets_init' );
|
||||||
|
|
||||||
|
function st_widgets_init() {
|
||||||
|
register_sidebar( array(
|
||||||
|
'name' => 'Mailing List',
|
||||||
|
'id' => 'mailing_list',
|
||||||
|
'before_widget' => '<div class="st-mailing-list-widget">',
|
||||||
|
'after_widget' => '</div>',) );
|
||||||
|
}
|
||||||
|
|
||||||
add_action( 'widgets_init', 'my_widgets_init' );
|
add_action( 'widgets_init', 'my_widgets_init' );
|
||||||
|
|
||||||
function my_widgets_init() {
|
function my_widgets_init() {
|
||||||
|
@ -69,6 +69,9 @@
|
|||||||
the_ad_group(147);
|
the_ad_group(147);
|
||||||
the_ad_group(148);
|
the_ad_group(148);
|
||||||
}
|
}
|
||||||
|
if (function_exists('dynamic_sidebar')) {
|
||||||
|
dynamic_sidebar('mailing_list');
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
26
style.css
26
style.css
@ -196,6 +196,7 @@ SECTIONS
|
|||||||
.st-header-scrolled {
|
.st-header-scrolled {
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
background-color: rgba(255, 255, 255, 0.95);
|
background-color: rgba(255, 255, 255, 0.95);
|
||||||
|
z-index: 999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.st-header-icon-bar {
|
.st-header-icon-bar {
|
||||||
@ -694,7 +695,7 @@ SECTIONS
|
|||||||
top: 85px;
|
top: 85px;
|
||||||
left: 0;
|
left: 0;
|
||||||
align-self: start;
|
align-self: start;
|
||||||
z-index: -1000;
|
/* z-index: -1000; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1324,8 +1325,6 @@ a.page-numbers,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.discourse-comments-area {
|
.discourse-comments-area {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
@ -1451,4 +1450,25 @@ a.page-numbers,
|
|||||||
.st-hidden-home-header-link-scrolled {
|
.st-hidden-home-header-link-scrolled {
|
||||||
left: 250px;
|
left: 250px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-mailchimp-signup label {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: .5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-mailchimp-signup__button {
|
||||||
|
background-color: #0b4fa0;
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
padding: .25em .75em;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-mailchimp-signup__button:hover {
|
||||||
|
background-color: #FFDB12;
|
||||||
|
color: #414b4c;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user