Theme|Work – Plugin » Template-Dateien

Template-Dateien

index.php

<?php BWP_HEADER(); ?>

<main id="main" class="main">
/* BWP_SIDEBAR(); here for sidebar-left */ ?>
<div id="content" class="content">

<?php 

BWP_CONTENT(true, true);

?>

</div><!-- /content-->

<?php

/* BWP_SIDEBAR(); here for sidebar-right */ ?>

</main><!-- /main-->

<?php BWP_FOOTER(); ?>

header.php

<header id="header" class="header">
<?php 
bwp_header_image();
bwp_sidebar_element("header-bar", "header-bar", true); /* optional */
?>
</header> <!-- /#header	-->

sidebar.php

<div id="responsive-sidebar" class="responsive">
<aside id="sidebar" class="sidebar">
		<?php dynamic_sidebar("sidebar");?>	
</aside><!-- /sidebar-->
</div>

footer.php

<footer id="footer" class="footer">
<?php
bwp_sidebar_element("footer-bar-1", "footer-col", true);
bwp_sidebar_element("footer-bar-2", "footer-col", true);
bwp_sidebar_element("footer-bar-3", "footer-col", true);
bwp_sidebar_element("footer-bar-4", "footer-col", true);
?>
</footer>
</div>

functions.php

<?php
bwp_theme();
bwp_filter_post_content(); /* optional */
?>

style.css

@charset "utf-8";
/*
Theme Name: ...
Theme URI:  ...
Theme Description: ...
Author: ...
Author URI: ...
Version: 1.0
Tags:
License: MIT License (license.txt)
License URI: http://opensource.org/licenses/MIT
*/

/* SAMPLE-STYLE */

#page{
	padding: 0 3% 3% 3%;
}
.header{
	min-height:4em;	
}
.header-nav{
}
.header-nav-mobile{}
#main{}

.sidebar{}
.content{}
.footer{}
.footer-col{}
Als Child-Theme
@charset "utf-8";
/*
Theme Name:     THEME-NAME
Theme URI:      ...
Description:    ...
Author:         ...
Author URI:     ...
Template:       bwp-themework
Version:        1.0
*/
@import url("../bwp-themework/style.css");

Spezielle Template-Dateien

<?php
/*
* Template Name: Template Include
*/
BWP_HEADER();
BWP_SIDEBAR(); 

bwp_template_part();

BWP_FOOTER();
?>
twWordPress - Powered by WordPress