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 | |
/** | |
* @author Fabian Wolf | |
* @version 0.2 | |
* @license LGPL | |
* @link http://usability-idealist.de/ | |
*/ | |
if( !function_exists('str_in_array') ) { | |
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 | |
/** | |
* Quick character set test | |
* Simply comment out the HTTP header you DO NOT want to use | |
*/ | |
header('Content-Type: text/html; charset=iso-8859-1'); // breaks the charset | |
header('Content-Type: text/html; charset=utf-8'); // correct charset | |
?> | |
<html> |
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
<div id="intro" style="font-size:medium;text-align: right; color:#000; font-style: italic"> | |
<p>different. impulsive. emotional. rhetorician. always in company but still lonely. music-fetishist. shy. loud. adapted unadapted. creative. relaxed. chaotic. vocalist without talent. black dressed. complicated. contemplative. headbanger. annalist. idiosyncratic. optimistic. lazy. impertinent. pleasant. sun-phobic. pierced. late riser. tattoo-fetishist. loves music-festivals. lovingly. sensual. adventurous. womanly. spontaneously. headless. self-destructive. chocolate-addicted. luxurious. dislikes phone-calls. addiction to pleasure. heartfelt. do-gooder. rebellious. profound. keen thinker. unique. likable. broad-minded. ironic.</p> | |
</div> | |
<div id="rant" style="font-style:italic; margin-top: 50px;"> |
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 | |
/** | |
* WP nastyness with Subtle Patterns for a extremely simplistic "API" | |
* | |
* æauthor Fabian Wolf | |
* @link http://usability-idealist.de/ | |
*/ | |
// bootstap WP framrework | |
require_once('../../../wp-config.php'); // assuming this file is sitting in some sub directory like wp-content/theme/my-theme/ |
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
{assign var="strPreis" value='133,00'} | |
<html> | |
<head> | |
<title>formatting test</title> | |
</head> | |
<body> | |
<p>replacement test: {if $strPreis|replace:',':'.' == '133.00'} | |
works! | |
{else} | |
fucks up .. as usual. |
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
.entry { | |
color: #ddd; | |
font-family: Georgia,"Century Schoolbook L",Garamond,serif; | |
font-size: 1.1em; | |
line-height: 1.4em; | |
text-align: justify; | |
text-indent: 1.5em; | |
padding-left: 25px; | |
padding-right: 25px; |
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 get_table_head( $col, $mode = 'desc' ) { | |
$return = ''; | |
$link = ''; | |
$amp = '&'; | |
$equal = '='; | |
$link .= '?bereich='.$_GET['bereich']; | |
foreach($_GET as $key => $value){ | |
if($value == "desc"){ |
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 | |
/** | |
* PDF download test | |
* | |
* @author Fabian Wolf | |
* @link http://usability-idealist.de/ | |
* | |
* NOTE: Copy + paste from @link http://www.php.net/manual/de/function.header.php#refsect1-function.header-examples | |
*/ |
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 is_participant_page() { | |
global $post; | |
$return = false; | |
$arrDebug = array( | |
'post' => $post, | |
); | |
// check custom field | |
$strIsParticipantsPage = get_post_meta( $post->ID, $this->pluginPrefix . 'page', true ); |
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 | |
if($parentCatName=='Kunden'):{ | |
?> | |
<p class="agency" style="color: #00ffff;"> | |
<?php echo "AGENCY";?> | |
</p> | |
<?php | |
} | |
else:{ | |
?> |
OlderNewer