This file contains hidden or 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
| /** | |
| * Using display: table-cell to evenly determine widths. You can add an arbitrary number of <li> | |
| */ | |
| ul { | |
| padding: 0; | |
| display: table; | |
| width: 100%; | |
| background: hotpink; |
This file contains hidden or 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
| /** | |
| * Using display: table-cell to evenly determine widths. You can add an arbitrary number of <li> | |
| */ | |
| ul { | |
| padding: 0; | |
| display: table; | |
| width: 100%; | |
| table-layout: fixed; |
This file contains hidden or 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 ($) { | |
| // Creates an iframe with an embedded HipChat conversation window. | |
| // | |
| // Options: | |
| // url - The url to the room to embed; required | |
| // container - The container in which to insert the HipChat panel; required | |
| // timezone - The timezone to use in the embedded room; required | |
| // welcome - A welcome message to display when the room is joined; optional | |
| // noframes - Content to include when iframes are disabled in the browser; optional |
This file contains hidden or 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
| @import url(http://fonts.googleapis.com/css?family=Open+Sans); | |
| html { | |
| background: #444; | |
| box-sizing: border-box; | |
| font-family: "Open Sans", sans-serif; | |
| line-height: 1.4; | |
| } | |
| *, *:before, *:after { | |
| box-sizing: inherit; | |
| } |
This file contains hidden or 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 class for WP_Membership routines. | |
| * | |
| * | |
| * @package WP_Membership | |
| * @since WP_Membership 0.1 | |
| */ | |
| if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"])) |
This file contains hidden or 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_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); | |
| function woo_remove_product_tabs( $tabs ) { | |
| unset( $tabs['description'] ); // Remove the description tab | |
| unset( $tabs['reviews'] ); // Remove the reviews tab | |
| unset( $tabs['additional_information'] ); // Remove the additional information tab | |
| return $tabs; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="author" content="Aalaap Ghag" /> | |
| <title>Twitter’s Bootstrap with Ryan Fait’s Sticky Footer and Aalaap Ghag’s Responsive Padding Fix</title> | |
| <link rel="stylesheet" href="css/bootstrap.min.css" /> | |
| <link href="css/bootstrap-responsive.css" rel="stylesheet"> | |
| <style> | |
| html, body { |
This file contains hidden or 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 | |
| add_action('admin_init', 'add_meta_boxes', 1); | |
| function add_meta_boxes() { | |
| add_meta_box( 'repeatable-fields', 'Audio Playlist', 'repeatable_meta_box_display', 'post', 'normal', 'high'); | |
| } | |
| function repeatable_meta_box_display() { | |
| global $post; |
This file contains hidden or 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
| #!/bin/sh | |
| wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.24-osx10.9-x86_64.tar.gz | |
| tar xfvz mysql-5.6* | |
| echo "stopping mamp" | |
| sudo /Applications/MAMP/bin/stop.sh | |
| sudo killall httpd mysqld | |
| echo "creating backup" |
This file contains hidden or 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
| if (typeof window.BOLD.options.templates == 'undefined') { | |
| window.BOLD.options.templates = {}; | |
| } | |
| window.BOLD.options.setTemplate = function (optionType, template, overwrite = true) { | |
| if( overwrite || typeof window.BOLD.options.templates[optionType] == 'undefined' ) { | |
| window.BOLD.options.templates[optionType] = template; | |
| if (typeof window.BOLD.options.app !== 'undefined') { | |
| window.BOLD.options.app.refreshTemplates(optionType); | |
| } |
OlderNewer