Skip to content

Commit

Permalink
bump version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rizqyhi committed Aug 18, 2014
1 parent 659db08 commit 489d544
Show file tree
Hide file tree
Showing 27 changed files with 2,349 additions and 533 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Padhang WordPress Theme
=======================

Theme Name: [Padhang](http://blog.hirizh.name/padhang/)
Author: [Rizqy Hidayat](http://hirizh.name/)
Latest Version: 1.1.0
License: GNU GPL

A minimalist-content-focused theme. It comes with responsive layout, 2 widget areas under the main content, social menu, big background image, custom logo and custom menu. FYI, Padhang is a Javanesse word for bright. It featured bright white color with dark background. It also easily customized via the theme customizer. Stand out your content.

[Download from WordPress.org](https://wordpress.org/themes/padhang)
Expand All @@ -22,9 +27,28 @@ A minimalist-content-focused theme. It comes with responsive layout, 2 widget ar
Some resources used within this theme:
- [Genericons](http://genericons.com) - GPL2
- [Backstretch](http://srobbin.com/jquery-plugins/backstretch) - MIT
- [SlickNav](http://slicknav.com/) - MIT
- [Unsplash](http://unsplash.com) - CC0

## Changelog
##### 1.1.0 - August 17, 2014
````
- New default fonts: Roboto and Roboto Slab
- New styles for navigation, form elements, blockquote
- New mobile navigation using slicknav.js
- New logo and favicon uploader
- New options to show/hide site title and tagline
- New options to revert back to old Open Sans font
- New options to change site title and tagline color
- New option to make the background image stretched
- Add support for post format: audio, chat, gallery, status
- Add support for editor style
- Background image is now controllable from background options
- Remove custom header support
- Fix social menu not showing icons
- Fix post meta for updated date
````

##### 1.0.3 - April 18, 2014
````
- Fix text footer not live changed on customizer
Expand Down
24 changes: 24 additions & 0 deletions content-aside.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @package Padhang
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'padhang' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'padhang' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php padhang_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>

</article><!-- #post-## -->
24 changes: 24 additions & 0 deletions content-image.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @package Padhang
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'padhang' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'padhang' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php padhang_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>

</article><!-- #post-## -->
24 changes: 24 additions & 0 deletions content-quote.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @package Padhang
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'padhang' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'padhang' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php padhang_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>

</article><!-- #post-## -->
24 changes: 24 additions & 0 deletions content-status.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @package Padhang
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'padhang' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'padhang' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php padhang_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>

</article><!-- #post-## -->
6 changes: 6 additions & 0 deletions editor-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import url( 'style.css' );

body {
padding: 20px;
background: #fff;
}
21 changes: 12 additions & 9 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,25 @@
<footer id="colophon" class="site-footer" role="contentinfo">
<?php
wp_nav_menu( array(
'theme_location' => 'social',
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
'fallback_cb' => '',
'depth' => 1
'theme_location' => 'social',
'container_class' => 'social-menu',
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
'fallback_cb' => '',
'depth' => 1
) );
?>

<div class="site-info">
<div class="copyright">
<?php do_action( 'padhang_footer' ); ?>
</div><!--.copyright -->

<p><a href="<?php echo esc_url( __( 'http://wordpress.org/', 'padhang' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'padhang' ), 'WordPress' ); ?></a>
</div><!--.copyright -->

<div class="powered">
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'padhang' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'padhang' ), 'WordPress' ); ?></a>
<span class="sep">&bull;</span>
<?php printf( __( 'Theme: %1$s by %2$s.', 'padhang' ), 'Padhang', '<a href="http://blog.hirizh.name/" rel="designer">Rizqy Hidayat</a>' ); ?></p>
<?php printf( __( 'Theme: %1$s by %2$s.', 'padhang' ), 'Padhang', '<a href="http://blog.hirizh.name/" rel="designer">Rizqy Hidayat</a>' ); ?>
</div><!-- .powered -->
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
Expand Down
33 changes: 19 additions & 14 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
*/
function padhang_setup() {

// Make theme available for translation.
load_theme_textdomain( 'padhang', get_template_directory() . '/languages' );

// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );

Expand All @@ -35,7 +32,9 @@ function padhang_setup() {
) );

// Enable support for Post Formats.
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
add_theme_support( 'post-formats', array(
'aside', 'audio', 'chat', 'image', 'gallery', 'link', 'quote', 'status', 'video'
) );

// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
Expand All @@ -47,6 +46,9 @@ function padhang_setup() {

// This theme uses its own gallery styles.
add_filter( 'use_default_gallery_style', '__return_false' );

// Support for editor style
add_editor_style( array( 'editor-style.css', padhang_fonts_url() ) );
}
endif; // padhang_setup
add_action( 'after_setup_theme', 'padhang_setup' );
Expand All @@ -59,18 +61,18 @@ function padhang_widgets_init() {
'name' => __( 'Left Widget Area', 'padhang' ),
'id' => 'left-widget-area',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</div></aside>',
'after_widget' => '</aside>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4><div class="widget-content">',
'after_title' => '</h4>',
) );

register_sidebar( array(
'name' => __( 'Right Widget Area', 'padhang' ),
'id' => 'right-widget-area',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</div></aside>',
'after_widget' => '</aside>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4><div class="widget-content">',
'after_title' => '</h4>',
) );
}
add_action( 'widgets_init', 'padhang_widgets_init' );
Expand All @@ -79,12 +81,15 @@ function padhang_widgets_init() {
* Enqueue scripts and styles.
*/
function padhang_scripts() {
wp_enqueue_style( 'padhang-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,300,700|Bitter' );
wp_enqueue_style( 'padhang-style', get_stylesheet_uri() );
wp_enqueue_style( 'padhang-fonts', padhang_fonts_url() );

wp_enqueue_script( 'padhang-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
wp_enqueue_script( 'padhang-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
wp_enqueue_script( 'padhang-backstretch', get_template_directory_uri() . '/js/jquery.backstretch.min.js', array('jquery'), '2.0.4', true );
if ( get_theme_mod( 'background_cover', 0 ) == 1 ) {
wp_enqueue_script( 'padhang-backstretch', get_template_directory_uri() . '/js/jquery.backstretch.min.js', array('jquery'), '2.0.4', true );
}

wp_enqueue_script( 'padhang-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
wp_enqueue_script( 'padhang-slicknav', get_template_directory_uri() . '/js/jquery.slicknav.js', array('jquery'), '1.0.0', true );
wp_enqueue_script( 'padhang-script', get_template_directory_uri() . '/js/padhang.js', array('jquery'), '1.0', true );

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
Expand All @@ -94,9 +99,9 @@ function padhang_scripts() {
add_action( 'wp_enqueue_scripts', 'padhang_scripts' );

/**
* Implement the Custom Header feature.
* Implement the Custom Background feature.
*/
require get_template_directory() . '/inc/custom-header.php';
require get_template_directory() . '/inc/hybrid/post-formats.php';

/**
* Implement the Custom Background feature.
Expand Down
35 changes: 22 additions & 13 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,47 @@
* @package Padhang
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<html <?php language_attributes( 'html' ); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

<?php wp_head(); ?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title><?php wp_title( '|', true, 'right' ); ?></title>

<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">

<header id="masthead" class="site-header" role="banner">
<nav id="site-navigation" class="main-navigation" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', 'padhang' ); ?></h1>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'padhang' ); ?></a>

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->

<div class="site-branding">

<?php
$logo_image = get_theme_mod( 'logo_image' );

<?php if ( get_header_image() ) : ?>
if ( $logo_image != '' ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img class="site-logo" src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo( 'name' ); ?>">
<img class="site-logo" src="<?php echo esc_url( $logo_image ); ?>" alt="<?php bloginfo( 'name' ); ?>">
</a>
<?php endif; ?>

<?php if ( get_theme_mod( 'show_hide_title' ) == 1 ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php endif; ?>

<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php if ( get_theme_mod( 'show_hide_tagline' ) == 1 ) : ?>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php endif; ?>
</div>
</header><!-- #masthead -->

Expand Down
Loading

0 comments on commit 489d544

Please sign in to comment.