Skip to content

Instantly share code, notes, and snippets.

View chayner's full-sized avatar

Chip Hayner chayner

View GitHub Profile
@chayner
chayner / index.html
Created September 18, 2015 19:34
mePvzp
<div class="wrapper">
<div id="mytext">
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</div>
<button id="mybutton" class="mobile-only">Read More</button>
</div>
@chayner
chayner / screen.css
Created October 19, 2012 16:09
Additional KOC Styles
/* @group standard koc styles */
img {
border: 0 none;
/*border: 1px solid #000;*/
}
img.noborder {
border: 0 none !important;
}
/*image caption formats*/
@chayner
chayner / Paging for CCK
Created October 18, 2010 13:29
Patch file to modify the "paging" module in Drupal to work with a specific CCK field
Index: modules/paging/paging.module
===================================================================
--- modules/paging/paging.module (revision 221)
+++ modules/paging/paging.module (working copy)
@@ -408,17 +408,18 @@
* Implementation of hook_nodeapi().
*/
function paging_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
+
// Act only when paging is enabled for node's type and when node is being rendered for normal views.