The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<?php | |
/* | |
* Add this code to your functions.php file (or in a file that is included in it). | |
* Change the TEXTDOMAIN to match one in your theme, or remove argument all together. | |
* | |
* In example code below Post(s) is changed to New(s). | |
*/ | |
/** Changes the menu labels for "Posts" **/ |
<?php | |
add_action( 'init', 'my_custom_page_word' ); | |
function my_custom_page_word() { | |
global $wp_rewrite; // Get the global wordpress rewrite-rules/settings | |
// Change the base pagination property which sets the wordpress pagination slug. | |
$wp_rewrite->pagination_base = "new-slug"; //where new-slug is the slug you want to use ;) | |
} |
/** name: on the repo is what you call later down in the "require" section. | |
It does not necessarily need to be the repo user and repo name, but is good practice! :) | |
**/ | |
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://wpackagist.org" | |
}, |
# Shell prompt based on the Solarized Dark theme. | |
# Screenshot: http://i.imgur.com/EkEtphC.png | |
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles | |
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM='gnome-256color'; | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM='xterm-256color'; | |
fi; |
submodules[alias] | |
# View abbreviated SHA, description, and history graph of the latest 20 commits | |
l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
# View the current working tree status using the short format | |
s = status -s | |
# Show the diff between the latest commit and the current state | |
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" |
.modal { | |
text-align: center; | |
padding: 0!important; | |
} | |
.modal:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; |
I hereby claim:
To claim this, I am signing this object: