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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>Your Message Subject or Title</title> | |
| <style type="text/css"> | |
| /* Client-specific Styles */ |
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
| /*! A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto.MIT / GPLv2 License.*/(function(a){function m(){d.setAttribute("content",g),h=!0}function n(){d.setAttribute("content",f),h=!1}function o(b){l=b.accelerationIncludingGravity,i=Math.abs(l.x),j=Math.abs(l.y),k=Math.abs(l.z),(!a.orientation||a.orientation===180)&&(i>7||(k>6&&j<8||k<8&&j>6)&&i>5)?h&&n():h||m()}var b=navigator.userAgent;if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(b)&&b.indexOf("AppleWebKit")>-1))return;var c=a.document;if(!c.querySelector)return;var d=c.querySelector("meta[name=viewport]"),e=d&&d.getAttribute("content"),f=e+",maximum-scale=1",g=e+",maximum-scale=10",h=!0,i,j,k,l;if(!d)return;a.addEventListener("orientationchange",m,!1),a.addEventListener("devicemotion",o,!1)})(this); |
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 main; | |
| (function($) { | |
| /* | |
| * Main | |
| * | |
| * @return init - public constructor | |
| */ | |
| main = function() { |
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 $prevBtn = $('<button />', { id: 'prevShirtsBtn' }); | |
| var $nextBtn = $('<button />', { id: 'nextShirtsBtn' }); | |
| $("#element").before($prevBtn).after($nextBtn) | |
| .carouFredSel({ | |
| width: '100%', | |
| debug: false, | |
| items: { | |
| visible: '4' | |
| }, |
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
| $(document).ajaxComplete(function(e, xhr, settings) { | |
| // Drupal.settings.basePath == / | |
| // Drupal.settings.pathPrefix == lang/ | |
| if (settings.url == Drupal.settings.basePath + Drupal.settings.pathPrefix + "?q=views/ajax" || | |
| settings.url == Drupal.settings.basePath + Drupal.settings.pathPrefix +"views/ajax" || | |
| settings.url == Drupal.settings.basePath + "?q=system/ajax" || | |
| settings.url == Drupal.settings.basePath + "system/ajax") { |
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 YOURTHEMENAME_menu_link(array $variables) { | |
| $element = $variables['element']; | |
| $sub_menu = ''; | |
| if ($element['#below']) { | |
| $sub_menu = drupal_render($element['#below']); | |
| } | |
| if (strpos( $element['#href'], 'nolink')) { | |
| $output = '<a href="#" class="nolink">' . $element['#title'] . '</a>'; | |
| } else { |
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
| <!-- HTML5 Doctype. Remember to delete these comments (Quirks Mode). --> | |
| <!doctype html> | |
| <!-- Modernizr HTML tags with IE classes. --> | |
| <!--[if lt IE 7]> <html lang="" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html lang="" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html lang="" class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="" class="no-js"> <!--<![endif]--> | |
| <!-- Let's get started. --> |
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
| /** | |
| * $vars['#id''] = Form ID, can be found via Krumo | |
| * $vars['field_name'] = Name of the input element you want to access | |
| */ | |
| function theme_form_alter(&$vars) { | |
| //krumo($vars); | |
| if( $vars['#id'] = " ") { |
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 hook_form_alter(&$form, &$form_state, $form_id) { | |
| if($form_id == "webform_client_form_22") { | |
| // get the nid so we can use it in the wrapper value | |
| $nid = $form['#node']->nid; | |
| // add the ajax properties to the submit button | |
| $form['actions']['submit']['#ajax'] = array( | |
| 'callback' => 'hook_webform_js_submit', // update function |
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
| mysql -u username -p database < file.sql | |
| /******* | |
| ** OF ** | |
| *******/ | |
| mysql -u username -pPASSWORD | |
| > source file.sql; |
OlderNewer