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 | |
// Coral Reef Seafood drupal theme | |
// Initial version 2010-08-05 by MRaichelson | |
// © 2010 Pixis Creative | |
// http://pixiscreative.com/ | |
function coralreef_preprocess_search_theme_form(&$vars, $hook) { | |
// Modify elements of the search form | |
$vars['form']['search_theme_form']['#title'] = t(''); | |
// Set a default value for the search box | |
$vars['form']['search_theme_form']['#value'] = t(''); |
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
name = {Client} Customizations | |
description = Modifies the contact form to add a Phone number field and send the content via email when submitted. | |
core = 6.x |
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
<!DOCTYPE html> | |
<w:script> | |
// we can create a reuseable PAGE javascript object for providing | |
// a common structure for holding page-level information | |
var page = { | |
title:'This is the Foo Page' | |
}; | |
</w:script> | |
<html> | |
<head> |
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
wget \ | |
--mirror \ | |
--page-requisites \ | |
--convert-links \ | |
--adjust-extension \ | |
--no-verbose \ | |
--level=inf \ | |
http://dynamic.hostname/ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Carousel · HTML Code Library</title> | |
<style type="text/css"> | |
/* styles not needed for the slideshow */ | |
body { margin: 0; padding: 0; background: #ccc url(./_res/img/bg.png) top center no-repeat; } |
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
// apply class for firefox | |
if($.browser.mozilla){ | |
if(navigator.appVersion.indexOf("Win")!=-1){ | |
$('body').addClass('moz-win'); | |
}else{ | |
$('body').addClass('moz'); | |
} | |
} |
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
; {XXX} theme by NavigationArts | |
; © 2011 NavigationArts | |
; http://www.navigationarts.com/ | |
name = {XXX} | |
description = Theme for {XXX} | |
screenshot = theme.gif | |
core = 6.x | |
engine = phptemplate | |
version = "6.x-1.0" |
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
//Run /jQuery in noconflict mode | |
jQuery.noConflict(); | |
jQuery(function ($) { | |
//searchBar | |
//buttonSmall | |
/* 2011-02-14 MR: heavy rewrites [ */ | |
$('div.moduleSearch .buttonSmall').click(function () { | |
var query = $('.searchBar').val(); | |
if($.trim(query) != ''){ |
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
// a couple project examples of assembling stuff for display... | |
// example 1: (by Matt) assemble everything as a string and append that to a page... | |
$(".moduleBrowseProductTwo .productSetContainer").append('<div class="product" data-catid="'+ catId +'"> <img src="' + imageURL + '" /><p>' + categoryName + '</p></div>'); | |
// example 2: (by Mike) create a single chunk of HTML in a string | |
// then use string.replace() to swap out specific tokens | |
var resultStructure = '<div class="product" data-brand="%productBrandName%"><div class="img"><img style="max-width:114px;max-height:114px;" src="%productImageUrl%" alt="" /></div><h6>%productName%</h6><div class="buttonSmallContainer"><div class="buttonSmallLeft"><div class="buttonSmallRight"><div class="buttonSmallInner"><a class="buttonSmall buttonNoArrow" href="%productUrl%">This is it</a></div></div></div></div></div>'; |
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 | |
$var = <<<EOD | |
<h1>blerg</h1> | |
<p>All part of a single variable</p> | |
EOD; | |
?> |