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
<?xml version="1.0" encoding="UTF-8"?> | |
<products> | |
<last_updated>2009-11-30 13:52:40</last_updated> | |
<product tax="19" name="luxus"> | |
<element>foo</element> | |
</product> | |
<product tax="7" name="brot"> | |
<element>bar</element> | |
</product> | |
</products> |
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 | |
/** | |
* Plugin Name: 000 Tutorial TestFile | |
* Description: Simple testfile for writing tutorials | |
*/ | |
namespace TutorialTestFile; | |
add_action( | |
'plugins_loaded', |
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
<h1>jQuery Testseite</h1> | |
<p id="test">Hello World!</p> | |
<p><a href="#" id="clickit">Click it!</a></p> | |
<script type="text/javascript"> | |
$(document).ready( | |
function() { | |
$('#test').bind( |
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 | |
class DataContainer | |
{ | |
public static $data = array(); | |
public function __set( $name, $value ) { | |
self::$data[$name] = $value; | |
} | |
public function __get( $name ) { |
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 wordpress | |
/** | |
* @see http://en.wikipedia.org/wiki/Email_address | |
*/ | |
$email = array(); | |
$email[] = 'john.smith(commentedemail)@example.com'; | |
$email[] = '(commentedemail)john.smith@example.com'; | |
$email[] = 'john.smith@(commentedemail)example.com'; | |
$email[] = 'john.smith@example.com(commentedemail)'; |
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 | |
/* | |
Template Name: Snarfer | |
*/ | |
global $wp_query; | |
$old_query = $wp_query; | |
query_posts('author=1'); | |
echo '<ul>'; |
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 | |
class Category_Widget extends WP_Widget { | |
public function __construct() { | |
$widget_ops = array( | |
'classname' => __CLASS__, | |
'description' => 'Displaying content depending on the current category', | |
); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<products> | |
<product tax="19" status="luxus"> | |
<element>Benzin</element> | |
</product> | |
<product tax="7" status="grundnahrung"> | |
<element>Brot</element> | |
</product> | |
</products> |
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 | |
/** | |
* WordPress-Plugin Simple GPlus Avatar | |
* | |
* PHP version 5.3 | |
* | |
* @category PHP | |
* @package WordPress | |
* @subpackage Simple GPlus Avatar | |
* @author Ralf Albert <me@neun12.de> |