Esempio n. 1
0
<![endif]-->
<!--[if lt IE 10]>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'jquery/placeholder/min.js');
} else {
    js::import($jsRoot . 'all.ie9.js');
}
?>
<![endif]-->
<?php 
$template = $this->config->template->{$this->device}->name ? $this->config->template->{$this->device}->name : 'default';
$theme = $this->config->template->{$this->device}->theme ? $this->config->template->{$this->device}->theme : 'default';
$baseCustom = isset($this->config->template->custom) ? json_decode($this->config->template->custom, true) : array();
if (!empty($baseCustom[$template][$theme]['js'])) {
    js::execute($baseCustom[$template][$theme]['js']);
}
?>
</head>
<body>
<div class='page-container page-blog'>
  <header id='header' class='clearfix'>
    <div id='headNav'><div class='wrapper'><?php 
echo commonModel::printTopBar();
?>
</div></div>
    <div id='headTitle'>
      <div class="wrapper">
        <?php 
$logoSetting = isset($this->config->site->logo) ? json_decode($this->config->site->logo) : new stdclass();
?>
Esempio n. 2
0
<div class='child hide'>
  <div class='form-group category'>
    <div class='col-xs-6 col-md-4 col-md-offset-2'><?php 
echo html::input("children[]", '', "class='form-control' placeholder='{$this->lang->category->name}'");
?>
</div>
    <div class='col-xs-6 col-md-4'><?php 
echo html::input("alias[]", '', "class='form-control' placeholder='{$this->lang->category->alias}'");
?>
</div>
    <div class='col-xs-6 col-md-2'>
      <?php 
echo "<i class='icon-move sort-handle'> </i>";
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-plus'></i>", "class='btn btn-link pull-left btn-mini btn-plus'");
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-remove'></i>", "class='btn btn-link pull-left btn-mini btn-remove'");
?>
    </div>
    <?php 
echo html::hidden('mode[]', 'new');
?>
  </div>
</div>
<?php 
js::set('maxID', $maxID);
if (isset($pageJS)) {
    js::execute($pageJS);
}
Esempio n. 3
0
if (isset($error) and $error) {
    ?>
<div class='alert alert-danger'>
  <i class='icon-info-sign'></i>
  <div class='content'><?php 
    $error;
    ?>
</div>
</div>
<?php 
} else {
    ?>
<div class='alert alert-success'>
  <i class='icon-ok-sign'></i>
  <div class='content'>
    <h3><?php 
    echo $title;
    ?>
</h3>
    <p class='text-center'><?php 
    echo html::a(inlink('browse', 'type=installed'), $lang->package->viewInstalled, "class='btn'");
    ?>
</p>
    <?php 
    echo js::execute("parent.\$('.clearfix').load(window.parent.location.href + ' .clearfix')");
    ?>
  </div>
</div>
<?php 
}
include '../../common/view/footer.modal.html.php';
<![endif]-->
<!--[if lt IE 10]>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'jquery/placeholder/min.js');
} else {
    js::import($jsRoot . 'all.ie9.js');
}
?>
<![endif]-->
<?php 
if (isset($this->config->site->basestyle)) {
    css::internal($this->config->site->basestyle);
}
if (isset($this->config->site->basejs)) {
    js::execute($this->config->site->basejs);
}
?>
</head>
<body>
<div class='page-container page-blog'>
  <header id='header' class='clearfix'>
    <div id='headNav'><div class='wrapper'><?php 
echo commonModel::printTopBar();
?>
</div></div>
    <div id='headTitle'>
      <div class="wrapper">
        <?php 
