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


PHP opToolkit::isSecurePage方法代码示例

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


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

示例1: executeLocalNav

 public function executeLocalNav()
 {
     if (!opToolkit::isSecurePage()) {
         return sfView::NONE;
     }
     $context = sfContext::getInstance();
     $module = $context->getActionStack()->getLastEntry()->getModuleName();
     $action = $context->getActionStack()->getLastEntry()->getActionName();
     $this->type = sfConfig::get('sf_nav_type', sfConfig::get('mod_' . $module . '_default_nav', 'default'));
     $this->navs = Doctrine::getTable('Navigation')->retrieveByType($this->type);
     if ('default' !== $this->type) {
         $this->navId = sfConfig::get('sf_nav_id', $context->getRequest()->getParameter('id'));
     }
 }
开发者ID:Kazuhiro-Murota,项目名称:OpenPNE3,代码行数:14,代码来源:components.class.php

示例2: op_image_tag

  <?php 
echo op_image_tag('SEPALATOR.png', array('height' => '6', 'width' => '320'));
?>
</div>
<!-- POSTFORM TMPL -->

<div id="slot_tosaka">
  <div class="row">
    <div class="span12">
      <div class="row">
        <div class="span4"><?php 
echo op_image_tag('LOGO.png', array('height' => '32', 'class' => 'menubutton'));
?>
</div>
        <?php 
if (opToolkit::isSecurePage()) {
    ?>
        <div class="span4 center"><?php 
    echo op_image_tag('NOTIFY_CENTER.png', array('height' => '32', 'class' => 'ncbutton'));
    ?>
</div>
        <div class="span3 offset1 center"><?php 
    echo op_image_tag('POST.png', array('height' => '32', 'class' => 'postbutton'));
    ?>
</div>
        <?php 
}
?>
      </div>
    </div>
  </div>
开发者ID:nakanohiroshi3,项目名称:opTimelinePlugin,代码行数:31,代码来源:_tosaka.php

示例3: json_encode

var openpne = ' . json_encode($json, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0) . ';
');
use_javascript('jquery.min.js');
use_javascript('jquery.tmpl.min.js');
use_javascript('smt_main');
use_javascript('smt_notify');
use_javascript('smt_tosaka');
use_javascript('smt_menu');
include_javascripts();
?>
</head>
<body id="<?php 
printf('page_%s_%s', $this->getModuleName(), $this->getActionName());
?>
" class="<?php 
echo opToolkit::isSecurePage() ? 'secure_page' : 'insecure_page';
?>
">
<?php 
include_partial('global/tosaka');
?>
<div id="face" class="row">
  <div class="span2">
    <?php 
echo op_image_tag_sf_image($sf_user->getMember()->getImageFileName(), array('size' => '48x48'));
?>
  </div>
  <div class="span8">
    <div class="row face-name"><?php 
echo $sf_user->getMember()->getName();
?>
开发者ID:newZinc,项目名称:OpenPNE3,代码行数:31,代码来源:smtLayoutHome.php

示例4: include_partial

<div id="Header">
<div id="HeaderContainer">
<?php 
include_partial('global/header');
?>
</div><!-- HeaderContainer -->
</div><!-- Header -->

<div id="Contents">
<div id="ContentsContainer">

<div id="localNav">
<?php 
$context = sfContext::getInstance();
$module = $context->getActionStack()->getLastEntry()->getModuleName();
$localNavOptions = array('is_secure' => opToolkit::isSecurePage(), 'type' => sfConfig::get('sf_nav_type', sfConfig::get('mod_' . $module . '_default_nav', 'default')), 'culture' => $context->getUser()->getCulture());
if ('default' !== $localNavOptions['type']) {
    $localNavOptions['nav_id'] = sfConfig::get('sf_nav_id', $context->getRequest()->getParameter('id'));
}
include_component('default', 'localNav', $localNavOptions);
?>
</div><!-- localNav -->

<div id="Layout<?php 
echo $layout;
?>
" class="Layout">

<?php 
if ($sf_user->hasFlash('error')) {
    op_include_parts('alertBox', 'flashError', array('body' => __($sf_user->getFlash('error'), $sf_data->getRaw('sf_user')->getFlash('error_params', array()))));
开发者ID:newZinc,项目名称:OpenPNE3,代码行数:31,代码来源:_layout.php

示例5: array

  <span id="nc_icon1">${message}</span>
  {{/if}}
  {{if link!==0}}
  <span id="nc_icon2">${link}</span>
  {{/if}}
  {{if other!==0}}
  <span id="nc_icon3">${other}</span>
  {{/if}}
</script>

<?php 
}
?>

<div id="globalNav">
<?php 
$globalNavOptions = array('type' => opToolkit::isSecurePage() ? 'secure_global' : 'insecure_global', 'culture' => sfContext::getInstance()->getUser()->getCulture());
include_component('default', 'globalNav', $globalNavOptions);
?>
</div><!-- globalNav -->

<div id="topBanner">
<?php 
if ($sf_user->isSNSMember()) {
    echo op_banner('top_after');
} else {
    echo op_banner('top_before');
}
?>
</div>
开发者ID:te-koyama,项目名称:openpne,代码行数:30,代码来源:_header.php

示例6: executeSmtMenu

 public function executeSmtMenu()
 {
     $type = opToolkit::isSecurePage() ? 'smartphone_default' : 'smartphone_insecure';
     $this->navs = Doctrine::getTable('Navigation')->retrieveByType($type);
 }
开发者ID:te-koyama,项目名称:openpne,代码行数:5,代码来源:components.class.php


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