20070824 MT-DEVCON

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    20070824 MT-DEVCON - Presentation Transcript

    1. 日 • 自己
    2. 日 • 自己 •
    3. 日 • 自己 • •
    4. 日 • 自己 • • • 色
    5. 日 • 自己 • • • 色 •
    6. 日 • 自己 • • • 色 • •
    7. 自己
    8. 自己 • 高山 •入 • • • • •
    9. • • 行 色 • • • 自己 • • 非 •
    10. • •
    11. • • • 面
    12. • • • 面 •
    13. • • • 面 • •
    14. • • • 面 • • •
    15. • • • 面 • • • •
    16. • • • 面 • • • • •
    17. Transformer
    18. • • 入
    19. • • 入 •
    20. • • 入 • •
    21. • • 入 • • • 示 大
    22. • • 入 • • • 示 大 •
    23. • • 入 • • • 示 大 • •
    24. • 面
    25. • 面 • 入
    26. • 面 • 入 • 方
    27. • •
    28. • • • •
    29. • • • • • • • •
    30. • • • • • • • • • • • • • • • • • • • • • • • • • • •
    31. package MT::Plugin::SampleTransfomer; Transformer Callback ~ ~ MT->add_callback( 'MT::App::CMS::template_param.edit_entry', 9, $plugin, \\&add_field ); ID ’tags’ MT sub add_field { my ( $eh, $app, $param, $tmpl ) = @_; return unless UNIVERSAL::isa( $tmpl, 'MT::Template' ); my $innerHTML; Element my $host_node = $tmpl->getElementById('tags'); my $child_node = $tmpl->createElement( 'app:setting', { id => 'hello', label => 'Hello', } ); my $word = '<strong>Hello, Transformer</strong>'; Element $child_node->innerHTML($word); $tmpl->insertBefore( $child_node, $host_node ); } Element 1;
    32. MT->add_callback( 'template_param.edit_entry', 9, $plugin, \\&add_field );
    33. my $host_node = $tmpl->getElementByI('tags');
    34. 生 my $child_node = $tmpl->createElement( 'app:setting', { id => 'hello', label => 'Hello', } );
    35. 生 my $word = '<strong>Hello, Transformer</strong>'; $child_node->innerHTML($word);
    36. 生 入
    37. 生 入 $tmpl->insertBefore( $child_node, $host_node );
    38. • • • • •     • •   •   •  
    39. applications/cms/menus
    40. applications/cms/menus
    41. Dashboard( )
    42. Dashboard( ) Widget( )
    43. • • 示
    44. • • 示 • 示
    45. • • 示 • 示 •
    46. • • 示 • 示 • •
    47. • • 示 • 示 • • • 言
    48. • • 示 • 示 • • • 言 •
    49. • • 示 • 示 • • • 言 • • 示
    50. • • • • 示 •
    51. • • • 子 • • • • • •     生 自 生
    52. 方 子
    53. 方 子
    54. 方 子
    55. 方 子
    56. 方 子
    57. 方 子
    58. 方 子
    59. 方 子
    60. package MT::Asset::Movie; my $player = $site_url.\"flvplayer.swf? file=\".$url; use strict; my $text = << \"HTML\"; use base qw( MT::Asset ); <object type=\"application/x-shockwave-flash\" width=\"400\" height=\"220\" wmode=\"transparent __PACKAGE__->install_properties({ data=\"$player\"> class_type => 'movie', <param name=\"movie\" value=\"$player\" /> }); <param name=\"wmode\" value=\"transparent\" /> </object> sub extensions { [ qr/flv/i ] } HTML sub class_label { return $asset->enclose($text); MT->translate('Movie'); } } 1; sub class_label_plural { MT->translate('Movie'); } sub as_html { my $asset = shift; my ($param) = @_; my $url = $asset->url; my $blog = $asset->blog; my $site_url = $blog->site_url if $blog; $site_url = '/' unless $site_url;
    61. Player
    62. Player
    63. Player Movie Asset
    64. • • 日 月 日
    65. • • 日 月 日 •
    66. • • 日 月 日 • • 日 月 日
    67. • • 日 月 日 • • 日 月 日 • 日
    68. • • 日 月 日 • • 日 月 日 • 日 •
    69. • • 日 月 日 • • 日 月 日 • 日 • • 方
    70. • • 日 月 日 • • 日 月 日 • 日 • • 方 •
    71. • • 日 月 日 • • 日 月 日 • 日 • • 方 • •
    72. • • 日 月 日 • • 日 月 日 • 日 • • 方 • • • 日
    73. archive_types archive_label
    74. archive_types archive_label
    75. archive_types archive_label
    76. 日 •
    77. 日 • •
    78. 日 • • •
    79. 日 • • • •
    80. 日 • • • • •  
    81. 日 • • • • •   • 日
    82. 日 • • • • •   • 日 • 用

    + swordbreakerswordbreaker, 3 years ago

    custom

    634 views, 0 favs, 0 embeds more stats

    2007.8.24 資料

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 634
      • 634 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 13
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories