本文整理汇总了PHP中Layout::getPageTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Layout::getPageTitle方法的具体用法?PHP Layout::getPageTitle怎么用?PHP Layout::getPageTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Layout
的用法示例。
在下文中一共展示了Layout::getPageTitle方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: javascript
<?php
javascript('jquery');
Layout::plug(Layout::getPageTitle(TRUE), 'SITE_TITLE');
Layout::addJSHeader('<script type="text/javascript" src="' . PHPWS_SOURCE_HTTP . 'themes/bootstrap/js/bootstrap.min.js"></script>', 'bootstrap');
Layout::addJSHeader('<script type="text/javascript" src="' . PHPWS_SOURCE_HTTP . 'themes/bootstrap/js/modal_fix.js"></script>', 'fix');
$key = Key::getCurrent();
if (!is_null($key)) {
Layout::plug('active', 'CONTENT_PAGE');
}
示例2: disapproveContact
private function disapproveContact($id)
{
$id = (int) $id;
$contact = new Contact($id);
$db = \Database::newDB();
$tbl = $db->addTable('prop_contacts');
$tbl->addFieldConditional('id', $id);
$db->delete();
$vars = array('first_name' => $contact->getFirstName(), 'last_name' => $contact->getLastName(), 'site_title' => \Layout::getPageTitle(true), 'site_address' => \PHPWS_Core::getHomeHttp(true), 'email_address' => \PHPWS_Settings::get('properties', 'email'));
$template = new \Template($vars);
$template->setModuleTemplate('properties', 'disapprovalLetter.html');
$content = $template->get();
$this->emailInfo('Manager account not approved', $content, $contact->getEmailAddress());
}
示例3: notifyUser
public static function notifyUser($user, $password)
{
PHPWS_Core::initCoreClass('Mail.php');
$page_title = Layout::getPageTitle(true);
$body[] = sprintf(dgettext('users', '%s created an user account for you.'), $page_title);
$body[] = dgettext('users', 'You may log-in using the following information:');
$body[] = sprintf(dgettext('users', 'Site address: %s'), PHPWS_Core::getHomeHttp());
$body[] = sprintf(dgettext('users', 'Username: %s'), $user->username);
$body[] = sprintf(dgettext('users', 'Password: %s'), $password);
$body[] = dgettext('users', 'Please change your password immediately after logging in.');
$mail = new PHPWS_Mail();
$mail->addSendTo($user->email);
$mail->setSubject(sprintf(dgettext('users', '%s account created'), $page_title));
$mail->setFrom(PHPWS_User::getUserSetting('site_contact'));
$mail->setReplyTo(PHPWS_User::getUserSetting('site_contact'));
$mail->setMessageBody(implode("\n\n", $body));
$result = $mail->send();
return $result;
}
示例4: emailApprovalNeeded
private function emailApprovalNeeded()
{
$db = \Database::getDB();
$t = $db->addTable('prop_contacts');
$t->addFieldConditional('approved', 0);
$rows = $db->select();
$count = count($rows);
if ($count == 0) {
return;
}
$vars['site_title'] = \Layout::getPageTitle(true);
$vars['site_address'] = \PHPWS_Core::getHomeHttp() . 'index.php?module=properties&aop=approve';
$vars['count'] = $count > 1 ? "{$count} submissions" : "one submission";
$template = new \Template($vars);
$template->setModuleTemplate('properties', 'reminder.html');
$content = $template->get();
$this->emailContact('Property Manager Approval Required', $content, \PHPWS_Settings::get('properties', 'approver_email'));
}
示例5: emailRegistration
public function emailRegistration()
{
$peep =& $this->peep;
$sheet =& $this->sheet;
$slot =& $this->slot;
PHPWS_Core::initCoreClass('Mail.php');
$full_name = $peep->first_name . $peep->last_name;
if (preg_match('@["\'\\.]@', $full_name)) {
$name = str_replace('"', "'", $peep->first_name . ' ' . $peep->last_name);
$send_to = sprintf('"%s" <%s>', $name, $peep->email);
} else {
$send_to = sprintf('%s %s <%s>', $peep->first_name, $peep->last_name, $peep->email);
}
$subject = dgettext('signup', 'Signup confirmation');
if (!empty($sheet->contact_email)) {
$reply_to = $from = $sheet->contact_email;
} else {
$reply_to = $from = PHPWS_Settings::get('users', 'site_contact');
}
$site_title = Layout::getPageTitle(true);
$link = PHPWS_Core::getHomeHttp() . 'index.php?module=signup&uop=confirm&h=' . $peep->hashcheck . '&p=' . $peep->id;
$message[] = sprintf(dgettext('signup', 'Greetings from %s,'), $site_title);
$message[] = '';
$message[] = dgettext('signup', 'Click the link below to confirm your participation in the following:');
$message[] = '';
$message[] = sprintf(dgettext('signup', 'Signup event : %s'), $sheet->title);
$message[] = sprintf(dgettext('signup', 'Slot : %s'), $slot->title);
$message[] = $link;
$message[] = '';
$message[] = dgettext('signup', 'You have one hour to confirm your application.');
$mail = new PHPWS_Mail();
$mail->addSendTo($send_to);
$mail->setSubject($subject);
$mail->setFrom($from);
$mail->setReplyTo($reply_to);
$mail->setMessageBody(implode("\n", $message));
return $mail->send();
}
示例6: blogger_getUsersBlogs
public function blogger_getUsersBlogs($args)
{
return array(array('url' => PHPWS_Core::getHomeHttp(), 'blogid' => '1', 'blogName' => Layout::getPageTitle(true)));
}