本文整理汇总了PHP中title函数的典型用法代码示例。如果您正苦于以下问题:PHP title函数的具体用法?PHP title怎么用?PHP title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了title函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: index
function index($permalink = NULL)
{
$data = $this->_data;
if (($data['series'] = $this->dizi->get_show($permalink)) === FALSE) {
redirect('404', 'refresh');
}
$data['title'] = $data['series']['title'] . ' | ' . title();
$data['season_count'] = $this->series_model->sezon_sayisi($data['series']['dizid']);
$data['episode_count'] = $this->series_model->bolum_sayisi($data['series']['dizid']);
$data['latest_episode'] = $this->series_model->en_son_bolum($data['series']['dizid']);
$data['subscribers'] = $this->series_model->takipcileri($data['series']['dizid']);
$data['good_episodes'] = $this->series_model->en_populer_bolumler($data['series']['dizid']);
$data['bad_episodes'] = $this->series_model->en_kotu_bolumler($data['series']['dizid']);
$data['seasons'] = $this->series_model->sezonlar($data['series']['dizid']);
$data['ep_season1'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 1);
$data['ep_season2'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 2);
$data['ep_season3'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 3);
$data['ep_season4'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 4);
$data['ep_season5'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 5);
$data['ep_season6'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 6);
$data['ep_season7'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 7);
$data['ep_season8'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 8);
$data['ep_season9'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 9);
$data['ep_season10'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 10);
if (isset($_SESSION['login'])) {
$data['user_watched_list'] = $this->user_model->get_user_watched_list($data['i']['user_id']);
}
if (!$this->agent->is_mobile()) {
$this->display(array('header', 'series', 'sidebar', 'footer'), $data);
} else {
$this->display(array('mobile/header', 'mobile/series', 'mobile/footer'), $data);
}
}
开发者ID:Dogukan2,项目名称:dizilab,代码行数:33,代码来源:series.php
示例2: addon_title
function addon_title($line, $subline)
{
$subtitle = $subline;
if (is_array($subline)) {
$subtitle = ' ';
$numPages = count($subline);
$i = 0;
foreach ($subline as $subpage) {
$link = $subpage[0];
$label = $subpage[1];
$active = empty($_REQUEST['subpage']) && $link == '' || !empty($_REQUEST['subpage']) && $_REQUEST['subpage'] == $link;
// Auf der Aktiven seite den Link nicht anzeigen
if ($active) {
$format = '%s';
$subtitle .= sprintf($format, $label);
} else {
if ($link == '') {
$format = '<a href="?page=' . $_REQUEST['page'] . '">%s</a>';
$subtitle .= sprintf($format, $label);
} else {
$format = '<a href="?page=' . $_REQUEST['page'] . '&subpage=%s">%s</a>';
$subtitle .= sprintf($format, $link, $label);
}
}
if ($i != $numPages - 1) {
$subtitle .= ' | ';
}
$i++;
}
}
title($line, $subtitle);
}
开发者ID:BackupTheBerlios,项目名称:redaxo,代码行数:32,代码来源:function_compat.inc.php
示例3: SendSite
function SendSite($yname, $ymail, $fname, $fmail, $random_num = "0", $gfx_check)
{
global $sitename, $slogan, $nukeurl, $module_name, $gfx_chk, $sitekey;
if (empty($fname) or empty($fmail) or empty($yname) or empty($ymail)) {
include "header.php";
title("{$sitename} - " . _RECOMMEND . "");
OpenTable();
echo "<center>" . _SENDSITEERROR . "<br><br>" . _GOBACK . "";
CloseTable();
include "footer.php";
die;
}
$fname = removecrlf(filter($fname, "nohtml"));
$fmail = validate_mail(removecrlf(filter($fmail, "nohtml")));
$yname = removecrlf(filter($yname, "nohtml"));
$ymail = validate_mail(removecrlf(filter($ymail, "nohtml")));
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 3);
if (extension_loaded("gd") and $code != $gfx_check and $gfx_chk != 0) {
$mess = 1;
Header("Location: modules.php?name={$module_name}&op=RecommendSite&mess={$mess}");
} else {
$subject = "" . _INTSITE . " {$sitename}";
$message = "" . _HELLO . " {$fname}:\n\n" . _YOURFRIEND . " {$yname} " . _OURSITE . " {$sitename} " . _INTSENT . "\n\n\n" . _FSITENAME . " {$sitename}\n{$slogan}\n" . _FSITEURL . " {$nukeurl}\n";
mail($fmail, $subject, $message, "From: \"{$yname}\" <{$ymail}>\nX-Mailer: PHP/" . phpversion());
update_points(3);
Header("Location: modules.php?name={$module_name}&op=SiteSent&fname={$fname}");
}
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:30,代码来源:index.php
示例4: topic
public function topic($is_at, $thix, $that)
{
$data = $this->_data;
$data['title'] = 'Forum | ' . title();
$data['topic'] = $this->forum->get_topic($is_at, $thix, $that, $limit = 11);
$this->display(array('header', 'pages/forum/topic', 'sidebar', 'footer'), $data);
}
开发者ID:Dogukan2,项目名称:dizilab,代码行数:7,代码来源:forum.php
示例5: index
function index($permalink = NULL)
{
$data = $this->_data;
if (($data['series'] = $this->srs->get_show($permalink)) === FALSE) {
redirect('404', 'refresh');
}
$data['title'] = $data['series']['title'] . ' | ' . title();
$data['season_count'] = $this->series_model->ssnsthenum($data['series']['dizid']);
$data['episode_count'] = $this->series_model->sctnthenum($data['series']['dizid']);
$data['latest_episode'] = $this->series_model->final_section($data['series']['dizid']);
$data['subscribers'] = $this->series_model->followers($data['series']['dizid']);
$data['good_episodes'] = $this->series_model->most_popular_sections($data['series']['dizid']);
$data['bad_episodes'] = $this->series_model->worst_sections($data['series']['dizid']);
$data['seasons'] = $this->series_model->ssns($data['series']['dizid']);
$data['ep_season1'] = $this->series_model->of_the_season($data['series']['dizid'], 1);
$data['ep_season2'] = $this->series_model->of_the_season($data['series']['dizid'], 2);
$data['ep_season3'] = $this->series_model->of_the_season($data['series']['dizid'], 3);
$data['ep_season4'] = $this->series_model->of_the_season($data['series']['dizid'], 4);
$data['ep_season5'] = $this->series_model->of_the_season($data['series']['dizid'], 5);
$data['ep_season6'] = $this->series_model->of_the_season($data['series']['dizid'], 6);
$data['ep_season7'] = $this->series_model->of_the_season($data['series']['dizid'], 7);
$data['ep_season8'] = $this->series_model->of_the_season($data['series']['dizid'], 8);
$data['ep_season9'] = $this->series_model->of_the_season($data['series']['dizid'], 9);
$data['ep_season10'] = $this->series_model->of_the_season($data['series']['dizid'], 10);
if (isset($_SESSION['login'])) {
$data['user_watched_list'] = $this->user_model->get_user_watched_list($data['i']['user_id']);
}
if (!$this->agent->is_mobile()) {
$this->display(array('header', 'series', 'sidebar', 'footer'), $data);
} else {
$this->display(array('mobile/header', 'mobile/series', 'mobile/footer'), $data);
}
}
开发者ID:DeadRishing,项目名称:dizilab,代码行数:33,代码来源:series.php
示例6: index
function index($permalink = NULL)
{
$data = $this->_data;
if (($data['series'] = $this->srs->get_Series($permalink)) === FALSE) {
redirect('404', 'refresh');
}
$data['title'] = $data['series']['title'] . ' | ' . title();
$this->session->set_userdata('series_id', $data['series']['dizid']);
$data['controller'] = 'series';
$data['latest_episode'] = $this->series_model->_list($data['series']['dizid'], 'last_episode', 1);
$data['good_episodes'] = $this->series_model->_list($data['series']['dizid'], 'good_episodes', 5);
$data['bad_episodes'] = $this->series_model->_list($data['series']['dizid'], 'bad_episodes', 5);
$data['season_count'] = $this->series_model->_count($data['series']['dizid'], 'seasons', null);
$data['episode_count'] = $this->series_model->_count($data['series']['dizid'], 'episodes', null);
$data['subscribers'] = $this->series_model->_count($data['series']['dizid'], 'followers', null);
$data['popular_comments'] = false;
$data['yorumlar'] = $this->series_model->Comments($data['series']['dizid']);
$data['yorum_sayisi'] = $this->series_model->nofcomm($data['series']['dizid']);
$data['casts'] = $this->series_model->_List($data['series']['dizid'], 'casts', 9);
#$data['seasons'] = $this->series_model->_count($data['series']['dizid'],'seasons','yazdir');
#$data['ep_season1'] = $this->series_model->of_the_season($data['series']['dizid'],1); #,2,3.....
#$data['ep_season2'] = $this->series_model->of_the_season($data['series']['dizid'],2); # gibi
$data['seasons'] = $this->series_model->_count($data['series']['dizid'], 'seasons', 'yazdir');
$data['episodes'] = $this->srs->get_episodes($data['series']['dizid'], $data['seasons']);
$data['forums'] = $this->series_model->get_Forums($data['series']['permalink']);
if (isset($_SESSION['login'])) {
$data['series_follow'] = $this->user_model->_Ctrl($_SESSION['user_id'], $data['series']['dizid'], 'series_follow', null);
$data['user_watched_list'] = $this->user_model->_list($data['i']['user_id'], 'user_watched_list');
}
if (!$this->agent->is_mobile()) {
$this->display(array('header', 'pages/series', 'sidebar', 'footer'), $data);
} else {
$this->display(array('mobile_header', 'pages/mobile_series', 'mobile_footer'), $data);
}
}
开发者ID:algoritmafakiri,项目名称:dizilab,代码行数:35,代码来源:series.php
示例7: testTitle
public function testTitle()
{
$simple_name = 'phone';
$this->assertEquals('Phone', title($simple_name));
$complex_name = 'contact_phone';
$this->assertEquals('Contact Phone', title($complex_name));
}
开发者ID:beingsane,项目名称:JoomGen-3.0,代码行数:7,代码来源:test.php
示例8: js
function js(){
header("content-type: application/x-javascript");
$tpl=new templates();
$page=CurrentPageName();
$t=time();
$tpl=new templates();
$compile_squid_ask=$tpl->javascript_parse_text("{compile_squid_ask}");
if($_GET["ask"]=="yes"){
$warn="if(!confirm('$compile_squid_ask')){return;}";
}
if(isset($_GET["CheckCaches"])){
$warn=$tpl->javascript_parse_text("{check_caches_warning}");
$warn="if(!confirm('$warn')){return;}";
}
$suffix=suffix();
$title=title();
echo "
function Start$t(){
$warn
YahooWinHide();
RTMMail('800','$page?popup=yes$suffix','$title');
}
Start$t();";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:30,代码来源:squid.autocofiguration.progress.php
示例9: startjournal
function startjournal($sitename, $user)
{
global $module_name;
$user = filter($user, "nohtml");
$sitename = filter($sitename, "nohtml");
if (is_user($user)) {
$j_user1 = "<center>[ <a href=\"modules.php?name={$module_name}\">" . _JOURNALDIR . "</a> | <a href=\"modules.php?name={$module_name}&file=edit\">" . _YOURJOURNAL . "</a> ]</center>";
$j_user2 = "";
} else {
$j_user1 = "<center>[ <a href=\"modules.php?name={$module_name}\">" . _JOURNALDIR . "</a> | <a href=\"modules.php?name=Your_Account&op=new_user\">" . _CREATEACCOUNT . "</a> ]</center>";
$j_user2 = "<br><center><font class=\"tiny\">" . _MEMBERSCAN . "</font></center>";
}
title("{$sitename}: " . _USERSJOURNAL . "");
if (is_user($user)) {
include "modules/Your_Account/navbar.php";
OpenTable();
nav();
CloseTable();
echo "<br>";
}
OpenTable();
echo "<center><img src=modules/{$module_name}/images/bgimage.gif><br><font class=title><b>" . _USERSJOURNAL . "</b></font></center>";
echo "{$j_user1}";
echo "{$j_user2}";
CloseTable();
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:26,代码来源:functions.php
示例10: FriendSend
function FriendSend($sid)
{
global $user, $cookie, $prefix, $db, $user_prefix, $module_name;
$sid = intval($sid);
if (!isset($sid)) {
fdie();
}
include "header.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT title FROM " . $prefix . "_stories WHERE sid='{$sid}'"));
$title = filter($row['title'], "nohtml");
title("" . _FRIEND . "");
OpenTable();
echo "<center><font class=\"content\"><b>" . _FRIEND . "</b></font></center><br><br>" . "" . _YOUSENDSTORY . " <b>{$title}</b> " . _TOAFRIEND . "<br><br>" . "<form action=\"modules.php?name={$module_name}&file=friend\" method=\"post\">" . "<input type=\"hidden\" name=\"sid\" value=\"{$sid}\">";
if (is_user($user)) {
$row2 = $db->sql_fetchrow($db->sql_query("SELECT name, username, user_email FROM " . $user_prefix . "_users WHERE user_id = '" . intval($cookie[0]) . "'"));
if (empty($row['name'])) {
$yn = filter($row2['username'], "nohtml");
} else {
$yn = filter($row2['name'], "nohtml");
}
$ye = filter($row2['user_email'], "nohtml");
}
echo "<b>" . _FYOURNAME . " </b> {$yn} <input type=\"hidden\" name=\"yname\" value=\"{$yn}\"><br><br>\n" . "<b>" . _FYOUREMAIL . " </b> {$ye} <input type=\"hidden\" name=\"ymail\" value=\"{$ye}\"><br><br><br>\n" . "<b>" . _FFRIENDNAME . " </b> <input type=\"text\" name=\"fname\"><br><br>\n" . "<b>" . _FFRIENDEMAIL . " </b> <input type=\"text\" name=\"fmail\"><br><br>\n" . "<input type=\"hidden\" name=\"op\" value=\"SendStory\">\n" . "<input type=\"submit\" value=" . _SEND . ">\n" . "</form>\n";
CloseTable();
include 'footer.php';
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:26,代码来源:friend.php
示例11: mod_menu
function mod_menu()
{
global $prefix, $db, $user_prefix, $admin_file;
$num_news = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_comments_moderated"));
$num_surveys = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_pollcomments_moderated"));
$num_reviews = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_reviews_comments_moderated"));
$num_users = $db->sql_numrows($db->sql_query("SELECT user_id FROM " . $user_prefix . "_users WHERE karma!=0"));
title("" . _MODERATIONKARMA . "");
OpenTable();
echo "<center><b>" . _CONTENTMODERATION . "</b><br>" . _SELECTOPTION . "<br><br>[ ";
if ($num_news != 0) {
echo "<a href=\"" . $admin_file . ".php?op=moderation_news\">" . _NEWSCOMMENTS . "</a> (<b>" . $num_news . "</b>) | ";
} else {
echo "" . _NEWSCOMMENTS . " (<b>" . $num_news . "</b>) | ";
}
if ($num_surveys != 0) {
echo "<a href=\"" . $admin_file . ".php?op=moderation_surveys\">" . _SURVEYCOMMENTS . "</a> (<b>" . $num_surveys . "</b>) | ";
} else {
echo "" . _SURVEYCOMMENTS . " (<b>" . $num_surveys . "</b>) | ";
}
if ($num_reviews != 0) {
echo "<a href=\"" . $admin_file . ".php?op=moderation_reviews\">" . _REVIEWSCOMMENTS . "</a> (<b>" . $num_reviews . "</b>) | ";
} else {
echo "" . _REVIEWSCOMMENTS . " (<b>" . $num_reviews . "</b>) | ";
}
if ($num_users != 0) {
echo "<a href=\"" . $admin_file . ".php?op=moderation_users_list\">" . _ALLMARKEDUSERS . "</a> (<b>" . $num_users . "</b>) ]</center>";
} else {
echo "" . _ALLMARKEDUSERS . " (<b>" . $num_users . "</b>) ]</center>";
}
CloseTable();
echo "<br>";
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:33,代码来源:moderation.php
示例12: head
function head()
{
$path = pathinfo($_SERVER['SCRIPT_NAME']);
$folder = $path['dirname'] . '/';
$filename = $path['basename'];
$title = title($filename);
?>
<!-- head include begin -->
<?php
echo ' <title>' . $title . '</title>';
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="../js/jquery.js"></script>
<script src="../js/jquery-ui/jquery-ui.js"></script>
<link href="../js/jquery-ui/jquery-ui.css" rel="stylesheet" />
<link href="../css/grey.css" rel="stylesheet" />
<!-- head include end -->
<?php
}
开发者ID:webvitalii,项目名称:web-services,代码行数:27,代码来源:head.php
示例13: standings
public static function standings()
{
global $lng;
// All stars
title($lng->getTrn('menu/statistics_menu/star_stn'));
echo $lng->getTrn('common/notice_spp') . "<br><br>\n";
HTMLOUT::standings(STATS_STAR, false, false, array('url' => urlcompile(T_URL_STANDINGS, T_OBJ_STAR, false, false, false)));
}
开发者ID:nicholasmr,项目名称:obblm,代码行数:8,代码来源:class_starmerc_htmlout.php
示例14: topic
public function topic($is_at, $thix, $that)
{
$data = $this->_data;
$data['title'] = 'Forum | ' . title();
$data['topic'] = $this->frm->get_Topic($is_at, $thix, $that);
$data['comments'] = $this->forum_model->get_Comments($thix, 9);
$this->display(array('header', 'pages/forum/topic', 'sidebar', 'footer'), $data);
}
开发者ID:algoritmafakiri,项目名称:dizilab,代码行数:8,代码来源:forum.php
示例15: template_preprocess
/**
* Assign variables to be set for a template.
* @param $vars The previously set variables.
*/
function template_preprocess($vars)
{
global $config_org_name;
global $config_base_path;
$vars['title'] = title();
$vars['org_name'] = $config_org_name;
$vars['base_path'] = $config_base_path;
$vars['hostname'] = $_SERVER['SERVER_NAME'];
return $vars;
}
开发者ID:mehulsbhatt,项目名称:seltzer,代码行数:14,代码来源:template.inc.php
示例16: cast
public function cast($name = NULL)
{
$data = $this->_data;
$data['cast'] = $this->www->get_cast($name);
if (empty($data['cast'])) {
redirect('404', 'refresh');
}
$data['title'] = $data['cast']['name'] . ' | ' . title();
$data['description'] = $data['cast']['name'] . ' hakkında, ' . $data['cast']['name'] . ' rol aldığı diziler ve daha fazlası..';
$this->display(array('header', 'profile/cast', 'sidebar', 'footer'), $data);
}
开发者ID:DeadRishing,项目名称:dizilab,代码行数:11,代码来源:profile.php
示例17: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$suffix = suffix();
$title = title();
echo "\n\tfunction Start{$t}(){\t\n\t\t{$warn}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
开发者ID:articatech,项目名称:artica,代码行数:11,代码来源:squid.global.wl.center.progress.php
示例18: main
public static function main($argv)
{
global $lng;
title($lng->getTrn('name', __CLASS__));
$teams = self::_teamsSelect();
if (is_array($teams)) {
list($tid1, $tid2) = $teams;
self::_compare($tid1, $tid2);
}
return true;
}
开发者ID:nicholasmr,项目名称:obblm,代码行数:11,代码来源:class_teamcompare.php
示例19: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$compile_squid_ask = $tpl->javascript_parse_text("{build_webfiltering_rules} ?");
$suffix = suffix();
$title = title();
echo "\n\tfunction Start{$t}(){\t\n\t\t//if(!confirm('{$compile_squid_ask}')){return;}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
开发者ID:articatech,项目名称:artica,代码行数:12,代码来源:dansguardian2.compile.php
示例20: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$suffix = suffix();
$title = title();
$ask = "if(!confirm('" . $tpl->javascript_parse_text("{enable_ask_firewall}") . "')){return;}";
echo "\n\tfunction Start{$t}(){\t\n\t\t{$ask}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:12,代码来源:firehol.wizard.enable.progress.php
注:本文中的title函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论