• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bp_the_topic_title函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中bp_the_topic_title函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_the_topic_title函数的具体用法?PHP bp_the_topic_title怎么用?PHP bp_the_topic_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了bp_the_topic_title函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: bp_the_topic_css_class

			<tr class="<?php 
        bp_the_topic_css_class();
        ?>
">
				<td class="td-title">
					<a class="topic-title" href="<?php 
        bp_the_topic_permalink();
        ?>
" title="<?php 
        _e('Permanent link to this post', 'wplms_modern');
        ?>
">

						<?php 
        bp_the_topic_title();
        ?>

					</a>

					<p class="topic-meta">
						<span class="topic-by"><?php 
        /* translators: "started by [poster] in [forum]" */
        printf(__('Started by %1$s', 'wplms_modern'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
        ?>
</span>

						<?php 
        if (!bp_is_group_forum()) {
            ?>
开发者ID:nikitansk,项目名称:devschool,代码行数:29,代码来源:forums-loop.php


示例2: bp_forum_topic_action

	<form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form">

		<div class="pagination no-ajax">

			<div id="post-count" class="pag-count">
				<?php bp_the_topic_pagination_count() ?>
			</div>

			<div class="pagination-links" id="topic-pag">
				<?php bp_the_topic_pagination() ?>
			</div>

		</div>

		<div id="topic-meta">
			<h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3>
			<a class="button" href="<?php bp_forum_permalink() ?>/">&larr; <?php _e( 'Group Forum', 'buddypress' ) ?></a> &nbsp; <a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a>

			<div class="admin-links">
				<?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
					<?php bp_the_topic_admin_links() ?>
				<?php endif; ?>

				<?php do_action( 'bp_group_forum_topic_meta' ); ?>
			</div>
		</div>

		<?php do_action( 'bp_before_group_forum_topic_posts' ) ?>

		<ul id="topic-post-list" class="item-list">
			<?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:topic.php


示例3: bp_group_active_forum_topics

function bp_group_active_forum_topics($total_topics = 3, $group = false)
{
    global $groups_template, $forum_template;
    if (!$group) {
        $group =& $groups_template->group;
    }
    $forum_id = groups_get_groupmeta($group->id, 'forum_id');
    if ($forum_id && $forum_id != '') {
        if (function_exists('bp_forums_setup')) {
            $latest_topics = bp_forums_get_topics($forum_id, $total_topics, 1);
            if ($latest_topics) {
                ?>
				<ul class="item-list" id="recent-forum-topics"><?php 
                $counter = 0;
                foreach ($latest_topics as $topic) {
                    $alt = $counter % 2 == 1 ? ' class="alt"' : '';
                    $forum_template->topic = (object) $topic;
                    ?>
					
					<li<?php 
                    echo $alt;
                    ?>
>
						<div class="avatar">
							<?php 
                    bp_the_topic_poster_avatar();
                    ?>
						</div>

						<a href="<?php 
                    bp_the_topic_permalink();
                    ?>
" title="<?php 
                    bp_the_topic_title();
                    ?>
 - <?php 
                    _e('Permalink', 'buddypress');
                    ?>
"><?php 
                    bp_the_topic_title();
                    ?>
</a> 
						<span class="small">- <?php 
                    bp_the_topic_total_post_count();
                    ?>
 </span>
						<p><span class="activity"><?php 
                    echo sprintf(__('updated %s ago', 'buddypress'), bp_the_topic_time_since_last_post(false));
                    ?>
</span></p>
				
						<div class="latest-post">
							<?php 
                    _e('Latest by', 'buddypress');
                    ?>
 <?php 
                    bp_the_topic_last_poster_name();
                    ?>
:
							<?php 
                    bp_the_topic_latest_post_excerpt();
                    ?>
						</div>
					</li>
					<?php 
                    $counter++;
                    ?>
					
				<?php 
                }
                ?>
				</ul>
				<?php 
            } else {
                ?>
				<div id="message" class="info">
					<p><?php 
                _e('There are no active forum topics for this group', 'buddypress');
                ?>
</p>
				</div>
			<?php 
            }
        }
    }
}
开发者ID:alvaropereyra,项目名称:shrekcms,代码行数:86,代码来源:bp-groups-templatetags.php


示例4: _e

				<th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
				<th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>

				<?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>

			</tr>
		</thead>

		<tbody>

			<?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>

			<tr class="<?php bp_the_topic_css_class() ?>">
				<td class="td-title">
					<a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
						<?php bp_the_topic_title() ?>
					</a>
				</td>
				<td class="td-poster">
					<a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
					<div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
				</td>

				<?php if ( !bp_is_group_forum() ) : ?>
					<td class="td-group">
						<a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
						<div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div>
					</td>
				<?php endif; ?>

				<td class="td-postcount">
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:forums-loop.php


示例5: bp_the_topic_admin_links

				<div class="admin-links"><?php bp_the_topic_admin_links() ?></div>
			<?php endif; ?>
		</div>

		<?php if ( bp_group_is_member() ) : ?>

			<?php if ( bp_is_edit_topic() ) : ?>

				<div id="edit-topic">

					<?php do_action( 'bp_group_before_edit_forum_topic' ) ?>

					<p><strong><?php _e( 'Edit Topic:', 'buddypress' ) ?></strong></p>

					<label for="topic_title"><?php _e( 'Title:', 'buddypress' ) ?></label>
					<input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title() ?>" />

					<label for="topic_text"><?php _e( 'Content:', 'buddypress' ) ?></label>
					<textarea name="topic_text" id="topic_text"><?php bp_the_topic_text() ?></textarea>

					<?php do_action( 'bp_group_after_edit_forum_topic' ) ?>

					<p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p>

					<?php wp_nonce_field( 'bp_forums_edit_topic' ) ?>

				</div>

			<?php else : ?>

				<div id="edit-post">
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:edit.php



注:本文中的bp_the_topic_title函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP bp_the_topic_total_post_count函数代码示例发布时间:2022-05-24
下一篇:
PHP bp_the_topic_time_since_last_post函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap