Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed Feb 9, 2014
0 parents commit fb20242
Show file tree
Hide file tree
Showing 17 changed files with 3,407 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dynamic.css
@@ -0,0 +1,5 @@
/* BEGIN demo_css */
#custom {

}
/* END demo_css */
Binary file added fonts/option-tree-font.eot
Binary file not shown.
11 changes: 11 additions & 0 deletions fonts/option-tree-font.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/option-tree-font.ttf
Binary file not shown.
Binary file added fonts/option-tree-font.woff
Binary file not shown.
31 changes: 31 additions & 0 deletions footer.php
@@ -0,0 +1,31 @@
<?php
/**
* The template for displaying the footer.
*
* @package WordPress
* @subpackage OptionTree Theme
*/
?>

</div><!-- #page -->

<footer id="colophon" class="site-footer" role="contentinfo">

<div class="site-info">
<p class="site-copy"><?php printf( __( '%s. All Rights Reserved.', 'option-tree-theme' ), '&copy; ' . date( 'Y' ) . ' <a href="' . esc_url( 'http://valendesigns.com/' ) . '">Derek Herman</a>' ); ?></p>
<p><?php printf( __( 'Proudly powered by %s', 'option-tree-theme' ), '<a href="' . esc_url( 'http://wordpress.org/' ) . '">WordPress</a>' ); ?></p>
</div><!-- .site-info -->

</footer><!-- #colophon -->

<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>

</body>

</html>
123 changes: 123 additions & 0 deletions functions.php
@@ -0,0 +1,123 @@
<?php
/**
* Register Theme Features
*/
function option_tree_theme_setup() {

// Add theme support for Translation
load_theme_textdomain( 'option-tree-theme', get_template_directory() . '/languages' );

}
add_action( 'after_setup_theme', 'option_tree_theme_setup' );

/**
* Filters the Theme Options ID
*/
function filter_demo_options_id() {
return 'demo_option_tree';
}
add_filter( 'ot_options_id', 'filter_demo_options_id' );

/**
* Filters the Settings ID
*/
function filter_demo_settings_id() {
return 'demo_option_tree_settings';
}
add_filter( 'ot_settings_id', 'filter_demo_settings_id' );

/**
* Filters the Layouts ID
*/
function filter_demo_layouts_id() {
return 'demo_option_tree_layouts';
}
add_filter( 'ot_layouts_id', 'filter_demo_layouts_id' );

/**
* Filters the Theme Option header list.
*/
function filter_demo_header_list() {
echo '<li id="theme-version"><span>OptionTree Theme 2.3.0</span></li>';
}
add_action( 'ot_header_list', 'filter_demo_header_list' );

/**
* Theme Mode
*/
add_filter( 'ot_theme_mode', '__return_false' );

/**
* Child Theme Mode
*/
add_filter( 'ot_child_theme_mode', '__return_false' );

/**
* Show Settings Pages
*/
add_filter( 'ot_show_pages', '__return_true' );

/**
* Show Theme Options UI Builder
*/
add_filter( 'ot_show_options_ui', '__return_true' );

/**
* Show Settings Import
*/
add_filter( 'ot_show_settings_import', '__return_true' );

/**
* Show Settings Export
*/
add_filter( 'ot_show_settings_export', '__return_true' );

/**
* Show New Layout
*/
add_filter( 'ot_show_new_layout', '__return_true' );

/**
* Show Documentation
*/
add_filter( 'ot_show_docs', '__return_true' );

/**
* Custom Theme Option page
*/
add_filter( 'ot_use_theme_options', '__return_true' );

/**
* Meta Boxes
*/
add_filter( 'ot_meta_boxes', '__return_true' );

/**
* Allow Unfiltered HTML in textareas options
*/
add_filter( 'ot_allow_unfiltered_html', '__return_false' );

/**
* OptionTree in Theme Mode
*/
# load_template( trailingslashit( get_template_directory() ) . 'option-tree/ot-loader.php' );

/**
* Theme Options
*/
load_template( trailingslashit( get_template_directory() ) . 'inc/theme-options.php' );

/**
* Meta Boxes
*/
load_template( trailingslashit( get_template_directory() ) . 'inc/meta-boxes.php' );

/**
* Theme Customizer
*/
load_template( trailingslashit( get_template_directory() ) . 'inc/customizer.php' );

/**
* Demo Functions (for demonstration purposes only!)
*/
load_template( trailingslashit( get_template_directory() ) . 'inc/functions.php' );
38 changes: 38 additions & 0 deletions header.php
@@ -0,0 +1,38 @@
<?php
/**
* The template for displaying the header.
*
* @package WordPress
* @subpackage OptionTree Theme
*/

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>

<head>

<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php _e( 'OptionTree Theme', 'option-tree-theme' ); ?> 2.3.0</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin,latin-ext&ver=2.3.0" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<?php if ( ! function_exists( 'ot_get_option' ) ) { ?>

<p class="note note-danger"><?php printf( __( '%s needs to be installed! Choose an installation mode, and follow the steps below to get everything setup.', 'option-tree-theme' ), '<a href="http://wordpress.org/plugins/option-tree/" target="_blank">' . __( 'OptionTree', 'option-tree-theme' ) . '</a>' ); ?></p>

<?php } else if ( defined( 'OT_VERSION' ) && version_compare( OT_VERSION, '2.3.0', '<' ) ) { ?>

<p class="note note-danger"><?php printf( __( 'Please upgrade! This theme requires OptionTree %s or newer and you have %s installed.', 'option-tree-theme' ), '<small>2.3.0</small>', '<small>' . OT_VERSION . '</small>' ); ?></p>

<?php } else if ( defined( 'OT_VERSION' ) ) { ?>

<p class="note"><?php printf( __( 'Congratulations! You\'ve successfully installed OptionTree %s.', 'option-tree-theme' ), '<small>2.3.0</small>', '<small>' . OT_VERSION . '</small>' ); ?></p>

<?php } ?>

<div id="page">
21 changes: 21 additions & 0 deletions inc/customizer.php
@@ -0,0 +1,21 @@
<?php
/**
* Initialize the Theme Customizer.
*/
add_action( 'customize_register', 'custom_customize_register' );

/**
* Theme Customizer demo code.
*
* @return void
* @since 2.3.0
*/
function custom_customize_register( $wp_customize ) {

/**
* Remove built-in options
*/
$wp_customize->remove_section( 'title_tagline' );
$wp_customize->remove_section( 'static_front_page' );

}

0 comments on commit fb20242

Please sign in to comment.