<@6> <@> <@> HTML形式 <@> <$ifbreak(! v.static_output_dir)> <$logs = argv#0> <$option = argv#1> <$s = v.daybook_setting> <@ifexec(! logs, begin)> 静的出力 <@v.static_output_dir> に HTML 化して出力します。
出力ディレクトリ内のHTMLファイルをすべて消す
標準準拠モード用に出力(IEに注意)
コメント欄を表示しない
トラックバック欄を表示しない
Infomation(サイドバー内)を表示しない
埋め込みテキストを表示しない
ログインヘッダを表示しない
検索ボックスを表示しない
theme/user.css を呼び出すように埋め込む
<@if(1 || s.gaid, begin_array)> Google Analyticsを埋め込む
<$end> ※通常およそ正しく動きますが、一部リンク書き換え等が完全ではありません。 <$break()> <$end> <@>----------------------------------------------------------------------------- <@> 静的HTML出力 <@>----------------------------------------------------------------------------- <$print_header( "Cache-Control", 'no-cache' )> <$print_content_type("text/html", System_coding)> <$output_array( exec(begin.print) )> > <$s = set = v.daybook_setting> <$ifset(v.title eq '', v.title, 'adiary')> <@ifexec(v.usercss && !v.system_mode, begin)> <$end> <@v.add_header> <@v.header_title_add><@v.title> class="<@Agent_class><@if(v.system_mode, ' system')>">
/" ,Myself)>" class="welcome-prefix">ようこそ", ' class="guest"')>><@Auth.name>さん <@ifexec(v.allow_edit, begin)> 日記を書く <$end> <@ifexec(Auth.ok, begin, begin)> 管理<@if(v.allow_edit && s.newcome_flag, #'')> ログアウト <$else> <$end>
<@ifexec(v.diary_id, begin, begin)>

<@if(! v.system_mode && s.blog_image, #'<@v.title>', #'<@v.title>')>

<$else>

<@if(v.titlex, v.titlex, v.title)>

<$end>

出力dir : <@v.static_output_dir>

<$end.print> <@>----------------------------------------------------------------------------- <@> 静的HTML出力 <@>----------------------------------------------------------------------------- <@>エラー対策 <$v.action_is_main=1> <$v.frame_skelton=""> <$No_httpheader=1> <$exporter = loadpm('Diary::Export_static_html')> <$ifbreak(error_flag)> <@>出力ルーチン実行 <$print('')>