Skip to content

Update .less to Bootstrap3 and BSWP to v1.0 #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@

README.md

.phptidy-cache
103 changes: 56 additions & 47 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,61 @@
* The template for displaying 404 pages (Not Found).
*
* @package WordPress
* @subpackage WP-Bootstrap
* @since WP-Bootstrap 0.7
*
* Last Revised: January 22, 2012
* @subpackage BootstrapWP
*/
get_header(); ?>
<div class="row">
<div class="container">
<?php if (function_exists('bootstrapwp_breadcrumbs')) bootstrapwp_breadcrumbs(); ?>
</div><!--/.container -->
</div><!--/.row -->
<div class="container">


<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
<h1><?php _e( 'This is Embarrassing', 'bootstrapwp' ); ?></h1>
<p class="lead"><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'bootstrapwp' ); ?></p>
</header>

<div class="row content">
<div class="span8">


<div class="well">
<?php get_search_form(); ?>

</div><!--/.well -->
<div class="row">
<div class="span4">
<h2>All Pages</h2>
<?php wp_page_menu(); ?>
</div><!--/.span4 -->
<div class="span4">
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>


<h2><?php _e( 'Most Used Categories', 'bootstrapwp' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
</ul>

</div><!--/.span4 -->
</div><!--/.row -->
</div><!--/.span8 -->
<?php get_sidebar(); ?>

<?php get_footer(); ?>
<div class="container">
<div class="row">
<div class="span12">
<?php if (function_exists('bootstrapwp_breadcrumbs')) {
bootstrapwp_breadcrumbs();
} ?>
</div>
</div>

<div class="row content">
<div class="span8">

<header class="page-title">
<h1><?php _e('This is Embarrassing', 'bootstrapwp'); ?></h1>
</header>

<p class="lead"><?php _e(
'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.',
'bootstrapwp'
); ?></p>

<div class="well">
<?php get_search_form(); ?>
</div>

<div class="row">
<div class="span4">
<h2>All Pages</h2>
<?php wp_page_menu(); ?>
</div>
<!--/.span4 -->
<div class="span4">
<?php the_widget('WP_Widget_Recent_Posts'); ?>

<h2><?php _e('Most Used Categories', 'bootstrapwp'); ?></h2>
<ul>
<?php wp_list_categories(
array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10
)
); ?>
</ul>

</div>
<!--/.span4 -->
</div>
<!--/.row -->
</div>

<?php get_sidebar(); ?>
<?php get_footer();
83 changes: 59 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BootstrapWP - Bootstrap Theme for WordPress
=================

