Skip to content

Instantly share code, notes, and snippets.

View ArsTechnica's full-sized avatar

Ars Technica ArsTechnica

View GitHub Profile
###### Ubuntu Main Repos
deb http://mirror.anl.gov/pub/ubuntu/ precise main restricted universe multiverse
###### Ubuntu Update Repos
deb http://mirror.anl.gov/pub/ubuntu/ precise-security main restricted universe multiverse
deb http://mirror.anl.gov/pub/ubuntu/ precise-updates main restricted universe multiverse
sub primary_entries{
my ($ctx, $args, $cond) = @_;
my $url = exec_tag($ctx, { tag => 'ArchiveLink' }, { type => 'Category' });
my $blog_url = $ctx->stash('blog')->site_url;
my $blog_rel_url = exec_tag($ctx, { tag => 'BlogRelativeUrl'}, {});
$url =~ s/$blog_url//;
$url = $blog_rel_url . $url . "%";
my @entries = MT::Entry->load(undef,{'join' => MT::FileInfo->join_on( 'entry_id', { url => { like => $url } }, {}), sort => 'created_on', direction => 'descend', limit => 25});
if(@entries > 0){
local $ctx->{__stash}{entries} = \@entries;
sub primary_entries{ my ($ctx, $args, $cond) = @_;
my $url = exec_tag($ctx, { tag => 'ArchiveLink' }, { type => 'Category' });
my $blog_url = $ctx->stash('blog')->site_url;
$url =~ s/$blog_url//;
$url = "/$url%";
my $entries = MT::Entry->load({status => 2},{'join' => MT::FileInfo->join_on( 'entry_id', { url => { like => $url } }, {}), sort => 'created_on', direction => 'descend', limit => 25});
local $ctx->{__stash}{entries} = $entries;
defined(my $txt = $ctx->slurp($args,$cond)) or return;
$txt;
<SCRIPT type=text/javascript>
//variable is used to tell the creative that the ad is loaded in an I-Frame with its src set to a hosted file
//please see IAB Documentation on refresh standards for more information
var inDapID = true;
var request = window.location.search.split('?req=')[1];
if(parent.cnp.ad.manager.isInit){ //see comment below
document.write('<scr'+'ipt type="text/javascript" src="' + request + '"></scr'+'ipt>');
}
exists $arg->{ttl} ? $arg->{ttl}
: ( $cache_expire_type == 1 ) ? $tmpl->cache_expire_interval
: ( $cache_expire_type == 2 ) ? 0
: 60 * 60; # default 60 min.
diff --git a/addons/Commercial.pack/templates/professional/recover-password.mtml b/addons/Commercial.pack/templates/professional/recover-password.mtml
index dd6945a..30de96e 100644
--- a/addons/Commercial.pack/templates/professional/recover-password.mtml
+++ b/addons/Commercial.pack/templates/professional/recover-password.mtml
@@ -1,10 +1,7 @@
-<__trans phrase="_USAGE_FORGOT_PASSWORD_1">
+<__trans phrase="A request has been made to change your password in Movable Type. To complete this process click on the link below to select a new password.">
- <$mt:Var name="user_password"$>
+<mt:var name="link_to_login">
+-----------------------+------------------------+-----------------------------+------------------------------------+-----------------------+
| author_meta_author_id | author_meta_type | author_meta_vclob | author_meta_vchar | author_meta_vchar_idx |
+-----------------------+------------------------+-----------------------------+------------------------------------+-----------------------+
| 1 | widgets | NULL | NULL | NULL |
| 1 | favorite_blogs | NULL | NULL | NULL |
| 1 | field.user_title | Directory of AWESOME | NULL | NULL |
| 1 | field.gender | NULL | NULL | Male |
| 1