Commit a8fb8df2 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Commit the singing-chimes.co.uk extension theme

parents
Loading
Loading
Loading
Loading

content-page.php

0 → 100644
+46 −0
Original line number Diff line number Diff line
<?php
/**
 * The template used for displaying page content.
 *
 * @package Sela
 */


$title = the_title(null, null, false);

if ( function_exists('get_nskw_subtitle') ) {
	$subtitle = get_nskw_subtitle();
} else {
	$subtitle = '';
}

if ( $subtitle == '' ) {
	$title_class = 'entry-title';
} else {
	$title_class = 'entry-title has-subtitle';
}

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

	<header class="entry-header">
		<h1 class="<?php print($title_class); ?>"><?php print($title); ?></h1>
		<?php if ( $subtitle != '' ): ?>
			<h5 class="entry-subtitle"><?php print($subtitle); ?></h5>
		<?php endif; ?>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php the_content(); ?>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'sela' ),
				'after'  => '</div>',
			) );
		?>

	</div><!-- .entry-content -->
	<?php edit_post_link( __( 'Edit', 'sela' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>

</article><!-- #post-## -->

functions.php

0 → 100644
+23 −0
Original line number Diff line number Diff line
<?php

/* Style loading boilerplate */
add_action( 'wp_enqueue_scripts', 'sela_child_enqueue_styles' );

function sela_child_enqueue_styles()
{
	wp_enqueue_style( 'sela-style',
		get_template_directory_uri() . '/style.css'
	);

	wp_enqueue_style( 'sela-child-style',
		get_stylesheet_directory_uri() . '/style.css',
		array( 'sela-style' ),
		wp_get_theme()->get('Version')
	);

//	wp_enqueue_style( 'sela-child-bootstrap',
//		get_stylesheet_directory_uri() . '/bootstrap3/css/bootstrap.min.css',
//		array( 'sela-style' ),
//		wp_get_theme()->get('Version')
// 	);
}
+60 −0
Original line number Diff line number Diff line
<?php
/**
 * Template Name: Front Page
 *
 * @package Sela-Child
 */

get_header(); ?>

	<div id="primary" class="content-area front-page-content-area">
		<?php while ( have_posts() ) : the_post(); ?>
			<div class="hero">

				<?php if ( has_post_thumbnail() ) : ?>
				<figure class="hero-content">
					<?php the_post_thumbnail( 'sela-hero-thumbnail' ); ?>
					<div class="hero-content-overlayer">
						<div class="hero-container-outer">
							<div class="hero-container-inner">
								<?php get_template_part( 'content', 'page' ); ?>
							</div><!-- .hero-container-inner -->
						</div><!-- .hero-container-outer -->
					</div><!-- .hero-content-overlayer -->
				</figure><!-- .hero-content -->

				<?php else : ?>
					<?php get_template_part( 'content', 'page' ); ?>
				<?php endif; ?>

			</div><!-- .hero -->
		<?php endwhile; ?>
	</div><!-- #primary -->

	<?php get_sidebar( 'front-page' ); ?>

	<?php
		$testimonials = new WP_Query( array(
			'post_type'      => 'jetpack-testimonial',
			'order'          => 'ASC',
			'orderby'        => 'menu_order',
			'posts_per_page' => 2,
			'no_found_rows'  => true,
		) );
	?>

	<?php if ( $testimonials->have_posts() ) : ?>
	<div id="front-page-testimonials" class="front-testimonials testimonials">
		<div class="grid-row">
		<?php
			while ( $testimonials->have_posts() ) : $testimonials->the_post();
				 get_template_part( 'content', 'testimonial' );
			endwhile;
			wp_reset_postdata();
		?>
		</div>
	</div><!-- .testimonials -->
	<?php endif; ?>

<?php get_sidebar( 'footer' ); ?>
<?php get_footer(); ?>

rtl.css

0 → 100644
+4 −0
Original line number Diff line number Diff line
/*
Theme Name: Sela Child
Template: sela
*/

style.css

0 → 100644
+38 −0
Original line number Diff line number Diff line
/*
 Theme Name:   Sela Child
 Theme URI:    https://code.kodo.org.uk/kodo.org.uk/sela-child
 Description:  Sela Child Theme
 Author:       Dominik Sekotill
 Author URI:   http://code.kodo.org.uk/dom
 Template:     sela
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         blog, custom-background, custom-colors, custom-menu, featured-images, full-width-template, microformats, right-sidebar, rtl-language-support, sticky-post, translation-ready, two-columns
 Text Domain:  sela-child
*/

/* === New colours === */
/* Colour scheme: https://goo.gl/qNbO4G */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
#infinite-handle span {
	background-color: #74BEFF;
}
a {
	color: #69DDE8;
}
.main-navigation {
	background-color: #74BEFF;
}


/* === Subtitles === */
.entry-subtitle {
	text-transform: none;
}
.has-subtitle {
	margin-bottom: 0;
}