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


PHP core::cookie方法代码示例

本文整理汇总了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');
开发者ID:akram,项目名称:openclassifieds2-jetski,代码行数:31,代码来源:listing.php

示例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">
开发者ID:pyrotoxin,项目名称:openclassifieds2,代码行数:31,代码来源:sidebar.php

示例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();
开发者ID:Ryanker,项目名称:open-eshop,代码行数:31,代码来源:listing.php

示例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 
}
开发者ID:JeffPedro,项目名称:project-garage-sale,代码行数:15,代码来源:elasticemail.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'));
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:listing.php

示例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');
    ?>
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:home.php


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