當前位置: 首頁>>代碼示例>>PHP>>正文


PHP meta函數代碼示例

本文整理匯總了PHP中meta函數的典型用法代碼示例。如果您正苦於以下問題:PHP meta函數的具體用法?PHP meta怎麽用?PHP meta使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了meta函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: test_meta

 public function test_meta()
 {
     $this->assertEquals("<meta name=\"test\" content=\"foo\" />\n", meta('test', 'foo'));
     $this->assertEquals("<meta name=\"foo\" content=\"\" />\n", meta(array('name' => 'foo')));
     $this->assertEquals("<meta charset=\"foo\" />\n", meta(array('name' => 'foo', 'type' => 'charset')));
     $this->assertEquals("<meta charset=\"foo\" />\n", meta(array('name' => 'foo', 'type' => 'charset')));
 }
開發者ID:fathiraz,項目名稱:lebahapi,代碼行數:7,代碼來源:html_helper_test.php

示例2: Delivery

	function Delivery()
	{
		$this->CheckAdminPrivs('print');
		$oid = get('oid', 'number');
		$senderID = get('sender', 'int');
				$lastADDR = meta('cdp_service_lastADDR');
		if ($lastADDR != $senderID)
		{
			meta('cdp_service_lastADDR', $senderID);
		}
				$cdpResult = logic('express')->cdp()->CreatePrinterConfig($oid, $senderID);
		if ($cdpResult['__error__'])
		{
			$this->Messager('您還沒有設置打印模板,係統正在跳轉到模板編輯頁麵,請稍候...', '?mod=express&code=corp&op=delivery&id='.$cdpResult['corpID'], 3);
		}
				logic('express')->cdp()->Printed($oid, $senderID);
				$cdpCFG = $cdpResult['config'];
		$cdpDATA = $cdpResult['cdp'];
				$background = logic('upload')->GetOne($cdpDATA['bgid']);
		$background['extra'] = unserialize($background['extra']);
		if (!$background['extra']['width'] || !$background['extra']['height'])
		{
			$background['extra'] = handler('image')->Info($background['path']);
			logic('upload')->Field($background['id'], 'extra', serialize(array('width'=>$background['extra']['width'],'height'=>$background['extra']['height'])));
		}
				include handler('template')->file('@admin/print_delivery');
	}
開發者ID:pf5512,項目名稱:phpstudy,代碼行數:27,代碼來源:print.mod.php

示例3: view

 function view($id)
 {
     $data['rs'] = new Dentist($id);
     $this->template->title(lang_decode($data['rs']->name) . ' - DrTooth Dental Clinic');
     $this->template->append_metadata(meta('description', lang_decode($data['rs']->name) . strip_tags(lang_decode($data['rs']->detail))));
     $this->template->build('view', $data);
 }
開發者ID:unisexx,項目名稱:drtooth,代碼行數:7,代碼來源:dentists.php

示例4: finder

	function finder( $uid, $productid )
	{
		if (!meta('p_ir_'.$productid))
		{
			return false;
		}
		$sql = 'select finder,findtime from ' . TABLE_PREFIX . 'system_members where uid = ' . intval($uid);
		$query = $this->DatabaseHandler->Query($sql);
		if ( ! $query ) return false;
		$finder = $query->GetRow();
		$finderid = $finder['finder'];
		$findtime = $finder['findtime'];
		if ( $finderid == 0 || $findtime == 0 )
		{
			return false;
		}
		if ( $findtime + (72 * 3600) < time() )
		{
			return false;
		}
				$sql = 'select count(*) from ' . TABLE_PREFIX . 'tttuangou_order where userid = ' . intval($uid) . ' AND paytime > 0';
		$query = $this->DatabaseHandler->Query($sql);
		$result = $query->GetRow();
		if ( $result['count(*)'] > 1 )
		{
			return false;
		}
		$ary = array(
			'buyid' => $uid, 'buytime' => time(), 'productid' => $productid, 'finderid' => $finderid, 'findtime' => $findtime
		);
		$this->DatabaseHandler->SetTable(TABLE_PREFIX . 'tttuangou_finder');
		$result = $this->DatabaseHandler->Insert($ary);
		return true;
	}
開發者ID:pf5512,項目名稱:phpstudy,代碼行數:34,代碼來源:me.logic.php

示例5: index

 function index()
 {
     // check permission
     if ($this->account_model->check_admin_permission('account_permissions', 'account_manage_permission') == false) {
         redirect('site-admin');
     }
     // load library
     $this->load->library('session');
     // load languages
     $this->modules_model->load_languages();
     if ($this->session->flashdata('update_status') !== null) {
         $output['form_status'] = $this->session->flashdata('update_status');
     }
     $output['list_permissions'] = $this->account_model->list_level_permission();
     $output['admin_content'] = $this->load->view('site-admin/account_permission_view', $output, true);
     // headr tags output###########################################
     $output['page_title'] = $this->config_model->load('site_name') . $this->config_model->load('page_title_separator') . $this->lang->line('account_permissions');
     // meta tag
     $output['page_metatag'][] = meta('Cache-Control', 'no-cache', 'http-equiv');
     $output['page_metatag'][] = meta('Pragma', 'no-cache', 'http-equiv');
     // link tag
     //$output['page_linktag'][] = link_tag( 'favicon.ico', 'shortcut icon', 'image/ico' );
     //$output['page_linktag'][] = link_tag( 'favicon2.ico', 'shortcut icon2', 'image/ico' );
     // script tag
     //$output['page_scripttag'][] = "<script type=\"text/javascript\" src=\"tinymcs.js\"></script>\n";
     //$output['page_scripttag'][] = "<script type=\"text/javascript\" src=\"fckkeditor.js\"></script>\n";
     // end headr tags output###########################################
     // output
     $this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
     $this->output->set_header('Pragma: no-cache');
     $this->load->view('site-admin/index_view', $output);
 }
開發者ID:Rundiz,項目名稱:vee-web-start,代碼行數:32,代碼來源:account_permission.php

示例6: log

 public function log()
 {
     meta()->set('title', 'Web Deploy Log');
     if (is_object($error = $this->check())) {
         return $error;
     }
     $last = (int) input('last') ?: config('git')['log_history'];
     return self::content('admin.log', array('last' => $last, 'log' => $this->git()->getLogStat($last)));
 }
開發者ID:eusonlito,項目名稱:web-deploy,代碼行數:9,代碼來源:Admin.php

示例7: category

function category($code = null)
{
    if ($code) {
        $meta = meta('company_category');
        return $meta->load($code);
    } else {
        return meta('company_category');
    }
}
開發者ID:thruthesky,項目名稱:backend,代碼行數:9,代碼來源:init.php

示例8: log

 public function log()
 {
     meta()->set('title', 'GIT Log');
     if (is_object($error = $this->check())) {
         return $error;
     }
     $git = $this->git();
     $last = (int) input('last') ?: config('git')['log_history'];
     return self::content('git.log', array('last' => $last, 'log' => $git->setCommitLinks($git->getLogStat($last))));
 }
開發者ID:eusonlito,項目名稱:web-deploy,代碼行數:10,代碼來源:Git.php

示例9: index

 function index()
 {
     $this->title = 'Welcome to Becak MVC Framework !';
     $this->meta .= meta('keywords', 'becak, php5, framework');
     $this->head .= css('welcome.js');
     $this->head .= script('welcome');
     $data['var'] = 'This page generated by Becak MVC Framework.';
     $this->body = view('view_welcome', $data);
     app_view('view_base');
 }
開發者ID:anugrahbsoe,項目名稱:Becak-HMVC-Framework,代碼行數:10,代碼來源:page.php

示例10: uninstall

 public function uninstall()
 {
     $attend = node('philgo_attend');
     if ($attend->exists()) {
         $attend->uninit();
     }
     $meta = meta('philgo');
     if ($meta->exists()) {
         $meta->uninit();
     }
 }
開發者ID:thruthesky,項目名稱:overframe,代碼行數:11,代碼來源:Philgo.php

示例11: __construct

 public function __construct()
 {
     $this->CI =& get_instance();
     //$this->CI調用框架方法
     $this->CI->load->helper(array('html', 'string', 'url'));
     $this->CI->load->model('tool/spider_model');
     if (!is_cli()) {
         echo doctype('html4-trans') . meta('Content-type', 'text/html;charset=utf-8', 'equiv');
         echo link_tag(base_url('public/image/favicon.ico'), 'shortcut icon', 'image/ico');
     }
 }
