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
/* | |
Replicates WordPress function the_meta() but outputs dt and dd elements instead of li. | |
Wrap with <dd> tags in your template. | |
*/ | |
function cairnie_the_attributes() { | |
if ( $keys = get_post_custom_keys() ) { | |
foreach ( (array) $keys as $key ) { | |
$keyt = trim($key); | |
if ( is_protected_meta( $keyt, 'post' ) ) | |
continue; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
<!-- this theme has suffered minor modifications since being created by Peter Vidani under the name 'Default' [email protected] --> | |
<html> | |
<head> | |
<title>{Title}{block:SearchPage} ({lang:Search results for SearchQuery}){/block:SearchPage}{block:PermalinkPage}{block:PostSummary} — {PostSummary}{/block:PostSummary}{/block:PermalinkPage}</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="{block:IndexPage}{block:Description}{MetaDescription}{/block:Description}{/block:IndexPage}{block:PermalinkPage}{block:PostSummary}{PostSummary}{/block:PostSummary}{/block:PermalinkPage}" /> | |
<meta name="color:Accent" content="blue"/> |
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
!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use utf8; | |
#compiled from source like: http://www.imagemagick.org/script/perl-magick.php | |
use Image::Magick; | |
#rock through the directory index | |
my @files = <*.{jpg,jpeg,png,gif}>; |
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 | |
include './ui.inc'; // Common View Helper functions | |
include './add_c.inc'; // Controller | |
head(); | |
?> | |
<div id="tItems" class="ta"> | |
<table cellspacing="0" cellpadding="3" width="100%"> | |
<?php foreach($items as $i=>$elem) { | |
$s = $i%2; | |
echo <<<EOB |
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 | |
/* | |
* /masterpieces/events/index.php | |
* Simple PHP events block | |
* Display events block, ignoring those events that have already happened | |
* 20 June 2013 | |
* [email protected] | |
* | |
*/ | |
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
$view = new view; | |
$view->name = 'Partners'; | |
$view->description = ''; | |
$view->tag = ''; | |
$view->view_php = ''; | |
$view->base_table = 'node'; | |
$view->is_cacheable = FALSE; | |
$view->api_version = 2; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Defaults', 'default'); |
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
$content['type'] = array ( | |
'name' => 'People', | |
'type' => 'people', | |
'description' => 'Artists, musicians and contributors.', | |
'title_label' => 'Title', | |
'body_label' => 'Body', | |
'min_word_count' => '0', | |
'help' => '', | |
'input_formats' => | |
array ( |
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
$view = new view; | |
$view->name = 'events'; | |
$view->description = 'events'; | |
$view->tag = 'events'; | |
$view->view_php = ''; | |
$view->base_table = 'node'; | |
$view->is_cacheable = FALSE; | |
$view->api_version = 2; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Defaults', 'default'); |
NewerOlder