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
<? | |
// Filter thematic_sidebar() .. remove from everything except the blog (category chosen in theme options). | |
function remove_sidebar() { | |
$shortname = get_option('of_shortname'); | |
$cat_option = get_option($shortname.'_cats_in_blog'); | |
$cat = get_cat_ID($cat_option); | |
if ($cat != '') { | |
if ( is_category($cat) ) { |
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 portfolio body class to anything that isn't the blog | |
function portfolio_body_class($class) { | |
if ( !is_home() ) { | |
$class[] = 'portfolio'; | |
return $class; | |
} | |
} | |
add_filter('thematic_body_class','portfolio_body_class'); |
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
<? | |
// Get all posts from category specified in the Blog Category option. This is the only category displayed on the blog page. | |
function get_blog_cat() { | |
$shortname = get_option('of_shortname'); | |
$cat_option = get_option($shortname.'_cats_in_blog'); | |
$cat = get_cat_ID($cat_option); | |
query_posts( "cat=$cat" ); | |
} |
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
<? | |
// Which category will be the blog page? | |
$options[] = array( "name" => "Blog Category", | |
"desc" => "Select the category that will be blog posts. All other categories will be in the portfolio format.", | |
"id" => $shortname."_cats_in_blog", | |
"std" => "", | |
"type" => "select", | |
"options" => $of_categories); |
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 | |
// Testing to see if the PHP version is up to date. If it is, add a WPFolio RSS feed widget, and if it's not, add a widget prompting an upgrade. | |
if (version_compare(PHP_VERSION, '5.3.0', '>=')) { | |
// Add WPFolio Wiki site as a Dashboard Feed | |
// Thanks to bavotasan.com: http://bavotasan.com/tutorials/display-rss-feed-with-php/ | |
function custom_dashboard_widget() { | |
$rss = new DOMDocument(); |
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
$(document).ready(function() | |
var slideWidth = 560; | |
var slides = $('.slide'); | |
var numberOfSlides = slides.length; | |
// Wrap all .slides with #slideInner div | |
slides | |
.wrapAll('<div id="slideInner"></div>') | |
// Float left to display horizontally, readjust .slides width |
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
<!-- include jQuery library --> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> | |
<!-- include Cycle plugin --> | |
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script> | |
<!-- initialize the slideshow when the DOM is ready --> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('.slideshow').cycle({ |
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 class="slideshow"> | |
<img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" /> | |
<img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" /> | |
<img src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" width="200" height="200" /> | |
</div> |
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
... | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// this is the first slideshow | |
$('.slideshow').cycle({ | |
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc... | |
}); | |
// this is the second slideshow | |
$('.slideshow2').cycle({ |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="Content-Language" content="de-de" /> | |
<title>NODOI 3.0</title> | |
<link type="text/css" rel="stylesheet" href="jquery-isotut/map.css" /> | |
<script type="text/javascript" src="../closure/closure/goog/base.js"></script> | |
<script type="text/javascript" src="nodoi.js"></script> |