This file contains hidden or 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
| option: th2,th3,th4,th5,th6,th7,th8,td11,td12,td13,td14,td15,td16,td17,td18,td21,td22,td23,td24,td25,td26,td27,td28,td31,td32,td33,td34,td35,td36,td37,td38,td41,td42,td43,td44,td45,td46,td47,td48,td51,td52,td53,td54,td55,td56,td57,td58,td61,td62,td63,td64,td65,td66,td67,td68,td71,td72,td73,td74,td75,td76,td77,td78,note_text | |
| field_template: | |
| <p>仕様表組み:<span class="hint">見出しに入力の無い行・列は出力されません。</span></p> | |
| <table id="method"> | |
| <tr> | |
| <th>見出し行・列</th> | |
| <th><input type="text" name="th2" value="<$MTVar name="th2" escape="html"$>" /></th> | |
| <th><input type="text" name="th3" value="<$MTVar name="th3" escape="html"$>" /></th> | |
| <th><input type="text" name="th4" value="<$MTVar name="th4" escape="html"$>" /></th> |
This file contains hidden or 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
| sub build_date { | |
| my ( $ctx, $args ) = @_; | |
| my $ts = $args->{ts} || $ctx->{current_timestamp}; | |
| my $tag = $ctx->stash('tag'); | |
| return $ctx->error( | |
| MT->translate( | |
| "You used an [_1] tag without a date context set up.", "MT$tag" | |
| ) | |
| ) unless defined $ts; | |
| my $blog = $ctx->stash('blog'); |
This file contains hidden or 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 | |
| class Abs2Rel extends MTPlugin { | |
| var $app; | |
| var $registry = array( | |
| 'name' => 'Abs2Rel', | |
| 'id' => 'Abs2Rel', | |
| 'key' => 'abs2rel', | |
| 'author_name' => 'Alfasado Inc.', | |
| 'author_link' => 'http://alfasado.net/', | |
| 'version' => '0.1', |
This file contains hidden or 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
| <MTCustomObjects group="カスタムオブジェクトグループ"> | |
| <MTCustomObjectID setvar="objID" /> | |
| <MTUnless name="__first__"> | |
| <MTVar name="__counter__" op="--" setvar="nextOrder" /> | |
| <MTSetVar name="nextOrders" key="$nextOrder" value="$objID" /> | |
| </MTUnless> | |
| <MTSetVar name="groupOrders" key="$objID" value="$__counter__" /> | |
| <MTUnless name="__last__"> | |
| <MTVar name="__counter__" op="++" setvar="prevOrder" /> | |
| <MTSetVar name="prevOrders" key="$prevOrder" value="$objID" /> |
This file contains hidden or 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
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| $.ajax({ | |
| url: "<$mt:Var name="base_url"$>book/rel<$MTEntryISBN regex_replace="/[^\d]/g","">.mtml", | |
| cache: false, | |
| timeout: 5000, | |
| beforeSend: function() { | |
| $("#cntRelated").show(); | |
| }, | |
| success: function(html){ |
This file contains hidden or 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
| sub _cb_tp { | |
| my ( $cb, $app, $param, $tmpl ) = @_; | |
| my $top_nav_loop = $param->{ top_nav_loop } or return 1; | |
| for my $top_nav ( @$top_nav_loop ) { | |
| if ( $top_nav->{ id } eq 'tools' ) { | |
| my $sub_nav_loop = $top_nav->{ sub_nav_loop }; | |
| for my $sub_nav ( @$sub_nav_loop ) { | |
| if ( $sub_nav->{ 'link' } =~ /flush_dynamic_cache/ ) { | |
| $sub_nav->{ 'link' } .= '&magic_token=' . $app->current_magic(); | |
| } |
This file contains hidden or 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
| return $app->listing ({ | |
| template => 'list_author.tmpl', | |
| type => 'author', | |
| args => { | |
| 'join' => $app->model('objectscore')->join_on('object_id', | |
| { | |
| author_id => $app->param ('author_id'), | |
| namespace => MT::Community::Friending::FRIENDING() | |
| }), | |
| }, |
This file contains hidden or 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
| sub open_batch_editor { | |
| my $app = shift; | |
| my ($param) = @_; | |
| $param ||= {}; | |
| my @ids = $app->param('id') | |
| or return "Invalid request."; | |
| require MT::Entry; | |
| my $type = $app->param('_type') || MT::Entry->class_type; | |
| my $pkg = $app->model($type) or return "Invalid request."; |
This file contains hidden or 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
| sub sync_assets { | |
| my $entry = shift; | |
| my $text = ( $entry->text || '' ) . "\n" . ( $entry->text_more || '' ); | |
| require MT::ObjectAsset; | |
| my @assets = MT::ObjectAsset->load( | |
| { object_id => $entry->id, | |
| blog_id => $entry->blog_id, | |
| object_ds => $entry->datasource, | |
| embedded => 1, |
This file contains hidden or 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 | |
| # Movable Type (r) (C) 2001-2011 Six Apart, Ltd. All Rights Reserved. | |
| # This code cannot be redistributed without permission from www.sixapart.com. | |
| # For more information, consult your Movable Type license. | |
| # | |
| # $Id$ | |
| function datetime_to_timestamp($dt) { | |
| $dt = preg_replace('/[^0-9]/', '', $dt); | |
| $ts = mktime(substr($dt, 8, 2), substr($dt, 10, 2), substr($dt, 12, 2), substr($dt, 4, 2), substr($dt, 6, 2), substr($dt, 0, 4)); |