Merge pull request #1267 from roots/short-echo-syntax
[8.0.0] Use short echo syntax, bump required PHP version to 5.4
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
### 8.0.0: TBD
|
### 8.0.0: TBD
|
||||||
* Change theme name from Roots to Sage
|
* Change theme name from Roots to Sage
|
||||||
|
* Bump required PHP version to >=5.4
|
||||||
* Add namespace
|
* Add namespace
|
||||||
|
* Use short echo syntax
|
||||||
* Switch from Grunt to gulp, new workflow
|
* Switch from Grunt to gulp, new workflow
|
||||||
* Use wiredep for Sass and Less injection
|
* Use wiredep for Sass and Less injection
|
||||||
* Implement JSON file based asset pipeline
|
* Implement JSON file based asset pipeline
|
||||||
|
|||||||
@@ -11,6 +11,13 @@ Sage is a WordPress starter theme based on [HTML5 Boilerplate](http://html5boile
|
|||||||
* Newsletter: [Subscribe](http://roots.io/subscribe/)
|
* Newsletter: [Subscribe](http://roots.io/subscribe/)
|
||||||
* Forum: [http://discourse.roots.io/](http://discourse.roots.io/)
|
* Forum: [http://discourse.roots.io/](http://discourse.roots.io/)
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
* PHP >= 5.4
|
||||||
|
* Node.js >= 0.10.0
|
||||||
|
* gulp (`npm install -g gulp`)
|
||||||
|
* Bower (`npm install -g bower`)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* [gulp](http://gulpjs.com/) for compiling Sass and LESS, checking for JavaScript errors, live reloading, concatenating and minifying files, and versioning assets
|
* [gulp](http://gulpjs.com/) for compiling Sass and LESS, checking for JavaScript errors, live reloading, concatenating and minifying files, and versioning assets
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ function google_analytics() { ?>
|
|||||||
console.log('GoogleAnalytics: ' + [].slice.call(arguments));
|
console.log('GoogleAnalytics: ' + [].slice.call(arguments));
|
||||||
}
|
}
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
ga('create','<?php echo GOOGLE_ANALYTICS_ID; ?>','auto');ga('send','pageview');
|
ga('create','<?= GOOGLE_ANALYTICS_ID; ?>','auto');ga('send','pageview');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
<time class="updated" datetime="<?php echo get_the_time('c'); ?>"><?php echo get_the_date(); ?></time>
|
<time class="updated" datetime="<?= get_the_time('c'); ?>"><?= get_the_date(); ?></time>
|
||||||
<p class="byline author vcard"><?php echo __('By', 'sage'); ?> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" rel="author" class="fn"><?php echo get_the_author(); ?></a></p>
|
<p class="byline author vcard"><?= __('By', 'sage'); ?> <a href="<?= get_author_posts_url(get_the_author_meta('ID')); ?>" rel="author" class="fn"><?= get_the_author(); ?></a></p>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> Feed" href="<?php echo esc_url(get_feed_link()); ?>">
|
<link rel="alternate" type="application/rss+xml" title="<?= get_bloginfo('name'); ?> Feed" href="<?= esc_url(get_feed_link()); ?>">
|
||||||
|
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a>
|
<a class="navbar-brand" href="<?= esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="collapse navbar-collapse" role="navigation">
|
<nav class="collapse navbar-collapse" role="navigation">
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>
|
<h1>
|
||||||
<?php echo Titles\title(); ?>
|
<?= Titles\title(); ?>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<form role="search" method="get" class="search-form form-inline" action="<?php echo esc_url(home_url('/')); ?>">
|
<form role="search" method="get" class="search-form form-inline" action="<?= esc_url(home_url('/')); ?>">
|
||||||
<label class="sr-only"><?php _e('Search for:', 'sage'); ?></label>
|
<label class="sr-only"><?php _e('Search for:', 'sage'); ?></label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="search" value="<?php echo get_search_query(); ?>" name="s" class="search-field form-control" placeholder="<?php _e('Search', 'sage'); ?> <?php bloginfo('name'); ?>" required>
|
<input type="search" value="<?= get_search_query(); ?>" name="s" class="search-field form-control" placeholder="<?php _e('Search', 'sage'); ?> <?php bloginfo('name'); ?>" required>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="submit" class="search-submit btn btn-default"><?php _e('Search', 'sage'); ?></button>
|
<button type="submit" class="search-submit btn btn-default"><?php _e('Search', 'sage'); ?></button>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user