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
/* | |
=skin= | |
@name Tranquil v1.0.2 | |
@author Thomas McMahon | |
@homepage http://www.twistermc.com | |
@email [email protected] | |
@license MPL/LGPL/GPL | |
=/skin= | |
*/ | |
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
/* | |
=skin= | |
@name Custom | |
@author You | |
@homepage http://www.yourpage.com | |
@email [email protected] | |
@license MPL/LGPL/GPL | |
=/skin= |
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
// Make the categoires box bigger in the admin. | |
add_action('admin_head', 'admin_taller_categories_box'); | |
function admin_taller_categories_box() { | |
echo '<style> | |
.categorydiv div.tabs-panel { | |
max-height: 500px; | |
} | |
</style>'; | |
} |
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
<?php | |
/* | |
export.php - a script for outputting WordPress posts in CSV format. | |
Includes post ID, title, URL, tags and categories. | |
Tags and categories are semicolon seperated. | |
All commas are stripped from titles, tags and categories in order to keep the CSV format. | |
Drop this file in the main WordPress directory; next to wp-config.php. | |
Remove when done using. | |
*/ | |
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
javascript:window.location='things:add?title='+encodeURIComponent(document.title)+'¬es='+encodeURIComponent(document.URL) |
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
// Proof of Concept only. | |
// Incomplete Code | |
function facebook_media_upload_tab_name( $tabs ) { | |
$newtab = array( 'tab_slug' => 'Insert from Facebook' ); | |
return array_merge( $tabs, $newtab ); | |
} | |
add_filter( 'media_upload_tabs', 'facebook_media_upload_tab_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
/** | |
* Create custom WordPress Role 'Webmaster' with all Administrator capabilities. | |
* Remember to delete this code when done as it's only needed once. | |
*/ | |
$customRoleName = 'Webmaster'; | |
$customRoleID = 'webmaster'; // No spaces, all lowercase | |
$createCustomRole = add_role( | |
$customRoleID, |
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
<?php | |
/** | |
* Custom Login | |
* Pulls the logo from the BeverBuilder's customizer settings. | |
*/ | |
function bbLogo_login_logo() { | |
$LogoImage = get_theme_mod( 'fl-logo-image-retina'); | |
if ( !$LogoImage ) { | |
$LogoImage = get_theme_mod( 'fl-logo-image'); |
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
// Adapted from http://stackoverflow.com/questions/30293784/smooth-scroll-to-anchor-after-loading-new-page | |
NERD.ScrollToHashFix = { | |
init: function () { | |
// to top right away | |
if ( window.location.hash ) scroll(0,0); // void some browsers issue | |
setTimeout( function() { scroll(0,0); }, 1); | |
$(function() { | |
// *only* if we have anchor on the url and if it exists on the page. |
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 the drop down indicator to parent */ | |
.fl-page-header .menu-item-has-children a:after {content: " ▾"; } | |
/* remove drop down indicator from children */ | |
.fl-page-header .sub-menu a:after {content: ""; } |
OlderNewer