当前位置: 首页>>代码示例>>PHP>>正文


PHP WCF::parseTitle方法代码示例

本文整理汇总了PHP中WCF::parseTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP WCF::parseTitle方法的具体用法?PHP WCF::parseTitle怎么用?PHP WCF::parseTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WCF的用法示例。


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

示例1: unset

		<?php 
if ($error = $ERRORS->DoPrint('post_reply', true)) {
    echo '<div class="alerts-container">', $error, '</div>';
}
unset($error);
?>
		
		<form method="post" action="<?php 
echo $config['BaseURL'];
?>
/execute.php?take=post_reply" class="post_topic_reply" name="post_reply">
		
			<label>
				<p>Reply title</p>
				<input name="title" type="text" maxlength="150" value="<?php 
echo $topic ? 'Re: ' . WCF::parseTitle($topic['name']) : '';
?>
" />
			</label>
			
			<label>
				<p>Reply text</p>
				<?php 
echo '<textarea name="text" class="bbcode">';
//Check if we're quoting somebody
if ($quote) {
    //Try getting info about the post
    if ($QuoteInfo = WCF::getQuoteInfo($quote)) {
        echo '[quote=', $QuoteInfo['author'], ']', $QuoteInfo['text'], '[/quote]', "\n\r";
    }
}
开发者ID:superwow,项目名称:cms,代码行数:31,代码来源:post_reply.php

示例2: unset

										<li class="forum_title_desc">
											<a href="', $config['BaseURL'], '/forums.php?page=forum&id=', $forum['id'], '">
												<h1>', WCF::parseTitle($forum['name']), '</h1>
												<h2>', WCF::parseTitle($forum['description']), '</h2>
											</a>
										</li>
										<li class="post">
											<p>', $forum['posts'], '</p>
										</li>
										<li class="topics">
											<p>', $forum['topics'], '</p>
										</li>
										<li class="lastpost">';
                    if ($lastTopic) {
                        echo '
												<p class="topic_title"><a href="', $config['BaseURL'], '/forums.php?page=topic&id=', $lastTopic['id'], '">', WCF::parseTitle($lastTopic['name']), '</a></p>
												<p class="by"><a href="', $config['BaseURL'], '/index.php?page=profile&uid=', $lastTopic['author'], '">', $lastTopic['author_str'], '</a></p>
												<p class="postdate">', $lastTopic['added'], '</p>';
                    }
                    echo '
										</li>
									</ul>';
                }
            }
        } else {
            echo '<div><h2>This category is empty.</h2></div>';
        }
        unset($res2);
        echo '	</div>
				</div>';
    }
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:home.php

示例3: unset

		<?php 
if ($error = $ERRORS->DoPrint('edit_reply', true)) {
    echo '<div class="alerts-container">', $error, '</div>';
}
unset($error);
?>
		
		<form method="post" action="<?php 
echo $config['BaseURL'];
?>
/execute.php?take=edit_reply" class="post_topic_reply" name="edit_reply">
		
			<label>
				<p>Reply title</p>
				<input name="title" type="text" maxlength="150" value="<?php 
echo WCF::parseTitle($Post['title']);
?>
" />
			</label>
			
			<label>
				<p>Reply text</p>
				<?php 
echo '<textarea name="text" class="bbcode">', stripslashes($Post['text']), '</textarea>';
?>
			</label>
			
			<input type="hidden" value="<?php 
echo $Post['id'];
?>
" name="post" />
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:edit_reply.php

示例4: unset

            $arr['author_str'] = $author;
        } else {
            $arr['author_str'] = 'Unknown';
        }
        unset($author);
        //format the time
        $arr['added'] = date('D M j, Y, h:i a', strtotime($arr['added']));
        //Get the last post
        $lastPost = WCF::getTopicLastPost($arr['id']);
        echo '
				<ul class="topic_row">
					<li class="icon">
						<img src="template/forums/style/icons/topic_unread_mine.png" width="55px" height="39px"/>
					</li>
					<li class="topic_title_by_date">
						<h1><a href="', $config['BaseURL'], '/forums.php?page=topic&id=', $arr['id'], '">', WCF::parseTitle($arr['name']), '</a></h1>
						<p>Created by <a href="#">', $arr['author_str'], '</a>, ', $arr['added'], '</p>
					</li>
					<li class="lastpost">';
        if ($lastPost) {
            echo '
							<h4>by <a href="', $config['BaseURL'], '/index.php?page=profile&uid=', $lastPost['author'], '">', $lastPost['author_str'], '</a></h4>
							<h5>', $lastPost['added'], '</h5>
							<a href="', $config['BaseURL'], '/forums.php?page=topic&id=', $arr['id'], '&p=', $lastPost['page_number'], '#post-', $lastPost['id'], '" class="go_to_lastpost" title="Go to last post"><p>Go to last post</p></a>';
        }
        echo '
					</li>
				</ul>';
    }
    unset($topics_res, $arr, $lastPost);
} else {
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:forum.php

示例5:

<div class="container main-wide">
	<div class="forum-padding">
	
		<div class="forum_header">
		
			<div class="new_title">
				<p>Post New Topic</p>
				<div></div>
			</div>
			
			<?php 
if ($forum) {
    echo '
				<div class="forum_title">
					<h1>', WCF::parseTitle($forum['name']), '</h1>
					<h3>', WCF::parseTitle($forum['description']), '</h3>
				</div>
				<h4><b>', $forum['topics'], '</b> topics</h4>';
}
?>
		
		</div>
		
		<?php 
if ($error = $ERRORS->DoPrint('post_topic', true)) {
    echo '<div class="alerts-container">', $error, '</div>';
}
unset($error);
?>
		
		<form method="post" action="<?php 
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:post_topic.php

示例6:

echo $config['BaseURL'], '/forums.php?page=topic&id=', $row['id'];
?>
"><?php 
echo WCF::parseTitle($row['name']);
?>
</a>
</div>

<div class="container main-wide">
	<div class="forum-padding">
		
		<!-- Forum Header -->
		<div class="topic_header">
			<div class="topic_title">
				<h1><?php 
echo WCF::parseTitle($row['name']);
?>
</h1>
				<h3><?php 
echo $row['added'];
?>
</h3>
			</div>
			<h4><b><?php 
echo $count;
?>
</b> posts</h4>
		</div>
		<!-- Forum Header.End -->

		<?php 
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:topic.php


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