Skip to content

Instantly share code, notes, and snippets.

<?php
// First we make our function
function childtheme_welcome_blurb() {
// We'll show it only on the HOME page IF it's NOT paged
// (so, not page 2,3,etc.)
if (is_home() & !is_paged()) { ?>
<!-- our welcome blurb starts here -->
<div id="welcome-blurb">
<p>Welcome to <?php bloginfo('name'); ?>.</p>
</div>
<?php
function childtheme_postheader() {
echo 'bacon';
}
add_filter('thematic_postheader','childtheme_postheader');
?>
<?php
function childtheme_posttitle($posttitle) {
return '<div class="containing">' . $posttitle . '</div>';
}
add_filter('thematic_postheader_posttitle','childtheme_posttitle');
?>
[gist]https://gist.github.com/976800[/gist]
<?php
/* Log-in
--------------------------------------------------------- */
//here I will need to add a login bar for the site
function classlog_login() {
//possibly relevant template tags:
//wp_register()
//wp_loginout()
@mushon
mushon / functions.php
Created May 25, 2011 09:58
Thematic functions and styles from today
<?php
//
// Custom Child Theme Functions
//
// I've included a "commented out" sample function below that'll add a home link to your menu
// More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
// http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/
@mushon
mushon / Redpyramids.php
Created May 28, 2011 13:53 — forked from talstadler/Redpyramids
adding thumbnails
<?php
// Custom Child Theme Functions
// First we make our function
function childtheme_welcome_blurb() {
if (is_home() & !is_paged()) { ?>
@mushon
mushon / yanh.php
Created June 1, 2011 05:19
XML-RPC for the You Are Not Here project
<?php
//calls the PHP XML-RPC library we're using:
include('IXR_Library.inc.php');
define_syslog_variables();
openlog("[GAZA XML SERVER]", LOG_PID | LOG_PERROR, LOG_LOCAL2);
class SimpleServer extends IXR_Server {
function SimpleServer() {
@mushon
mushon / index.html
Last active August 29, 2015 14:11 — forked from anonymous/index.html
prototype for Turbulence homepage
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.container {
width: 100%;
}
.container > header,
[
{
"id": 231,
"title": "טוטו ווינר - המועצה להסדר ההימורים בספורט - Toto Winner",
"attempts": 0,
"visitedTs": 1432468214275,
"foundTs": 1432468188045,
"contentData": {
"src": "http://xwbe.wcdn.co.il/C6BE7BC4/E42E67B8.jpg"
},