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')); } }
<?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>
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(); ?>
<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()))));
<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>
public function executeSmtMenu() { $type = opToolkit::isSecurePage() ? 'smartphone_default' : 'smartphone_insecure'; $this->navs = Doctrine::getTable('Navigation')->retrieveByType($type); }