$template = $this->config->template->{$this->device}->name;
?>
Esempio n. 5
0
 * The view file of blog view method of chanzhiEPS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPLV12 (http://zpl.pub/page/zplv12.html)
 * @author      Xiying Guan <*****@*****.**>
 * @package     blog
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include TPL_ROOT . 'blog/header.html.php';
$path = !empty($category->pathNames) ? array_keys($category->pathNames) : array();
js::set('path', $path);
js::set('categoryID', $category->id);
js::set('articleID', $article->id);
css::internal($article->css);
js::execute($article->js);
include TPL_ROOT . 'common/treeview.html.php';
$root = '<li>' . $this->lang->currentPos . $this->lang->colon . html::a($this->inlink('index'), $lang->blog->home) . '</li>';
$common->printPositionBar($category, $article, '', $root);
?>
<div class='row blocks' data-region='blog_view-topBanner'><?php 
$this->block->printRegion($layouts, 'blog_view', 'topBanner', true);
?>
</div>
<div class='row'>
  <div class='col-md-9 col-main'>
    <div class='row blocks' data-region='blog_view-top'><?php 
$this->block->printRegion($layouts, 'blog_view', 'top', true);
?>
</div>
    <div class='article' id='blog' data-id='<?php 
Esempio n. 6
0
 * @link        http://www.chanzhi.org
 */
include TPL_ROOT . 'common/header.html.php';
include TPL_ROOT . 'common/treeview.html.php';
/* set categoryPath for topNav highlight. */
js::set('path', $product->path);
js::set('productID', $product->id);
js::set('categoryID', $category->id);
js::set('categoryPath', explode(',', trim($category->path, ',')));
js::set('addToCartSuccess', $lang->product->addToCartSuccess);
js::set('gotoCart', $lang->product->gotoCart);
js::set('goback', $lang->product->goback);
js::set('stockOpened', $stockOpened);
js::set('stock', $product->amount);
css::internal($product->css);
js::execute($product->js);
?>
<div class="main-content">
<?php 
$common->printPositionBar($category, $product);
?>

  <div class="main-box">
    <!-- 左边分类列表开始 -->
    <div class="left">
      <?php 
foreach ($children as $sub1) {
    ?>
        <a href="<?php 
    echo $siteRoot . "product/c" . $sub1->id . ".html";
    ?>
Esempio n. 7
0
 * @package     common 
 * @version     $Id: footer.html.php 3138 2015-11-09 07:32:18Z chujilu $
 * @link        http://www.ranzhico.com
 */
if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
if ($config->debug) {
    js::import($jsRoot . 'jquery/form/min.js');
}
if (isset($pageJS)) {
    js::execute($pageJS);
}
/* Load hook files for current page. */
$extPath = dirname(dirname(dirname(__FILE__))) . '/common/ext/view/';
$extHookRule = $extPath . 'footer.*.hook.php';
$extHookFiles = glob($extHookRule);
if ($extHookFiles) {
    foreach ($extHookFiles as $extHookFile) {
        include $extHookFile;
    }
}
if ($this->loadModel('cron')->runable()) {
    js::execute('startCron()');
}
?>
</div>
</body>
</html>
Esempio n. 8
0
<?php

include TPL_ROOT . 'common/header.html.php';
include TPL_ROOT . 'common/treeview.html.php';
js::set('pageID', $page->id);
css::internal($page->css);
js::execute($page->js);
$common->printPositionBar($page);
?>
<div class='row blocks' data-region='page_view-topBanner'><?php 
$this->block->printRegion($layouts, 'page_view', 'topBanner', true);
?>
</div>
<div class='row'>
  <?php 
if (!empty($layouts['page_view'])) {
    ?>
  <div class='col-md-9 col-main'>
  <?php 
} else {
    ?>
  <div class='col-md-12'>
  <?php 
}
?>
    <div class='row blocks' data-region='page_view-top'><?php 
$this->block->printRegion($layouts, 'page_view', 'top', true);
?>
</div>
    <div class='article' id='page<?php 
echo $page->id;
Esempio n. 9
0
        $modalWidth = 700;
    }
    if (is_numeric($modalWidth)) {
        $modalWidth .= 'px';
    } else {
        if (isset($modalSizeList[$modalWidth])) {
            $modalWidth = $modalSizeList[$modalWidth];
        }
    }
    if (isset($pageCSS)) {
        css::internal($pageCSS);
    }
    /* set requiredField. */
    if (isset($this->config->{$moduleName}->require->{$methodName})) {
        $requiredFields = str_replace(' ', '', $this->config->{$moduleName}->require->{$methodName});
        js::execute("config.requiredFields = \"{$requiredFields}\"; setRequiredFields();");
    }
    ?>
<div class="modal-dialog" style="width:<?php 
    echo $modalWidth;
    ?>
;">
  <div class="modal-content">
    <div class="modal-header">
      <?php 
    echo html::closeButton();
    ?>
      <strong class="modal-title"><?php 
    if (!empty($title)) {
        echo $title;
    }