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


PHP Meta::meta方法代码示例

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


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

示例1: Meta

<?php

require_once 'classes/opciones/Opcion.php';
require_once 'classes/metas/Meta.php';
require_once 'classes/beneficios/Beneficio.php';
require_once 'classes/galerias/Galeria.php';
$metas = new Meta(1);
$meta = $metas->meta();
$opciones = new Opcion(1);
$home = $opciones->home();
$beneficios = new Beneficio(1);
$beneficios = $beneficios->beneficios();
$galerias = new Galeria(1);
$galerias = $galerias->galeria();
$frase = $opciones->frase();
?>


<!DOCTYPE html>
<!-- saved from url=(0049) -->
<html lang="es"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta charset="utf-8">
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title><?php 
echo $meta["title"];
?>
</title>
    <meta name="description" content="<?php 
echo $meta["description"];
开发者ID:carlosvazquez,项目名称:landingpage,代码行数:31,代码来源:index.php

示例2:

        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title><?php 
echo Meta::meta('title');
?>
</title>
        <?php 
echo Meta::tag('description');
?>
        <meta name="keywords" content="Shop, Online, Магазин, Продукти, Промоция, Ниски цени, Пазаруване, Поръчки, Закупуване">
        <meta property="og:title" content="<?php 
echo Meta::meta('title');
?>
"/>
        <meta property="og:description" content="<?php 
echo Meta::meta('description');
?>
"/>
        <meta property="og:image" content="{{url("img/myimg.jpg")}}"/>
        <!-- Fonts -->
        <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel='stylesheet' type='text/css'>
        <!-- Styles -->
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
        <link href="{{URL::asset('css/style.css')}}" rel="stylesheet">
        <link rel="shortcut icon" href="{{URL::asset('img/fiv.png')}}" />

    </head>
    <body>

        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">
开发者ID:sbrojdenov,项目名称:shop,代码行数:31,代码来源:app.blade.php

示例3: array

}
// Define whether an HTTPS connection is required
$HTTPS_required = FALSE;
// Define whether user authentication is required
$authentication_required = FALSE;
// Define API response codes and their related HTTP response
$api_response_code = array(0 => array('HTTP Response' => 400, 'Message' => 'Unknown Error'), 1 => array('HTTP Response' => 200, 'Message' => 'Success'), 2 => array('HTTP Response' => 403, 'Message' => 'HTTPS Required'), 3 => array('HTTP Response' => 401, 'Message' => 'Authentication Required'), 4 => array('HTTP Response' => 401, 'Message' => 'Authentication Failed'), 5 => array('HTTP Response' => 404, 'Message' => 'Invalid Request'), 6 => array('HTTP Response' => 400, 'Message' => 'Invalid Response Format'));
// Set default HTTP response of 'ok'
$response['code'] = 0;
$response['status'] = 404;
$response['data'] = NULL;
if ($authentication_required) {
    $response['data'] = auth($_POST["user"], $_POST["project_id"], $_POST["redcap_url"]);
}
// Calls the API
$response['code'] = 1;
$response['status'] = $api_response_code[$response['code']]['HTTP Response'];
if ($_SERVER['CONTENT_TYPE'] == 'application/x-www-form-urlencoded') {
    $metaws = new Meta();
    $response['data'] = $metaws->meta($_POST["user"], $_POST["project_id"], $_POST["redcap_url"]);
} else {
    if ($_SERVER['CONTENT_TYPE'] == 'application/json') {
        $json = file_get_contents('php://input');
        $obj = json_decode($json, true);
        $dataws = new Data();
        $response['data'] = $dataws->data($obj["user"], $obj["project_id"], $obj["redcap_url"], $obj["id"], $obj["fields"]);
        unset($dataws);
    }
}
// Return Response to browser
deliver_response($response);
开发者ID:rparrish,项目名称:redcap-ddp,代码行数:31,代码来源:index.php


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