#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Hide admin bar for all. | |
*/ | |
add_filter('show_admin_bar', '__return_false'); | |
or | |
/** | |
* Show admin bar only to those who can edit posts. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.element:before { | |
content: ""; | |
position: absolute; | |
top: -20px; | |
left: 50%; | |
margin-left: -20px; | |
width: 0; | |
height: 0; | |
border-style: solid; | |
border-width: 0 20px 20px 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.map { | |
position: relative; | |
min-height: 200px; | |
.ratio { | |
display: block; | |
width: 100%; | |
height: auto; | |
} | |
iframe { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Rename Posts in admin menu | |
* | |
*/ | |
new dhf_rename_posts('News'); | |
class dhf_rename_posts | |
{ | |
private $name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A pagination function | |
* @param integer $range: The range of the slider, works best with even numbers | |
* Used WP functions: | |
* get_pagenum_link($i) - creates the link, e.g. http://site.com/page/4 | |
* previous_posts_link(' ‚ '); - returns the Previous page link | |
* next_posts_link(' é '); - returns the Next page link | |
* http://robertbasic.com/blog/wordpress-paging-navigation/ | |
* Tweaked by tdB ... | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dhf_loadme_ajax() { | |
if ( isset($_POST['page_id']) ) : | |
file_get_contents(get_permalink( $_POST['page_id'] )); | |
endif; | |
die(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sortable-list{margin-top:20px;} | |
#sortable-list li{padding:10px;width:50%;font-weight:bold;cursor:move;border:1px solid #ddd;background:#f5f5f5;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(1, #ffffff));background:-ms-linear-gradient(bottom, #eeeeee, #ffffff);background:-moz-linear-gradient(center bottom, #eeeeee 0%, #ffffff 100%);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;} | |
#loading-animation{display:none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// button to load the content | |
<a class="button showloadme"><span class="finger">☞</span> Who’s this guy?</a> | |
// css to momentarily display loader image | |
.ajaxloader { width: 32px; height: 32px; background: url(ajax-loader.gif) no-repeat; margin: auto; } |
NewerOlder