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
/** | |
* Register CPT Gesellschaften ++++++++++++++++++++++++++++++++++++++++++++++++ | |
*/ | |
function gesellschaft_init() { | |
$labels = array( | |
'name' => 'Gesellschaften', | |
'singular_name' => 'Gesellschaft', | |
'add_new' => 'Hinzufügen', | |
'add_new_item' => 'Gesellschaft hinzufügen', | |
'edit_item' => 'Gesellschaft bearbeiten', |
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
/** | |
* Count Search Results | |
* http://marcokuemmel.de | |
**/ | |
function count_results($return = false){ | |
global $wp_query; | |
if($return == true )return $wp_query->found_posts; | |
else echo $wp_query->found_posts; | |
} |
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
::-webkit-input-placeholder { color:#f00; } | |
::-moz-placeholder { color:#f00; } /* firefox 19+ */ | |
:-ms-input-placeholder { color:#f00; } /* ie */ | |
input:-moz-placeholder { color:#f00; } |
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
jQuery(function(){ | |
jQuery("a[href*=\\#]").click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
&& location.hostname == this.hostname) { | |
var $target = jQuery(this.hash); | |
$target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']'); | |
if ($target.length) { | |
var targetOffset = $target.offset().top; | |
jQuery('html,body').animate({scrollTop: targetOffset}, 1000); | |
return false; |
NewerOlder