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
| // | |
| // By default, WordPress comes with a handy search but it only search in post | |
| // titles and contents. If you are working on a custom post type, you most | |
| // probably using custom fields to store its attributes. For example, A | |
| // Property custom post type would have address, city and state custom fields. | |
| // You may have used WP_Query object with meta_query setup, But, it does not | |
| // work. If you do not use “s” attribute, it will overwrite the default search | |
| // and If you use it, it will not return the expected results. This snippet will | |
| // use posts_clauses filter to inject the meta query that will combine with the | |
| // WordPress’s default search parameter. |
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
| /** | |
| * Carregamento condicional de css/img conforme a resolução. | |
| * | |
| * Através de data-*, permite que somente as folhas de estilos (e, | |
| * opcionalmente, imagens) que batem com determinada resolução sejam | |
| * carregados e entrem em ação. | |
| * | |
| * Deve-se usar seguindo o modelo: | |
| * <link rel="stylesheet" | |
| * class="mediaquerydependent" |
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
| ### User template | |
| # Folders | |
| bower_components/ | |
| .project | |
| .nuxt | |
| # Compiled source | |
| *.class | |
| *.com | |
| *.dll |
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
| /* | |
| * Ex: | |
| * include("http://mysite.com/bookmarklet.css"); | |
| * include("http://mysite.com/bookmarklet.js"); | |
| */ | |
| let include = ( src, callback ) => { | |
| let ext = src.split( /[\#\?]/ )[ 0 ].split( '.' ).pop().toLowerCase(); | |
| let inc; | |
| if ( ext === 'css' ) { |
NewerOlder