Here are some resources I've found helpful:
server { | |
listen 80; | |
server_name wordpress.app; | |
root "/home/vagrant/Code/wordpress"; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
By default AngularJS and Blade conflict with the way variables are called. Both use a double curly bracket {{ var }}
syntax. There are a few workarounds such as changing Angular’s or Blade’s delimiters but an easier method is available.
Inside blade prefix Angular echo variables with the at “@“ symbol. Here is an example:
<li ng-repeat="phone in phones | filter:query | orderBy:orderProp">
<span>@{{phone.name}}</span>
<p>@{{phone.snippet}}</p>
</li>
<div class="button"> | |
<a href="#" onClick="doThing()">CLICK ME</a> | |
<script src="javascript"> | |
function doThing() { | |
//... | |
} | |
</script> | |
</div> |
<?php | |
return [ | |
"Afghanistan", | |
"Albania", | |
"Algeria", | |
"Andorra", | |
"Angola", | |
"Antigua and Barbuda", | |
"Argentina", |
{ | |
"directory": "vendor/bower_components" | |
} |
<?php | |
$words = 0; | |
$posts = query_posts([ | |
'posts_per_page' => -1, | |
'year' => '2014', | |
]); | |
foreach ($posts as $post) { | |
$words += str_word_count($post->post_content); |
<?php | |
if (file_exists(dirname(__FILE__) . '/wp-config-local.php')) { | |
# IMPORTANT: ensure your local config does not include wp-settings.php | |
require_once(dirname(__FILE__) . '/wp-config-local.php'); | |
} else { | |
// Don't show deprecations; useful under PHP 5.5 | |
error_reporting(E_ALL ^ E_DEPRECATED); | |
define('DB_NAME', getenv('DB_NAME') ); |
<li ng-repeat="phone in phones | filter:query | orderBy:orderProp"> | |
<span>@{{phone.name}}</span> | |
<p>@{{phone.snippet}}</p> | |
</li> |