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
<div id="cse" style="width: 100%;">Loading</div> | |
<script src="http://www.google.de/jsapi" type="text/javascript"></script> | |
<script type="text/javascript"> | |
google.load('search', '1', {language : 'de'}); | |
google.setOnLoadCallback(function() { | |
var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( | |
'*****************', customSearchOptions); | |
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); | |
customSearchControl.draw('cse'); | |
function parseParamsFromUrl() { |
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: dna Hands off from content | |
* Description: Don't replace 'Wordpress' with 'WordPress'. Keep ' and " as they are. | |
* Plugin URI: https://gist.github.com/3464269 | |
* Version: 2012.08.25 | |
* Author: David Naber | |
* Author URI: http://dnaber.de/ | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.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
<?php | |
/** | |
* This Class extends SimpleXMLElement to write CDATA-Nodes and print a formated xml-string | |
* | |
* to add cdata do it like this: | |
* ($node is an instance of Not_So_Simple_XML) | |
* $node->title = NULL; | |
* $node->title->addCData( ); | |
* | |
* @author David Naber <kontakt@dnaber.de> |
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: dna Framebreaker | |
* Plugin URI: https://gist.github.com/4045656 | |
* Description: Add a framebreaker javascript to the header. (Requires PHP 5.3) | |
* Version: 0.1 | |
* Author: David Naber | |
* Author URI: http://dnaber.de | |
* License: MIT | |
* License URI: http://opensource.org/licenses/MIT |
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: dna Save Attachment | |
* Plugin URI: https://gist.github.com/4214994 | |
* Author: David Naber | |
* Author URI: http://dnaber.de/ | |
* Version: 2014.08.24 | |
* Description: Calls the action 'save_post' for Attachment Post Types vor WordPress versions prior 4.0. Requires PHP 5.3. The plugin will have no effect in WordPress 4.0 or higher. (Getting obsolete when <a href="http://core.trac.wordpress.org/ticket/21963">#21963</a> is fixed.) | |
*/ | |
namespace DNA\SaveAttachment; |
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: dna Template Name to Admin Bar | |
* Plugin URI: https://gist.github.com/4690246 | |
* Description: Shows the current used theme template file in the admin bar. (Requires PHP 5.3) | |
* Author: David Naber | |
* Author URI: http://dnaber.de/ | |
* Version: 2013.11.09 | |
* License: MIT |
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 | |
get_header(); ?> | |
<h1>Plugin: <?php single_cat_title(); ?></h1> | |
<h2>Verwendet in</h2> | |
<ul> | |
<?php | |
while ( have_posts() ) { | |
the_post(); | |
?> |
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: dna IP to Admin Bar | |
* Plugin URI: https://gist.github.com/dnaber-de/5219882 | |
* Description: Shows the current Server IP in the Admin Bar. (Requires PHP 5.3) | |
* Author: David Naber | |
* Author URI: http://dnaber.de/ | |
* Version: 2013.03.22 | |
* License: MIT |
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 | |
namespace Example\Theme; | |
class Theme_Options { | |
/** | |
* the option key | |
* | |
* @const string |