The page you are looking at now is at this URL: http://pastoid.com/b1o
This paste was last updated on April 22, 2010 at 11:25 am.
<?php Plugins::act( 'theme_sidebar_top' ); ?> <ul> <?php if( !($request->display_search && !isset( $post ) ) ) { ?> <li id="search"> <?php include 'searchform.php'; ?> </li> <?php } ?> <?php if( $request->display_home ) { ?> <li id="twitter"> <?php $theme->twitter(); ?> </li> <li id="flickr"><p>Flickr</p> <div class="flickr_badge_images"> <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=6&display=latest&size=s&layout=x&source=user&user=37996581317%40N01"></script> </div> <p class="plug">see more at <a href="http://flickr.com/photos/mikelietz/" title="my flickr photostream">my photostream</a> or look at my <a href="http://photo365.org/profile/mikelietz" title="many of the same photos, organized differently">photo365 profile</a></p></li> <li id="recent_comments"><p>Recent Comments</p> <ul id="recentcomments"> <?php foreach($recent_comments as $comment) { ?> <li><a class="commenter" href="<?php echo $comment->url; ?>"><?php echo $comment->name; ?></a> on <a class="commented" href="<?php echo $comment->post->permalink; ?>"><?php echo $comment->post->title; ?></a></li> <?php } ?> </ul> </li> <?php } ?> <li id="archives"> <form id="archiveform" action=""> <fieldset><legend>Browse Archives</legend> <select name="archive_tags" onchange="window.location = (document.forms.archiveform.archive_tags[document.forms.archiveform.archive_tags.selectedIndex].value);"> <option value=''>by tag</option> <?php $theme->tag_options(); ?></select> <select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);"> <option value=''>by month</option> <?php $theme->monthly_archive_options(); ?></select> </fieldset> </form> </li> <?php if( $request->display_home ) { // $theme->show_blogroll(); // for now, the below. Blogroll sucks. ?> <li id="blogroll"> <p>Blogroll</p> <ul> <li><a href="http://bloggingmeta.com/">miklb</a></li> <li><a href="http://skippy.net">skippy</a></li> <li><a href="http://www.morydd.net/">morydd</a></li> <li><a href="http://milkdonormama.blogspot.com/">jessica</a></li> <li><a href="http://faeryqueenrs.blogspot.com/">rebecca</a></li> <li><a href="http://upsoclose.com/">carina</a></li> <li><a href="http://idflux.typepad.com/">i.d. flux</a></li> <li><a href="http://harraton.com/">janice</a></li> <li><a href="http://mbrown2005.blogspot.com/">mark</a></li> </ul> </li> <?php include ( 'meta.php' ); } ?> <?php Plugins::act( 'theme_sidebar_bottom' ); ?> </ul>
<?php /** * Oilywood is a custom Theme class for this theme. * * @package Habari */ /** * @todo This stuff needs to move into the custom theme class: */ // Apply Format::autop() to post content... // Format::apply( 'autop', 'post_content_out' ); // Apply Format::autop() to post content excerpts... Format::apply( 'autop', 'post_content_excerpt' ); // Apply Format::autop() to comment content... Format::apply( 'autop', 'comment_content_out' ); // Apply Format::tag_and_list() to post tags... Format::apply( 'tag_and_list', 'post_tags_out' ); // Apply Format::nice_date() to post date... Format::apply( 'nice_date', 'post_pubdate_out', 'j F Y' ); // Apply Format::nice_date() to comment date... Format::apply( 'nice_date', 'comment_date_out', 'j F Y @ g:ia' ); // Create 100 word post content excerpts Format::apply_with_hook_params( 'more', 'post_content_excerpt', 'more', 100, 1 ); define( 'THEME_CLASS', 'Oilywood' ); class Oilywood extends Theme { /** * Add additional template variables to the template output. * *You can assign additional output values in the template here, instead of *having the PHP execute directly in the template.The advantage is that *you would easily be able to switch between template types (RawPHP/Smarty) *without having to port code from one to the other. * *You could use this area to provide "recent comments" data to the template, *for instance. * *Note that the variables added here should possibly *always* be added, *especially 'user'. * *Also, this function gets executed *after* regular data is assigned to the *template.So the values here, unless checked, will overwrite any existing *values. */ public function add_template_vars() { if( !isset($this->pages ) ) { $this->assign('pages', Posts::get( array( 'content_type' => 'page', 'status' => Post::status('published'), 'nolimit' => 1 ) ) ); } if( !isset( $this->user ) ) { $this->assign('user', User::identify() ); } if( !isset( $this->page ) ) { $this->assign('page', isset( $page ) ? $page : 1 ); } if( !isset( $this->tags ) ) { //- $tags= DB::get_results( 'SELECT * FROM ' . DB::table('tags') ); $tags= Tags::get(); $tags= array_filter($tags, create_function('$tag', 'return (Posts::count_by_tag($tag->tag_slug, "published") > 0);')); $this->assign('tags', $tags); } /* if( !isset( $this->recent_comments ) ) { $this->assign('recent_comments', Comments::get( array('limit'=>5, 'status'=>Comment::STATUS_APPROVED, 'orderby'=>'date DESC' ) ) ); } */ if( !isset( $this->feed_alternate ) ) { $matched_rule= URL::get_matched_rule(); switch ( $matched_rule->name ) { case 'display_entry': case 'display_page': $feed_alternate= URL::get( 'atom_entry', array( 'slug' => Controller::get_var('slug') ) ); break; case 'display_entries_by_tag': $feed_alternate= URL::get( 'atom_feed_tag', array( 'tag' => Controller::get_var('tag') ) ); break; case 'display_home': default: $feed_alternate= URL::get( 'atom_feed', array( 'index' => '1' ) ); } $this->assign('feed_alternate', $feed_alternate); } // DO NOT COMMENT OUT OR DELETE THIS LINE parent::add_template_vars(); } public function theme_monthly_archive_options( $theme, $full_names = TRUE, $type = 'entry', $status = 'published' ) { $results = Posts::get( array( 'content_type' => $type, 'status' => $status, 'month_cts' => 1) ); foreach ( $results as $result ) { // add leading zeros $result->month= str_pad( $result->month, 2, 0, STR_PAD_LEFT ); // what format do we want to show the month in? if( $full_names ) { $display_month = HabariDateTime::date_create()->set_date( $result->year, $result->month, 1)->get( 'F' ); } else { $display_month = HabariDateTime::date_create()->set_date( $result->year, $result->month, 1)->get( 'M' ); } // do we want to show the count of posts? $archives[] = '<option value="' . URL::get( 'display_entries_by_date', array( 'year' => $result->year, 'month' => $result->month) ) . '">' . $display_month . ' ' . $result->year . '</option>'; } return implode( "\n", array_reverse( $archives ) ); } public function theme_tag_options( $theme ) { if ( count( $theme->tags ) != 0 ) { foreach ( $theme->tags as $tag ) { $tagarray[] = "<option value='" . URL::get( 'display_entries_by_tag', 'tag=' . $tag->tag_slug ) . "'>{$tag->tag_text}</option>"; } sort( $tagarray ); } return implode( "\n", $tagarray ); } public function action_form_comment( $form ) { $form->append( 'fieldset','cf_commenterinfo', _t( 'your contact information' ) ); $form->move_before( $form->cf_commenterinfo, $form->cf_commenter ); $form->cf_commenter->move_into( $form->cf_commenterinfo ); $form->cf_commenter->caption = 'name'; $form->cf_commenter->size = 22; $form->cf_email->move_into( $form->cf_commenterinfo ); $form->cf_email->caption = 'email'; $form->cf_email->size = 22; $form->cf_url->move_into( $form->cf_commenterinfo ); $form->cf_url->caption = '<acronym title="Uniform Resource Identifier">URI</acronym>'; $form->cf_url->size = 22; $form->append( 'fieldset','cf_contentbox', _t( 'your comment' ) ); $form->move_before( $form->cf_contentbox, $form->cf_content ); $form->cf_content->move_into( $form->cf_contentbox ); $form->cf_content->caption = ''; $form->cf_submit->move_into( $form->cf_contentbox ); $form->cf_submit->caption = 'submit comment'; } } ?>
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 148 |
| pastoid.com | 39 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This