2011/7/9 説明書更新
ダウンロードしていただきありがとうございます。
この Readme_freo.html は、freo スキンデータ共通の説明書です。
よく読んでスキンをご利用ください。
当サイトにアップしてある最新版にものっていないことで疑問があれば、サポート掲示板などに書き込んでください。
随時追加していきます。
基本的に freo の規定に準じます。
スキンをご使用になるには freoが正常に動作することが前提条件となります。
あらかじめ、freo設置を完了させ、デフォルトできちんと動くかどうかの動作確認をおこなってください。
この時点でのトラブルは、本体の設置失敗です。
HTMLtemplates/default/ だけ使用します。HTMLtemplates/default/templates/ の内容を、 templates/ 内に上書きアップロードします。HTMLtemplates/default/images/ の内容を、 images/ 内に上書きアップロードします。HTMLtemplates/default/css/ にある K.css を、 css/ 内に上書きアップロードします。templates_c/ 内にある、拡張子が php のファイルをすべて削除します。 → freo.jp (トラブルシューティング) HTMLtemplates/
Readme_freo.html ・・・ スキン共通の説明書default/ (基本テンプレート)
templates/
internals/admin/ (プレビュー) ・・・ entry_preview.html / information_preview.html / page_preview.htmlinternals/comment/ (コメント投稿) ・・・ preview.htmlinternals/default/ (トップページ) ・・・ default.htmlinternals/filter/ (フィルター設定) ・・・ default.htmlinternals/information/ (インフォメーション) ・・・ default.htmlinternals/login/ (ログイン) ・・・ default.htmlinternals/page/ (各ページ表示) ・・・ default.htmlinternals/profile/ (プロフィール) ・・・ default.htmlinternals/regist/ (ユーザー登録) ・・・ complete.html、default.html、preview.htmlinternals/reissue/ (パスワード再発行) ・・・ complete.html、default.html、send.htmlinternals/user/ (ユーザー) ・・・ comment_form.html、comment_preview.html、default.html、password_form.html、profile_form.html、profile_preview.htmlinternals/view/ (各記事表示) ・・・ default.htmlfooter.html (共通下部)header.html (共通上部)utility.html (サイドバー)utility_category.html (サイドバーのカテゴリー)css/ (スタイルシート)
K.cssimages/K/ (画像)
○○.gif 、 ○○.jpgcustom/ (カスタマイズテンプレート)
1column (1カラムスキン用)
utility.html / utility4.html / entry_preview.html / information_preview.html / page_preview.htmlpage/ (ページ個別テンプレート)
gallery.html (ギャラリー用)page_sidebar1-space/ (ページ個別テンプレート - サイドバーの空間)
default.html / gallery.html(ギャラリー用) / novel.html(小説用)page_sidebar2-page_child/ (ページ個別テンプレート - サイドバーに目次を表示)
default.html / novel.html(小説用)page_sidebar3-page_all/ (ページ個別テンプレート - サイドバーにページ目次を一覧表示)
default.html / gallery.html(ギャラリー用) / novel.html(小説用)page_sidebar-preview (サイドバーのあるプレビュー)
information_preview.html(インフォメーション) / page_preview.html(ページ)toppage/ (トップページの表示を変更したテンプレート)
templates/internals/category/ (カテゴリー別表示) ・・・ default.htmltemplates/internals/default/ (トップページ) ・・・ default.htmltemplates/internals/entry/ (ブログ一覧) ・・・ default.htmlplugin/ (プラグイン用テンプレート)
bookmark/ (ブックマーク登録プラグイン) ・・・ default.htmlclap/ (拍手送信プラグイン) ・・・ default.html、error.htmlcontact/ (メール送信プラグイン) ・・・ complete.html、default.html、preview.htmlentry_gallery/ (エントリーギャラリー表示プラグイン) ・・・ default.htmlentry_image/ (エントリーイメージ表示プラグイン) ・・・ default.htmlmessage/ (メッセージ登録プラグイン) ・・・ complete.html、default.html、preview.htmlpage_all/ (ページ一括表示プラグイン) ・・・ default.htmlpage_image/ (ページイメージ表示プラグイン) ・・・ default.htmlpage_image_categorized/ (ページイメージ分類別表示プラグイン) ・・・ default.htmlpaint/ (イラスト投稿プラグイン) ・・・ default.htmlpassword/ (パスワード認証プラグイン) ・・・ default.htmlprotect/ (直接リンク防止プラグイン) ・・・ default.htmlCSS-○○/
○○/
css/ (スタイルシート)
K.cssimages/K/ (画像)
○○.gif 、 ○○.jpgHTMLtemplates/custom/1column/ 内にある utility.html を代わりに使用します。
utility.html は以下のような構造になっています。(サイドバーの内容を3つに分割しています)<div id="utility"> <h2>ユーティリティ</h2> <div class="utility-1column">~サイドバーの内容その1~</div> <div class="utility-1column">~サイドバーの内容その2~</div> <div class="utility-1column">~サイドバーの内容その3~</div> </div> <br class="cancel" />
HTMLtemplates/custom/1column/ 内にある utility4.html を utility.html に名前変更して使用します。<div class="utility-1column"> と </div> を追記し、同様の構成に修正してください。entry_preview.html を templlates/internals/admin/ 内に上書きアップロードinformation_preview.html、page_preview.html も使用) ブログっぽくないように専用のトップページを表示します。
親ID/ を入れて、親子関係を明確にしてページを登録
gallery) > 分類用ページ1 (gallery/photo) > 作品ページ1 (gallery/photo/1)novel) > 分類用ページ1 (novel/long) > 作品ページ1 (novel/long/1)HTMLtemplates/custom/toppage/templates/ の内容を、 templlates/ 内に上書きアップロードします。HTMLtemplates/custom/page/ 内にある gallery.html を、 templlates/internals/page/ 内にアップロードgallery/ を入れて、親子関係を明確にしてページを登録することが大切です。
gallery | タイトル例: ギャラリー | 本文は空欄 ]
gallery/original | タイトル例: オリジナル | 本文は空欄 ]
gallery/original/1 ]gallery/original/2 ]gallery/fanart | タイトル例: 二次創作 | 本文は空欄 ]
gallery/fanart/1 ]gallery/fanart/2 ]HTMLtemplates/custom/page_sidebar1-space/ 内の default.html、 gallery.html(ギャラリー用)、 novel.html(小説用)templlates/internals/page/ 内にアップロードHTMLtemplates/custom/page_sidebar-preview/ の page_preview.html を templlates/internals/admin/ 内に上書きアップロードHTMLtemplates/custom/page_sidebar2-page_child/ 内の default.html、novel.html(小説用)templlates/internals/page/ 内にアップロードHTMLtemplates/custom/page_sidebar-preview/ の page_preview.html を templlates/internals/admin/ 内に上書きアップロードnovel | タイトル例: 小説 | 本文にそれぞれの話の概要など ]
novel/original1 | タイトル例: 長編「○○」 | 本文に読む前の注意書きや解説など ]
novel/original1/1 | タイトル例: 第一話「☆☆☆」 ]novel/original1/2 | タイトル例: 第二話「▽▽▽」 ]HTMLtemplates/custom/page_sidebar3-page_all/ 内の default.html、 gallery.html(ギャラリー用)、 novel.html(小説用)templlates/internals/page/ 内にアップロードHTMLtemplates/custom/page_sidebar-preview/ の page_preview.html を templlates/internals/admin/ 内に上書きアップロードgallery/ を入れて、親子関係を明確にしてページを登録することが大切です。
gallery | タイトル例: ギャラリー | 本文は空欄 ]
gallery/photo | タイトル例: 写真 | 本文は空欄 ]
gallery/photo/1 ]gallery/photo/2 ]gallery/illust | タイトル例: イラスト | 本文は空欄 ]
gallery/illust/1 ]gallery/illust/2 ]novel | タイトル例: 小説 | 本文は空欄 ]
novel/long1 | タイトル例: 長編「○○」 | 本文は空欄 ]
novel/long1/1 | タイトル例: 第一部 | 本文は空欄 ]
novel/long1/1/1 | タイトル例: 1 ]novel/long1/1/2 | タイトル例: 2 ]novel/short | タイトル例: 短編 | 本文は空欄 ]
novel/short/1 ]novel/short/2 ]<div class="kaisetu"> <ul> <li>解説など</li> <li>~</li> </ul> </div> <h3>手袋を買いに</h3> <p>本文</p> <p>~</p> <div class="atogaki"> <p>後書き</p> <p>~</p> </div>
エントリー、ページ、インフォメーションを登録するときのプレビューを、実際表示されるデザインとほぼ同じにします。
HTMLtemplates/default/templlates/internals/admin/ にはいっています。HTMLtemplates/custom/page_sidebar-preview/ の information_preview.html を使用HTMLtemplates/custom/page_sidebar-preview/ の page_preview.html を使用HTMLtemplates/custom/1column/ にはいっているものを使用以下のプラグインを導入する場合、通常どおり導入したあと、同梱のプラグイン用スキンで上書きをしてください。
テンプレートへの追記をする際は、以下にあるそれぞれの説明を見てください。
HTMLtemplates/plugins/entry_gallery/ で上書きutility.html への追記
<div class="utility_gallery">
<div class="title"><h3>gallery</h3></div>
<div class="content"><div class="content2">
<ul class="gallery"><!--{foreach from=$plugin_entry_galleries|smarty:nodefaults item='plugin_entry_gallery'}--><li><a href="{$freo.core.http_file}/view/{if $plugin_entry_gallery.code}{$plugin_entry_gallery.code}{else}{$plugin_entry_gallery.id}{/if}"><!--{if $plugin_entry_gallery.image}--><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_images/{$plugin_entry_gallery.id}/{$plugin_entry_gallery.image}" alt="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" title="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" width="{$plugin_entry_gallery_images[$plugin_entry_gallery.id].width}" height="{$plugin_entry_gallery_images[$plugin_entry_gallery.id].height}" /><!--{else}--><img src="{$plugin_entry_gallery_medias[$plugin_entry_gallery.id].file}" alt="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" title="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" width="{$plugin_entry_gallery_medias[$plugin_entry_gallery.id].width}" height="{$plugin_entry_gallery_medias[$plugin_entry_gallery.id].height}" /><!--{/if}--></a></li><!--{/foreach}--></ul>
</div></div>
</div>
HTMLtemplates/plugins/entry_image/ で上書きutility.html への追記
<div class="utility_gallery">
<div class="title"><h3>image</h3></div>
<div class="content"><div class="content2">
<ul class="gallery"><!--{foreach from=$plugin_entry_images|smarty:nodefaults item='plugin_entry_image'}--><li><a href="{$freo.core.http_file}/view/{if $plugin_entry_image.code}{$plugin_entry_image.code}{else}{$plugin_entry_image.id}{/if}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_images/{$plugin_entry_image.id}/{$plugin_entry_image.image}" alt="{$plugin_entry_image.memo|default:$plugin_entry_image.title}" title="{$plugin_entry_image.memo|default:$plugin_entry_image.title}" width="{$plugin_entry_image_images[$plugin_entry_image.id].width}" height="{$plugin_entry_image_images[$plugin_entry_image.id].height}" /></a></li><!--{/foreach}--></ul>
</div></div>
</div>
view/default.html への追記 (81行 <!--{if $entry.trackback != 'closed'}--> の前の行)
<div id="entryrelate">
<div class="title"><div class="title2"><h2>関連エントリー</h2></div></div>
<div id="entryrelate2">
<ul>
<!--{foreach from=$plugin_entry_relates|smarty:nodefaults item='plugin_entry_relate'}-->
<li><span class="entryrelate_time">{$plugin_entry_relate.datetime|date_format:'%Y/%m/%d'}</span><a href="{$freo.core.http_file}/view/{if $plugin_entry_relate.code}{$plugin_entry_relate.code}{else}{$plugin_entry_relate.id}{/if}">{$plugin_entry_relate.title}</a></li>
<!--{foreachelse}--><li>関連エントリーはありません。</li><!--{/foreach}-->
</ul>
</div>
</div>
utility.html への追記
<div class="utility"><div class="utility_entryrelate">
<div class="title"><h3>related entry</h3></div>
<div class="content"><div class="content2">
<ul><!--{foreach from=$plugin_entry_relates|smarty:nodefaults item='plugin_entry_relate'}--><li><a href="{$freo.core.http_file}/view/{if $plugin_entry_relate.code}{$plugin_entry_relate.code}{else}{$plugin_entry_relate.id}{/if}">{$plugin_entry_relate.title} <span class="time">{$plugin_entry_relate.datetime|date_format:'%Y/%m/%d'}</span></a></li><!--{foreachelse}--><li><p>関連エントリーはありません。</p></li><!--{/foreach}--></ul>
</div></div>
</div></div>
utility.html への追記
<div class="utility_tagcloud">
<div class="title"><h3>tag</h3></div>
<div class="content"><div class="content2">
<ul class="tagcloud">
<!--{foreach from=$plugin_entry_tagclouds|smarty:nodefaults item='plugin_entry_tagcloud'}-->
<li><a href="{$freo.core.http_file}/entry?tag={$plugin_entry_tagcloud.tag|smarty:nodefaults|escape:'url'}" style="font-size:{$plugin_entry_tagcloud.size}%;">{$plugin_entry_tagcloud.tag}</a>{$plugin_entry_tagcloud.count}</li>
<!--{/foreach}-->
</ul>
</div></div>
</div>
HTMLtemplates/plugins/page_image/ で上書きutility.html への追記
<div class="utility_gallery">
<div class="title"><h3>image</h3></div>
<div class="content"><div class="content2">
<ul class="gallery"><!--{foreach from=$plugin_page_images|smarty:nodefaults item='plugin_page_image'}--><li><a href="{$freo.core.http_file}/page/{$plugin_page_image.id}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_images/{$plugin_page_image.id}/{$plugin_page_image.image}" alt="{$plugin_page_image.memo|default:$plugin_page_image.title}" title="{$plugin_page_image.memo|default:$plugin_page_image.title}" width="{$plugin_page_image_images[$plugin_page_image.id].width}" height="{$plugin_page_image_images[$plugin_page_image.id].height}" /></a></li><!--{/foreach}--></ul>
</div></div>
</div>
HTMLtemplates/plugins/page_image_categorized/ で上書きHTMLtemplates/plugins/page_image_categorized/default.html の 5行 <div class="content"> の直後に追記します。 <ul>
<li>各ジャンルの最新サムネイルを表示しています。(タイトルをクリックするとジャンル内のサムネイルがすべて表示されます)<br />サムネイルをクリックすると各ページへ移動します。</li>
<li>ジャンル説明
<ul class="minilist">
<li><strong>オリジナル</strong> ・・・ ☆☆☆系。</li>
<li><strong>■■■</strong> ・・・ 主に◇◇◇のイラスト。~に注意!</li>
<li><strong>○○○</strong> ・・・ ●●●と□□□ばかり。</li>
<li><strong>その他</strong> ・・・ 上記以外のジャンル。△△△、▽▽▽、たまに×××も。</li>
<li><strong>お絵描き掲示板絵</strong> ・・・ 一度に10枚表示します。ジャンルいろいろ。</li>
</ul>
</li>
<li>原作者や出版社など公式なものとの関係は一切ありません。</li>
</ul>
HTMLtemplates/plugins/page_image_categorized/default.html の<a href="{$freo.core.http_file}/page_image_categorized/{$category.id}?view=1">{$category.title}</a> を{$category.title} <a href="{$freo.core.http_file}/page_image_categorized/{$category.id}?view=1" class="all">...すべて表示</a>a.all {font-weight: normal; letter-spacing: normal;}
page/default.html への追記<div class="page_page"><div class="pages"> の直後 [ Basic, Line, Scroll, Pretty, Time ] )<div class="title2"> の直後 [ Box, Simple ] )</h2></div> の直後 [ Simple ] )
<p class="topicpath"><a href="{$freo.core.http_file}">トップページ</a>
<!--{foreach from=$plugin_page_topicpaths|smarty:nodefaults item='plugin_page_topicpath'}-->
> <a href="{$freo.core.http_file}/page/{$plugin_page_topicpath.id}">{$plugin_page_topicpath.title}</a>
<!--{/foreach}--> > {$page.title}</p>
HTMLtemplates/plugins/page_all/ で上書きpage/default.html への追記 (77行 <ul class="link"> ~ の前の行)
<h3>ページ一覧</h3>
{include file='plugins/page_all/default.html'}
<!--{if $plugin_page_siblings|smarty:nodefaults}-->
<div class="utility"><div class="utility_page_all" id="utility_page_siblings">
<div class="title"><h3>ページ直接移動</h3></div>
<div class="content"><div class="content2">
<ul class="page_child"><!--{foreach from=$plugin_page_siblings|smarty:nodefaults item='plugin_page_sibling'}--><li><!--{if $page.id != $plugin_page_sibling.id}--><a href="{$freo.core.http_file}/page/{$plugin_page_sibling.id}">{$plugin_page_sibling.title}</a><!--{else}--><span class="direct_page">{$plugin_page_sibling.title}</span><!--{/if}--></li><!--{/foreach}--></ul>
</div></div>
</div></div>
<!--{/if}-->
utility.html への追記
<div class="utility"><div class="utility_archive">
<div class="title"><h3>archive</h3></div>
<div class="content"><div class="content2">
<p><select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
<option value="">月を選択</option>
<!--{foreach from=$plugin_page_archives|smarty:nodefaults item='plugin_page_archive'}-->
<option value='{$freo.core.http_file}/page?date={$plugin_page_archive.year}{$plugin_page_archive.month}'> {$plugin_page_archive.year}年{$plugin_page_archive.month}月 ({$plugin_page_archive.count}) </option>
<!--{foreachelse}-->
<option value="">エントリーが登録されていません。</option>
<!--{/foreach}-->
</select></p>
<noscript><ul>
<!--{foreach from=$plugin_page_archives|smarty:nodefaults item='plugin_page_archive'}-->
<li><a href="{$freo.core.http_file}/page?date={$plugin_page_archive.year}{$plugin_page_archive.month}">{$plugin_page_archive.year}年{$plugin_page_archive.month}月 ({$plugin_page_archive.count})</a></li>
<!--{foreachelse}-->
<li>エントリーが登録されていません。</li>
<!--{/foreach}-->
</ul></noscript>
</div></div>
</div></div>
utility.html への追記
<div class="utility"><div class="utility_calendar">
<div class="title"><h3>calendar</h3></div>
<div class="content"><div class="content2">
<table summary="カレンダー" class="calender">
<tr>
<th colspan="7"><a href="{$freo.core.http_file}/page?date={$plugin_page_calender_previous}" title="前の月" class="calender_prev">{$plugin_page_calender_previous|substr:4}</a><span class="calender_"><span class="year">{$plugin_page_calender_year}<span>/</span></span><span class="month">{$plugin_page_calender_month}</span></span><a href="{$freo.core.http_file}/page?date={$plugin_page_calender_next}" title="次の月" class="calender_next">{$plugin_page_calender_next|substr:4}</a></th>
</tr>
<tr>
<td><span class="sunday">S</span></td>
<td><span class="day">M</span></td>
<td><span class="day">T</span></td>
<td><span class="day">W</span></td>
<td><span class="day">T</span></td>
<td><span class="day">F</span></td>
<td><span class="satday">S</span></td>
</tr>
<!--{foreach from=$plugin_page_calenders|smarty:nodefaults item='plugin_page_calender' name='loop'}-->
<!--{if $smarty.foreach.loop.index % 7 == 0}-->
<tr>
<!--{/if}-->
<!--{if $plugin_page_calender.type == 'day'}-->
<td><!--{if $plugin_page_calender.flag}--><a href="{$freo.core.http_file}/page?date={$plugin_page_calender.date}"><!--{/if}--><span class="day">{$plugin_page_calender.day}</span><!--{if $plugin_page_calender.flag}--></a><!--{/if}--></td>
<!--{elseif $plugin_page_calender.type == 'satday'}-->
<td><!--{if $plugin_page_calender.flag}--><a href="{$freo.core.http_file}/page?date={$plugin_page_calender.date}"><!--{/if}--><span class="satday">{$plugin_page_calender.day}</span><!--{if $plugin_page_calender.flag}--></a><!--{/if}--></td>
<!--{elseif $plugin_page_calender.type == 'sunday'}-->
<td><!--{if $plugin_page_calender.flag}--><a href="{$freo.core.http_file}/page?date={$plugin_page_calender.date}"><!--{/if}--><span class="sunday">{$plugin_page_calender.day}</span><!--{if $plugin_page_calender.flag}--></a><!--{/if}--></td>
<!--{else}-->
<td>-</td>
<!--{/if}-->
<!--{if $smarty.foreach.loop.index % 7 == 6}-->
</tr>
<!--{/if}-->
<!--{/foreach}-->
</table>
</div></div>
</div></div>
utility.html への追記
<div class="utility"><div class="utility_page">
<div class="title"><h3>new page</h3></div>
<div class="content"><div class="content2">
<ul><!--{foreach from=$plugin_page_recentries|smarty:nodefaults item='plugin_page_recently'}--><li><a href="{$freo.core.http_file}/page/{$plugin_page_recently.id}">{$plugin_page_recently.title} <span class="time">{$plugin_page_recently.datetime|date_format:'%Y/%m/%d %H:%M'}</span></a></li><!--{/foreach}--></ul>
</div></div>
</div></div>
utility.html への追記
<div class="utility_tagcloud">
<div class="title"><h3>tag</h3></div>
<div class="content"><div class="content2">
<ul class="tagcloud">
<!--{foreach from=$plugin_page_tagclouds|smarty:nodefaults item='plugin_page_tagcloud'}-->
<li><a href="{$freo.core.http_file}/page?tag={$plugin_page_tagcloud.tag|smarty:nodefaults|escape:'url'}" style="font-size:{$plugin_page_tagcloud.size}%;">{$plugin_page_tagcloud.tag}</a>{$plugin_page_tagcloud.count}</li>
<!--{/foreach}-->
</ul>
</div></div>
</div>
HTMLtemplates/plugins/search/ で上書きutility.html への追記
<div class="utility"><div class="utility_search">
<div class="title"><h3>search</h3></div>
<div class="content"><div class="content2">
<form action="{$freo.core.http_file}/search" method="get">
<fieldset>
<legend>キーワード検索フォーム</legend>
<dl>
<dt>キーワード</dt>
<dd><input type="text" name="word" size="50" value="{$smarty.get.word}" /></dd>
</dl>
<p><input type="submit" value="検索する" /></p>
</fieldset>
</form>
</div></div>
</div></div>
HTMLtemplates/plugins/bookmark/ で上書き<!--{/foreach}--></span> の直後utility.html への追記
<div class="utility_bookmark">
<div class="title"><h3>{$smarty.now|date_format:'%m'}月{$smarty.now|date_format:'%d'}日のブックマーク</h3></div>
<div class="content"><div class="content2">
<dl>
<!--{foreach from=$plugin_bookmark_inventories|smarty:nodefaults item='plugin_bookmark_inventory'}-->
<dt><a href="{$plugin_bookmark_inventory.url}" title="{$plugin_bookmark_inventory.title}">{$plugin_bookmark_inventory.title|mb_truncate:12:'...'}</a></dt>
<dd><!--{foreach from=$plugin_bookmark_inventory_tags[$plugin_bookmark_inventory.id]|smarty:nodefaults item='plugin_bookmark_inventory_tag' name='loop'}-->{$plugin_bookmark_inventory_tag}<!--{if !$smarty.foreach.loop.last}-->, <!--{/if}--><!--{/foreach}--><!--{if $freo.user.authority == 'root' or $freo.user.authority == 'admin'}--><a href="{$freo.core.http_file}/bookmark/admin_form?id={$plugin_bookmark_inventory.id}" class="edit">編集</a><!--{/if}--></dd>
<!--{foreachelse}--><dt class="nodata">No Data</dt><dd class="nodata">ブックマークはありません。</dd><!--{/foreach}-->
</dl>
</div></div>
</div>
plugins/bookmark/default.html への追記は、32行 </ul> の直後にutility.html への追記
<div class="utility"><div class="utility_menu">
<div class="title"><h3>menu</h3></div>
<div class="content"><div class="content2">
<ul><!--{foreach from=$plugin_menus|smarty:nodefaults item='plugin_menu'}--><li><a href="{if $plugin_menu.url|regex_match:'/^https?\:\/\//'}{$plugin_menu.url}{else}{$freo.core.http_file}{$plugin_menu.url}{/if}">{$plugin_menu.title}</a></li>
<!--{/foreach}--></ul>
</div></div>
</div></div>
HTMLtemplates/plugins/paint/ で上書きHTMLtemplates/plugins/contact/ で上書きHTMLtemplates/plugins/clap/ で上書きheader.html への追記例 (32行 <ul> ~ ログイン</a> ~ </li></ul>)
<form action="{$freo.core.http_file}/clap" method="post">
<ul>
~
ログイン</a>
<input type="hidden" name="freo[token]" value="{$token}" /><input type="submit" value="拍手を送る" />
</li></ul>
</form>
header.html への追記例 (32行 ~ ログイン</a></li> の直後)
<li><a href="{$freo.core.http_file}/clap">拍手</a></li>
utility.html への追記
<div class="utility"><div class="utility_clap">
<div class="title"><h3>clap</h3></div>
<div class="content"><div class="content2">
<form action="{$freo.core.http_file}/clap" method="post">
<fieldset>
<legend>拍手送信フォーム</legend>
<input type="hidden" name="freo[token]" value="{$token}" />
<p><input type="submit" value="拍手を送る" /></p>
</fieldset>
</form>
</div></div>
</div></div>
utility.html への追記
<div class="utility"><div class="utility_clap">
<div class="title"><h3>clap</h3></div>
<div class="content"><div class="content2">
<form action="{$freo.core.http_file}/clap" method="post">
<fieldset>
<legend>拍手送信フォーム</legend>
<input type="hidden" name="freo[token]" value="{$token}" />
<p><input type="submit" value="拍手を送る" /></p><p>リクエストとか意見とかあればどうぞ</p>
<input type="hidden" name="freo[token]" value="{$token}" />
<input type="hidden" name="plugin_clap[title]" value="{$smarty.post.plugin_clap.title}" />
<dl><dt>メッセージ</dt><dd><textarea name="plugin_clap[text]" cols="50" rows="2"></textarea></dd></dl>
</fieldset>
</form>
</div></div>
</div></div>
HTMLtemplates/plugins/message/ で上書きutility.html への追記
<div class="utility"><div class="utility_popular">
<div class="title"><h3>popular</h3></div>
<div class="content"><div class="content2">
<ul>
<!--{foreach from=$plugin_popularities|smarty:nodefaults item='plugin_popularity'}--><li><a href="{$freo.core.http_file}{$plugin_popularity.parameter}">{$plugin_popularity.title|default:$plugin_popularity.parameter} <span class="count">({$plugin_popularity.count})</span></a></li><!--{/foreach}-->
</ul>
</div></div>
</div></div>
HTMLtemplates/plugins/password/ で上書きHTMLtemplates/plugins/protect/ で上書き各記事の題名が h3 なので、記事内の見出しは <h4> ~ </h4> を使うのが適切です。さらに下位の見出しは h5 タグや h6 タグになります。
※ ページは題名が h2 なのでページ内の見出しは <h3> ~ </h3> からになります。
普通の文や画像は基本的に <p> ~ </p> ではさみます。改行するときは、 <br /> を記述します。</p><p> と一度pタグを閉じると2回改行したくらいの隙間が空き、もっと隙間を空けたいときは、 </p><p><br /> をその数だけ並べます。
大きさや色などを変更する、よく使う文字の装飾はスタイルシートに用意しておくと便利です。
強調したいことばは <em> ~ </em> ではさみ、さらにより強く強調したいことばを <strong> ~ </strong> ではさみます。
<body> ~ のようなコードテキストは、 < などを < などに直し、 <code> ~ </code> ではさみます。
左寄せにして文字を右に文字を回り込ませたい画像は、class="img_left" を指定します。
右寄せにして文字を左に文字を回り込ませたい画像は、class="img_right" を指定します。
回り込みを解除させたい p や li などのタグに class="clear" を指定、または <br class="clear" /> を記述すると解除できます。
中央寄せにしたい画像は <p class="img_center"> ~ </p> ではさみます。
左右の余白を「0」にしているので、さらに大きめの画像をはみ出さずに表示できます。
例
<p><img src="~" class="img_left" /></p> <p>画像が左に寄せられて、文字が右側に回り込みます。</p> <p class="clear">ここから回り込みを解除。</p>
見やすいように段落同様に余白をとっています。
上下の余白をなくし、すっきりさせたいときは ul 、 ol、 dl のタグに class="minilist" を指定します。
<li> ~ </li> ではさみ、全体を <ol> ~ </ol> ではさみます。<li> ~ </li> ではさみ、全体を <ul> ~ </ul> ではさみます。 <dt> ~ </dt>で、その説明を <dd> ~ </dd> ではさんだ後、全体を <dl> ~ </dl> ではさみます。p タグや各種リストなどのブロック要素も使えます。追加した情報を <ins> ~ </ins> ではさむと、下線がつきます。削除した情報を消さずに <del> ~ </del> ではさむと抹消線がつきます。
引用文は普通に記述した後、全体を <blockquote> ~ </blockquote> ではさみます。
整形済みテキストは <pre> ~ </pre> ではさみます。(アスキーアートの場合は <pre class="aa"> ~ </pre> ではさみます)
テーブルの記述例
<h4>テーブル</h4> <table summary="点数表"> <caption>学年末テスト集計(100点満点)</caption> <tbody> <tr><th>名前</th><th>英語</th><th>国語</th><th>数学</th><th>理科</th><th>社会</th><th>合計</th><th>平均</th></tr> <tr><td>たろう</td><td>90</td><td>70</td><td>50</td><td>35</td><td>35</td><td>280</td><td>56</td></tr> <tr><td>はなこ</td><td>70</td><td>75</td><td>90</td><td>80</td><td>85</td><td>400</td><td>80</td></tr> </tbody> </table>
スキンサンプルのインフォメーションはこんなふうに記述しています。
<p><img title="トップ画像" src="○○" alt="トップ画像" width="○○" height="○○" /></p> <h3>お知らせ</h3> <p>5,000ヒット超えたので、リクエスト企画を立てました。詳しくはこちらから。4月1日まで受け付け中です。</p> <h3>初めに</h3> <ul> <li>ようこそ。 初めての方は【ABOUT】にも目を通してください。</li> <li>当サイトはオリジナルノベルと二次創作を公開しています。現在は☆☆中心。<br />ネタバレなどもありますので、閲覧の際は自己責任にてお願いします。</li> <li>原作者様、出版社様、その他関係各社様とは一切関係はありません。</li> <li>サイト内のバナーを除く画像や文章の無断転載はご遠慮願います。</li> <li>ログインすると、コメント投稿や登録者限定ページの閲覧ができるようになります。<br />このサイトが気に入ったらどうぞユーザー登録してください。</li> </ul> <h3>更新情報</h3> <ul> <li>2010/10/14 【リクエスト企画】はじめました / 拍手お礼差し替え(前のはMAINに収納済)</li> <li>2010/9/25 【MAIN】「○○」の続きを追加</li> <li> ~ </li> <li>2003/2/13 サイト正式公開</li> </ul> <h3>その他</h3> <p><img title="◇◇同盟バナー" src="◇◇" alt="◇◇同盟バナー" width="200" height="40" /><br />同盟やイベントのバナーで自己主張したり、サーチや素材屋に感謝したり、などなど</p>
display: block; などで、リンクのクリックできる領域を大きくする。#000000 と #CCCCCC 、背景色は #FFFFFF 、文字色は #333333 です。p タグにはさんだ画像は、最大横幅 474px (サイドバーがないときは 724px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 498px (サイドバーがないときは 748px )です。.attention 、 div.kaisetu 、 code 以外は白・黒・グレー系です。#AAAAAA 、文字色は #999999 、時刻や件数などの文字色は #BBBBBB です。p タグにはさんだ画像は、最大横幅 474px (サイドバーがないときは 719px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 498px (サイドバーがないときは 743px )です。width を修正します。(デフォルトは 95px×2項目)
div#menu li をメニューの文字数や大きさに合わせて修正します。div#menu ul を div#menu liのwidth × 項目数 に修正します。div.menu の text-align: right; を削除し、 div#menu ul の margin を 0 に修正します。div#menu li の width を好きな幅にします。div#container 、 div.menu 、 div#menu ul の width を div#menu liのwidth × 項目数 に修正します。* html div#container 、 div#content の width も同じだけ増減します。(例:800pxの場合55px増加)div.menu の text-align: right; を削除し、 div#menu ul の margin を 0 に width を 745px に修正します。div#menu li の width を 149px に修正します。div.menu { } div#menu ul {margin: 0; padding: 4px 0; border-bottom: 1px solid #AAAAAA; text-align: right;} div#menu li {margin: 0; padding: 0; display: inline; background: none; line-height: 1;} div#menu a {padding: 4px 12px; letter-spacing: 1px;}
p タグにはさんだ画像は、最大横幅 494px (サイドバーがないときは 754px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 518px (サイドバーがないときは 778px )です。p タグにはさんだ画像は、最大横幅 474px (サイドバーがないときは 704px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 498px (サイドバーがないときは 728px )です。p タグにはさんだ画像は、最大横幅 455px (サイドバーがないときは 676px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 479px (サイドバーがないときは 700px )です。width を修正します。(デフォルトは (109px+1px)×2項目)
div#menu li の width をメニューの文字数や大きさに合わせて修正します。div#menu ul の width を ( div#menu liのwidth + 1px ) × 項目数 に修正します。div.menu の text-align: right; を削除し、 div#menu ul の margin を 0 に修正します。div#menu li の width を好きな幅にします。(例:99px)div#container 、 div#menu ul の width を ( div#menu liのwidth + 1px ) × 項目数 - 1px に修正します。* html div#container 、 div#content の width も同じだけ増減します。(例:699pxの場合1px減らします)li要素にクラス指定して、余白と背景画像の線をなしにします。menuleft クラスを指定した場合、このような指定を追記します。div#menu li.menuleft {padding: 0; background: none;}
div.menu { } div#menu ul {margin: 0; padding: 4px 0; text-align: right;} div#menu li {margin: 0; padding: 0; display: inline; background: none; line-height: 1;} div#menu a {padding: 4px 10px; letter-spacing: 1px;}
p タグにはさんだ画像は、最大横幅 533px まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 557px です。div#blogtitleのheight + div#menu liのheight × 項目数 を計算します。(デフォルトでは1項目追加ごとに30px増加)div#utility の top をその数値に修正します。p タグにはさんだ画像は、最大横幅 510px まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 546px です。32px × 項目数 + 32px (上余白5px、下余白5px、上のラインに2px、好みで余白を20px程度) で、メニューのサイズを計算します。132px (div.blogtitle の高さ120px、上余白5px、下余白5px、上線1px、下線1px) を引きます。div#utility の margin-top をその数値に修正します。p タグにはさんだ画像は、最大横幅 523px (サイドバーがないときは 769px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 553px (サイドバーがないときは 799px )です。width を修正します。(デフォルトは 100px×2項目)
div#menu li の width をメニューの文字数や大きさに合わせて修正します。div#menu ul の width を div#menu liのwidth × 項目数 に修正します。div.menu の text-align を center に div#menu ul の margin を 0 auto に、修正します。div#menu ul (div#menu liのwidth × 項目数 ※791pxに近い数値がよい) と div#menu li の width を修正します。
div#menu ul → 790px / div#menu li → 158pxdiv#menu ul → 786px / div#menu li → 131pxdiv#menu ul → 791px / div#menu li → 113pxdiv#menu ul → 784px / div#menu li → 98pxli要素にクラス指定して、背景画像の線をなしにします。menuleft クラスを指定した場合、このような指定を追記します。div#menu li.menuleft a {background-image: none;}
div.menu {padding: 0 1px;} div#menu ul {margin: 0; padding: 4px 10px 0; text-align: right;} div#menu li {margin: 0; padding: 0; display: inline; background: none; line-height: 1;} div#menu a {padding: 4px 10px; letter-spacing: 1px;}
HTMLtemplates/1column/templates/ 内にある utility.html を使用します。p タグにはさんだ画像は、最大横幅 691px まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 721px です。HTMLtemplates/1column/ 内にある utility4.html を utility.html に名前変更して使用します。p タグにはさんだ画像は、最大横幅 937px まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 967px です。p タグにはさんだ画像は、最大横幅 520px (サイドバーがないときは 770px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 550px (サイドバーがないときは 800px )です。width を修正します。(デフォルトは 100px×2項目)
div#menu li の width をメニューの文字数や大きさに合わせて修正します。div#menu ul の width を div#menu liのwidth × 項目数 に修正します。li要素にクラス指定で個別指定することによって、ぴったりさせることができます。<li class="menuright"><a href="{$freo.core.http_file}/clap">拍手画像</a></li>div#menu li.menuright {width: 116px;}
div#menu ul {margin: 0; padding: 4px 0; text-align: right;} div#menu li {margin: 0; padding: 0; display: inline; background: none; line-height: 1;} div#menu a {padding: 4px 10px; letter-spacing: 1px;}
p タグにはさんだ画像は、最大横幅 550px (サイドバーがないときは 790px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 580px (サイドバーがないときは 820px )です。#55CC11 を一括変更するとよいです。div#menu ul → 820px / div#menu li → 163pxdiv#menu ul → 816px / div#menu li → 135pxdiv#menu ul → 819px / div#menu li → 116pxdiv#menu ul → 816px / div#menu li → 101pxdiv#menu ul (806~820px内が適当)、div#menu li は好きな幅にしてください。border-right: 1px solid #FFFFFF; を追記します。p タグにはさんだ画像は、最大横幅 550px (サイドバーがないときは 790px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 580px (サイドバーがないときは 820px )です。#FF8800 #E3F3C3 #4C5C28 #669933 #99CC66 と、リンクの色(オレンジ系)#EE6600 #FF8800 を変更してください。div#menu li の width を修正します。div#menu ul と div#menu li の height 、div#menu a の line-height で高さも修正します。li要素にクラス指定で個別指定することによって、ぴったりさせることができます。<li class="menuright"><a href="{$freo.core.http_file}/clap">拍手画像</a></li>div#menu li.menuright {border: none; width: 92px;} div#menu li a img {border: none;}
p タグにはさんだ画像は、最大横幅 550px (サイドバーがないときは 790px )まではみ出さず表示できます。<p class="img_center"> ~ </p> にはさんだ場合、最大横幅は 580px (サイドバーがないときは 820px )です。#FF0088 薄いピンクの #FFDDEE を一括変換し、ブログタイトル画像を変更するとがらっと雰囲気を変えられます。div#menu li の width を修正します。div#menu ul と div#menu li の height 、div#menu a の line-height で高さも修正します。li要素にクラス指定で個別指定することによって、ぴったりさせることができます。<li class="menuright"><a href="{$freo.core.http_file}/clap">拍手画像</a></li>div#menu li.menuright {border: none; width: 94px;} div#menu li a img {border: none;}
div.blogtitle h1 {margin: 10px 5px 0; font-size: 300%; letter-spacing: 8px;} div.blogtitle a { }
* html body の text-align を修正します。右寄せは right 、左寄せは left 、中央寄せは center です。(IE6対策)div#container の margin を修正します。右寄せは 0 0 0 auto 、左寄せは 0 auto 0 0 、中央寄せは 0 auto です。
div#container に何も指定していないスキンの場合は、 div#body 、 div#blogtitle 、 div#menu 、 div#footer (またはaddress 、 div#footer p) に個別指定しているので、左右の margin を同じように修正します。div#content の width を増減します。
div#container に何も指定していないスキンの場合は、 div#body 、 div#blogtitle 、 div#menu 、 div#footer (またはaddress 、 div#footer p) に個別指定されている width を増減します。div#utility 、 div.utility dl dd input, div.utility dl dd textarea 、 table.calender の width を同じだけ増減します。div#container の width を増減します。width を検索して同じように調整します。div#utility と div#content の、 float: left; と float: right; を入れ替えます。ul.entry_information li の display: inline; を削除します。ul.entry_information → padding: 3px 8px 0;ul.entry_information li → margin: 0 0 3px;ul.entry_information li の display: inline; を削除します。ul.entry_information → padding: 4px 15px 0;ul.entry_information li → margin: 0;padding: 0 0 5px;ul.entry_information li の display: inline; を削除します。ul.entry_information li → margin: 3px 0 0;#CCCCCC ですが、何色でもよいです。(たとえば Time-B1 は #E0EEC0 など)ul.link {text-align: left;} ul.link li.link_category {padding: 3px 5px; border-top: 1px solid #CCCCCC; display: block; background: none;} ul.link li.link_tag {margin: 0 0 5px; padding: 3px 5px; border-bottom: 1px solid #CCCCCC; display: block; background: none;}
images/K/ 内に画像を用意します。div.blogtitle h1 {position: relative; height:画像の高さと上からの位置を足した数値px;} div.blogtitle a {position: absolute; top:上からの位置px; left:左からの位置px; width:画像の横幅px; height:画像の高さpx; background: url("../images/K/画像ファイル名.gif") no-repeat 0 0; text-indent: -9999em;}
a:link img, a:visited img {borderやbackgroundなど} a:hover img, a:active img {borderやbackgroundなど}
body#toppage ~ { ~ } で指定します。header.html に追記すれば、特定のページだけ同様に変更することができます。<!--{/if}--> の前に <!--{elseif $smarty.request.freo.work == 'novel'}--> id="novelpage" というように追記すれば、 body#novelpage ~ { ~ } で小説ページだけ指定ができます。div#blogtitle {display: none;} body#toppage div#blogtitle {display: block;}
images/K/ 内に画像を用意します。Basic1、Line1、Simple1 の場合、body#toppage div#blogtitle {height:高さpx; background: url("../images/K/画像ファイル名") no-repeat right bottom;}
height は padding-top のほうがよいかもしれません。images/K/ 内に画像を用意します。body#toppage div#blogtitle {background: url("../images/K/画像ファイル名") no-repeat 300px 1px;} body#toppage div.blogtitle {height:高さpx;}
images/K/ 内に画像を用意します。body#toppage div#menu {padding-top:背景画像の高さpx; background: url("../images/K/画像ファイル名") no-repeat right bottom;}
background を background: url("../images/K/○○.gif") no-repeat 5px 5px; というように修正します。div.entry h3 a , div.entry h3 a:link , div.entry h3 a:visiteddiv.entry h3 a:hover , div.entry h3 a:activediv#information div.entry h3, div#information div.information h2 ~padding をアイコンの大きさに合わせて修正します。
div.entry h3 adiv#information div.entry h3, div#information div.information h2 ~footer.html 9行目 Designed の直前に以下のように追記します。ShiPainter <a href="http://shichan.jp/" title="Shi-do">Shi-do</a> /
DynamicPalette <a href="http://wondercatstudio.com/" title="WonderCatStudio">WonderCatStudio</a> / KURAGEYA</a> の直後にこんな感じでしょうか。 / skin edit by 改造者の名前やサイト名など
/ graphics by <a href="素材屋URL" title="素材屋サイト名">素材屋サイト名</a>footer.html 9行目 </address> の直後に、以下のような記述を追記するとよいかもしれません。<p>Copyright © 2009-2010 ○○, All rights reserved.</p>footer.html 9行目にある login を変更することで変えられます。utility.html から該当項目を削除します。
<div class="utility"><div class="utility_calendar"> ~ </div></div><div class="utility"><div class="utility_category"> ~ </div></div><div class="utility"><div class="utility_search"> ~ </div></div><div class="utility"><div class="utility_page"> ~ </div></div><div class="utility"><div class="utility_links"> ~ </div></div><div class="utility"><div class="utility_user"> ~ </div></div><!--{if $plugin_entry_recentries|smarty:nodefaults}--> ~ <!--{/if}--><!--{if $plugin_comment_recentries|smarty:nodefaults}--> ~ <!--{/if}--><!--{if $plugin_trackback_recentries|smarty:nodefaults}--> ~ <!--{/if}--><div class="utility"><div class="utility_archive"> ~ </div></div><div class="utility"><div class="utility_feed"> ~ </div></div>utility.html に追記することができます。
<div class="utility_parts">
<div class="title"><h3>プロフィール例1</h3></div>
<div class="content"><div class="content2">
<p class="img_center"><img src="○○" width="○○" height="○○" alt="○○" /></p>
<p>管理人:☆☆<br />19XX年XX月XX日生。東京都在住。</p>
<ul>
<li>○○や●●が好きです。</li>
<li>今は☆☆を主に活動しています。</li>
<li><strong>◇◇に参加予定。</strong></li>
</ul>
<h4>最近のお仕事</h4>
<p><a href="○○"><img src="○○" alt="○○" width="○○" height="○○" /></a><br />□□に参加させていただきました。</p>
<p><img src="○○" width="○○" height="○○" alt="○○" /></p>
<table summary="予定表">
<tbody>
<tr><td colspan="2"> 6月予定</td></tr>
<tr><th rowspan="2">4日(土)</th><td>AAAイベント</td></tr>
<tr><td>BBBオンリーイベント</td></tr>
<tr><th>19日(日)</th><td>CCCイベント</td></tr>
</tbody>
</table>
</div></div>
</div>
<div class="utility_parts">
<div class="title"><h3>プロフィール例2</h3></div>
<div class="content"><div class="content2">
<p><img src="○○" width="○○" height="○○" alt="○○" class="img_left" /></p>
<p>管理人:☆☆<br />19XX年XX月XX日生<br />東京都在住</p>
<ul class="clear">
<li>○○や●●が好きです。</li>
<li>今は☆☆を主に活動しています。</li>
</ul>
<p>><a href="○○">仕事情報</a> ><a href="○○">同人情報</a></p>
</div></div>
</div>
{ や } を含むコードは {literal} ~ {literal} で囲まないとエラーになることに注意してください。 <div class="utility_parts">
<div class="title"><h3>ブログパーツ</h3></div>
<div class="content"><div class="content2">
<div class="utility_parts2">ブログパーツのJavaScriptコード</div>
<div class="utility_parts2">ブログパーツのJavaScriptコード</div>
</div></div>
</div>
<div class="utility_blogparts">
ブログパーツのJavaScriptコード
</div>
訪問者に教えてもらった情報(2ちゃんねる)をもとに2案を考えてみました。utility.html の132~151行(1カラム用のスキンの場合は58~77行)を以下のように書き換えます。
<div class="utility"><div class="utility_archive">
<div class="title"><h3>archive</h3></div>
<div class="content"><div class="content2">
<!--{assign var="pid" value=""}-->
<!--{foreach from=$plugin_entry_archives|smarty:nodefaults item='plugin_entry_archive' name='loop'}-->
<!--{if $pid!=$plugin_entry_archive.year}--><!--{if !$smarty.foreach.loop.first}--></ul></li></ul><!--{/if}--><ul><li><a href="{$freo.core.http_file}/entry?date={$plugin_entry_archive.year}">{$plugin_entry_archive.year}年</a><ul><!--{/if}-->
<li><a href="{$freo.core.http_file}/entry?date={$plugin_entry_archive.year}{$plugin_entry_archive.month}" title="{$plugin_entry_archive.count}件">{$plugin_entry_archive.month}月 <span class="count">({$plugin_entry_archive.count})</span></a></li>
<!--{if $smarty.foreach.loop.last}--></ul></li></ul><!--{/if}-->
<!--{assign var="pid" value=$plugin_entry_archive.year}-->
<!--{foreachelse}-->
<p>エントリーが登録されていません。</p>
<!--{/foreach}-->
</div></div>
</div></div>
<div class="utility"><div class="utility_archive">
<div class="title"><h3>archive</h3></div>
<div class="content"><div class="content2">
<table>
<!--{assign var="pid" value=""}-->
<!--{foreach from=$plugin_entry_archives|smarty:nodefaults item='plugin_entry_archive' name='loop'}-->
<!--{if $pid!=$plugin_entry_archive.year}-->
<!--{if !$smarty.foreach.loop.first}--></td></tr><!--{/if}-->
<tr><th><a href="{$freo.core.http_file}/entry?date={$plugin_entry_archive.year}">{$plugin_entry_archive.year}</a></th><td>
<!--{/if}-->
<a href="{$freo.core.http_file}/entry?date={$plugin_entry_archive.year}{$plugin_entry_archive.month}" title="{$plugin_entry_archive.count}件">{$plugin_entry_archive.month}</a>
<!--{if $smarty.foreach.loop.last}--></td></tr><!--{/if}-->
<!--{assign var="pid" value=$plugin_entry_archive.year}-->
<!--{foreachelse}-->
<tr><td>エントリーが登録されていません。</td></tr>
<!--{/foreach}-->
</table>
</div></div>
</div></div>
view/default.html をカスタマイズします。
<ul class="entry_information"> ~ </ul> を削除<!--{if $entry_associate.category}--> ~ <!--{/if}--> だけ削除<ul class="link"> の後ろに追記
<li class="link_time">{$entry.datetime|date_format:'%Y/%m/%d %H:%M'}</li><!--{if $entry_associate.category}-->
<li class="link_category"><!--{foreach from=$entry_associate.category|smarty:nodefaults key='entry_category' item='entry_category' name='loop'}-->
<a href="{$freo.core.http_file}/category/{$entry_category}" title="カテゴリー:{$freo.refer.categories[$entry_category].name}">{$freo.refer.categories[$entry_category].name}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}--><!--{if $entry_tags}-->
<li class="link_tag"><!--{foreach from=$entry_tags|smarty:nodefaults item='entry_tag' name='loop'}--><a href="{$freo.core.http_file}/entry?tag={$entry_tag|smarty:nodefaults|escape:'url'}" title="タグ:{$entry_tag}">{$entry_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}-->
page/default.html (個別テンプレートを使用している場合は page/gallery.html と page/novel.html も) をカスタマイズします。
<!--{if $page_tags}--> ~ <!--{/if}--> を削除<ul class="link"> の後ろに追記
<!--{if $page_tags}--><li class="link_tag"><!--{foreach from=$page_tags|smarty:nodefaults item='page_tag' name='loop'}-->
<a href="{$freo.core.http_file}/page?tag={$page_tag|smarty:nodefaults|escape:'url'}" title="タグ:{$page_tag}">{$page_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}-->default/default.html をカスタマイズします。
トップページの表示を変更している場合は entry/default.html と category/default.html をかわりにカスタマイズします。
<ul class="entry_information"> ~ </ul> を削除 ( entry/default.html 、 category/default.html は16~24行 )<!--{if $entry_associates[$entry.id].category}--> ~ <!--{/if}--> だけ削除<ul class="link"> の後ろに追記
<li class="link_time">{$entry.datetime|date_format:'%Y/%m/%d %H:%M'}</li><!--{if $entry_associates[$entry.id].category}-->
<li class="link_category"><!--{foreach from=$entry_associates[$entry.id].category|smarty:nodefaults key='entry_category' item='entry_category' name='loop'}-->
<a href="{$freo.core.http_file}/category/{$entry_category}" title="カテゴリー:{$freo.refer.categories[$entry_category].name}">{$freo.refer.categories[$entry_category].name}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}--><!--{if $entry_tags[$entry.id]}-->
<li class="link_tag"><!--{foreach from=$entry_tags[$entry.id]|smarty:nodefaults item='entry_tag' name='loop'}--><a href="{$freo.core.http_file}/entry?tag={$entry_tag|smarty:nodefaults|escape:'url'}" title="タグ:{$entry_tag}">{$entry_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}-->admin/entry_preview.html をカスタマイズします。
<ul class="entry_information"> ~ </ul> を削除<!--{if $entry_associate.category}--> ~ <!--{/if}--> だけ削除<ul class="link"> の後ろに追記
<li class="link_time">{$entry.datetime|date_format:'%Y/%m/%d %H:%M'}</li><!--{if $entry_associate.category}-->
<li class="link_category"><!--{foreach from=$entry_associate.category|smarty:nodefaults key='entry_category' item='entry_category' name='loop'}-->
<a href="#">{$freo.refer.categories[$entry_category].name}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}--><!--{if $entry_tags}-->
<li class="link_tag"><!--{foreach from=$entry_tags|smarty:nodefaults item='entry_tag' name='loop'}--><a href="#">{$entry_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}-->
admin/page_preview.html をカスタマイズします。
<!--{if $page_tags}--> ~ <!--{/if}--> を削除<ul class="link"> の後ろに追記
<!--{if $page_tags}--><li class="link_tag"><!--{foreach from=$page_tags|smarty:nodefaults item='page_tag' name='loop'}-->
<a href="#">{$page_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}-->
<!--{/foreach}--></li><!--{/if}-->このかたまりごとに順序を変えたり、一部削除したりできます。
view/default.html をカスタマイズします。
<li class="entry_time"> ~ </li><li class="link_time"> ~ </li><!--{if $entry_associate.category}--> ~ <!--{/if}--><!--{if $entry_tags}--> ~ <!--{/if}--><li class="link_url"> ~ </li><li class="link_user"> ~ </li><!--{if $entry.comment != 'closed'}--> ~ <!--{/if}--><!--{if $entry.trackback != 'closed'}--> ~ <!--{/if}--><!--{if $freo.user.authority == 'root' or $freo.user.id == $entry.user_id}--> ~ <!--{/if}-->page/default.html (個別テンプレートを使用している場合は page/gallery.html と page/novel.html も) をカスタマイズします。
<!--{if $page_tags}--> ~ <!--{/if}--><li class="link_url"> ~ </li><li class="link_user"> ~ </li><!--{if $freo.user.authority == 'root' or $freo.user.id == $page.user_id}--> ~ <!--{/if}-->default/default.html をカスタマイズします。entry/default.html と category/default.html をかわりにカスタマイズします。
<li class="entry_time"> ~ </li><li class="link_time"> ~ </li><!--{if $entry_associates[$entry.id].category}--> ~ <!--{/if}--><!--{if $entry_tags[$entry.id]}--> ~ <!--{/if}--><li class="link_url"> ~ </li><li class="link_user"> ~ </li><!--{if $entry.comment != 'closed'}--> ~ <!--{/if}--><!--{if $entry.trackback != 'closed'}--> ~ <!--{/if}--><!--{if $freo.user.authority == 'root' or $freo.user.id == $entry.user_id}--> ~ <!--{/if}-->admin/entry_preview.html をカスタマイズします。
<li class="entry_time"> ~ </li><li class="link_time"> ~ </li><!--{if $entry_associate.category}--> ~ <!--{/if}--><!--{if $entry_tags}--> ~ <!--{/if}--><li class="link_url"> ~ </li>admin/page_preview.html をカスタマイズします。
<!--{if $page_tags}--> ~ <!--{/if}--><li class="link_url"> ~ </li>header.html 32行を修正します。 <ul id="navi"> ~ </ul>
<li><a href="{$freo.core.http_file}">トップページ</a></li><li><a href="{$freo.core.https_file}/login">ログイン</a></li><li><a href="{$freo.core.http_file}/entry">ブログ</a></li><li><a href="{$freo.core.http_file}/page/gallery">ギャラリー</a></li><li><a href="{$freo.core.http_file}/page/novel">小説</a></li><li><a href="{$freo.core.http_file}/clap">拍手</a></li><li><a href="任意のURL">○○</a></li>li要素にクラス指定をして個別指定してください。view/default.html からページの最初と最後の近くにある以下の記述を削除します。
<div id="content">
</div>
{include file='utility.html'}
page/default.html (個別テンプレートを使用している場合は page/gallery.html と page/novel.html も) をカスタマイズします。<!--{if $page_tags}--> ~ <!--{/if}--> を以下のように書き換えます。
<ul class="entry_information">
<li class="entry_time">{$page.datetime|date_format:'<span class="year">%Y</span><span class="month"><span>/</span>%m</span><span class="date"><span>/</span>%d</span><span class="hour">%H:%M</span>'}</li>
<!--{if $page_tags}-->
<li class="entry_tag">タグ:<!--{foreach from=$page_tags|smarty:nodefaults item='page_tag' name='loop'}--> <a href="{$freo.core.http_file}/page?tag={$page_tag|smarty:nodefaults|escape:'url'}">{$page_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}--><!--{/foreach}--></li>
<!--{/if}-->
</ul>
admin/page_preview.html をカスタマイズします。<!--{if $page_tags}--> ~ <!--{/if}--> を以下のように書き換えます。
<ul class="entry_information">
<li class="entry_time">{$page.datetime|date_format:'<span class="year">%Y</span><span class="month"><span>/</span>%m</span><span class="date"><span>/</span>%d</span><span class="hour">%H:%M</span>'}</li>
<!--{if $page_tags}-->
<li class="entry_tag">タグ:<!--{foreach from=$page_tags|smarty:nodefaults item='page_tag' name='loop'}--> <a href="#">{$page_tag}</a><!--{if !$smarty.foreach.loop.last}-->,<!--{/if}--><!--{/foreach}--></li>
<!--{/if}-->
</ul>
2011/5/8の更新で、インフォメーション以外のファイルの表示を以下のように変更しました。
| 添付ファイル | 添付ファイルのイメージ | ファイルの説明 | サムネイル | 各記事の表示結果 |
|---|---|---|---|---|
| 画像 | 登録の有無に関わらず | 登録の有無に関わらず | 作成せず | 「添付ファイル」が表示される |
| 自動作成 | 「サムネイル」が表示される サムネイルをクリックすると「添付ファイル」が表示される |
|||
| 画像以外 | 登録せず | 登録せず | - | 「ファイル名」に「添付ファイル」へのリンク |
| 登録 | - | 「ファイルの説明」に「添付ファイル」へのリンク | ||
| 登録 | 登録の有無に関わらず | - | 「添付ファイルのイメージ」に「添付ファイル」へのリンク |
デフォルトのスキンの場合、添付ファイルやサムネイルを優先して記事に表示します。
→ freo.jp (サムネイル画像の手動登録について)
→ freo.jp (添付ファイルのイメージやサムネイルを各記事に表示しない)
デフォルトのスキンと同じような表示に戻したい場合は以下のようにカスタマイズしてください。
view/default.html をカスタマイズします。
<!--{if $entry_thumbnail}--> ~ <!--{/if}--> を以下のように書き換えます。
<!--{if $entry.file and $entry.image}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_images/{$entry.id}/{$entry.image}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" width="{$entry_image.width}" height="{$entry_image.height}" /></a></p>
<!--{elseif $entry_thumbnail}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_thumbnails/{$entry.id}/{$entry.file}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" width="{$entry_thumbnail.width}" height="{$entry_thumbnail.height}" /></a></p>
<!--{elseif $entry.file and $entry_file.width and $entry_file.height}-->
<p><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" width="{$entry_file.width}" height="{$entry_file.height}" /></p>
<!--{elseif $entry.file}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}">{$entry.memo|default:$entry.file}</a></p>
<!--{/if}-->
page/default.html (個別テンプレートを使用している場合は page/gallery.html と page/novel.html も) をカスタマイズします。
<!--{if $page_thumbnail}--> ~ <!--{/if}--> を以下のように書き換えます。
<!--{if $page.file and $page.image}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_files/{$page.id}/{$page.file}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_images/{$page.id}/{$page.image}" alt="{$page.memo|default:$page.file}" title="{$page.memo|default:$page.file}" width="{$page_image.width}" height="{$page_image.height}" /></a></p>
<!--{elseif $page_thumbnail}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_files/{$page.id}/{$page.file}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_thumbnails/{$page.id}/{$page.file}" alt="{$page.memo|default:$page.file}" title="{$page.memo|default:$page.file}" width="{$page_thumbnail.width}" height="{$page_thumbnail.height}" /></a></p>
<!--{elseif $page.file and $page_file.width and $page_file.height}-->
<p><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_files/{$page.id}/{$page.file}" alt="{$page.memo|default:$page.file}" title="{$page.memo|default:$page.file}" width="{$page_file.width}" height="{$page_file.height}" /></p>
<!--{elseif $page.file}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}page_files/{$page.id}/{$page.file}">{$page.memo|default:$page.file}</a></p>
<!--{/if}-->default/default.html をカスタマイズします。
トップページの表示を変更している場合は entry/default.html と category/default.html をかわりにカスタマイズします。
<!--{if $entry_thumbnails[$entry.id]}--> ~ <!--{/if}--> を以下のように書き換えます。entry/default.html 、 category/default.html は35~43行 )
<!--{if $entry.file and $entry.image}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_images/{$entry.id}/{$entry.image}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" width="{$entry_images[$entry.id].width}" height="{$entry_images[$entry.id].height}" /></a></p>
<!--{elseif $entry_thumbnails[$entry.id]}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}"><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_thumbnails/{$entry.id}/{$entry.file}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" width="{$entry_thumbnails[$entry.id].width}" height="{$entry_thumbnails[$entry.id].height}" /></a></p>
<!--{elseif $entry.file and $entry_files[$entry.id].width and $entry_files[$entry.id].height}-->
<p><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" width="{$entry_files[$entry.id].width}" height="{$entry_files[$entry.id].height}" /></p>
<!--{elseif $entry.file}-->
<p><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$entry.id}/{$entry.file}">{$entry.memo|default:$entry.file}</a></p>
<!--{/if}-->admin/entry_preview.html をカスタマイズします。
<!--{if $entry_path.thumbnail}--> ~ <!--{/if}--> を以下のように書き換えます。
<!--{if $entry_path.file and $entry_path.image}-->
<p><a href="#"><img src="{$entry_path.image}" alt="" width="{$entry_image.width}" height="{$entry_image.height}" /></a></p>
<!--{elseif $entry_path.thumbnail}-->
<p><a href="#"><img src="{$entry_path.thumbnail}" alt="" width="{$entry_thumbnail.width}" height="{$entry_thumbnail.height}" /></a></p>
<!--{elseif $entry_path.file and $entry_file.width and $entry_file.height}-->
<p><img src="{$entry_path.file}" alt="" width="{$entry_file.width}" height="{$entry_file.height}" /></p>
<!--{elseif $entry_path.file}-->
<p><a href="#">{$entry.memo|default:$entry.file}</a></p>
<!--{/if}-->admin/page_preview.html をカスタマイズします。
<!--{if $page_path.thumbnail}--> ~ <!--{/if}--> を以下のように書き換えます。
<!--{if $page_path.file and $page_path.image}-->
<p><a href="#"><img src="{$page_path.image}" alt="" width="{$page_image.width}" height="{$page_image.height}" /></a></p>
<!--{elseif $page_path.thumbnail}-->
<p><a href="#"><img src="{$page_path.thumbnail}" alt="" width="{$page_thumbnail.width}" height="{$page_thumbnail.height}" /></a></p>
<!--{elseif $page_path.file and $page_file.width and $page_file.height}-->
<p><img src="{$page_path.file}" alt="" width="{$page_file.width}" height="{$page_file.height}" /></p>
<!--{elseif $page_path.file}-->
<p><a href="#">{$page.memo|default:$page.file}</a></p>
<!--{/if}-->