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 | |
/* | |
Name: Simple Logo Box | |
Author: DIYWPBlog.com | |
Description: Simple Box to Add a Logo | |
Version: 1.0 | |
Class: diy_logo_box | |
*/ | |
class diy_logo_box extends thesis_box { |
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 | |
/* | |
Name: The Name of Your Skin | |
Author: Your Name | |
Description: A succinct description of what you're doing in this skin, special features, etc. | |
Version: 1.0 | |
Class: unique_class_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 | |
// drop this in your custom.php file. run it ONCE or it will continue to reset everything. | |
// for now, this only works for Thesis Classic | |
include_once(dirname(__FILE__) . '/seed.php'); | |
$options = array( | |
'boxes', 'templates', 'packages', 'snippets', 'vars', 'css', 'custom_css' | |
); |
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 | |
add_filter('thesis_show_multimedia_box', '__return_false'); | |
add_action('thesis_hook_before_content', 'thesis_multimedia_box'); | |
?> |
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 | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
// classes are a VERY important part of 2.0, so you need to be familiar with them. | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
class thesis_skin_example extends thesis_custom_loop { |
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 | |
// use thesis_header_url() to echo the URL and thesis_header_url(false) to simply return it | |
function thesis_get_header_url($echo = true) { | |
if (! $option = get_option('thesis_header') || ! is_array($option) || ! isset($option['url']) || empty($option['url'])) | |
return; | |
if ($echo) | |
echo esc_url($option['url']); | |
else |
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 | |
/* | |
Count from 1-100. If the number is divisible by 3 & 5, output "FizzBuzz". | |
If divisible by 3 but not 5, output "Fizz". | |
If divisible by 5 but not 3, output "Buzz". | |
Otherwise output the number. | |
*/ | |
function loop_it() { | |
$out = ''; |
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 | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
include_once(TEMPLATEPATH . '/functions.php'); | |
class thesis_child_theme_example extends thesis_custom_loop { | |
public function __construct() { |
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 | |
// Iinitial sanity check | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
// Bring in the main functions file so we have access to all the yummy Thesis goodness | |
include_once(TEMPLATEPATH . '/functions.php'); | |
// we encourage you to set up a class. classes are a VERY important part of 2.0, so you need to be familiar with them. |
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
/*---:[ body ]:---*/ | |
body { background: #000; } | |
/*---:[ menu ]:---*/ | |
.menu { list-style: none; } | |
.menu li { float: left; } | |
.menu li a { text-decoration: none; display: block; } | |
/*---:[ post image fix from @kristarella ]:---*/ | |
.post_image { max-width: 100%; height: auto; } |