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
*{ | |
margin-left: auto; | |
margin-right: auto; | |
padding: 0; | |
} | |
body{ | |
background-image:url("images/background.jpg"); | |
background-attachment: fixed; | |
background-position: top center; |
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 lang="en"> | |
<!-- | |
PennellChing LLC Website | |
Developed by Kraig Hufstedler | |
[email protected] | |
http://kraigh.com | |
Uses TypeKit for Fonts |
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
function jnet5_preprocess_panels_pane(&$vars) { | |
$tgpath = '/tg' | |
$hrpath = '/hr' | |
$wcpath = '/wc' | |
$blpath = '/bl' | |
$visitmenu = '<div href="#" class="button radius dropdown">Visit A Church<ul><li><a href="' . $tgpath . '">Tower Grove</a></li><li><a href="' . $hrpath . '">Hanley Road</a></li><li><a href="' . $wcpath . '">West County</a></li><li><a href="' . $blpath . '">Belleville</a></li></ul></div>'; | |
$vars['content'] = str_replace('[visit_a_church]', $visitmenu, $vars['content']); | |
$selectmenu = '<div href="#" class="button radius dropdown">Select A Church<ul><li><a href="' . $tgpath . '">Tower Grove</a></li><li><a href="' . $hrpath . '">Hanley Road</a></li><li><a href="' . $wcpath . '">West County</a></li><li><a href="' . $blpath . '">Belleville</a></li></ul></div>'; | |
$vars['content'] = str_replace('[select_a_church]', $selectmenu, $vars['content']); |
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
//Charlie's function: | |
/** | |
* Return the campus name for a given ID. | |
*/ | |
function jnet5_campus_name_by_pbid($campus_id) { | |
$campuses = _jnet_purl_campuses(); | |
foreach ($campuses as $campus) { | |
if ($campus['pb_id'] == $campus_id) { | |
$campus_name = $campus['label']; |
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
$view = new view(); | |
$view->name = 'stories'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'Stories'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
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
list($fname1, $lname1) = explode(' ', $row1->title , 2); | |
list($fname2, $lname2) = explode(' ', $row2->title , 2); | |
return(strcasecmp($lname1,$lname2)); |
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
function circa_loan_calc_mortgage_partner_form_submit($form, &$form_state) { | |
$listing_path = isset($_GET['q']) ? $_GET['q'] : '<front>'; | |
$listing_link = url($listing_path, array('absolute' => TRUE)); | |
$send_form_to = '[email protected]'; | |
$params = array( | |
'context' => array( | |
'subject' => 'Request for mortgage info from user at circastl.com', | |
'body' => '<p>A user at circastl.com has requested mortgage pre-approval on a property.</p>' . '<p>Name: ' . $form['name'] . '</p><p>Email: ' . $form['email'] . '</p><br><p>Property: <a href="' . $listing_link . '">' . $listing_link . '</a></p><p>List Price: ' . $node->field_listing_price['und'][0]['value'] . '</p>', |
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
dev@ubuntu:~/Sites$ tail /var/log/apache2/error.log | |
[Mon Nov 26 10:58:18 2012] [error] [client 172.16.23.1] File does not exist: /mnt/hgfs/files, referer: http://dev.net/Sites/circastl/drupal/listing/2167-tower-grove-ave | |
[Mon Nov 26 10:58:18 2012] [error] [client 172.16.23.1] File does not exist: /mnt/hgfs/files, referer: http://dev.net/Sites/circastl/drupal/listing/2167-tower-grove-ave | |
[Mon Nov 26 10:58:18 2012] [error] [client 172.16.23.1] File does not exist: /mnt/hgfs/files, referer: http://dev.net/Sites/circastl/drupal/listing/2167-tower-grove-ave | |
[Mon Nov 26 10:58:18 2012] [error] [client 172.16.23.1] File does not exist: /mnt/hgfs/files, referer: http://dev.net/Sites/circastl/drupal/listing/2167-tower-grove-ave | |
[Mon Nov 26 10:58:18 2012] [error] [client 172.16.23.1] File does not exist: /mnt/hgfs/files, referer: http://dev.net/Sites/circastl/drupal/listing/2167-tower-grove-ave | |
[Mon Nov 26 10:58:18 2012] [error] [client 172.16.23.1] File does not exist: /mnt/hgfs/files, referer: http://dev.net/Sites/cir |
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
$result_markup = ''; | |
if (valid_email_address($form_state['values']['email'])) { | |
drupal_mail('mimemail', 'key', $send_form_to, language_default(), $params); | |
$result_markup .= '<div>Email Sent</div>'; | |
} else { | |
$result_markup .= $form; | |
form_set_error('email','This e-mail address is invalid.'); | |
} |
OlderNewer