![image](http://f.cl.ly/items/0o0N0e1k2X0B0l0r0n1P/BootstrapWP-Bootstrap-starter-theme.jpg)
![image](http://f.cl.ly/items/3x1o3V042y3n1X3z1t1O/BootstrapWP-v91-home.png)


Bootstrap is a responsive front-end toolkit from Twitter designed to kickstart web development, complete with core HTML, CSS, and JS for grids, type, forms, navigation, and many more components. Now you can use it with **WordPress** as a solid base to build custom themes quickly and easily.
Expand All @@ -13,68 +13,103 @@ Demo
----
You can view a demo of this WordPress theme running the latest development branch code at: [http://bootstrapwp.rachelbaker.me/](http://bootstrapwp.rachelbaker.me/)

View the theme style guide at: [http://bootstrapwp.rachelbaker.me/style-guide/](http://bootstrapwp.rachelbaker.me/style-guide/)
View the theme's base CSS elements at: [http://bootstrapwp.rachelbaker.me/base-css/](http://bootstrapwp.rachelbaker.me/base-css/)

View the javascript guide at: [http://bootstrapwp.rachelbaker.me/javascript-guide/](http://bootstrapwp.rachelbaker.me/javascript-guide/)
View the theme's JavaScript guide at: [http://bootstrapwp.rachelbaker.me/javascript/](http://bootstrapwp.rachelbaker.me/javascript/)


Usage
-----

Download the BootstrapWP theme, and install on a WordPress local or development site.

This is meant to be a base theme for WordPress custom theme development. A knowledge of WordPress theme development practices as well as understanding of HTML, CSS/LESS, jQuery and PHP are required.

**Important!** To safely retain the ability to update the less files with future versions of Bootstrap or BootstrapWP, add all custom edits/changes inside the `less/bswp-custom.less` file.
This is meant to be a base theme for WordPress custom theme development. Your knowledge of WordPress theme development practices as well as understanding of HTML, CSS/LESS, jQuery and PHP are required.


Getting Started
-------

1. Create a page that uses the template `Hero Homepage Template`, then under `Settings->Reading` set your site to use a static front page selecting your new page.
1. Create a page that uses the template `Page - Home Hero`, then under `Settings->Reading` set your site to use a static front page selecting your new page.

2. Add content to the three "Home" widget areas under `Appearances->Widgets`.

3. Create a menu under `Appearances->Menus` and assign it be your site's Main Menu.

Customization
-------

**Comfortable with LESS?**

Check out the /assets/css/less folder where the `bootstrapwp.less` file is the master complier. The included files compile the `bootstrapwp.css` file that is located in the /assets/css folder.
**Important!** To safely retain the ability to update the less files with future versions of Bootstrap or BootstrapWP, add all custom edits/changes inside the `less/bswp-custom.less` file.


**Not comfortable with LESS?**

You can override the compiled bootstrapwp.css file by adding custom styles to the style.css in the theme's root directory.


**Prefer to create a Child Theme?**

BootstrapWP is Child Theme compatible. For more information on how to create a [Child Theme check out the WordPress Codex](http://codex.wordpress.org/Child_Themes#Directory_structure).


Bug tracker
-----------

Please report all issues on the repo's Issue Tracker. Remember to provide as much information as possible regarding the bug/issue you are reporting so a patch can be released.

**Report theme bugs** [https://github.com/rachelbaker/bootstrapwp-Twitter-Bootstrap-for-WordPress/issues](https://github.com/rachelbaker/bootstrapwp-Twitter-Bootstrap-for-WordPress/issues)

##v.90 of BootstrapWP - Release September 9, 2012

__Release Highlights:__
##v.91 of BootstrapWP ##

1. Updated to Bootstrap 2.1 scripts and styles
2. Fixed `Custom Walker Menu` PHP error
3. Fixed Automatic Thumbnail PHP errors
4. Cleaned up unnecessary theme files
**Release Highlights:**

__Archive.php__
1. Updated to Bootstrap 2.2.1 scripts and styles
2. Fix Child Theme compatibility
3. Improved file organization with assets and template folders
4. Merged internationalization/translation contributions from [santiagogil](https://github.com/santiagogil) and [zedejose](https://github.com/zedejose)

* Replaced conditional for `the_post_thumbnail()` with `bootstrapwp_autoset_featured_img()`.
__Assets Folder__

__Author.php__
* Now contains the following folders: css, js, img, fonts and ico
* Removed assets/css/less/bswp-docs.less file as it is now only loaded on documentation templates.
* Updated all LESS and JS files from Bootstrap 2.2.1

* Replaced conditional for `the_post_thumbnail()` with `bootstrapwp_autoset_featured_img()`.
__Templates-Documentation Folder__

* Holds documentation page templates and related assets
* Updated documentation templates and docs.css file from Bootstrap 2.2.1

__Templates-Pages Folder__

* Holds theme's page templates
* Changed layout on `page-home.php` to match hero template
* Removed "jumbotron" class from h1 title on `page-blog.php` template

__Class-bootstrapwp-walker-nav_menu.php__
__404.php__

* Removed masthead comment to clean up template file

__Archive.php__

* Reorganized divs around breadcrumbs

__Author.php__

* Extending Walker_Nav_Menu to modify class assigned to submenu ul element.
* Reorganized divs around breadcrumbs

__Footer.php__

* Cleaned up ending div tags
* Back to top text is now translatable (props @santiagogil)

__Functions.php__

* Fixed `bootstrapwp_autoset_featured_img()` function to return if there is no image set, clearing debug errors.
* Removed the post hooks for `bootstrap_autoset_featured_img()` function to clear debug errors.
* Added `bootstrapwp_post_thumbnail_check()` function to check if the post displayed in the loop has a post thumbnail already.
* Removed Custom Walker class from file and replaced with external include call for file 'includes/class-bootstrap_walker_nav_menu.php'.
* Changed paths to CSS and JS files to assets folder
* Corrected text-domain (props @zedejose)
* Added localization support for widgets and excerpt text (props @santiagogil)
* Edited height on bootstrap-medium image size

__Header.php__

Expand Down
Loading