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
| phpcs.standard = WordPress | |
| phpcs.tabWidth = 4 | |
| phpcs.encoding = utf-8 | |
| ftp.host = ftp.example.com | |
| ftp.port = 21 | |
| ftp.username = username | |
| ftp.password = password | |
| ftp.project.dir = /subdomains/docs/httpdocs/${project.name.safe} | |
| ftp.dir = ${ftp.project.dir}/${project.version} |
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
| -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ | |
| -moz-box-sizing: border-box; /* Firefox, other Gecko */ | |
| box-sizing: border-box; /* Opera/IE 8+ */ |
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
| Sub Split() | |
| Dim rLastCell As Range | |
| Dim rCells As Range | |
| Dim strName As String | |
| Dim lLoop As Long, lCopy As Long | |
| Dim wbNew As Workbook | |
| With ThisWorkbook.Sheets(1) | |
| Set rLastCell = .Cells.Find(What:="*", After:=[A1], SearchDirection:=xlPrevious) |
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( 'wp_enqueue_scripts', 'wps_enqueue_jquery' ); | |
| /** | |
| * Enqueue jQuery from Google CDN with fallback to local WordPress | |
| * | |
| * @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script | |
| * @link http://codex.wordpress.org/Function_Reference/wp_register_script | |
| * @link http://codex.wordpress.org/Function_Reference/wp_deregister_script | |
| * @link http://codex.wordpress.org/Function_Reference/get_bloginfo | |
| * @link http://codex.wordpress.org/Function_Reference/is_wp_error |
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( 'wp_enqueue_scripts', 'wps_load_scripts' ); | |
| /** | |
| * Enqueue Isotope | |
| * For commercially developed child themes, you must obtain a license | |
| * from isotope.metafizzy.co for approx. $25. | |
| * | |
| * @link http://isotope.metafizzy.co/ | |
| * @link https://github.com/desandro/isotope | |
| * @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script |
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( 'tgmsp_before_slider_output', 'wps_remove_soliloquy_style' ); | |
| /** | |
| * Remove Soliloquy Style | |
| * | |
| * @uses wp_dequeue_style() Remove a CSS file that was enqueued with wp_enqueue_style(). | |
| */ | |
| function wps_remove_soliloquy_style() { | |
| wp_dequeue_style( 'soliloquy-style' ); | |
| } |
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 private/draft/future/pending pages to parent dropdown in page attributes metabox and Quick Edit | |
| * | |
| * @param array $dropdown_args | |
| * @param object $post (Optional) | |
| * @return array $dropdown_args | |
| */ | |
| function page_attributes_metabox_add_parents( $dropdown_args, $post = NULL ) { | |
| $dropdown_args['post_status'] = array('publish', 'draft', 'pending', 'future', 'private'); | |
| return $dropdown_args; |
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 | |
| /** | |
| * Possibly amend the loop. | |
| * | |
| * Specify the conditions under which the grid loop should be used. | |
| * | |
| * @author Bill Erickson | |
| * @author Gary Jones | |
| * @link http://code.garyjones.co.uk/genesis-grid-loop-advanced/ |
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_action( 'wp_enqueue_scripts', 'child_load_google_font' ); | |
| /** | |
| * Enqueue Google Font | |
| * | |
| * @author Greg Rickaby | |
| * @since 1.0 | |
| */ | |
| function child_load_google_font() { | |
| $protocol = is_ssl() ? 'https' : 'http'; |