Skip to content

Commit

Permalink
Version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KienTrong committed Nov 22, 2015
1 parent 302c410 commit b416127
Show file tree
Hide file tree
Showing 54 changed files with 7,068 additions and 1,224 deletions.
91 changes: 62 additions & 29 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,80 @@
*/

get_header(); ?>
<div id="content" class="site-content">
<div id="content" class="site-content container no-sidebar">
<div class="content-inside">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'codilight-lite' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Ooops... Error 404', 'codilight-lite' ); ?></h1>
<h3 class="page-subtitle"><?php esc_html_e( 'Sorry, but the page you are looking for doesn\'t exist. ', 'codilight-lite' ); ?></h4>
</header><!-- .page-header -->

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'codilight-lite' ); ?></p>
<div class="search404">
<p><?php esc_html_e( 'Maybe try a search?', 'codilight-lite' ); ?></p>
<?php get_search_form(); ?>
</div>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( codilight_lite_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'codilight-lite' ); ?></h2>
<ul>
<div class="latest-posts-404">
<h4><?php esc_html_e( 'Latest Posts', 'codilight-lite' ); ?></h4>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>
$custom_query = new WP_Query( apply_filters( '404_latest_posts_args', array(
'post_type' => 'post',
'posts_per_page' => 6,
'post_status' => 'publish',
'ignore_sticky_posts' => true
) ) );
$count = 0;
if ( $custom_query->have_posts() ) :
echo '<div class="block1 block1_grid">';
echo '<div class="row">';
while ( $custom_query->have_posts() ) : $custom_query->the_post();
$count++;
?>
<article <?php post_class( 'col-md-4 col-sm-12' ); ?>>
<div class="entry-thumb">
<a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title(); ?>">
<?php
if ( has_post_thumbnail( ) ) {
the_post_thumbnail( 'block_2_medium' );
} else {
echo '<img alt="'. esc_html( get_the_title() ) .'" src="'. esc_url( get_template_directory_uri() . '/assets/images/blank325_170.png' ) .'">';
}
?>
</a>
<?php
$category = get_the_category();
if ( $category[0] ) {
echo '<a class="entry-category" href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>';
}
?>
</div>
<div class="entry-detail">
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' === get_post_type() ) codilight_lite_meta_1();?>
</header><!-- .entry-header -->

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'codilight-lite' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
<div class="entry-excerpt">
<?php echo codilight_lite_excerpt(120); ?>
</div><!-- .entry-content -->
</div>
</article><!-- #post-## -->
<?php
if ( $count % 3 == 0 ) {
echo '</div>';
echo '<div class="row">';
}
endwhile;
echo '</div>';
echo '</div>';
endif;
wp_reset_postdata(); // reset the query
?>
</div>

</div><!-- .page-content -->
</section><!-- .error-404 -->
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
====================================================================
CHANGELOG
====================================================================

## 1.0.1
* Add more widgets and blocks.
* Add editor style
* Add layout and sidebar settings to customizer.
* Update theme screenshot.

