Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
themefuse committed Sep 2, 2014
0 parents commit 0bd5749
Show file tree
Hide file tree
Showing 755 changed files with 98,867 additions and 0 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#Unyson Framework

[Unyson](http://unyson.themefuse.com/) is a framework for [WordPress](http://wordpress.org/) that facilitates development of a theme.

This framework was created from the ground up by the team behind [ThemeFuse](http://themefuse.com/) from the desire to empower developers to build outstanding WordPress themes fast and easy.

To get started, check out http://unyson.themefuse.com/ !

##Table of contents

* [Quick start](#quick-start)
* [Bug reports](#bug-reports)
* [Documentation](#documentation)
* [Copyright and license](#copyright-and-license)

## Quick start

Three quick start options are available:

* [Download the latest release](https://github.com/ThemeFuse/Unyson/releases).
* Clone the repo: `git clone https://github.com/ThemeFuse/Unyson.git`.

## Bug reports

We strive to make Unyson Development to be awesome and user friendly, though sometimes it's impossible to avoid bugs.
A bug means "something is broken" or is not working as it should.

In order to offer you an effective support and fix for an issue, please follow the below guidelines before submitting a bug report:

#### Explore Known Issues

Has your issue already been reported? Check the [Issues page](https://github.com/ThemeFuse/Unyson/issues).

If your issue has already been reported, great! It will be reviewed in an upcoming release.

#### Submitting a Bug Report

You can report the issue via [Issues page](https://github.com/ThemeFuse/Unyson/issues).
A good bug report includes full details to easily understand the issue you are having.

## Documentation

Unyson's documentation is available on http://unyson-docs.themefuse.com/.

## Copyright and license

Code and documentation copyright 2014 ThemeFuse LTD. Code released under [the GPL license](https://github.com/ThemeFuse/Unyson/blob/master/LICENSE). Docs released under [Creative Commons](https://github.com/ThemeFuse/Unyson-Documentation/blob/master/LICENSE).

Binary file added scratch-child/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions scratch-child/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Theme Name: Scratch Child
Description: Child theme for the Scratch. Child themes are the recommended way of making modifications to a theme. <a href="http://codex.wordpress.org/Child_Themes">Reade More</a>
Author: ThemeFuse
Author URI: http://themefuse.com/
Template: scratch-parent
*/

@import url("../scratch-parent/style.css");
33 changes: 33 additions & 0 deletions scratch-parent/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* The template for displaying 404 pages (Not Found)
*/

get_header(); ?>


<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">

<header class="page-header">
<h1 class="page-title"><?php _e( 'Not Found', 'unyson' ); ?></h1>
<?php
if( function_exists('fw_ext_breadcrumbs_render') ) {
echo fw_ext_breadcrumbs_render();
}
?>
</header>

<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'unyson' ); ?></p>

<?php get_search_form(); ?>
</div><!-- .page-content -->

</div><!-- #content -->
</div><!-- #primary -->

<?php
get_sidebar( 'content' );
get_sidebar();
get_footer();
72 changes: 72 additions & 0 deletions scratch-parent/archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php
/**
* The template for displaying Archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each specific one.
*
* @link http://codex.wordpress.org/Template_Hierarchy
*/

get_header(); ?>

<section id="primary" class="content-area">
<div id="content" class="site-content" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'unyson' ), get_the_date() );

elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'unyson' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'unyson' ) ) );

elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'unyson' ), get_the_date( _x( 'Y', 'yearly archives date format', 'unyson' ) ) );

else :
_e( 'Archives', 'unyson' );
endif;
?>
</h1>
<?php
if( function_exists('fw_ext_breadcrumbs_render') ) {
echo fw_ext_breadcrumbs_render();
}
?>
</header><!-- .page-header -->

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

/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );

endwhile;
// Previous/next page navigation.
fw_theme_paging_nav();

else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );

endif;
?>
</div><!-- #content -->
</section><!-- #primary -->

<?php
get_sidebar( 'content' );
get_sidebar();
get_footer();
75 changes: 75 additions & 0 deletions scratch-parent/author.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/**
* The template for displaying Author archive pages
*
* @link http://codex.wordpress.org/Template_Hierarchy
*/

get_header(); ?>

<section id="primary" class="content-area">
<div id="content" class="site-content" role="main">

<?php if ( have_posts() ) : ?>

<header class="archive-header">
<h1 class="archive-title">
<?php
/*
* Queue the first post, that way we know what author
* we're dealing with (if that is the case).
*
* We reset this later so we can run the loop properly
* with a call to rewind_posts().
*/
the_post();

printf( __( 'All posts by %s', 'unyson' ), get_the_author() );
?>
</h1>
<?php
if( function_exists('fw_ext_breadcrumbs_render') ) {
echo fw_ext_breadcrumbs_render();
}
?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-description"><?php the_author_meta( 'description' ); ?></div>
<?php endif; ?>
</header><!-- .archive-header -->

<?php
/*
* Since we called the_post() above, we need to rewind
* the loop back to the beginning that way we can run
* the loop properly, in full.
*/
rewind_posts();

// Start the Loop.
while ( have_posts() ) : the_post();

/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );

endwhile;
// Previous/next page navigation.
fw_theme_paging_nav();

else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );

endif;
?>

</div><!-- #content -->
</section><!-- #primary -->

<?php
get_sidebar( 'content' );
get_sidebar();
get_footer();
58 changes: 58 additions & 0 deletions scratch-parent/category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
/**
* The template for displaying Category pages
*
* @link http://codex.wordpress.org/Template_Hierarchy
*/

get_header(); ?>

<section id="primary" class="content-area">
<div id="content" class="site-content" role="main">

<?php if ( have_posts() ) : ?>

<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'unyson' ), single_cat_title( '', false ) ); ?></h1>
<?php
if( function_exists('fw_ext_breadcrumbs_render') ) {
echo fw_ext_breadcrumbs_render();
}
?>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif;
?>
</header><!-- .archive-header -->

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

/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );

endwhile;
// Previous/next page navigation.
fw_theme_paging_nav();

else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );

endif;
?>
</div><!-- #content -->
</section><!-- #primary -->

<?php
get_sidebar( 'content' );
get_sidebar();
get_footer();
62 changes: 62 additions & 0 deletions scratch-parent/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
/**
* The template for displaying Comments
*
* The area of the page that contains comments and the comment form.
*/

/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>

<div id="comments" class="comments-area">

<?php if ( have_comments() ) : ?>

<h2 class="comments-title">
<?php
printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'unyson' ),
number_format_i18n( get_comments_number() ), get_the_title() );
?>
</h2>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'unyson' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'unyson' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'unyson' ) ); ?></div>
</nav><!-- #comment-nav-above -->
<?php endif; // Check for comment navigation. ?>

<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size'=> 34,
) );
?>
</ol><!-- .comment-list -->

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'unyson' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'unyson' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'unyson' ) ); ?></div>
</nav><!-- #comment-nav-below -->
<?php endif; // Check for comment navigation. ?>

<?php if ( ! comments_open() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'unyson' ); ?></p>
<?php endif; ?>

<?php endif; // have_comments() ?>

<?php comment_form(); ?>

</div><!-- #comments -->
Loading

0 comments on commit 0bd5749

Please sign in to comment.