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
// Add your own links to admin toolbar | |
function tbm935_custom_toolbar($wp_admin_bar) { | |
$wp_admin_bar->add_menu( array( | |
'parent' => 'site-name', | |
'id' => 'calendar', // Replace this | |
'title' => 'Calendar', // Replace with a name | |
'href' => 'http://techbasedmarketing.com/wpengine/wp-admin/edit.php?page=cal' // Replace with your own URL | |
)); | |
$wp_admin_bar->add_menu( array( | |
'parent' => 'site-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
<Limit GET POST PUT> | |
Order Deny,Allow | |
Deny from all | |
Allow from 100.1.10.10 | |
</Limit> | |
ErrorDocument 403 /Upgrade.html | |
<Files Upgrade.html> | |
Order Allow,Deny | |
Allow from all | |
</Files> |
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
# prevent scripts from running | |
AddHandler cgi-script .php .pl .jsp .asp .sh .cgi | |
Options -ExecCGI |
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
# secure htaccess file | |
<Files .htaccess> | |
order allow,deny | |
deny from all | |
</Files> | |
# secure other files | |
<FilesMatch ^((wp-config|wp-load|wp-settings)\.php$)$> | |
order allow,deny | |
deny from all |
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
#Put this in .htaccess inside wp-admin folder | |
Order deny,allow | |
Deny from all | |
allow from zzz.zzz.zzz.zzz | |
# Put this in main WP folder's .htaccess to limit access to wp-login.php | |
<Files wp-login.php> | |
Order deny,allow | |
Deny from all | |
allow from zzz.zzz.zzz.zzz |
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
// Add slideshare shortcode | |
function tbm_slideshare( $atts ) { | |
$atts = extract( shortcode_atts( | |
array( | |
'id'=>'' | |
),$atts ) ); | |
// Break it up so we can get the first variable = presentation ID | |
$id = explode('&', $id); | |
return '<iframe src="http://www.slideshare.net/slideshow/embed_code/'.$id[0].'?rel=0" width="570" height="469" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </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
/* Genesis Serenity */ | |
#content .post UL.snzpli-bullet LI, #content .post UL.snzpli-plus LI, #content .post UL.snzpli-check LI, #content .post UL.snzpli-ast LI, #content .post UL.snzpli-star LI, #content .post UL.snzpli-cross LI, #content .post UL.snzpli-arrow LI, #content .post UL.snzpli-alert LI, #content .post UL.snzpli-clock LI, #content .post ul.snzpli-bulb li, #content .post UL.snzpli-cancel LI, #content .post UL.snzpli-lock LI, #content .post UL.snzpli-new LI | |
{ | |
list-style-type: none; | |
padding-left: 24px; | |
} | |
/* Genesis Serenity */ | |
#content img, #content p img { | |
background: none; | |
padding: 0; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
{ | |
"name": "example-project", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.1" | |
} | |
} |
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
© Copyright 2005 - <?php echo date('Y'); ?> |
OlderNewer