This file contains 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
// EPT journery mega drawer menu can be seen when clicked on any navigation item | |
//http://eptfamily.com/ | |
//Initiate Journey Nav Control | |
Drupal.behaviors.ept_menu_journey_behavior = { | |
attach: function(context, settings) { | |
$('#block-system-main-menu', context).once('journey-nav', function() { | |
$(this).find('a.mega-drawer').each(function() { |
This file contains 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 vod_misc_copyright_block_view($wrapper) { | |
//dpm('Copyright'); | |
if ( | |
isset($wrapper->vocabulary) && | |
$wrapper->vocabulary->name->value() == 'Series' | |
) { | |
//dpm('series page'); | |
if ( | |
$wrapper->field_brand_copyright && |
This file contains 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
//example one | |
//using a session key profile to hide elements when credentials are already given from a different login account | |
function vod_oauth_medscape_user_insert(&$edit, $account, $category) { | |
// load frontend functions | |
module_load_include('inc', 'vod_oauth_medscape', 'vod_oauth_medscape.frontend'); | |
// create authmap | |
$profile = vod_oauth_medscape_SESSION_GET(VOD_AUTH_MEDSCAPE_SESSION_KEY_PROFILE); | |
if ($profile) { |
This file contains 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
//Example one creating file pathing variables for loaded font paths (non cdns) | |
//Loaded Fonts | |
$fontPath: '/sites/all/themes/ept/libraries/_fonts'; | |
//abel | |
$abelPath: 'abel'; | |
@font-face { | |
font-family: 'abelregular'; | |
src: url('#{$fontPath}/#{$abelPath}/abel-regular-webfont.eot'); | |
src: url('#{$fontPath}/#{$abelPath}/abel-regular-webfont.eot?#iefix') format('embedded-opentype'), | |
url('#{$fontPath}/#{$abelPath}/abel-regular-webfont.woff') format('woff'), |
This file contains 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
.cloud-one{ | |
width: 200px; | |
height: 68px; | |
background: #f6ffff; | |
border-radius: 100px; | |
position: relative; | |
margin: 40px auto 20px; | |
&:after, &:before { | |
content: ''; | |
position: absolute; |
This file contains 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 vod_preprocess_page(&$variables) { | |
// dpm($variables); | |
if ($variables['is_front'] == TRUE || arg(0) == 'home') { | |
$variables['title'] = ''; | |
} | |
if ($variables['logged_in'] == FALSE && arg(0) == 'user') { | |
$variables['title'] = 'Sign In'; | |
$variables['login_link'] = '<a href="/user/password" class="return-text">Forgot password?</a>'; | |
} | |
if ($variables['logged_in'] == FALSE && arg(1) == 'password') { |
This file contains 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
swapper = function(arr, from, to) { | |
arr.splice(to, 0, arr.splice(from, 1)[0]); | |
return arr; | |
}; | |
//setup our vars | |
var homeElements = new Array(); | |
var mobileElements = new Array(); |
This file contains 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
//http://documents.cellsearchctc.com/ | |
//language | |
$('.all, .pt').hide(); | |
$('#selectForm').change(function(event) { | |
$('.all, .language-list h1').hide(); | |
toggleLanguage(this.value); | |
}); | |
//country |
This file contains 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 ($) { | |
Drupal.behaviors.idi_interstitial = { | |
attach: function (context, settings) { | |
$('.block--bean-interstitial a.external, .block--bean-interstitial-iframe a.external ').click(function () { | |
$.colorbox.close(); | |
return true; | |
}); | |
$('.block--bean-interstitial .internal, .block--bean-interstitial-iframe .internal').click(function () { | |
$.colorbox.close(); | |
return false; |
This file contains 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 | |
/** | |
* @file | |
* Sample Bean Content to fill out icttemplate | |
*/ | |
//http://www.pixelite.co.nz/article/how-use-entity-metadata-wrappers-drupal-7/ | |
//https://www.drupal.org/dynamic-queries | |
//http://ovistaoa.dev/devel/php | |
include_once 'idi_interstitial.features.inc'; | |
include_once 'idi_interstitial.features.field_base.inc'; |
OlderNewer