##References
##Create Rails App
command to make new directory:
mkdir AppName
| <?php | |
| /* Register custom post types on the 'init' hook. */ | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 0.1.0 | |
| * @access public |
| // Disable Included CSS Files | |
| define ( 'ICL_DONT_LOAD_NAVIGATION_CSS', true ); | |
| define ( 'ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true ); | |
| define ( 'ICL_DONT_LOAD_LANGUAGES_JS', 'true'); | |
| function catBuild_WPML_languageSwitcher() { | |
| if (function_exists('icl_get_languages')) { | |
| $existing_languages = icl_get_languages('skip_missing=0'); |
##References
##Create Rails App
command to make new directory:
mkdir AppName
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
| <script type="text/javascript"> | |
| (function (css_href) { | |
| "use strict"; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); | |
| } else if (el.attachEvent) { | |
| el.attachEvent("on" + ev, callback); |
| (function(d) { | |
| var tkTimeout=3000; | |
| if(window.sessionStorage){if(sessionStorage.getItem('useTypekit')==='false'){tkTimeout=0;}} | |
| var config = { | |
| kitId: 'a1b2c3f4', | |
| scriptTimeout: tkTimeout | |
| }, | |
| h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";if(window.sessionStorage){sessionStorage.setItem("useTypekit","false")}},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) | |
| })(document); |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( |