## 1.0.0
* Initial release
77 changes: 45 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,58 @@
[![Build Status](https://travis-ci.org/Automattic/_s.svg?branch=master)](https://travis-ci.org/Automattic/_s)

_s
===

Hi. I'm a starter theme called `_s`, or `underscores`, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Thank you for downloading our theme!

My ultra-minimal CSS might make me look like theme tartare but that means less stuff to get in your way when you're designing your awesome theme. Here are some of the other more interesting things you'll find here:

* A just right amount of lean, well-commented, modern, HTML5 templates.
* A helpful 404 template.
* A sample custom header implementation in `inc/custom-header.php` that can be activated by uncommenting one line in `functions.php` and adding the code snippet found in the comments of `inc/custom-header.php` to your `header.php` template.
* Custom template tags in `inc/template-tags.php` that keep your templates clean and neat and prevent code duplication.
* Some small tweaks in `inc/extras.php` that can improve your theming experience.
* A script at `js/navigation.js` that makes your menu a toggled dropdown on small screens (like your phone), ready for CSS artistry. It's enqueued in `functions.php`.
* 2 sample CSS layouts in `layouts/` for a sidebar on either side of your content.
* Smartly organized starter CSS in `style.css` that will help you to quickly get your design off the ground.
* Licensed under GPLv2 or later. :) Use it to make something cool.
====================================================================
Description
====================================================================
Codilight Lite is a news magazine style WordPress theme from FameThemes which is a perfect option to create any kind of
magazine or blog websites.

Getting Started
---------------
====================================================================
SUPPORT
====================================================================
Support for this WordPress theme is conducted through the WordPress free theme support forum.
* FameThemes Website : http://www.famethemes.com
* Support Ticket: http://www.famethemes.com/dashboard/tickets/
* Support Forum for free theme: https://wordpress.org/support/theme/codilight-lite

If you want to keep it simple, head over to http://underscores.me and generate your `_s` based theme from there. You just input the name of the theme you want to create, click the "Generate" button, and you get your ready-to-awesomize starter theme.
====================================================================
DOCUMENTATION
====================================================================

If you want to set things up manually, download `_s` from GitHub. The first thing you want to do is copy the `_s` directory and change the name to something else (like, say, `megatherium`), and then you'll need to do a five-step find and replace on the name in all the templates.
Go to http://docs.famethemes.com/category/30-codilight-lite for theme documentation & troubleshooting guides.

1. Search for `'_s'` (inside single quotations) to capture the text domain.
2. Search for `_s_` to capture all the function names.
3. Search for `Text Domain: _s` in style.css.
4. Search for <code>&nbsp;_s</code> (with a space before it) to capture DocBlocks.
5. Search for `_s-` to capture prefixed handles.
====================================================================
LICENSES
====================================================================

OR
* Underscores
Based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)

