View gist:999616a3586f2817af71
<?php | |
/* | |
* WPML language switcher customizations: htp://wpml.org | |
*/ | |
function custom_wpml_lang_switcher() { | |
if (function_exists('icl_get_languages')){ | |
// remove WPML default css | |
define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true); | |
// Custom language layout selector ?> |
View gist:fb152c46f4ed5c1a410f
<?php | |
$terms = get_terms( 'TAXONOMY' ); | |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ | |
foreach ( $terms as $term ) { | |
echo '<div class="item">'; | |
$icon = pods_field( 'TAXONOMY', $term->term_id, 'FIELD', true ); | |
$icon_url = $icon['guid']; | |
$icon_thumb = pods_image_url ( $icon_url, 'thumbnail', 0, false ) ; | |
$term_link = get_term_link($term); | |
echo '<a href="'.$term_link.'">'; |
View grunfile.js
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// LESS Compilation | |
less: { | |
development: { | |
options: { | |
paths: ["src/css"] |
View app.js
jQuery(document).ready(function($) { | |
/* WORDPRESS NAV-BAR SUPPORT ------------- */ | |
/* Adds support for the top-bar with flyouts in WordPress */ | |
$('.top-bar-section li').has('ul').addClass("has-dropdown"); | |
$('.top-bar-section li.has-dropdown ul').addClass("dropdown"); | |
/*loads foundation*/ | |
jQuery(document).foundation(); |
View index.html
<html> | |
<body> | |
<p>fly in, fly out</p> | |
</body> | |
</html> |