Permalink
Browse files

initial

  • Loading branch information...
chdoff committed Dec 14, 2017
1 parent 9d63497 commit 3543c175fd5eb6c9fd30404c1e2e4cefe07c809c
@@ -0,0 +1,17 @@
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_image_size('chd-off-thumb', 300,300, true );
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
);
}
//
// Your code goes below
//
@@ -0,0 +1,67 @@
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<div class="wrap">
<?php if ( is_home() && ! is_front_page() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php single_post_title(); ?></h1>
</header>
<?php else : ?>
<header class="page-header">
<h2 class="page-title"><?php _e( 'Posts', 'twentyseventeen' ); ?></h2>
</header>
<?php endif; ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/post/content-home', get_post_format() );
endwhile;
the_posts_pagination( array(
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
) );
else :
get_template_part( 'template-parts/post/content', 'none' );
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->
<?php get_footer();
@@ -0,0 +1,19 @@
#Chandigarh
Version 1.0
Header Image:
=============
aerial-shot-of-gray-dock-on-body-of-water
https://www.pexels.com/photo/aerial-shot-of-gray-dock-on-body-of-water-697313/
Blog Images:
=============
adventure-altitude-climb-clouds
https://www.pexels.com/photo/adventure-altitude-climb-clouds-238619/
woman-in-black-yellow-and-white-floral-button-up-shirt-holding-smartphone-wearing-aviator-sunglasses-near-body-of-water
https://www.pexels.com/photo/woman-in-black-yellow-and-white-floral-button-up-shirt-holding-smartphone-wearing-aviator-sunglasses-near-body-of-water-681793/
adventure-climber-cold-hiking
https://www.pexels.com/photo/adventure-climber-cold-hiking-236959/
@@ -0,0 +1,9 @@
/*
Theme Name: Chandigarh Official
Template: <br />
<b>Notice</b>: Undefined variable: parent_template_name in <b>C:\xampp\htdocs\poopoo\wp-content\plugins\one-click-child-theme\templates\rtl-css.php</b> on line <b>3</b><br />
Right to Left text support.
*/
@import url("../twentyseventeen/rtl.css");
Binary file not shown.
@@ -0,0 +1,149 @@
/*
Theme Name: Chandigarh
Description:
Author: admin
Template: twentyseventeen
(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/
.custom-header{
max-height: 250px !important;
overflow: auto;
width: 100% !important;
}
/*.single-featured-image-header{*/
/*max-height: 400px !important;*/
/*}*/
.custom-header .wrap,.navigation-top .wrap,#content .wrap,footer .wrap{
margin: 0px 30px;
max-width: 100%;
}
.site-branding{
margin-bottom: 0;
position: relative;
bottom: 0;
/*top: 25px;*/
}
.site-content {
padding: 3.5em 0 0;
}
.page-header{
display: none;
}
/*-- Navigation--*/
@media screen and (max-width: 767px){
#site-navigation{
overflow: hidden;
}
#site-navigation ul{
background: linear-gradient(-90deg, #71b280, #267871);
}
button.menu-toggle{
color: #ffffff;
}
}
.navigation-top{
background: linear-gradient(-90deg, #71b280, #267871);
border: none;
}
.main-navigation li li:hover, .main-navigation li li.focus{
background: #71b280;
}
.main-navigation li li.focus > a, .main-navigation li li:focus > a, .main-navigation li li:hover > a, .main-navigation li li a:hover, .main-navigation li li a:focus, .main-navigation li li.current_page_item a:hover, .main-navigation li li.current-menu-item a:hover, .main-navigation li li.current_page_item a:focus, .main-navigation li li.current-menu-item a:focus{
color: #71b280}
.has-header-image .custom-header-media img, .has-header-video .custom-header-media video, .has-header-video .custom-header-media iframe, .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img{
/*display: none;*/
}
.custom-header,.focus,.main-navigation ul ul{
background: #71b280;
border: none;
}
.main-navigation li li:hover, .main-navigation li li.focus{
background: #267871;
}
.main-navigation a,.navigation-top .current-menu-item > a,.main-navigation a:hover ,.navigation-top .current_page_item > a,.site-header .navigation-top .menu-scroll-down{
color: #fff;
}
.main-navigation ul li.menu-item-has-children:after, .main-navigation ul li.page_item_has_children:after{
border-color: transparent transparent #71b280;
}
.navigation-top .wrap{
padding: 0px 30px;
}
.navigation-top a.menu-scroll-down{
display: none;
}
/* -Home Page- */
@media screen and (min-width: 991px){
.post-thumb{
width: 33%;
float: left;
padding: 8px;
}
.post-content{
width: 67%;
float: right;
padding: 8px;
}
.post,.archive,.category{
display: inline-block;
padding-bottom: 0.5em !important;
}
}
/* -Sidebar- */
#secondary{
padding-top: 0px;
}
#secondary .widget:nth-child(even){
background: #71b280;
padding: 20px;
margin-bottom: 10px;
}
#secondary .widget:nth-child(odd){
background: #267871;
padding: 20px;
margin-bottom: 10px;
}
#secondary .widget_search{
background: none !important;
}
#secondary h2.widget-title{
color: #ffffff;
font-size: 12px;
margin-bottom: 10px;
}
#secondary .widget ul li, .widget ol li{
border-top: none;
color: #f5f5f5;
}
#secondary .widget ul li:last-child,#colophon .widget ul li:last-child{
border-bottom: none;
}
#secondary .widget ul li a, .widget ol li a{
color: #f2f2f2;
box-shadow: none;
}
#secondary .widget ul li a:hover, .widget ol li a:hover{
color: #ffffff;
}
/*-- Fooeter sidebar--*/
@media screen and (min-width: 767px){
#colophon .widget-column{
width: 25%;
}
#colophon .widget{
padding: 20px;
}
#colophon .widget h2{
font-size: 12px;
}
}
/*--Single --*/
.single .single-featured-image-header{
display: none;
}
@@ -0,0 +1,58 @@
<?php
/**
* Template part for displaying posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.2
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if ( is_sticky() && is_home() ) :
echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
endif;
?>
<div class="post-thumb">
<?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
<div class="post-thumbnail">
<?php if (has_post_thumbnail()) : ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"><?php the_post_thumbnail('chd-off-thumb'); ?></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"><img src="<?php echo get_template_directory_uri()."/assets/images/placeholder2.jpg"; ?>"></a>
<?php endif; ?>
</div><!-- .post-thumbnail -->
<?php endif; ?>
</div>
<div class="post-content">
<div class="entry-content">
<header class="entry-header">
<h1 class="entry-title title-font"><a class="hvr-underline-reveal" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php if ( 'post' === get_post_type() ) {
echo '<div class="entry-meta">';
if ( is_single() ) {
twentyseventeen_posted_on();
} else {
echo twentyseventeen_time_link();
twentyseventeen_edit_link();
};
echo '</div><!-- .entry-meta -->';
};?>
<span class="entry-excerpt"><?php echo substr(get_the_excerpt(),0,300).(get_the_excerpt() ? "..." : "twentyseventeen" ); ?></span>
<span class="readmore"><a href="<?php the_permalink() ?>"><?php _e('Read More','twentyseventeen'); ?></a></span>
</header><!-- .entry-header -->
</div><!-- .entry-content -->
</div>
<?php
if ( is_single() ) {
twentyseventeen_entry_footer();
}
?>
</article><!-- #post-## -->

0 comments on commit 3543c17

Please sign in to comment.