* Search for: `'_s'` and replace with: `'megatherium'`
* Search for: `_s_` and replace with: `megatherium_`
* Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium` in style.css.
* Search for: <code>&nbsp;_s</code> and replace with: <code>&nbsp;Megatherium</code>
* Search for: `_s-` and replace with: `megatherium-`
* Normalize
normalize.css http://necolas.github.io/normalize.css/, (C) 2012-2015 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT)

Then, update the stylesheet header in `style.css` and the links in `footer.php` with your own information. Next, update or delete this readme.
* Google Fonts

Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress theme. :)
Source: https://www.google.com/fonts/specimen/Raleway
License: SIL Open Font License, 1.1 - scripts.sil.org/OFL

Good luck!
Source: https://www.google.com/fonts/specimen/Open+Sans
License: SIL Open Font License, 1.1 - scripts.sil.org/OFL

* FitVids
Source: https://github.com/davatron5000/FitVids.js/blob/master/jquery.fitvids.js
License: Released under the WTFPL license - http://sam.zoy.org/wtfpl/

* FontAwesome
Source: https://fortawesome.github.io/Font-Awesome/
License: GPL - https://fortawesome.github.io/Font-Awesome/license/

* Slickjs
Source: https://github.com/kenwheeler/slick
License: MIT: https://github.com/kenwheeler/slick/blob/master/LICENSE

* Screenshot Images
Pixabay: https://pixabay.com/en/service/terms/ (http://creativecommons.org/publicdomain/zero/1.0 - CC0)
Pexels: https://www.pexels.com/photo-license/ (http://creativecommons.org/publicdomain/zero/1.0 - CC0)
47 changes: 29 additions & 18 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
*/

get_header(); ?>
<div id="content" class="site-content container right-sidebar">
<div id="content" class="site-content container <?php echo codilight_lite_sidebar_position(); ?>">
<div class="content-inside">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>
<?php
if ( have_posts() ) : $count = 0; ?>

<header class="page-header">
<?php
Expand All @@ -22,22 +23,32 @@
?>
</header><!-- .page-header -->

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php

/*
* 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/content', get_post_format() );
?>

<?php endwhile; ?>

<?php the_posts_navigation(); ?>
<?php
$layout_archive_posts = get_theme_mod( 'layout_archive_posts', 'grid' );
if ( $layout_archive_posts == 'grid' ) {
echo '<div class="block1 block1_grid">';
echo '<div class="row">';
while ( have_posts() ) : the_post();
$count++;
get_template_part( 'template-parts/content-grid' );
if ( $count % 2 == 0 ) {
echo '</div>';
echo '<div class="row">';
}
endwhile;
echo '</div>';
echo '</div>';
codilight_lite_custom_paginate();

} else {
echo '<div class="block1 block1_list">';
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content-list' );
endwhile;
codilight_lite_custom_paginate();
echo '</div>';
}
?>

<?php else : ?>

Expand Down
106 changes: 106 additions & 0 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/*--------------------------------------------------------------
THEME DASHBOARD
--------------------------------------------------------------*/
.famethemes-badge {
position: absolute;
right: 0;
top: 0;
background-color: #0073aa;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAABVCAYAAAA49ahaAAAAAXNSR0IArs4c6QAAAYpJREFUeAHt2jGKA0EUxFCP8f2vPDM4VKyCDuSsEmHefifNXvf7+fRRBb5qrdhfINTBIYQa6kBgkOxSQx0IDJJdaqgDgUGySw11IDBIdqmhDgQGyS411IHAINmlhjoQGCR/RvN6P0bnhIbxaN/Pf/CXDDXUgcAg2aWGOhAYJLvUUAcCg2SXGupAYJDsUkMdCAySXWqoA4FBsksNdSAwSHapA1Tlkdr4XsbjsPE9jEaXaiiiESpAjBmqoYhGqAAxZqiGIhqhAsSYoRqKaIQKEGOGaiiiESpAjBmqoYhGqAAxZqiGIhqhAsSYoRqKaIQKEGMe80h9yn9jG4/lXapxmmiEChBjhmooohEqQIwZqqGIRqgAMWaohiIaoQLEmKEaimiEChBjhmooohEqQIwZqqGIRqgAMWaohiIaoQLEmMc8UhuPwwaI0ehSDUU0QgWIMUM1FNEIFSDGDNVQRCNUgBgzVEMRjVABYsxQDUU0QgWIMUM1FNEIFSDGDNVQRCNUgBgzVEMRjVABYswHs34UpggOW5wAAAAASUVORK5CYII=') !important;
background-position: no-repeat scroll center 24px;
background-repeat: no-repeat;
background-size: 85px 85px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
color: #78c8e6;
display: inline-block;
font-size: 14px;
font-weight: 600;
height: 40px;
margin: 5px 0 0;
padding-top: 120px;
text-align: center;
text-rendering: optimizelegibility;
width: 150px;
text-decoration: none;
}

.theme_info_wrapper p span {
margin-left: 30px;
}

.theme_info_wrapper a.fame_social {
margin-left: 15px;
}

.theme_info {
margin: 50px 0px;
}

.theme_info_left {
width: 39%;
margin-right: 4%;
float: left;
}

.theme_info_right {
width: 57%;
float: left;
}

.theme_info_right img {
width: 100%;
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

.theme_info h3 {
font-size: 17px;
margin-top: 0;
margin-bottom: 10px;
}

.theme_info h4 {
font-size: 17px;
margin-top: 0;
margin-bottom: 10px;
}

.theme_info .theme_link {
margin-bottom: 30px;
}

.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

.clearfix {
display: inline-block;
}

.clearfix {
display: block;
}

@media screen and (max-width:782px) {
.theme_info_left {
width: 100%;
margin-right: none;
}
.theme_info_right {
width: 100%;
}
}

/*--------------------------------------------------------------
ADMIN WIDGET PAGE
--------------------------------------------------------------*/
#widget-list [id*="_ft_"] .widget-top,
#widget-list [id*="_ft_"] h3 {
border-color: #d54e21;
box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
background: #d54e21;
color: #FFFFFF;
}
Loading

0 comments on commit b416127

Please sign in to comment.