Skip to content

Instantly share code, notes, and snippets.

<mt:SetVarBlock name="cat_key"><mt:if tag="CategoryID">cat-<mt:CategoryID /><mt:Else>cat-non</mt:if></mt:SetVarBlock>
<!-- Category include: <mt:var name="cat_key" /> -->
<mt:Include module="Primary Navigation" cache="1" ttl="10" ssi="1" cache_key="$cat_key" />
<mt:SetVarTemplate name="main_menu">
<mt:CategoryBasename default="no-cat" separator="-" setvar="tl_basename" /><!-- <mt:var name="tl_basename" /> -->
<ul id="primary-navigation">
<li<mt:if var="tl_basename" eq="no-cat"> class="current-selection"</mt:if>><a href="<mt:BlogURL />">All</a></li>
<li<mt:if var="tl_basename" eq="apple"> class="current-selection"</mt:if>><a href="<mt:BlogURL />apple/">Apple</a></li>
<li<mt:if var="tl_basename" eq="business"> class="current-selection"</mt:if>><a href="<mt:BlogURL />business/">Business</a></li>
<li<mt:if var="tl_basename" eq="gadgets"> class="current-selection"</mt:if>><a href="<mt:BlogURL />gadgets/">Gadgets</a></li>
<li<mt:if var="tl_basename" eq="gaming"> class="current-selection"</mt:if>><a href="<mt:BlogURL />gaming/">Gaming</a></li>
<li<mt:if var="tl_basename" eq="hardware"> class="current-selection"</mt:if>><a href="<mt:BlogURL />hardware/">Hardware</a></li>
<li<mt:if var="tl_basename" eq="microsoft"> class="current-sele
<?
$by_category = array();
$by_category_flat = array();
<mt:TopLevelCategories trim="1">
if(!array_key_exists('<mt:CategoryBasename separator="-" encode_php="q" />', $by_category)){
$by_category['<mt:CategoryBasename separator="-" encode_php="q" />'] = array();
$by_category['<mt:CategoryBasename separator="-" encode_php="q" />']['entries'] = array();
}
$by_category['<mt:CategoryBasename separator="-" encode_php="q" />']['include_on_fp'] = <mt:if tag="CategoryIncludeOnFrontpage">true<mt:Else>false</mt:If>;
$by_category['<mt:CategoryBasename separator="-" encode_php="q" />']['url'] = '<mt:ArchiveLink type="Category" encode_php="q" />';
url.redirect = (
"^/kurttest/(.*)" => "/index.php?hi=$1",
"^/infotech/(.*)" => "/business/$1",
"^/index.php" => "/",
"^/(.*)/index((\.ars)|(\.php))" => "/$1",
"/(.*)/((in_content_promo)|(content_inset_promo))\.php" => "/$1"
)
sub cb_build_file{
my ($eh, %args) = @_;
my $html = ${$args{Content}};
my $blog = $args{Blog};
${$args{Content}} = replace_links($html, $blog);
};
$VAR1 = bless( {
'__triggers' => {},
'column_values' => {
'author_id' => undef,
'archive_type' => 'Individual',
'file_path' => '/home/kurt/ars-technica-mt-bits/published/te ch-policy/news/2007/12/foia-reform-bloggers-a re-journalists-too.php',
'template_id' => '1787',
'startdate' => undef,
'entry_id' => '34',
'virtual' => '0',
1) Critical site components (navigation, content styling, etc)
2) Editorializer in place and functional
3) Imported content from old site
4) Content categorized according to new scheme
5) Redirects
6) Extensive testing
7) User customization features (cookie based)
8) Secondary site components (various widgets, related search, etc)
9) User customization features (persisted to accounts)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script src="http://code.jquery.com/jquery-1.3b1.js" type="text/javascript"></script>
<script>
source entry_source
{
type = mysql
strip_html = 0
index_html_attrs =
sql_host = localhost
sql_user = ###
sql_pass = ###
sql_db = ###
sql_port = 3306 # optional, default is 3306
By <mt:AuthorDisplayName /><mt:ExtendedAuthors glue=", ">
<mt:AuthorDisplayName />
</mt:ExtendedAuthors>