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
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| b, u, i, center, | |
| dl, dt, dd, ol, ul, li, | |
| fieldset, form, label, legend, | |
| table, caption, tbody, tfoot, thead, tr, th, td, | |
| article, aside, canvas, details, embed, |
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
| // Created currier transformer | |
| var currier = function(fn) { | |
| var args = Array.prototype.slice.call(arguments,1); | |
| return function() { | |
| return fn.apply(this,args.concat(Array.prototype.slice.call(arguments,0))); | |
| }; | |
| }; | |
| //---------------------------------- |
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 VueResource from 'vue-resource' | |
| Vue.use(VueResource); | |
| Vue.http.options.root = 'http://localhost:8888/wp-json'; |
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 | |
| function custom_field_excerpt() { | |
| global $post; | |
| $text = get_field('ACF Field Here'); | |
| if ( '' != $text ) { | |
| $text = strip_shortcodes( $text ); | |
| $text = apply_filters('the_content', $text); | |
| $text = str_replace(']]>', ']]>', $text); | |
| $excerpt_length = 20; | |
| $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); |
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
| sudo npm install -g bower | |
| sudo chown -R $USER:$GROUP ~/.npm | |
| sudo chown -R $USER:$GROUP ~/.config | |
| npm install | |
| bower install | |
| npm start |
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
| // Make a copy of the CPT archive and rename it 'home.php', then add this to 'functions.php' | |
| function wpsites_home_page_cpt_filter($query) { | |
| if ( !is_admin() && $query->is_main_query() && is_home() ) { | |
| $query->set('post_type', array( 'CPT NAME HERE' ) ); | |
| } | |
| } | |
| add_action('pre_get_posts','wpsites_home_page_cpt_filter'); |
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
| ****** Run from inside './mongo/bin' ******* | |
| ./mongod --dbpath ~/mongo-data | |
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
| // Opera 8.0+ | |
| var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
| // Firefox 1.0+ | |
| var isFirefox = typeof InstallTrigger !== 'undefined'; | |
| // Safari 3.0+ "[object HTMLElementConstructor]" | |
| var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification); | |
| // Internet Explorer 6-11 |
OlderNewer