My Recent Pastes (338 and counting)

Pastes by Jay Allen (338 and counting)

Pages:

Below are the 15 most recent pasties by Jay Allen.

February 22, 2007
7:54PM EDT
by Jay Allen

sub load_tmpl {
        my $self = shift;
    my $app = MT->instance;
=item

February 02, 2007
4:48PM EDT
by Jay Allen

/* Experimental comment styles
    Not currently in use anywhere in default templates
    For testing only... */
#comments-experimental .comment, #comments-experimental .comment .comment-inner {
    width:36em;

December 05, 2006
4:50PM EDT
by Jay Allen

Installation:
1) Run MakeFile.PL to install all dependencies.
2) Import the SQL schema.
3) Edit typeface.yml to suit your needs.
4) Run create_login.pl

December 03, 2006
3:34AM EDT
by Jay Allen

#!/usr/bin/perl

use strict;
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap;

December 02, 2006
1:28AM EDT
by Jay Allen

# Then, in your script, you can build the params this way...
$param{tagsdelimiter_option_loop} = [
    { label => 'Comma', value => ',' },
    { label =>  'Space', value => ' ', selected => option_selected() },
];

December 02, 2006
1:27AM EDT
by Jay Allen

<!-- This goes in your template and is driven by the app -->
<select name="TagsDelimiter" id="tag_app_delim">
<TMPL_LOOP NAME=TAGSDELIMITER_OPTION_LOOP>
    <option value="<TMPL_VAR NAME=VALUE>" <TMPL_VAR NAME=SELECTED>><TMPL_VAR NAME=LABEL></option>
</TMPL_LOOP>

December 02, 2006
12:50AM EDT
by Jay Allen

sub load_tmpl {
    my $app = shift;
    my($file, @p) = @_;
    my $cfg = $app->config;
    require HTML::Template;

November 28, 2006
1:07PM EDT
by Jay Allen

$VAR1 = [
          bless( {
                   'column_values' => {
                                        'build_time' => '1164731333',
                                        'priority' => '1',

October 06, 2006
8:44PM EDT
by Jay Allen

    if ( grep { $_ eq $args->{mode} } qw( loop context ) ) {
        my $sub = $args->{mode};
        return &$sub($plugin, @_) or $ctx->error($ctx->errstr);
    }

October 06, 2006
1:01PM EDT
by Jay Allen

sub filter_blogs {
    my ( $ctx, $args ) = @_;
    my $local_blog_id = $ctx->stash('local_blog_id');
    my (%terms, %args, %blog_can_access, $disallowed);

October 05, 2006
2:57AM EDT
by Jay Allen

<?php
function smarty_block_MTCategories($args, $content, &$ctx, &$repeat) {
    // status: incomplete
    // parameters: show_empty
    $localvars = array('_categories', '_categories_counter', 'category', 'inside_mt_categories', 'entries', '_categories_glue', 'blog_id', 'blog');

October 05, 2006
2:51AM EDT
by Jay Allen

sub _hdlr_categories {
    my($ctx, $args, $cond) = @_;
    my (%terms, %args);
    $ctx->set_blog_context($args, \%terms, \%args);
    require MT::Placement;

September 28, 2006
10:55PM EDT
by Jay Allen

----------------------------------------------
BEGIN MTEntries
END MTEntries

BEGIN MTEntries blog_ids="1"

September 28, 2006
10:36PM EDT
by Jay Allen

----------------------------------------------
BEGIN MTMultiBlog include_blogs="all"

    BEGIN MTEntries
        Second weblog third post

September 28, 2006
8:11PM EDT
by Jay Allen

Second weblog third post
Second weblog second post
Second weblog first post
First weblog second post
First weblog's first post

Next page

Previous page