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 | |
/** | |
* Return a themed breadcrumb trail. | |
* | |
* @param $breadcrumb | |
* An array containing the breadcrumb links. | |
* @return a string containing the breadcrumb output. | |
*/ | |
function themename_breadcrumb($breadcrumb) { | |
if (!empty($breadcrumb)) { |
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 currentpath = location.pathname; | |
$('.block a[@href="' + currentpath + '"]').parent().addClass('current'); |
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
<!-- [JSFiddle](http://jsfiddle.net/zachharkey/nyDR3/1/) --> | |
<style type="text/css" media="screen"> | |
a.box-link { | |
text-decoration: none; | |
padding: 5px 10px; | |
-webkit-transition-property: background; | |
-webkit-transition-duration: 300ms; |
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
import sublime, sublime_plugin, re | |
DEBUG_ENABLED = False | |
PRINT_CONTEXT = False | |
# Toggle between single-line or multi-line formatted css statement | |
# | |
# Add the following line to Preferences > Key Bindings - User | |
# { "keys": ["ctrl+shift+j"], "command": "toggle_single_line_css" } | |
# |
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> | |
<html<?php print $html_attributes; ?>> | |
<head> | |
<?php print $head; ?> | |
<title><?php print $head_title; ?></title> | |
<?php print $styles; ?> | |
<?php print $scripts; ?> | |
</head> | |
<body<?php print $body_attributes;?>> |
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 HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Sample Title</title> | |
</head> | |
<body> |
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 | |
/** | |
* Modify panels pane template variables | |
*/ | |
function MYTHEME_preprocess_panels_pane(&$variables) { | |
// Merge block_class classes into the pane's $classes_array | |
if (module_exists('block_class')) { | |
// Insert additional classes into panels panes. | |
if ($variables['pane']->type == 'block') { | |
// Infer the block's $module and $delta from the pane subtype. |
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
.responsive-cols, | |
.responsive-cols-1, | |
.responsive-cols-2, | |
.responsive-cols-3, | |
.responsive-cols-4 { | |
margin:0;padding:0; | |
@include no-bullets; | |
.col { | |
@include trailer(1); |
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
<h1>CSS3 Checkbox Styles</h1> | |
<!-- Slide ONE --> | |
<div class="slideOne"> | |
<input type="checkbox" value="None" id="slideOne" name="check" /> | |
<label for="slideOne"></label> | |
</div> | |
<!-- Slide TWO --> | |
<div class="slideTwo"> |
OlderNewer