本文整理汇总了PHP中core::cookie方法的典型用法代码示例。如果您正苦于以下问题:PHP core::cookie方法的具体用法?PHP core::cookie怎么用?PHP core::cookie使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core
的用法示例。
在下文中一共展示了core::cookie方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="btn-group pull-right">
<?php
if (core::config('advertisement.map') == 1) {
?>
<a href="<?php
echo Route::url('map');
?>
?category=<?php
echo Model_Category::current()->loaded() ? Model_Category::current()->seoname : NULL;
?>
&location=<?php
echo Model_Location::current()->loaded() ? Model_Location::current()->seoname : NULL;
?>
"
class="btn btn-default btn-sm <?php
echo core::cookie('list/grid') == 0 ? 'active' : '';
?>
">
<span class="glyphicon glyphicon-globe"></span> <?php
echo __('Map');
?>
</a>
<?php
}
?>
<button type="button" id="sort" data-sort="<?php
echo core::request('sort');
?>
" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-list-alt"></span> <?php
echo __('Sort');
示例2: defined
<?php
defined('SYSPATH') or die('No direct script access.');
?>
<aside class="col-md-1 col-sm-1 col-xs-1 respon-left-panel">
<div class="sidebar-nav">
<div class="clearfix"></div>
<div class="container">
<div class="row">
<div class="col-md-1 col-sm-1 col-xs-1 respon-left-panel">
<div class="panel-group <?php
echo core::cookie('sidebar_state') == 'collapsed' ? 'mini-col' : NULL;
?>
" id="accordion">
<? if($user->id_role==Model_Role::ROLE_ADMIN OR $user->id_role==Model_Role::ROLE_MODERATOR):?>
<div class="panel panel-sidebar">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
<i class="fa fa-angle-double-down i-right"></i>
<span class="glyphicon glyphicon-th"></span>
<span class="title-txt"><?php
echo __('Classifieds');
?>
</span>
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse">
<div class="panel-body">
示例3: array
?>
">
<?php
}
?>
</a>
<div class="caption">
<h4><a href="<?php
echo Route::url('product', array('seotitle' => $product->seotitle, 'category' => $product->category->seoname));
?>
"><?php
echo substr($product->title, 0, 30);
?>
</a></h4>
<p><?php
echo Text::limit_chars(Text::removebbcode($product->description), core::cookie('list/grid') == 1 ? 255 : 30, NULL, TRUE);
?>
</p>
<a class="btn btn-success" href="<?php
echo Route::url('product', array('seotitle' => $product->seotitle, 'category' => $product->category->seoname));
?>
">
<span class="fa fa-shopping-cart"></span>
<?php
if ($product->final_price() > 0) {
?>
<?php
echo __('Buy Now');
?>
<?php
echo $product->formated_price();
示例4: emails
<?php
if (core::cookie('elastic_alert') != 1 and Auth::instance()->get_user()->id_role == Model_Role::ROLE_ADMIN) {
?>
<div class="alert alert-warning fade in">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onclick='setCookie("elastic_alert",1,365)'>×</button>
<p>
<span class="label label-success">PRO Tip</span>
Do you want your emails to reach users inbox? Do you want to trace your e-mails?
Try <a href="http://j.mp/elasticemailoc" target="_blank">ElasticEmail!</a> Get 5.000 free emails ($5 Free)
<a class="btn btn-success" href="http://j.mp/elasticemailoc" target="_blank" onclick='setCookie("elastic_alert",1,365)' >Sign Up</a>
</p>
</div>
<?php
}
示例5: array
if ($ad->id_location and core::request('sort') == 'distance' and Model_User::get_userlatlng()) {
?>
<span> - <i class="glyphicon glyphicon-map-marker"></i> <?php
echo i18n::format_measurement($ad->distance);
?>
away</span>
<?php
}
?>
</p>
<?php
if (core::config('advertisement.description') != FALSE) {
?>
<p class="ad_desc"><?php
echo core::cookie('list/grid') == 1 ? Text::limit_chars(Text::removebbcode($ad->description), 255, NULL, TRUE) : Text::limit_chars(Text::removebbcode($ad->description), 30, NULL, TRUE);
?>
</p>
<?php
}
?>
</div>
</div>
<div class="ad_buttons">
<?php
if ($user !== NULL and ($user->id_role == Model_Role::ROLE_ADMIN or $user->id_role == Model_Role::ROLE_MODERATOR)) {
?>
<span class="ad_options">
<a class="btn btn-warning" data-toggle="modal" data-dismiss="modal" href="<?php
echo Route::url('oc-panel', array('controller' => 'myads', 'action' => 'index'));
示例6: __
echo core::config('general.site_name');
?>
<?php
echo __('panel');
?>
</h1>
<hr>
<p><?php
echo __('This is the main overview page of your website.');
?>
</p>
<?php
if (core::cookie('intro_panel') != 1) {
?>
<div class="row" id="intro-panel">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title"><?php
echo __('Welcome');
?>
<?php
echo Auth::instance()->get_user()->name;
?>
</div>
<a href="#" class="close-panel"><i class="fa fa-close"></i><span class="sr-only"><?php
echo __('Hide');
?>