예제 #1
0
        echo sf_image_path($image->File);
        ?>
" target="_blank"><?php 
        echo image_tag_sf_image($image->File, array('size' => '120x120'));
        ?>
</a></li>
<?php 
    }
    ?>
</ul>
<?php 
}
?>
<p class="text">
<?php 
echo op_url_cmd(nl2br($communityTopic->getBody()));
?>
</p>
</div>
</dd>
</dl>
<?php 
if ($communityTopic->isEditable($sf_user->getMemberId())) {
    ?>
<div class="operation">
<form action="<?php 
    echo url_for('communityTopic_edit', $communityTopic);
    ?>
" method="get">
<ul class="moreInfo button">
<li><input class="input_submit" type="submit" value="<?php 
예제 #2
0
use_helper('Date', 'opCommunityTopic');
?>

<?php 
$body = '';
$images = $communityEvent->getImages();
if (count($images)) {
    $body .= '<ul class="photo">';
    foreach ($images as $image) {
        $body .= '<li><a href="' . sf_image_path($image->File) . '" target="_blank">' . image_tag_sf_image($image->File, array('size' => '120x120')) . '</a></li>';
    }
    $body .= '</ul>';
}
$body .= nl2br($communityEvent->getBody());
$list = array('Writer' => op_community_topic_link_to_member($communityEvent->getMember()), 'Name' => $communityEvent->getName(), 'Open date' => op_format_date($communityEvent->getOpenDate(), 'D') . ($communityEvent->getOpenDate() ? ' ' . $communityEvent->getOpenDateComment() : ''), 'Area' => op_url_cmd($communityEvent->getArea()), 'Body' => op_url_cmd($body), 'Application deadline' => op_format_date($communityEvent->getApplicationDeadline(), 'D'), 'Capacity' => $communityEvent->getCapacity(), 'Count of Member' => $communityEvent->getCommunityEventMember()->count());
if ($list['Count of Member']) {
    $list['Count of Member'] .= '(' . link_to(__('See Member List'), '@communityEvent_memberList?id=' . $communityEvent->getId()) . ')';
}
$i18nlist = array();
foreach ($list as $key => $value) {
    $i18nlist[__($key, array(), 'community_event_form')] = $value;
}
$options = array('title' => '[' . $community->getName() . '] ' . __('Event'), 'list' => $i18nlist);
op_include_parts('listBox', 'communityEvent', $options);
?>


<?php 
if ($communityEvent->isEditable($sf_user->getMemberId())) {
    ?>
예제 #3
0
            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 
            }
            ?>
</ul>
<?php 
        }
        ?>
<p class="text">
<?php 
        echo op_url_cmd(nl2br($comment->body));
        ?>
</p>
</div>
</dd>
</dl>
<?php 
    }
    ?>
</div></div>
<?php 
    /* }}} */
}
예제 #4
0
end_slot();
?>

<?php 
$list = array(__('%community% Name', array('%community%' => $op_term['community']->titleize())) => $community->getName(), __('%community% Category', array('%community%' => $op_term['community']->titleize())) => $community->getCommunityCategory(), __('Date Created') => op_format_date($community->getCreatedAt(), 'D'), __('Administrator') => link_to($communityAdmin->getName(), '@member_profile?id=' . $communityAdmin->getId()));
$subAdminCaption = '';
foreach ($communitySubAdmins as $m) {
    $subAdminCaption .= "<li>" . link_to($m->getName(), '@member_profile?id=' . $m->getId()) . "</li>\n";
}
if ($subAdminCaption) {
    $list[__('Sub Administrator')] = '<ul>' . $subAdminCaption . '</ul>';
}
$list[__('Count of Members')] = $community->countCommunityMembers();
foreach ($community->getConfigs() as $key => $config) {
    if ('%community% Description' === $key) {
        $list[__('%community% Description', array('%community%' => $op_term['community']->titleize()), 'form_community')] = op_url_cmd(nl2br($community->getConfig('description')));
    } else {
        $list[__($key, array(), 'form_community')] = $config;
    }
}
$list[__('Register policy', array(), 'form_community')] = __($community->getRawValue()->getRegisterPolicy());
$options = array('title' => __('%community%', array('%community%' => $op_term['community']->titleize())), 'list' => $list);
op_include_parts('listBox', 'communityHome', $options);
?>

<ul>
<?php 
if ($isEditCommunity) {
    ?>
<li><?php 
    echo link_to(__('Edit this %community%'), 'community/edit?id=' . $community->getId());
예제 #5
0
    echo date('Y-m-d (D)', strtotime($item['target_date']));
    ?>
</div>
<div class="kakiage_updated_at">(<?php 
    echo __('Updated at');
    ?>
: <?php 
    echo op_format_date($item['updated_at'], 'XDateTimeJa');
    ?>
)</div>
<div class="editLink"><?php 
    echo link_to(__('Edit'), '@kakiage_edit_date?' . strftime('year=%Y&month=%m&day=%d', strtotime($item['target_date'])));
    ?>
</div>
<div class="kakiage_body"><?php 
    echo op_url_cmd(op_decoration(nl2br($item['body'])));
    ?>
</div>
</div>
<?php 
}
?>

</div>

<div class="parts">
<?php 
echo link_to(__('Index'), '@kakiage_index');
?>
</div>
</div>
예제 #6
0
    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 
    }
    ?>
</ul>
<?php 
}
echo op_url_cmd(op_decoration(nl2br($diary->body)));
?>
</div>
</dd>
</dl>
<?php 
if ($diary->member_id === $sf_user->getMemberId()) {
    ?>
<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');
예제 #7
0
                echo sf_image_path($image->File);
                ?>
" target="_blank"><?php 
                echo image_tag_sf_image($image->File, array('size' => '120x120'));
                ?>
</a></li>
<?php 
            }
            ?>
</ul>
<?php 
        }
        ?>
<p class="text">
<?php 
        echo op_url_cmd(nl2br($comment->getBody()));
        ?>
</p>
</div>
</dd>
</dl>
<?php 
    }
    ?>

<?php 
    echo $pagerNavi;
    ?>

</div>
</div>
예제 #8
0
        ?>
<li><a href="<?php 
        ?>
<?php// echo sf_image_path($image->File) ?>" target="_blank"><?php 
        ?>
<?php// echo image_tag_sf_image($image->File, array('size' => '120x120')) ?></a></li>
<?php 
    }
    ?>
</ul>
<?php 
}
?>
<p class="text">
<?php 
echo op_url_cmd(op_decoration(nl2br($bbs->body)));
?>
</p>
</div>
</dd>
</dl>
<?php 
if ($bbs->member_id === $sf_user->getMemberId()) {
    ?>
<div class="operation">
<form action="<?php 
    echo url_for('bbs_edit', $bbs);
    ?>
">
<ul class="moreInfo button">
<li><input type="submit" class="input_submit" value="<?php