<commit_before><?php use_helper('opDiary', 'Text') ?>

<?php decorate_with('layoutB') ?>
<?php slot('op_sidemenu', get_component('diary', 'sidemenu', array('member' => $member, 'year' => date('Y', strtotime($diary->created_at)), 'month' => date('n', strtotime($diary->created_at))))) ?>

<?php /* {{{ diaryDetailBox */ ?>
<div class="dparts diaryDetailBox"><div class="parts">
<div class="partsHeading"><h3><?php echo __('Diary of %1%', array('%1%' => $member->name)) ?></h3>
<p class="public">(<?php echo $diary->getPublicFlagLabel() ?>)</p></div>

<?php if ($diary->getPrevious($myMemberId) || $diary->getNext($myMemberId)): ?>
<div class="block prevNextLinkLine">
<?php if ($diary->getPrevious($myMemberId)): ?>
<p class="prev"><?php echo link_to(__('Previous Diary'), 'diary_show', $diary->getPrevious($myMemberId)) ?></p>
<?php endif; ?>
<?php if ($diary->getNext($myMemberId)): ?>
<p class="next"><?php echo link_to(__('Next Diary'), 'diary_show', $diary->getNext($myMemberId)) ?></p>
<?php endif; ?>
</div>
<?php endif; ?>

<dl>
<dt><?php echo nl2br(op_format_date($diary->created_at, 'XDateTimeJaBr')) ?></dt>
<dd>
<div class="title">
<p class="heading"><?php echo $diary->title; ?></p>
</div>
<div class="body">
<?php if ($diary->has_images): ?>
<?php $images = $diary->getDiaryImagesJoinFile() ?>
<ul class="photo">
<?php foreach ($images as $image): ?>
<li><a href="<?php echo sf_image_path($image->File) ?>" target="_blank"><?php echo image_tag_sf_image($image->File, array('size' => '120x120')) ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo op_url_cmd(op_decoration(nl2br($diary->body))) ?>
</div>
<!--Like Plugin -->
<div class="like" style="display: none;">
<span class="like-wrapper">
<?php if ($diary->member_id !== $myMemberId): ?>
<a><span class="like-post" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D" member-id="<?php echo $diary->member_id ?>"><i class="icon-thumbs-up"></i>&nbsp;&nbsp;</span></a>
<?php endif; ?>
<a><span class="like-cancel" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D" style="display: none;">いいね！を取り消す&nbsp;</span></a>
<a><span class="like-list" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D">いいね！</span></a>
<div class="like-list-member" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D"></div>
</span>
</div>
</dd>
</dl>
<?php if ($diary->member_id === $myMemberId): ?>
<div class="operation">
<form action="<?php echo url_for('diary_edit', $diary) ?>">
<ul class="moreInfo button">
<li><input type="submit" class="input_submit" value="<?php echo __('Edit this diary') ?>" /></li>
</ul>
</form>
</div>
<?php endif; ?>
</div></div>
<?php /* }}} */ ?>

<?php include_component('diaryComment', 'list', array('diary' => $diary)) ?>

<?php if ($myMemberId): ?>
<?php
$form->getWidget('body')->setAttribute('rows', 8);
$form->getWidget('body')->setAttribute('cols', 40);
<commit_msg>Commit before editing.<commit_after><?php use_helper('opDiary', 'Text') ?>

<?php decorate_with('layoutB') ?>
<?php slot('op_sidemenu', get_component('diary', 'sidemenu', array('member' => $member, 'year' => date('Y', strtotime($diary->created_at)), 'month' => date('n', strtotime($diary->created_at))))) ?>

<?php /* {{{ diaryDetailBox */ ?>
<div class="dparts diaryDetailBox"><div class="parts">
<div class="partsHeading"><h3><?php echo __('Diary of %1%', array('%1%' => $member->name)) ?></h3>
<p class="public">(<?php echo $diary->getPublicFlagLabel() ?>)</p></div>

<?php if ($diary->getPrevious($myMemberId) || $diary->getNext($myMemberId)): ?>
<div class="block prevNextLinkLine">
<?php if ($diary->getPrevious($myMemberId)): ?>
<p class="prev"><?php echo link_to(__('Previous Diary'), 'diary_show', $diary->getPrevious($myMemberId)) ?></p>
<?php endif; ?>
<?php if ($diary->getNext($myMemberId)): ?>
<p class="next"><?php echo link_to(__('Next Diary'), 'diary_show', $diary->getNext($myMemberId)) ?></p>
<?php endif; ?>
</div>
<?php endif; ?>

<dl>
<dt><?php echo nl2br(op_format_date($diary->created_at, 'XDateTimeJaBr')) ?></dt>
<dd>
<div class="title">
<p class="heading"><?php echo $diary->title; ?></p>
</div>
<div class="body">
<?php if ($diary->has_images): ?>
<?php $images = $diary->getDiaryImagesJoinFile() ?>
<ul class="photo">
<?php foreach ($images as $image): ?>
<li><a href="<?php echo sf_image_path($image->File) ?>" target="_blank"><?php echo image_tag_sf_image($image->File, array('size' => '120x120')) ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo op_url_cmd(op_decoration(nl2br($diary->body))) ?>
</div>
<!--Like Plugin -->
<div class="like" style="display: none;">
<span class="like-wrapper">
<?php if ($diary->member_id !== $myMemberId): ?>
<a><span class="like-post" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D" member-id="<?php echo $diary->member_id ?>">いいね！</span></a>
<?php endif; ?>
<a><span class="like-cancel" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D" style="display: none;">いいね！を取り消す&nbsp;</span></a>
<a><span class="like-list" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D"></span></a><span></span>
<div class="like-list-member" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D"></div>
<span class="like-friend-list" data-like-id="<?php echo $diary->getId() ?>" data-like-target="D"></span>
</span>
</div>
</dd>
</dl>
<?php if ($diary->member_id === $myMemberId): ?>
<div class="operation">
<form action="<?php echo url_for('diary_edit', $diary) ?>">
<ul class="moreInfo button">
<li><input type="submit" class="input_submit" value="<?php echo __('Edit this diary') ?>" /></li>
</ul>
</form>
</div>
<?php endif; ?>
</div></div>
<?php /* }}} */ ?>

<?php include_component('diaryComment', 'list', array('diary' => $diary)) ?>

<?php if ($myMemberId): ?>
<?php
$form->getWidget('body')->setAttribute('rows', 8);
$form->getWidget('body')->setAttribute('cols', 40);

{'fraction_non_alphanumeric': 0.27589119783747257, 'fraction_numerical': 0.00506842372022301, 'mean_word_length': 7.043478260869565, 'pattern_counts': {'":': 0, '<': 212, '<?xml version=': 0, '>': 279, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1787998', 'n_tokens_mistral': 2180, 'n_tokens_neox': 2202, 'n_words': 435}