January 1 - Rocky
January 6 - Sherlock Holmes
January 11 - Goodfellas
January 20 - The Fugitive
| # Redirect Requests to Live Site. | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^stagingsite.net$ [NC] | |
| RewriteRule ^(.*)$ https://livesite.com/$1 [R=301,L] | |
| </IfModule> |
| PROJECTNAME/ | |
| | bin -- Can be excluded from project distribution. | |
| | images/ -- Images added here will be optimized. | |
| | sass/ | |
| | blocks/ | |
| | BLOCKNAME/ -- SCSS files for BLOCKNAME. | |
| | BLOCKNAME.scss -- Repeat for all blocks needed. | |
| | PROJECTNAME.scss | |
| | PROJECTNAME-admin.scss | |
| | editor-styles.scss -- Admin editor specific styles. |
| <?php | |
| add_filter( 'gform_field_validation', 'mytheme_fix_custom_validation', 10, 4 ); | |
| /** | |
| * Fixes Gravity Forms Custom validation message. | |
| * | |
| * @link https://docs.gravityforms.com/gform_field_validation/ | |
| * | |
| * @param array $result The result array. |
| <?php | |
| // ^^ Other config settings such as database credentials. ^^ | |
| /** | |
| * WordPress debugging mode. | |
| * | |
| * For information on other constants that can be used for debugging, | |
| * visit the Codex. | |
| * |
| $.fn.serializeObject = function() { | |
| var arrayData = this.serializeArray(), | |
| objectData = {}; | |
| $.each( arrayData, function() { | |
| var value; | |
| if ( this.value != null ) { | |
| value = this.value; | |
| } else { |
| <?php | |
| $cmd = "zip -9prv content_backup.zip ."; | |
| $pipe = popen($cmd, 'r'); | |
| if (empty($pipe)) { | |
| throw new Exception("Unable to open pipe for command '$cmd'"); | |
| } | |
| stream_set_blocking($pipe, false); | |
| echo "\n"; |
| <?php | |
| /** | |
| * Source: | |
| * @link https://web.archive.org/web/20160403212324/http://cloudsitesrock.com/?ac=list&cat=6&m=0&y=0 | |
| */ | |
| $cmd = "zip -9prv content_backup.zip ."; | |
| $pipe = popen($cmd, 'r'); | |
| if (empty($pipe)) { |
| <?php | |
| /** | |
| * Disable Tribe Select2 on non-tribe admin pages | |
| */ | |
| function _theme_disable_tribe_select2() { | |
| $screen = get_current_screen(); | |
| if ( 'tribe_events' === $screen->id ) { | |
| return; | |
| } |
| <?php | |
| add_filter( 'wc_add_to_cart_params', 'kingcotton_remove_query_strings' ); | |
| add_filter( 'woocommerce_params', 'kingcotton_remove_query_strings' ); | |
| function kingcotton_remove_query_strings( $params ) { | |
| $params['wc_ajax_url'] = '/?wc-ajax=%%endpoint%%'; | |
| return $params; | |
| } |