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


PHP Layout::title方法代码示例

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


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

示例1: contact

 /**
  * 
  * @return void
  */
 public function contact()
 {
     $this->loadModel('content');
     Loader::library('Form');
     $data = array();
     if (Input::post()) {
         Form::rule('name', 'trim|required|alpha|maxLength:100');
         Form::rule('email', 'trim|required|validEmail|maxLength:100');
         Form::rule('message', 'trim|required|maxLength:5000');
         Form::rule('captcha', 'trim|required|numeric|verifyCaptcha');
         if (Form::run() === TRUE) {
             $sendData = array('name' => Input::post('name'), 'email' => Input::post('email'), 'message' => Input::post('message'));
             $data = $this->mContent->sendMessage($sendData);
         } else {
             $data = array('success' => FALSE, 'result' => Form::errors());
         }
     }
     $data['sidebarLayout'] = View::render('content/vSidebar', array('page' => 'contact'), TRUE);
     Layout::title('Contact');
     Layout::desc('Contact us.');
     Layout::view('content/vContact', $data);
 }
开发者ID:khalid9th,项目名称:ocAds,代码行数:26,代码来源:cContent.php

示例2: index

 /**
  * 
  * @param string $tag Default is NULL
  * @param int $page Default is NULL
  * @return void
  */
 public function index($tag = NULL, $page = NULL)
 {
     $getData = array('query' => $tag ? $tag : Input::get('query'), 'type' => Input::get('type'), 'country' => Input::get('country'), 'make' => Input::get('make'), 'model' => Input::get('model'), 'year_min' => Input::get('year_min'), 'year_max' => Input::get('year_max'), 'price_min' => Input::get('price_min'), 'price_max' => Input::get('price_max'), 'currency' => Input::get('currency'), 'condition' => Input::get('condition'), 'color' => Input::get('color'), 'mileage_min' => Input::get('mileage_min'), 'mileage_max' => Input::get('mileage_max'), 'vehicle' => Input::get('vehicle'), 'vin' => Input::get('vin'), 'state' => Input::get('state'), 'city' => Input::get('city'), 'location' => Input::get('location'), 'order' => Input::get('order'), 'page' => $page ? $page : Input::get('page'));
     $getData = $this->mSearch->fixDashes($getData);
     $getData = $this->mSearch->fixLower($getData);
     $data = $this->mSearch->apiResults($getData);
     $data['params'] = $getData;
     $data['yearMin'] = $getData['year_min'] ? $getData['year_min'] : 1980;
     $data['yearMax'] = $getData['year_max'] ? $getData['year_max'] : (int) date('Y');
     $data['priceMin'] = $getData['price_min'] ? $getData['price_min'] : 0;
     $data['priceMax'] = $getData['price_max'] ? $getData['price_max'] : 50000;
     $data['mileageMin'] = $getData['mileage_min'] ? $getData['mileage_min'] : 0;
     $data['mileageMax'] = $getData['mileage_max'] ? $getData['mileage_max'] : 200000;
     $this->mSearch->saveTags($getData['query'], $data['total']);
     $data['latestTags'] = $this->mSearch->getTags('latest');
     $data['randomTags'] = $this->mSearch->getTags('random');
     if ($tag !== NULL) {
         Pagination::setQueryString(FALSE);
         Pagination::setURL(tagLink($getData['query']));
         $seoData = $this->mSearch->setSeo('tags', $getData, $data['total']);
         Layout::title(getSeo($seoData, 'tagsTitle'));
         Layout::desc(getSeo($seoData, 'tagsDesc'));
         Layout::heading(getSeo($seoData, 'tagsHeading'));
     } else {
         Pagination::setQueryString(TRUE);
         Pagination::setURL(searchLink($getData, FALSE));
         $seoData = $this->mSearch->setSeo('search', $getData, $data['total']);
         Layout::title(getSeo($seoData, 'searchTitle'));
         Layout::desc(getSeo($seoData, 'searchDesc'));
         Layout::heading(getSeo($seoData, 'searchHeading'));
     }
     Pagination::setTotal($data['total'], Config::get('searchResultsLimit', 'limit'), Config::get('searchPaginaLimit', 'limit'));
     Pagination::setCurrent($getData['page']);
     Pagination::setNumLinks(3);
     Pagination::run();
     $data['pagination'] = Pagination::getPagina();
     Layout::view('vSearch', $data);
 }
开发者ID:khalid9th,项目名称:ocAds,代码行数:44,代码来源:cSearch.php

示例3:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo Layout::lang_code();
?>
">
	<head>
		<title><?php 
echo Layout::title();
?>
</title>
		<link rel="shortcut icon" href="<?php 
echo Layout::path();
?>
images/favicon.png" type="image/png" />
		<?php 
echo Layout::zone('meta');
?>
		<!-- reset and font stylesheet -->
		<?php 
echo Layout::resetter();
?>
		<!-- common stylesheet -->
		<link rel="stylesheet" type="text/css" href="<?php 
echo Layout::path();
?>
style/base.css" />
		<link rel="stylesheet" type="text/css" href="<?php 
echo Layout::path();
?>
style/lms-home.css" />
开发者ID:abhinay100,项目名称:forma_app,代码行数:31,代码来源:home_login.php

示例4: arena

<?php

/*
INFO ON WHAT THIS PAGE WILL SHOW
Graphs of all my arena stats
Need to do importing of all my old arena runs
New feature of arena (how many of which rarity rarity)
*/
include_once "classes/functions.php";
include_once "classes/layout.php";
$functions = new Functions();
$layout = new Layout();
$database2 = new Database2();
$layout->title("HS Arena stats");
$layout->header();
$arena_id = Functions::Post_Int('ArenaID');
$new_arena = 0;
Functions::ClassList_Load_Classes($database2, $classes);
if (!Functions::ArenaRun_Load_ID($database2, $arena_id, $arena_run)) {
    if (!Functions::ArenaRun_Load_Active($database2, $arena_run)) {
        $new_arena = 1;
    }
}
if (!$new_arena) {
    Functions::ArenaRewards_Load_ArenaID($database2, $arena_run['id'], $arena_rewards);
    Functions::ArenaMatchList_Load_ArenaID($database2, $arena_run['id'], $arena_matches);
}
?>
<a href="index.php">Home</a>
<h1 style="margin: 5px;">Arena Stats and Data</h1>
开发者ID:khansen47,项目名称:hs_stats,代码行数:30,代码来源:arena.php

示例5: changed

		- missing playable
		- missing golden
		- missing normal
	- Split, Cards/Stats/Add/Update to their own pages
	- Adding Packs should be changed (right now no way to fix a bad mistake of adding packs)
	- Change to be a more organized list with better filters
	- Improve the Number of cards By set
		- include rarity percentage complete
		- include dust required to complete set
*/
include_once "classes/functions.php";
include_once "classes/layout.php";
$functions = new Functions();
$layout = new Layout();
$database2 = new Database2();
$layout->title("HS Card Stats");
$layout->header();
$class = Functions::Get('Class');
$missing = Functions::Get('Missing');
if ($class == '') {
    $class = 'Neutral';
}
if ($missing == '' || $missing == 'undefined') {
    $missing = 'None';
}
Functions::Account_Load($database2, $account);
Functions::ClassList_Load($database2, $classes);
Functions::SetList_Load($database2, $card_sets);
Functions::RarityList_Load_All($database2, $rarities);
if (!Functions::Class_Load_Name($database2, $class, $null)) {
    if (!Functions::Rarity_Load_Name($database2, $class, $null)) {
开发者ID:khansen47,项目名称:hs_stats,代码行数:31,代码来源:index.php


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