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 | |
//WARNING: MAKE SURE THAT $RULES AND $COUNTRYISO ARRAYS ARE UP TO DATE! | |
function isValidBic ($bic) { | |
$countryISO = array ( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', |
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
function my_bloginfo_shortcode( $atts ) { | |
extract(shortcode_atts(array( | |
'key' => '', | |
), $atts)); | |
return get_bloginfo($key); | |
} | |
add_shortcode('bloginfo', 'my_bloginfo_shortcode'); |
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
ul, ol { | |
counter-reset: the_counter; | |
list-style: none; | |
padding:0; | |
margin:0; | |
} | |
li { | |
line-height: 1.8em; | |
letter-spacing: -0.005em; |
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
.red { | |
color: #89191e; | |
font-weight: bold; | |
} |
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 | |
global $enablecomments; | |
$enablecomments = array(''); | |
// Removes from post, pages and custom posts | |
add_action('init', 'remove_comment_support', 100); | |
function remove_comment_support() { | |
global $enablecomments; |
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 | |
function is_production(){ | |
// Define Environments | |
$environments = array( | |
'local' => array('.local', 'local.','localhost','127.0.0.1'), | |
'development' => 'dev.', | |
'staging' => 'stage.', | |
'preview' => 'preview.', | |
); |
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 require_once('../../../../wp-load.php'); ?> |
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
.error { | |
color: #ee0000; | |
border: 1px solid #ee6767; | |
background: #ffe7e7; | |
} | |
.success { | |
color: #11aa11; | |
border: 1px solid #67cc67; | |
background: #e7f7e7; | |
} |
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 | |
function domain_url() { | |
//get the full domain | |
$urlparts = parse_url(site_url()); | |
$domain = $urlparts [host]; | |
//get the TLD and domain | |
$domainparts = explode(".", $domain); |
NewerOlder