Skip to content

Commit

Permalink
Release Version
Browse files Browse the repository at this point in the history
  • Loading branch information
wpgaurav committed Jan 18, 2015
1 parent 0bafe6f commit 6e7b6dd
Show file tree
Hide file tree
Showing 14 changed files with 6,032 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Theme Name: True Blogger Theme

##Theme URI: http://gauravtiwari.org/shop/true-blogger/
* Description: An incredibly clean and responsive Genesis child theme for serious bloggers.
* Author: Gaurav Tiwari
* Author URI: http://gauravtiwari.org
223 changes: 223 additions & 0 deletions trueblogger/editor-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
/*
Theme Name: awesome
Description: Used to style the content editor in posts and pages.
*/
@import url(http://fonts.googleapis.com/css?family=Karla:400,400italic,700,700italic);

/* =Body
----------------------------------------------- */
html .mceContentBody {
max-width: 700px;
}

body {
color: #333;
font-family: 'Karla', Open Sans, sans-serif;
font-size: 16px;
}


a,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-transition: all 0.1s ease-in-out;
-moz-transition: all 0.1s ease-in-out;
-ms-transition: all 0.1s ease-in-out;
-o-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}

a {
color: #0E46C0;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

p {
margin: 0 0 24px;
margin: 0 0 2.4rem;
padding: 0;
}

strong {
font-weight: 700;
}

ol,
ul {
margin: 0;
padding: 0;
}

blockquote,
blockquote::before {
color: #999;
}

blockquote {
margin: 40px 40px 24px;
margin: 4rem 4rem 2.4rem;
}

blockquote::before {
content: "\201C";
display: block;
font-size: 30px;
font-size: 3rem;
height: 0;
left: -20px;
position: relative;
top: -10px;
}

.entry-content code {
background-color: #333;
color: #ddd;
}

cite {
font-style: normal;
}

/* Headings
--------------------------------------------- */


h1 {
font-size: 36px;
font-size: 3.6rem;
}

h2 {
font-size: 30px;
font-size: 3rem;
}

h3 {
font-size: 24px;
font-size: 2.4rem;
}

h4 {
font-size: 20px;
font-size: 2rem;
}

h5 {
font-size: 18px;
font-size: 1.8rem;
}

h6 {
font-size: 16px;
font-size: 1.6rem;
}

/* Objects
--------------------------------------------- */

embed,
iframe,
img,
object,
video,
.wp-caption {
max-width: 100%;
}

img {
height: auto;
}

.featured-content img,
.gallery img {
width: auto; /* IE8 */
}

/* Forms
--------------------------------------------- */

input,
select,
textarea {
background-color: #f5f5f5;
border: 1px solid #ddd;
border-radius: 3px;
box-shadow: 1px 1px 3px #eee inset;
color: #999;
font-family: Karla, Open Sans, sans-serif;
font-size: 14px;
font-size: 1.4rem;
padding: 16px;
padding: 1.6rem;
width: 100%;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
background-color: #222;
border: none;
box-shadow: none;
color: #fff;
cursor: pointer;
font-family: 'Karla', sans-serif;
font-weight: 400;
letter-spacing: 1px;
letter-spacing: 0.1rem;
padding: 16px 24px;
padding: 1.6rem 2.4rem;
text-transform: uppercase;
width: auto;
}

button:hover,
input:hover[type="button"],
input:hover[type="reset"],
input:hover[type="submit"] {
background-color: #ed702b;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button {
display: none;
}

/* Tables
--------------------------------------------- */

table {
border-collapse: collapse;
border-spacing: 0;
line-height: 2;
margin-bottom: 40px;
margin-bottom: 4rem;
width: 100%;
}

tbody {
border-bottom: 1px solid #ddd;
}

th,
td {
text-align: left;
}

th {
font-weight: bold;
text-transform: uppercase;
}

td {
border-top: 1px solid #ddd;
padding: 6px 0;
padding: 0.6rem 0;
}

71 changes: 71 additions & 0 deletions trueblogger/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );

//* Set Localization (do not remove)
load_child_theme_textdomain( 'trueblogger', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'trueblogger' ) );

//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', __( 'True Blogger', 'trueblogger' ) );
define( 'CHILD_THEME_URL', 'http://gauravtiwari.org/shop/true-blogger/' );
define( 'CHILD_THEME_VERSION', '2.2' );

//* Add HTML5 markup structure
add_theme_support( 'html5' );

//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );

//* Adding Karla Google font
add_action( 'wp_enqueue_scripts', 'trueblogger_google_fonts' );
function trueblogger_google_fonts() {
wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Karla:400,700,400italic,700italic', array(), PARENT_THEME_VERSION );
}

//* Add new featured image size
add_image_size( 'grid-featured', 270, 100, TRUE );
add_image_size( 'blog-widget-thumbnail', 80,80, TRUE );


//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'site-inner',
'footer-widgets',
'footer'
) );


//* Reposition the site description
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_seo_site_description' );

//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' );

//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
// add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_subnav' );

//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );

//* Setting Up Sidebars
function remove_default_widgets(){

// Unregister some of the sidebar
unregister_sidebar( 'header-right' );
}
add_action( 'widgets_init', 'remove_default_widgets', 11 );


add_action( 'init', 'true_add_editor_styles' );

function true_add_editor_styles() {

add_editor_style( 'editor-style.css' );

}
26 changes: 26 additions & 0 deletions trueblogger/home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

//* Add Genesis grid loop
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'trueblogger_grid_loop_helper' );
function trueblogger_grid_loop_helper() {

if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 1,
'feature_image_size' => 0,
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 0,
'grid_image_size' => 'grid-featured',
'grid_image_class' => 'grid-featured',
'grid_content_limit' => 250,
'more' => __( 'Keep Reading', 'trueblogger' ),
) );
} else {
genesis_standard_loop();
}

}

//* Run the Genesis loop
genesis();
Binary file added trueblogger/images/favicon.ico
Binary file not shown.
Binary file added trueblogger/images/follow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trueblogger/images/like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trueblogger/images/plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trueblogger/images/subscribe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions trueblogger/languages/trueblogger.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
msgid ""
msgstr ""
"Project-Id-Version: True Blogger Child Theme for Genesis Framework\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-01 13:46-0500\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
"X-Textdomain-Support: yes\n"
"X-Poedit-Basepath: ..\n"
"X-Generator: Poedit 1.5.7\n"
"X-Poedit-SearchPath-0: .\n"

#: functions.php:9
msgid "True Blogger Theme"
msgstr ""

#: functions.php:30
msgid "True Blogger Blue"
msgstr ""


#: home.php:17
msgid "Continue reading"
msgstr ""
Loading

0 comments on commit 6e7b6dd

Please sign in to comment.