A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
| <!DOCTYPE html> | |
| <!-- SCROLLABLE OVERLAY --> | |
| <html> | |
| <head> | |
| <style> | |
| .overlay { | |
| height: 0%; | |
| width: 100%; | |
| position: fixed; | |
| z-index: 1; |
| <div class="footer-social-icons"> | |
| <h4 class="_14">Follow us on</h4> | |
| <ul class="social-icons"> | |
| <li><a href="" class="social-icon"> <i class="fa fa-facebook"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-twitter"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-rss"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-youtube"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-linkedin"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-google-plus"></i></a></li> | |
| </ul> |
| <?php | |
| if(!function_exists('wc_get_products')) { | |
| return; | |
| } | |
| $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; | |
| $ordering = WC()->query->get_catalog_ordering_args(); | |
| $ordering['orderby'] = array_shift(explode(' ', $ordering['orderby'])); | |
| $ordering['orderby'] = stristr($ordering['orderby'], 'price') ? 'meta_value_num' : $ordering['orderby']; |
| <form role="search" method="post" class="search-form padding-4" action="<?php echo home_url( '/' ); ?>"> | |
| <label> | |
| <span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
| <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search...', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
| <input class="post_type" type="hidden" name="post_type" value="frequent" /> | |
| </label> | |
| <input type="submit" class="search-submit button brand" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" /> | |
| </form> | |
| <script type="text/javascript"> |
A list of amazingly awesome PHP libraries, resources and shiny things.
| <?php | |
| // This is the meat of the plugin and should go in mu-plugins/0-env-url-override.php | |
| // Only load these filters if we're not in the production environment | |
| if ( defined( 'ENV_NOT_PRODUCTION' ) && ENV_NOT_PRODUCTION ) { | |
| // This always needs to be filtered | |
| add_filter( 'site_url', 'env_filter_site_url', 0 ); | |
| // We don't filter home_url in the admin so that we get production URLs for posts. | |
| // This does break certain links like "Preview/View Post", however. |
| jQuery(document).ready(function($){ | |
| $(".all-portfolios").isotope({ | |
| itemSelector: '.single-portfolio', | |
| layoutMode: 'fitRows', | |
| }); | |
| $('ul.filter li').click(function(){ | |
| $("ul.filter li").removeClass("active"); | |
| $(this).addClass("active"); |
| -- | |
| -- these are the only values you need to set | |
| -- and then just run these in squence from the mysql terminal | |
| -- | |
| SET @USER := 'Your User Name'; | |
| SET @EMAIL := '[email protected]'; | |
| SET @PASS := 'your-password-here'; | |
| -- | |
| -- wordpress will 'upgrade' the MD5 on your first login |
| // see SeaGrass | |
| if ($(".slideshow-full-container").length > 0) { | |
| // https://github.com/kenwheeler/slick/issues/1403#issuecomment-282066130 | |
| // Test for slide length, if one, hide navigation dots | |
| // the event needs to be run before slick is initialized | |
| $('.slideshow-full-container').on('init', function (event, slick, direction) { | |
| // console.log($('#full_page_slideshow .slick-slide').length); |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This is accurate as of WordPress 4.9.
There are a few TODOs left. Please bear with me.