Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiyagi committed Mar 27, 2015
0 parents commit 535769f
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
76 changes: 76 additions & 0 deletions content-custom-header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/**
* Custom Header content
*
* @package Auberge
* @copyright 2014 WebMan - Oliver Juhas
* @version 1.0
*/

?>

<div class="site-banner-content">

<?php

/**
* Media
*/

?>

<div class="site-banner-media">

<figure class="site-banner-thumbnail">

<?php

if ( function_exists( 'meteor_slideshow' ) ) {
meteor_slideshow();
} else {

$image_url = (get_header_image()) ? (get_header_image()) : (wm_get_stylesheet_directory_uri('images/header.jpg'));

echo '<img src="' . esc_url($image_url) . '" width="' . esc_attr(get_custom_header()->width) . '" height="' . esc_attr(get_custom_header()->height) . '" alt="" />';
}

?>

</figure>

</div>

<?php



/**
* Custom Header text
*/

?>

<div class="site-banner-header">

<h1 class="entry-title"><span class="highlight"><?php

if (
get_option( 'page_on_front' )
&& $custom_title = trim( get_post_meta( get_the_ID(), 'banner_text', true ) )
) {

//If there is a front page, display 'banner_text' custom field if set
echo $custom_title;

} else {

//Display site description
bloginfo( 'description' );

}

?></span></h1>

</div>

</div>
32 changes: 32 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
/**
* Created by PhpStorm.
* User: ryagudin
* Date: 3/24/15
* Time: 6:04 PM
*/

add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
);
}

/**
* Appends
* @param $nav_output
* @return string
*/
function append_html_post_nav( $nav_output ){


$html = '<div style="margin-left: 10px; float: left; font-size: 15px;">Recreational & Medicinal | 920 W 104th Ave, Northglenn CO | <a href="tel:303-379-9526">303.379.9526</a></div>';

return $nav_output . $html;

}

add_filter('wmhook_wm_navigation_output', 'append_html_post_nav', 10, 1 );
18 changes: 18 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Theme Name: Auberge-Child
* Template: auberge
* Theme URI: http://www.webmandesign.eu/auberge-wordpress-theme/
* Author: RafiLabs
* Author URI: http://www.webmandesign.eu/
* Description: <strong>Auberge</strong> is responsive, retina-ready, modern restaurant and café WordPress theme. Supports Jetpack plugin to create a food menu, Schema.org markup, Theme Hook Alliance action hooks, translation-ready code, header slideshow, customizable colors and layout, and other cool features. The theme is compatible with Chrome, Safari, Opera, Firefox, Internet Explorer 9+ browsers. Thank you for using one of WebMan's themes (more cool WordPress themes can be found at www.webmandesign.eu). Theme demo at http://themedemos.webmandesign.eu/auberge/
* Version: 1.2.5
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Tags: black, gray, green, silver, white, light, dark, one-column, two-columns, three-columns, four-columns, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, sticky-post, theme-options, threaded-comments, translation-ready
* Text Domain: wm_domain
*
* This theme, like WordPress, is licensed under the GPL.
* Use it to make something cool, have fun, and share what you've learned with others.
*
* @todo Try using improved WordPress 4.1+ page templates body classes.
*/

0 comments on commit 535769f

Please sign in to comment.