Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
djm56 committed Sep 25, 2015
1 parent e136be6 commit 517fd8c
Show file tree
Hide file tree
Showing 16 changed files with 97 additions and 134 deletions.
16 changes: 8 additions & 8 deletions child-ratchetwp/functions.php
Expand Up @@ -2,24 +2,24 @@
/**
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Updated: Aug 24, 2015
*/

function remove_scripts()
{
wp_deregister_script('bootpresswp-script' );
wp_deregister_style('bootpresswp-style' );
wp_deregister_script('Ratchetwp-script' );
wp_deregister_style('Ratchetwp-style' );
}
add_action( 'wp_enqueue_scripts', 'remove_scripts',100 );

function child_bootpresswp_loader() {
wp_enqueue_style( 'child-bootpresswp-style', get_stylesheet_directory_uri().'/assets/css/style.css', false , '1.0', 'all' );
wp_enqueue_script( 'child-bootpresswp-script', get_stylesheet_directory_uri() .'/assets/js/script.js', array( 'jquery' ), '1.0', true );
function child_Ratchetwp_loader() {
wp_enqueue_style( 'child-Ratchetwp-style', get_stylesheet_directory_uri().'/assets/css/style.css', false , '1.0', 'all' );
wp_enqueue_script( 'child-Ratchetwp-script', get_stylesheet_directory_uri() .'/assets/js/script.js', array( 'jquery' ), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'child_bootpresswp_loader', 200 );
add_action( 'wp_enqueue_scripts', 'child_Ratchetwp_loader', 200 );


?>
2 changes: 1 addition & 1 deletion child-ratchetwp/style.css
Expand Up @@ -6,7 +6,7 @@ Author: Donovan Maidens
Author URI: http://www.anomalous.co.za/
Version: 1.0
Tags: Bootstrap, responsive
Template: bootpresswp
Template: Ratchetwp
License: GNU General Public License, version 2 (GPL).
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
Expand Down
12 changes: 6 additions & 6 deletions ratchetwp/404.php
Expand Up @@ -3,27 +3,27 @@
* Template for 404 Page
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: May 14, 2015
*/
get_header(); ?>
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if(function_exists('bootpresswp_breadcrumbs')) bootpresswp_breadcrumbs(); ?>
<?php if(function_exists('Ratchetwp_breadcrumbs')) Ratchetwp_breadcrumbs(); ?>
<div class="jumbotron">
<h1><?php _e( 'This is 404 page', 'bootpresswp' ); ?></h1>
<p><?php _e( 'Try searching, or one of the links below could help.', 'bootpresswp' ); ?></p>
<h1><?php _e( 'This is 404 page', 'Ratchetwp' ); ?></h1>
<p><?php _e( 'Try searching, or one of the links below could help.', 'Ratchetwp' ); ?></p>
<p><a class="btn btn-primary btn-lg" role="button" href="<?php echo home_url( '/' ); ?>">Return to Home</a></p>
</div>
<div class="well">
<div class="row">
<div class="col-md-4"><?php get_search_form(); ?></div>
<div class="col-md-4"><?php the_widget( 'WP_Widget_Recent_Posts' ); ?></div>
<div class="col-md-4">
<h2><?php _e( 'Categories', 'bootpresswp' ); ?></h2>
<h2><?php _e( 'Categories', 'Ratchetwp' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
</ul>
Expand Down
18 changes: 9 additions & 9 deletions ratchetwp/archive.php
Expand Up @@ -3,8 +3,8 @@
* Description: Default Archive Page
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: Sep 07, 2015
*/
Expand All @@ -14,27 +14,27 @@
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if(function_exists('bootpresswp_breadcrumbs')) bootpresswp_breadcrumbs(); ?>
<?php if(function_exists('Ratchetwp_breadcrumbs')) Ratchetwp_breadcrumbs(); ?>
<h1><?php
if ( is_day() ) {
printf( __( 'Daily Archives: %s', 'bootpresswp' ), '<small>' . get_the_date() . '</small>' );
printf( __( 'Daily Archives: %s', 'Ratchetwp' ), '<small>' . get_the_date() . '</small>' );
} elseif ( is_month() ) {
printf( __( 'Monthly Archives: %s', 'bootpresswp' ), '<small>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'bootpresswp' ) ) . '</small>' );
printf( __( 'Monthly Archives: %s', 'Ratchetwp' ), '<small>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'Ratchetwp' ) ) . '</small>' );
} elseif ( is_year() ) {
printf( __( 'Yearly Archives: %s', 'bootpresswp' ), '<small>' . get_the_date( _x( 'Y', 'yearly archives date format', 'bootpresswp' ) ) . '</span>' );
printf( __( 'Yearly Archives: %s', 'Ratchetwp' ), '<small>' . get_the_date( _x( 'Y', 'yearly archives date format', 'Ratchetwp' ) ) . '</span>' );
} elseif ( is_tag() ) {
printf( __( 'Tag Archives: %s', 'bootpresswp' ), '<small>' . single_tag_title( '', false ) . '</small>' );
printf( __( 'Tag Archives: %s', 'Ratchetwp' ), '<small>' . single_tag_title( '', false ) . '</small>' );
// Show an optional tag description
$tag_description = tag_description();
if ( $tag_description )
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
} elseif ( is_category() ) {
printf( __( 'Category Archives: %s', 'bootpresswp' ), '<small>' . single_cat_title( '', false ) . '</small>' );
printf( __( 'Category Archives: %s', 'Ratchetwp' ), '<small>' . single_cat_title( '', false ) . '</small>' );
$category_description = category_description();
if ( $category_description )
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
} else {
_e( 'Blog Archives', 'bootpresswp' );
_e( 'Blog Archives', 'Ratchetwp' );
}
?></h1>
<?php while ( have_posts() ) : the_post(); ?>
Expand Down
2 changes: 1 addition & 1 deletion ratchetwp/assets/css/style.css
@@ -1,5 +1,5 @@
@charset "utf-8";
/* Bootpresswp */
/* Ratchetwp */
/* Theme Designed and Scripted by Anomalous */
/* http://www.anomalous.co.za */
/* 05 September 2015 */
Expand Down
11 changes: 3 additions & 8 deletions ratchetwp/footer.php
Expand Up @@ -4,19 +4,14 @@
* Default Footer
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: Sep 07, 2015
*/
global $childDir;
?>
<footer class="container">
<div class="row">
<hr>
<div class="col-md-12"><p><small>&copy; Anomalous, Bootpresswp</small></p></div>
</div>
</footer>

<?php wp_footer(); ?>
</body>
</html>
4 changes: 2 additions & 2 deletions ratchetwp/functions.php
Expand Up @@ -67,11 +67,11 @@ function ratchetwp_theme_features() {

}

function custom_bootpresswp_loader() {
function custom_Ratchetwp_loader() {
wp_enqueue_style( 'ratchetwp-style', get_template_directory_uri().'/assets/css/ratchet.min.css', false , '3.3.4', 'all' );
wp_enqueue_style( 'font-awesome-style', get_template_directory_uri().'/assets/css/font-awesome.css', false , '4.3.0', 'all' );
wp_enqueue_style( 'ratchetwp-style', get_template_directory_uri().'/assets/css/style.css', false , '1.0', 'all' );
wp_enqueue_script( 'ratchet-script', get_template_directory_uri() .'/assets/js/ratchet.min.js', array( 'jquery' ), '3.3.4', true );
wp_enqueue_script( 'ratchetwp-script', get_template_directory_uri() .'/assets/js/script.js', array( 'jquery' ), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'custom_bootpresswp_loader' );
add_action( 'wp_enqueue_scripts', 'custom_Ratchetwp_loader' );
41 changes: 10 additions & 31 deletions ratchetwp/header.php
Expand Up @@ -3,21 +3,23 @@
* Default Page Header
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: May 14, 2015
*/
global $childDir;
$childDir = dirname(get_bloginfo('stylesheet_url'));
?><!DOCTYPE html>
<!-- Bootpresswp -->
<!-- http://www.anomalous.co.za/bootpresswp -->
<!-- Ratchetwp -->
<!-- http://www.anomalous.co.za/Ratchetwp -->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"/>
<link rel="shortcut icon" href="<?php print $childDir; ?>/assets/ico/favicon.ico">
Expand All @@ -37,29 +39,6 @@
<p>Why do I have to update my browser?<br> Old browsers (especially Internet Explorer versions 6, 7, and 8) are less stable, and much more vulnerable to viruses, spyware, malware, and other security issues. So security alone is a very good reason to upgrade.<br><br> But there is more: We rely on new Web design technologies. These new languages serve as a foundation for many websites today, and for virtually all new websites and Web apps. But unfortunately, many of these new websites will neither look nor function in the same way in old browsers like IE8.</p>
<p>Thanks</p>
<![endif]-->
<div class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
</div>
<?php
wp_nav_menu( array(
'menu' => 'main-menu',
'theme_location' => 'main-menu',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker())
);
?>
</div>
</div>
<header class="bar bar-nav">
<h1 class="title">Ratchet</h1>
</header>
8 changes: 4 additions & 4 deletions ratchetwp/index.php
Expand Up @@ -4,8 +4,8 @@
* Description: Default Index template to display loop of blog posts
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: Sep 07, 2015
*/
Expand All @@ -15,9 +15,9 @@
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if(function_exists('bootpresswp_breadcrumbs')) bootpresswp_breadcrumbs(); ?>
<?php if(function_exists('Ratchetwp_breadcrumbs')) Ratchetwp_breadcrumbs(); ?>
<h1><?php the_title();?></h1>
<p class="meta"><?php echo bootpresswp_posted_on();?></p>
<p class="meta"><?php echo Ratchetwp_posted_on();?></p>
<?php the_content();?>
<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
<?php endwhile;?>
Expand Down
51 changes: 38 additions & 13 deletions ratchetwp/page.php
Expand Up @@ -4,23 +4,48 @@
* Description: Default Index template to display loop of blog posts
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: Sep 07, 2015
*/
global $childDir;
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if(function_exists('bootpresswp_breadcrumbs')) bootpresswp_breadcrumbs(); ?>
<h1><?php the_title();?></h1>
<?php the_content();?>
</div>
<?php endwhile; ?>
<div class="col-md-4"><?php get_sidebar('page'); ?></div>
</div>
</div>


<div class="content">
<?php if(function_exists('Ratchetwp_breadcrumbs')) Ratchetwp_breadcrumbs(); ?>
<h1><?php the_title();?></h1>

<p class="content-padded">
<?php the_content();?>

</p>
<div class="card">
<ul class="table-view">
<li class="table-view-cell">
<a class="push-right" href="http://goratchet.com">
<strong>Ratchet documentation</strong>
</a>
</li>
<li class="table-view-cell">
<a class="push-right" href="https://github.com/twbs/ratchet/">
<strong>Ratchet on Github</strong>
</a>
</li>
<li class="table-view-cell">
<a class="push-right" href="https://groups.google.com/forum/#!forum/goratchet">
<strong>Ratchet Google group</strong>
</a>
</li>
<li class="table-view-cell">
<a class="push-right" href="https://twitter.com/goratchet">
<strong>Ratchet on Twitter</strong>
</a>
</li>
</ul>
</div>
</div>
<?php endwhile; ?>
<?php get_footer(); ?>
10 changes: 5 additions & 5 deletions ratchetwp/search.php
Expand Up @@ -3,8 +3,8 @@
* Description: Default Archive Page
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: Sep 07, 2015
*/
Expand All @@ -14,7 +14,7 @@
<div class="container">
<div class="row">
<div class="col-md-8">
<h1><?php printf( __( 'Search Results for: %s', 'bootpresswp' ), '<small>' . get_search_query() . '</small>' ); ?></h1>
<h1><?php printf( __( 'Search Results for: %s', 'Ratchetwp' ), '<small>' . get_search_query() . '</small>' ); ?></h1>
<?php while ( have_posts() ) : the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><h3><?php the_title();?></h3></a>
<?php the_excerpt();?>
Expand All @@ -28,8 +28,8 @@
<div class="row">
<div class="col-md-8">
<div class="jumbotron">
<h1><?php _e( 'No Results Found', 'bootpresswp' ); ?></h1>
<p><?php _e( 'Perhaps you should try again with a different search term.', 'bootpresswp' ); ?></p>
<h1><?php _e( 'No Results Found', 'Ratchetwp' ); ?></h1>
<p><?php _e( 'Perhaps you should try again with a different search term.', 'Ratchetwp' ); ?></p>
<p><a class="btn btn-primary btn-lg" role="button" href="<?php echo home_url( '/' ); ?>">Return to Home</a></p>
</div>
<?php get_search_form(); ?>
Expand Down
8 changes: 4 additions & 4 deletions ratchetwp/searchform.php
Expand Up @@ -4,18 +4,18 @@
* Description: Default Index template to display loop of blog posts
*
* @package WordPress
* @subpackage Bootpresswp
* @since Bootpresswp 0.1
* @subpackage Ratchetwp
* @since Ratchetwp 0.1
*
* Last Revised: Sep 11, 2015
*/
?>
<form action="<?php echo home_url( '/' ); ?>" method="get" class="form-inline">
<fieldset>
<div class="input-group">
<input type="text" name="s" id="search" placeholder="<?php _e("Search","bootpresswp"); ?>" value="<?php the_search_query(); ?>" class="form-control" />
<input type="text" name="s" id="search" placeholder="<?php _e("Search","Ratchetwp"); ?>" value="<?php the_search_query(); ?>" class="form-control" />
<span class="input-group-btn">
<button type="submit" class="btn btn-default"><?php _e("Search","bootpresswp"); ?></button>
<button type="submit" class="btn btn-default"><?php _e("Search","Ratchetwp"); ?></button>
</span>
</div>
</fieldset>
Expand Down
12 changes: 0 additions & 12 deletions ratchetwp/sidebar-page.php

This file was deleted.

12 changes: 0 additions & 12 deletions ratchetwp/sidebar-post.php

This file was deleted.

0 comments on commit 517fd8c

Please sign in to comment.