本文整理汇总了PHP中auto_p函数的典型用法代码示例。如果您正苦于以下问题:PHP auto_p函数的具体用法?PHP auto_p怎么用?PHP auto_p使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了auto_p函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (isset($posts) && count($posts) > 0) {
?>
<?php
foreach ($posts as $k => $v) {
?>
<div class="row row-blog">
<h2 class="h3"><a href="/blog/view/<?php
echo $v->ID;
?>
"><?php
echo $v->title;
?>
</a></h2>
<div class="desc">
<?php
echo auto_p(auto_link($v->content));
?>
</div>
<p class="opts">
<a href="/blog/view/<?php
echo $v->ID;
?>
#comments"><?php
echo $v->comment_count;
?>
comment<?php
echo $v->comment_count == 1 ? '' : 's';
?>
</a> |
Written <strong><?php
echo date('d.M.Y', $v->date_posted);
示例2: time
?>
</span> people</strong> <?php
echo time() <= $event_detail->event_end ? ' attending so far' : ' said they attended';
?>
. <a href="javascript:void(0);" id="toggle-attendees" class="show">Show »</a></span>
</p>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="desc">
<?php
echo auto_p(auto_link(escape($event_detail->event_desc)));
?>
<hr/>
<b>Your host(s):</b><br/>
<table cellpadding="5" cellspacing="0" border="0">
<tr>
<?php
foreach ($admins as $admin_user) {
echo '<td style="padding-right:5px;font-size:11px">';
echo '<a href="/user/view/' . $admin_user->ID . '">' . $admin_user->full_name . '</a></td>';
}
?>
</tr>
</table>
示例3: escape
?>
</strong> by <strong><?php
echo $uname;
?>
</strong>
<?php
echo !empty($comment->source) ? "via " . escape($comment->source) : "";
?>
(<?php
echo escape($type);
?>
)
</p>
<div class="desc">
<?php
echo auto_p(escape($comment->comment));
?>
</div>
<?php
if ($admin) {
?>
<a class="btn-small delete-evt-commment" id="<?php
echo $comment->ID . '_' . $comment->event_id;
?>
" href="#">delete</a>
<?php
}
?>
</div>
<div class="clear"></div>
</div>
示例4: escape
?>
</strong>
<?php
echo !empty($v->source) ? "via " . escape($v->source) : "";
?>
<?php
if ($v->private == 1) {
?>
<span class="private">Private</span>
<?php
}
?>
</p>
<div class="desc">
<?php
echo auto_p(escape($v->comment));
?>
</div>
<p class="admin">
<?php
if ($detail->allow_comments && ($v->user_id == $user_id && time() < $v->date_made + $this->config->item('comment_edit_time'))) {
?>
<a class="btn-small edit-talk-comment-btn" href="#" id="<?php
echo $v->ID;
?>
">Edit</a>
<?php
}
?>
<?php
if (user_is_admin() || user_is_admin_event($detail->eid)) {
示例5: escape
- <strong><?php
echo $this->timezone->formattedEventDatetimeFromUnixtime($event->event_end, $event->event_tz_cont . '/' . $event->event_tz_place, 'd.M.Y');
?>
</strong> at <strong><?php
echo escape($event->event_loc);
?>
</strong>
<?php
}
?>
</p>
</div>
<div class="text text-body">
<div class="desc">
<?php
echo auto_p(escape(word_limiter($event->event_desc, 20)));
?>
<?php
if (isset($event->eventTags) && !empty($event->eventTags)) {
$tags = array();
foreach ($event->eventTags as $tag) {
$tag = escape($tag->tag_value);
$tags[] = '<a href="/event/tag/' . $tag . '">' . $tag . '</a>';
}
echo '<b>tagged</b> ' . implode(', ', $tags);
}
?>
</div>
<p class="opts">
<a href="/event/view/<?php
echo $event->ID;
示例6: foreach
<?php
echo $rstr;
?>
</p>
<div class="desc">
<span align="left"><?php
if (!empty($speaker_img)) {
foreach ($speaker_img as $uid => $img) {
echo '<a href="/user/view/' . $uid . '"><img src="' . $img . '" align="left" border="0" style="margin-right:10px;" height="50" width="50"></a>';
}
}
?>
</span>
<?php
echo auto_p(auto_link(escape_allowing_presentation_tags($detail->talk_desc)));
?>
</div>
<p class="quicklink">
Quicklink: <strong><a href="<?php
echo $this->config->site_url();
echo $detail->tid;
?>
"><?php
echo $this->config->site_url();
echo $detail->tid;
?>
</a></strong>
<?php
if ($admin) {
示例7: while
' . "\n";
// The Loop
while (have_posts()) {
the_post();
$query .= '(';
$query .= 'NULL, ';
# id
$query .= '\'' . mysql_real_escape_string($post->post_title) . '\', ';
# title
$query .= '\'' . mysql_real_escape_string($post->post_name) . '\', ';
# alias
$query .= '14, ';
# catid
$query .= '1, ';
# published
$query .= '\'' . mysql_real_escape_string(auto_p($post->post_content)) . '\', ';
# introtext
$query .= '\'\', ';
# fulltext
$query .= 'NULL, ';
# video
$query .= 'NULL, ';
# gallery
$query .= '\'[]\', ';
# extra_fields
$query .= '\'\', ';
# extra_fields_search
$query .= '\'' . mysql_real_escape_string($post->post_date) . '\', ';
# created
$query .= '311, ';
# created_by
示例8: escape
" class="row row-blog-comment<?php
echo $class;
?>
">
<p class="info">
<strong><?php
echo escape($v->title);
?>
</strong> by <strong><?php
echo $uname;
?>
</strong>
</p>
<div class="desc">
<?php
echo auto_p(escape(trim($v->content)));
?>
</div>
<?php
if (user_is_admin()) {
?>
<p class="admin">
<a class="btn-small" href="#" onClick="delBlogComment(<?php
echo $v->ID;
?>
,<?php
echo $bid;
?>
);return false;">Delete</a>
</p>
<?php
示例9: escape
?>
</a></strong> (<?php
echo escape($detail->lang_name);
?>
)
</p>
<p class="rating">
<?php
echo $rstr;
?>
</p>
<div class="desc">
<?php
echo auto_p(auto_link(escape($detail->talk_desc)));
?>
</div>
<p class="quicklink">
Quicklink: <strong><a href="<?php
echo $this->config->site_url();
echo $detail->tid;
?>
"><?php
echo $this->config->site_url();
echo $detail->tid;
?>
</a></strong>
</p>