🧙♂️
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 | |
class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu { | |
function start_lvl( &$output, $depth ) { | |
//In a child UL, add the 'dropdown-menu' class | |
$indent = str_repeat( "\t", $depth ); | |
$output .= "\n$indent<ul class=\"dropdown-menu\">\n"; |
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
// -------------------------------------------------- | |
// | |
// SUB-THEME-SPECIFIC VARIABLES | |
// | |
// -------------------------------------------------- | |
// Home | |
// ------------------------- | |
@home-sub-theme-PrimaryColor: @primaryColor; | |
@home-sub-theme-AccentColor: @accentColor; |
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
/** | |
* Task: attach_heads | |
* Description: Set the heads for all themes declared in themes.json | |
*/ | |
module.exports = function(grunt) { | |
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); |
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
/* ======================================================================================== | |
* | |
* function for custom date range display of Timely ai1ec events | |
* | |
* @param $event - you must pass Timely's $event object to this function | |
* @param $date_format - pass a PHP valid date format for Month & Day (not year!) | |
* @param $time_format - pass a PHP valid time format, pass FALSE to omit time from output | |
* @param $echo - defaults to true, in order to return pass FALSE for $echo 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
// | |
// Mixins to build sub-themes | |
// -------------------------------------------------- | |
// call this to build a new theme and create all needed variables in _sub-themes.less | |
.setThemeColors( @themeName ) { | |
(~"body.@{themeName}") { | |
color: ~"@{@{themeName}-PrimarySubdued}"; | |
background-color: ~"@{@{themeName}-AccentColor}"; | |
a { |
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
if ( ! $.fn.constrained_popover ) { | |
// Constrained popover allows you to pass any DOM element in jQuery syntax and get a | |
// Bootstrap popover that changes orientation based on it's proximity to the container bounds | |
/* CONSTRAINED_POPOVER PUBLIC CLASS DEFINITION | |
* =========================================== */ | |
var ConstrainedPopover = function ( element, options ) { | |
this.init('constrained_popover', element, options ) |
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
define( [ | |
"jquery" | |
], | |
function( $ ) { | |
"use strict"; // jshint ;_; | |
/** | |
* Handler for popover trigger: mouseenter. | |
* | |
* @param {object} e JS event object |
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
//assume that Backbone and $ are available as globals | |
//everything in this file will be interpretted as soon as the JS is | |
//loaded by the browser. | |
var MainRouter = require('./2-mainRouter'); //A Backbone Router | |
//doc ready | |
$(function () { | |
router = new MainRouter(); |
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
this.theAppName = (function(Backbone, Marionette) { | |
var App; | |
App = new Marionette.Application; | |
App.addRegions({ | |
headerRegion: "#header-region" | |
}); |
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
var BFHPhoneFormatList = { | |
'AF': '+93 0dd ddd dddd', | |
'AL': '+355 0dd ddd ddd', | |
'DZ': '+213 0ddd dd dd dd', | |
'AS': '+1 (ddd) ddd-dddd', | |
'AD': '+376 ddddddddd', | |
'AO': '+244 ddd ddd ddd', | |
'AI': '+1 (ddd) ddd-dddd', | |
'AQ': '+672 ddddddddd', | |
'AG': '+1 (ddd) ddd-dddd', |
OlderNewer