開發者ID:ahmatjan,項目名稱:lv,代碼行數:11,代碼來源:Spider_func.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     loader::sys_helper('view');
     loader::sys_helper('head_tag');
     $this->base = common::config_item('base_url');
     $this->base_url = common::config_item('base_url') . common::config_item('index_page');
     $this->base_img = common::config_item('source_url') . 'images/';
     $this->meta = meta('Content-type', 'text/html; charset=utf-8', 'equiv');
     $this->meta .= meta('author', 'Eko Heri Susanto');
 }
開發者ID:anugrahbsoe,項目名稱:Becak-HMVC-Framework,代碼行數:11,代碼來源:global_controller.php

示例13: seo

 function seo()
 {
     // 		bug($this->title);
     if ($this->title === null) {
         $this->title = lang('sitename');
     } else {
         $this->title = $this->title . ' - ' . lang('sitename');
     }
     // 		bug($this->title);
     echo HTML('title', $this->title);
     $this->description = lang('About Parkorn Leather Description');
     echo meta('description', $this->description);
 }
開發者ID:quanict,項目名稱:parkornleather,代碼行數:13,代碼來源:pshop.php

示例14: update

 public function update()
 {
     meta()->set('title', 'RSYNC Update');
     if (is_object($response = $this->check())) {
         return $response;
     }
     if (input('find') === 'true') {
         $files = (new Repository\Rsync())->getUpdatedFiles();
     } else {
         $files = array();
     }
     return self::content('rsync.update', array('config' => config('rsync'), 'files' => $files, 'processor' => (new Processor\Rsync())->update()));
 }
開發者ID:eusonlito,項目名稱:web-deploy,代碼行數:13,代碼來源:Rsync.php

示例15: meta_last_page

/**
 * To show last meta
 * 
 ****/
function meta_last_page()
{
    $meta = array(array('name' => 'robots', 'content' => 'index, follow, all'), array('name' => 'revisit-after', 'content' => '1 days'), array('name' => 'language', 'content' => 'Vietnamese'), array('name' => 'dc.creator.email', 'content' => 'phongkhamapollo@gmail.com'), array('name' => 'dc.identifier', 'content' => base_url()), array('name' => 'dc.language', 'content' => 'vi-VN'), array('name' => 'og:type', 'content' => 'article'), array('name' => 'og:title', 'content' => 'Phòng khám đa khoa Apollo'), array('name' => 'geo.position', 'content' => '20.995733, 105.842902'), array('name' => 'geo.placename', 'content' => 'TP.HCM, Hà Nội'), array('name' => 'geo.region', 'content' => 'VN-65'));
    $meta_properties = "<meta property='og:type' content='article' />\n";
    $meta_properties .= "<meta property='og:title' content='Phòng khám đa khoa Apollo' />\n";
    $meta_properties .= "<meta property='og:description' content='Phòng Khám Đa Khoa apollo với các thiết bị y tế hiện đại, phong cách phục vụ chuyên nghiệp hy vọng sẽ góp phần giúp cho tất cả mọi người luôn có một sức khỏe tốt. />\n";
    $meta_properties .= "<meta property='og:url' content='" . base_url() . "' />\n";
    $meta_properties .= "<meta property='og:sitename' content='Phòng Khám Đa Khoa APOLLO' />";
    $meta_itemprop = "<meta itemprop='name' content='Phòng khám đa khoa Apollo' />\n";
    $meta_itemprop .= "<meta itemprop='description' content='Phòng Khám Đa Khoa apollo với các thiết bị y tế hiện đại, phong cách phục vụ chuyên nghiệp hy vọng sẽ góp phần giúp cho tất cả mọi người luôn có một sức khỏe tốt.' />\n";
    $xhtml_meta = meta($meta) . $meta_properties . $meta_itemprop;
    return $xhtml_meta;
}
開發者ID:pkapollo,項目名稱:phongkhamapollo.com,代碼行數:17,代碼來源:page_helper.php


注:本文中的meta函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。