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
array( | |
'ALABAMA'=> | |
array('ABBEVILLE','ADAMSVILLE','ADDISON','AKRON','ALABASTER','ALBERTVILLE','ALEXANDER CITY','ALEXANDRIA','ALICEVILLE','ALLGOOD','ALTOONA','ANDALUSIA','ANDERSON','ANNISTON','ARAB','ARDMORE','ARGO','ARITON','ARLEY','ASHFORD','ASHLAND','ASHVILLE','ATHENS','ATMORE','ATTALLA','AUBURN','AUTAUGAVILLE','AVON','BABBIE','BAILEYTON','BANKS','BAY MINETTE','BAYOU LA BATRE','BEAR CREEK','BEATRICE','BEAVERTON','BELK','BENTON','BERRY','BESSEMER','BILLINGSLEY','BIRMINGHAM','BLACK','BLOUNTSVILLE','BLUE MOUNTAIN','BLUE RIDGE','BLUE SPRINGS','BOAZ','BOLIGEE','BON AIR','BRANCHVILLE','BRANTLEY','BRENT','BREWTON','BRIDGEPORT','BRIGHTON','BRILLIANT','BROOKSIDE','BROOKWOOD','BRUNDIDGE','BUTLER','BYNUM','CAHABA HEIGHTS','CALERA','CAMDEN','CAMP HILL','CARBON HILL','CARDIFF','CAROLINA','CARROLLTON','CASTLEBERRY','CEDAR BLUFF','CENTER POINT','CENTRE','CENTREVILLE','CHALKVILLE','CHATOM','CHELSEA','CHEROKEE','CHICKASAW','CHILDERSBURG','CITRONELLE','CLANTON','CLAY','CLAYHATCHEE','CLAYTON','CLEVELAND','CLIO','COALING', |
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
$cities = array( | |
'ALABAMA'=> | |
array("ABBEVILLE","ADAMSVILLE","ADDISON","AKRON","ALABASTER","ALBERTVILLE","ALEXANDER CITY","ALEXANDRIA","ALICEVILLE","ALLGOOD","ALTOONA","ANDALUSIA","ANDERSON","ANNISTON","ARAB","ARDMORE","ARGO","ARITON","ARLEY","ASHFORD","ASHLAND","ASHVILLE","ATHENS","ATMORE","ATTALLA","AUBURN","AUTAUGAVILLE","AVON","BABBIE","BAILEYTON","BANKS","BAY MINETTE","BAYOU LA BATRE","BEAR CREEK","BEATRICE","BEAVERTON","BELK","BENTON","BERRY","BESSEMER","BILLINGSLEY","BIRMINGHAM","BLACK","BLOUNTSVILLE","BLUE MOUNTAIN","BLUE RIDGE","BLUE SPRINGS","BOAZ","BOLIGEE","BON AIR","BRANCHVILLE","BRANTLEY","BRENT","BREWTON","BRIDGEPORT","BRIGHTON","BRILLIANT","BROOKSIDE","BROOKWOOD","BRUNDIDGE","BUTLER","BYNUM","CAHABA HEIGHTS","CALERA","CAMDEN","CAMP HILL","CARBON HILL","CARDIFF","CAROLINA","CARROLLTON","CASTLEBERRY","CEDAR BLUFF","CENTER POINT","CENTRE","CENTREVILLE","CHALKVILLE","CHATOM","CHELSEA","CHEROKEE","CHICKASAW","CHILDERSBURG","CITRONELLE","CLANTON","CLAY","CLAYHATCHEE","CLAYTON","CLEVELAND","CLIO |
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
$australia_states = array( | |
"NSW"=>"New South Wales", | |
"VIC"=>"Victoria", | |
"QLD"=>"Queensland", | |
"TAS"=>"Tasmania", | |
"SA"=>"South Australia", | |
"WA"=>"Western Australia", | |
"NT"=>"Northern Territory", | |
"ACT"=>"Australian Capital Terrirory" | |
); |
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> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="email"> | |
<span>Enter your email to sign up</span> | |
<form action="/subscribe.php" id="invite" method="POST"> |
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 | |
// Lets just pretend your content type is "Event" with machine name "event" | |
$node = new stdClass(); | |
$node->type = 'event'; | |
node_object_prepare($node); | |
$node->title = "My event title"; | |
$node->language = LANGUAGE_NONE; |
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 hide_posts_media_by_other($query) { | |
global $pagenow; | |
if( ( 'edit.php' != $pagenow && 'upload.php' != $pagenow ) || !$query->is_admin ){ | |
return $query; | |
} | |
if( !current_user_can( 'manage_options' ) ) { |
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 | |
/* | |
* Hide Media Images | |
*/ | |
add_filter( 'posts_where', 'hide_attachments_wpquery_where' ); | |
function hide_attachments_wpquery_where( $where ){ | |
global $current_user; | |
if( !current_user_can( 'manage_options' ) ) { | |
if( is_user_logged_in() ){ | |
if( isset( $_POST['action'] ) ){ |
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 | |
/* | |
* Remove Original Uploaded images | |
* retain large size image | |
*/ | |
add_filter('wp_generate_attachment_metadata','phpbits_replace_uploaded_image'); | |
function phpbits_replace_uploaded_image($image_data) { | |
// if there is no large image : return | |
if (!isset($image_data['sizes']['large'])) return $image_data; |
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 | |
/* | |
* Display Hero Section on Homepage Only | |
*/ | |
add_action( 'genesis_header', 'hero_homepage_only', 99 ); | |
function hero_homepage_only(){ | |
if( !is_front_page() && !is_home() ){ | |
remove_action( 'genesis_after_header', 'do_hero4genesis', 99 ); | |
} | |
} |
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 | |
/* | |
* Remove Full Height Hero Display | |
*/ | |
add_filter('hero4genesis_class', 'hero_class_filter'); | |
function hero_class_filter($class){ | |
if( is_page( 'behind-header-not-full-height' ) ){ | |
$key = array_search('hero4genesis-full', $class); | |
unset($class[ $key ]); |
OlderNewer