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 custom_tax_init(){ | |
//set some options for our new custom taxonomy | |
$args = array( | |
'label' => __( 'My Custom Taxonomy' ), | |
'hierarchical' => true, | |
'capabilities' => array( | |
// allow anyone editing posts to assign terms | |
'assign_terms' => 'edit_posts', | |
/* but you probably don't want anyone |
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 class="title-area"> | |
<li class="name"> | |
<span> | |
<a href="/"> | |
<img class="logo" src="/assets/svg/logo.svg" onerror="this.src='/assets/png/logo.png'" alt="Patrolstore Logo"></a> | |
</span> | |
</li> | |
<!-- Added code --> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
add_filter('acf/load_value/name=name-of-relationship-field', function($value) { | |
if(empty($value)) { | |
$value = get_posts(array( | |
'post_type' => 'name-of-post-type', | |
'posts_per_page' => -1, | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'fields' => 'ids', | |
)); |
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
SetEnvIfNoCase Referer semalt.com spambot=yes | |
SetEnvIfNoCase Referer econom.com spambot=yes | |
SetEnvIfNoCase Referer buttons-for-website.com spambot=yes | |
SetEnvIfNoCase Referer ilovevitaly.com spambot=yes | |
SetEnvIfNoCase Referer ilovevitaly.ru spambot=yes | |
SetEnvIfNoCase Referer darodar.com spambot=yes | |
SetEnvIfNoCase Referer 7makemoneyonline.com spambot=yes | |
SetEnvIfNoCase Referer myftpupload.com spambot=yes | |
SetEnvIfNoCase Referer priceg.com spambot=yes | |
SetEnvIfNoCase Referer cenokos.ru spam=yes |
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
/****************************** | |
HSBC Personal Statement to CSV | |
v0.5 | |
Copyright: Benjie Gillam (2012) | |
License: WTFPL v2.0 ( http://en.wikipedia.org/wiki/WTFPL ) | |
Instructions: | |
Add the following bookmarklet to your browser: |
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
javascript:open( | |
location, | |
'iPhone:portrait', | |
'innerWidth='+(320+15)+' | |
,innerHeight='+(480+15)+' | |
,scrollbars=yes' | |
); |
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
/* HTML5 display-role reset for older browsers */ | |
article,aside,details,figcaption,figure, | |
footer,header,hgroup,menu,nav,section{ | |
display:block; | |
} |
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
.faderotate { | |
height: 250px; | |
position: relative; | |
width: 100%; | |
} | |
.faderotate .slide { | |
left: 0; | |
position: absolute; | |
top: 0; |