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


PHP kernel::base_url方法代码示例

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


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

示例1: img

 function img($params)
 {
     if (is_string($params)) {
         $params = array('src' => $params);
     }
     if (empty($params['app'])) {
         throw new \InvalidArgumentException('img tag missing app argument. detail:' . $params['src']);
     }
     $app = app::get($params['app']);
     $app_id = $app->app_id;
     if (!isset($this->_imgbundle[$app_id])) {
         $bundleinfo = array();
         //base_kvstore::instance('imgbundle')->fetch('imgbundle_' . $app_id, $bundleinfo);
         $this->_imgbundle[$app_id] = (array) $bundleinfo;
     }
     if (is_array($this->_imgbundle[$app_id]['info']) && array_key_exists($params['src'], $this->_imgbundle[$app_id]['info'])) {
         $img_info = $this->_imgbundle[$app_id]['info'][$params['src']];
         $params['lib'] = kernel::base_url(1) . '/images/' . $this->_imgbundle[$app_id]['bundleimg'] . '?' . $this->_imgbundle[$app_id]['mtime'];
         $params['src'] = app::get('base')->res_url . '/images/transparent.gif';
         $style = "background-image:url({$params['lib']});background-position:0 {$img_info[0]}px;width:{$img_info[1]}px;height:{$img_info[2]}px";
         $params['style'] = $params['style'] ? $params['style'] . ';' . $style : $style;
         $params['class'] = $params['class'] ? 'imgbundle ' . $params['class'] : 'imgbundle';
     } else {
         $params['src'] = $app->res_url . '/images/' . $params['src'];
     }
     unset($params['lib']);
     return utils::buildTag($params, 'img');
 }
开发者ID:453111208,项目名称:bbc,代码行数:28,代码来源:ui.php

示例2: theme_widget_ad_slide

/**
 *
 * @auther   ShopEx UED Jxwinter
 * @date   2011-11-18
 * @copyright  Copyright (c) 2005-2012 ShopEx Technologies Inc. (http://www.shopex.cn)
 *
 */
function theme_widget_ad_slide(&$setting, &$system)
{
    $setting['allimg'] = "";
    $setting['allurl'] = "";
    if ($system->theme) {
        $theme_dir = kernel::base_url() . '/themes/' . $smarty->theme;
    } else {
        $theme_dir = kernel::base_url() . '/themes/' . app::get('site')->getConf('current_theme');
    }
    if (!$setting['pic']) {
        foreach ($setting['img'] as $value) {
            $setting['allimg'] .= $rvalue . "|";
            $setting['allurl'] .= urlencode($value["url"]) . "|";
        }
    } else {
        foreach ($setting['pic'] as $key => $value) {
            if ($value['link']) {
                if ($value["url"]) {
                    $value["linktarget"] = $value["url"];
                }
                $setting['allimg'] .= $rvalue . "|";
                $setting['allurl'] .= urlencode($value["linktarget"]) . "|";
                $setting['pic'][$key]['link'] = str_replace('%THEME%', $theme_dir, $value['link']);
            }
        }
    }
    return $setting;
}
开发者ID:syjzwjj,项目名称:quyeba,代码行数:35,代码来源:theme_widget_ad_slide.php

示例3: __construct

 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/weixin/weixin_payment_plugin_wxpay_server', 'callback');
     $this->notify_url = kernel::base_url(1) . '/index.php/openapi/weixin/wxpay';
     #test
     // $this->notify_url = kernel::base_url(1).'/index.php/wap/paycenter-wxpay.html';
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/weixin/weixin_payment_plugin_wxpay', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     // $this->submit_url = $this->gateway;
     // $this->submit_method = 'GET';
     $this->submit_charset = 'UTF-8';
     $this->signtype = 'sha1';
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:36,代码来源:wxpay.php

示例4: function_header

 /**
  * 头部
  */
 function function_header()
 {
     $ret = '<base href="' . kernel::base_url(1) . '"/>';
     $path = app::get('site')->res_url;
     $debug_css = defined('DEBUG_CSS') && constant('DEBUG_CSS');
     $debug_js = defined('DEBUG_JS') && constant('DEBUG_JS');
     $css_mini = $debug_css ? '' : '_mini';
     $cssver = kernel::single('base_component_ui')->getVer($debug_css);
     $jsver = kernel::single('base_component_ui')->getVer($debug_js);
     if (!defined("DONOTUSE_CSSFRAMEWORK") || !constant('DONOTUSE_CSSFRAMEWORK')) {
         $ret .= '<link rel="stylesheet" href="' . $path . '/css' . $css_mini . '/typical.css' . $cssver . '" />';
     }
     $ret .= '<link rel="stylesheet" href="' . $path . '/css' . $css_mini . '/widgets_edit.css' . $cssver . '" />';
     $ret .= kernel::single('base_component_ui')->lang_script(array('src' => 'lang.js', 'app' => 'site', 'pdir' => 'js_mini'));
     $ret .= kernel::single('base_component_ui')->lang_script(array('src' => 'lang.js', 'app' => 'b2c', 'pdir' => 'js_mini'));
     if ($debug_js) {
         $ret .= '<script src="' . $path . '/js/mootools.js?' . $jsver . '"></script>
         <script src="' . $path . '/js/moomore.js' . $jsver . '"></script>
         <script src="' . $path . '/js/jstools.js' . $jsver . '"></script>
         <script src="' . $path . '/js/switchable.js' . $jsver . '"></script>
         <script src="' . $path . '/js/dragdropplus.js' . $jsver . '"></script>
         <script src="' . $path . '/js/shopwidgets.js' . $jsver . '"></script>';
     } else {
         $ret .= '<script src="' . $path . '/js_mini/moo.min.js' . $jsver . '"></script>
         <script src="' . $path . '/js_mini/ui.min.js' . $jsver . '"></script>
         <script src="' . $path . '/js_mini/shopwidgets.min.js' . $jsver . '"></script>';
     }
     foreach (kernel::serviceList('site_theme_view_helper') as $service) {
         if (method_exists($service, 'function_header')) {
             $ret .= $service->function_header();
         }
     }
     return $ret;
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:37,代码来源:helper.php

示例5: post_login

 function post_login()
 {
     $url = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_member', 'act' => 'index'));
     $userPassport = kernel::single('b2c_user_passport');
     $member_id = $userPassport->userObject->get_member_id();
     if ($member_id) {
         $b2c_members_model = app::get('b2c')->model('members');
         $member_point_model = app::get('b2c')->model('member_point');
         $member_data = $b2c_members_model->getList('member_lv_id,experience,point', array('member_id' => $member_id));
         if (!$member_data) {
             $this->splash('failed', null, app::get('b2c')->_('数据异常,请联系客服'));
         }
         $member_data = $member_data[0];
         $member_data['order_num'] = app::get('b2c')->model('orders')->count(array('member_id' => $member_id));
         if (app::get('b2c')->getConf('site.level_switch') == 1 && $member_data['experience']) {
             $member_data['member_lv_id'] = $b2c_members_model->member_lv_chk($member_data['member_lv_id'], $member_data['experience']);
         }
         if (app::get('b2c')->getConf('site.level_switch') == 0 && $member_data['point']) {
             $member_data['member_lv_id'] = $member_point_model->member_lv_chk($member_id, $member_data['member_lv_id'], $member_data['point']);
         }
         $b2c_members_model->update($member_data, array('member_id' => $member_id));
         #$userPassport->userObject->set_member_session($member_id);
         $this->bind_member($member_id);
         app::get('b2c')->model('cart_objects')->setCartNum();
         $url = $userPassport->get_next_page();
         if (!$url) {
             $url = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_member', 'act' => 'index'));
         }
         $this->splash('success', $url);
     } else {
         $this->splash('failed', kernel::base_url(1), app::get('b2c')->_('参数错误'));
     }
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:33,代码来源:trust.php

示例6: function_header

 /**
  * 头部
  */
 function function_header()
 {
     $ret = '<base href="' . kernel::base_url(1) . '"/>';
     $path = app::get('site')->res_url;
     $css_min = defined('DEBUG_CSS') && constant('DEBUG_CSS') ? '' : '_min';
     $css_mini = $css_min ? '_mini' : '';
     $ret .= '<link rel="stylesheet" href="' . $path . '/css' . $css_min . '/framework.css" type="text/css" />';
     $ret .= '<link rel="stylesheet" href="' . $path . '/css' . $css_mini . '/widgets_edit.css" type="text/css" />';
     $ret .= kernel::single('base_component_ui')->lang_script(array('src' => 'lang.js', 'app' => 'site'));
     if (defined('DEBUG_JS') && constant('DEBUG_JS')) {
         $ret .= '<script src="' . $path . '/js/mootools.js?' . time() . '"></script>
         <script src="' . $path . '/js/moomore.js?' . time() . '"></script>
         <script src="' . $path . '/js/jstools.js?' . time() . '"></script>
         <script src="' . $path . '/js/coms/switchable.js?' . time() . '"></script>
         <script src="' . $path . '/js/dragdropplus.js?' . time() . '"></script>
         <script src="' . $path . '/js/shopwidgets.js?' . time() . '"></script>';
     } else {
         $ret .= '<script src="' . $path . '/js_mini/moo_min.js"></script>
         <script src="' . $path . '/js_mini/switchable_min.js"></script>
         <script src="' . $path . '/js_mini/shopwidgets_min.js"></script>';
     }
     foreach (kernel::serviceList('site_theme_view_helper') as $service) {
         if (method_exists($service, 'function_header')) {
             $ret .= $service->function_header();
         }
     }
     return $ret;
 }
开发者ID:syjzwjj,项目名称:quyeba,代码行数:31,代码来源:helper.php

示例7: add

 function add()
 {
     if (empty($this->license_id)) {
         $result = array('rsp' => 'fail', 'err_msg' => '授权证书无效');
         return $result;
     }
     $shopname = app::get('site')->getConf('site.name');
     $host_url = kernel::base_url(1);
     $params['method'] = 'denglu.site.add';
     $params['license_id'] = $this->license_id;
     $params['entid'] = $this->entid;
     $params['name'] = $shopname;
     $params['url'] = $host_url;
     $params['token_url'] = $host_url . '/index.php/trust-callback.html';
     $params['webtype'] = $this->webtype;
     $params['timestamp'] = time();
     $params['sign_method'] = 'md5';
     $params['v'] = '1.0';
     $make_sign = kernel::single('openid_sign')->get_ce_sign($params, $this->license_key);
     $params['sign'] = $make_sign;
     $this->net = kernel::single('base_httpclient');
     $result = $this->net->post($this->commit_url, $params);
     $result = json_decode($result, true);
     if ($result['rsp'] == 'succ') {
         app::get('openid')->setConf('appid', $result['data']['appid']);
         app::get('openid')->setConf('appkey', $result['data']['appkey']);
     }
     return $result;
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:29,代码来源:denglu.php

示例8: flush

 function flush()
 {
     $base_url = kernel::base_url();
     foreach ($this->db->select('select queue_id from sdb_base_queue limit ' . $this->limit) as $r) {
         $this->runtask($r['queue_id']);
     }
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:7,代码来源:queue.php

示例9: install

 public function install()
 {
     $ident = $this->_request->get_get('ident');
     $downObj = kernel::single('site_utility_download');
     $task_info = $downObj->get_task($ident);
     if (empty($task_info)) {
         $this->_error();
     }
     $file = $downObj->get_work_dir() . '/' . $ident . '/' . $task_info['name'];
     $msg = __('无法找到安装文件');
     if (is_file($file)) {
         $fileInfo['tmp_name'] = $file;
         $fileInfo['name'] = time();
         $fileInfo['error'] = '0';
         $fileInfo['size'] = filesize($file);
         $themeInstallObj = kernel::single('site_theme_install');
         $res = $themeInstallObj->install($fileInfo, $msg);
     }
     if ($res) {
         $img = kernel::base_url(1) . '/themes/' . $res['theme'] . '/preview.jpg';
         $this->pagedata['img'] = '<img src="' . $img . '" />';
         $this->pagedata['msg'] = __('模板安装成功,您可以在模板列表中启用它。');
     } else {
         $this->pagedata['msg'] = $msg;
     }
     $this->singlepage('admin/download/result.html');
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:27,代码来源:manage.php

示例10: index

 function index()
 {
     $mobileshop_url = $this->app->getConf('mobileshop.url');
     $mobileshop_token = $this->app->getConf('mobileshop.token');
     if (!empty($mobileshop_url)) {
         $wlshop = app::get('b2c')->model('shop');
         $node_ids = $wlshop->getList('node_id', array('node_type' => 'shopex_wmall', 'status' => 'bind'));
         foreach ($node_ids as $value) {
             if (!empty($value['node_id'])) {
                 $node_id = $value['node_id'];
             }
         }
         $callinfo['node_id'] = $node_id;
         $callinfo['shop_url'] = kernel::base_url(1) . kernel::url_prefix() . "/";
         $callinfo['shop_license'] = base_certificate::get('certificate_id');
         $callinfo['shop_node'] = base_shopnode::node_id('b2c');
         $callinfo['shop_name'] = app::get('site')->getConf('site.name');
         $callinfo['type'] = '1';
         $callinfo['sign'] = $this->get_sign($callinfo, $mobileshop_token);
         $this->pagedata['ifseturl'] = 1;
         $this->pagedata['node_id'] = $callinfo['node_id'];
         $this->pagedata['type'] = $callinfo['type'];
         $this->pagedata['shop_license'] = $callinfo['shop_license'];
         $this->pagedata['shop_node'] = $callinfo['shop_node'];
         $this->pagedata['shop_url'] = $callinfo['shop_url'];
         $this->pagedata['shop_name'] = $callinfo['shop_name'];
         $this->pagedata['sign'] = $callinfo['sign'];
         $this->pagedata['mobileshop_url'] = $mobileshop_url;
     } else {
         $this->pagedata['ifseturl'] = 0;
     }
     $this->page('admin/index.html');
 }
开发者ID:syjzwjj,项目名称:quyeba,代码行数:33,代码来源:mobileshop.php

示例11: function_wapfooter

 public function function_wapfooter($params, &$smarty)
 {
     $footers = $smarty->pagedata['footers'];
     if (is_array($footers)) {
         foreach ($footers as $footer) {
             $html .= $footer;
         }
     } else {
         $html .= $footers;
     }
     $html .= app::get('wap')->getConf('wap.foot_edit');
     $obj = kernel::service('site_footer_copyright');
     if (is_object($obj) && method_exists($obj, 'get')) {
         $html .= $obj->get();
     } else {
         if (!defined('WITHOUT_POWERED') || !constant('WITHOUT_POWERED')) {
             $html .= ecos_cactus('wap', 'wapcopyr', $html);
         }
     }
     if (isset($_COOKIE['wap']['preview']) && $_COOKIE['wap']['preview'] == 'true') {
         $base_dir = kernel::base_url();
         $remove_cookie = "\$.fn.cookie('wap[preview]','',{path:'" . $base_dir . "/'});\$(document.body).removeClass('set-margin-body');";
         $set_window = '$("body").addClass("set-margin-body");moveTo(0,0);resizeTo(screen.availWidth,screen.availHeight);';
         $html .= '<style>body.set-margin-body{margin-top:36px;}#_theme_preview_tip_ {width:100%; position: absolute; left: 0; top: 0; background: #FCE2BC; height: 25px; line-height: 25px; padding: 5px 0; border-bottom: 1px solid #FF9900;box-shadow: 0 2px 5px #CCCCCC; }#_theme_preview_tip_ span.msg { float: left; _display: inline;zoom:1;line-height: 25px;margin-left:10px;padding:0; }#_theme_preview_tip_ a.btn {vertical-align:middle; color:#333;float: right; margin:0 10px; }</style><div id="_theme_preview_tip_"><span class="msg">' . app::get('site')->_('目前正在预览模式') . '</span><a href="javascript:void(0);" class="btn" onclick="' . $remove_cookie . 'location.reload();"><span><span>' . app::get('site')->_('退出预览') . '</span></span></a></div>';
         $html .= '<script>' . $set_window . '$(window).on("unload",function(){' . $remove_cookie . '});</script>';
     }
     $html .= $smarty->fetch('footer.html', app::get('wap')->app_id);
     $icp = app::get('site')->getConf('system.site_icp');
     if ($icp) {
         $html .= '<div style="text-align: center;">' . $icp . '</div>';
     }
     return $html;
 }
开发者ID:noikiy,项目名称:Ecstore-to-odoo,代码行数:33,代码来源:helper.php

示例12: index

 function index()
 {
     if (defined('APP_SITE_INDEX_MAXAGE') && APP_SITE_INDEX_MAXAGE > 1) {
         $this->set_max_age(APP_SITE_INDEX_MAXAGE);
     }
     //todo: 首页max-age设定
     if (kernel::single('site_theme_base')->theme_exists()) {
         $obj = kernel::service('site_index_seo');
         if (is_object($obj) && method_exists($obj, 'title')) {
             $title = $obj->title();
         } else {
             $title = app::get('site')->getConf('site.name') ? app::get('site')->getConf('site.name') : app::get('site')->getConf('page.default_title');
         }
         if (is_object($obj) && method_exists($obj, 'keywords')) {
             $keywords = $obj->keywords();
         } else {
             $keywords = app::get('site')->getConf('page.default_keywords') ? app::get('site')->getConf('page.default_keywords') : $title;
         }
         if (is_object($obj) && method_exists($obj, 'description')) {
             $description = $obj->description();
         } else {
             $description = app::get('site')->getConf('page.default_description') ? app::get('site')->getConf('page.default_description') : $title;
         }
         $this->pagedata['headers'][] = '<title>' . htmlspecialchars($title) . '</title>';
         $this->pagedata['headers'][] = '<meta name="keywords" content="' . htmlspecialchars($keywords) . '" />';
         $this->pagedata['headers'][] = '<meta name="description" content="' . htmlspecialchars($description) . '" />';
         $this->pagedata['headers'][] = "<link rel='icon' href='{$this->app->res_url}/favicon.ico' type='image/x-icon' />";
         $this->pagedata['headers'][] = "<link rel='shortcut icon' href='{$this->app}->res_url/favicon.ico' type='image/x-icon' />";
         $GLOBALS['runtime']['path'][] = array('title' => app::get('b2c')->_('首页'), 'link' => kernel::base_url(1));
         $this->set_tmpl('index');
         $this->page('index.html');
     } else {
         $this->display('splash/install_template.html');
     }
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:35,代码来源:default.php

示例13: function_wapheader

 function function_wapheader()
 {
     $ret = '<base href="' . kernel::base_url(1) . '"/>';
     $path = app::get('wap')->res_full_url;
     $css_mini = defined('DEBUG_CSS') && constant('DEBUG_CSS') ? '' : '_mini';
     $ret .= '<link rel="stylesheet" href="' . $path . '/css' . $css_mini . '/widgets_edit.css" type="text/css" />';
     $ret .= '<link rel="stylesheet" href="' . $path . '/css' . $css_mini . '/styles.css" type="text/css" />';
     $ret .= kernel::single('base_component_ui')->lang_script(array('src' => 'lang.js', 'app' => 'site'));
     if (defined('DEBUG_JS') && constant('DEBUG_JS')) {
         $ret .= '<script src="' . $path . '/js/mootools.js?' . time() . '"></script>
                 <script src="' . $path . '/js/moomore.js?' . time() . '"></script>
                 <script src="' . $path . '/js/jstools.js?' . time() . '"></script>
                 <script src="' . $path . '/js/switchable.js?' . time() . '"></script>
                 <script src="' . $path . '/js/dragdropplus.js?' . time() . '"></script>
                 <script src="' . $path . '/js/shopwidgets.js?' . time() . '"></script>';
     } else {
         $ret .= '<script src="' . $path . '/js_mini/moo.min.js"></script>
             <script src="' . $path . '/js_mini/ui.min.js"></script>
             <script src="' . $path . '/js_mini/shopwidgets.min.js"></script>';
     }
     //$ret.='<script src="'.$path.'/js_mini/patch.js"></script>';
     if ($theme_info = app::get('wap')->getConf('wap.theme_' . app::get('wap')->getConf('current_theme') . '_color')) {
         $theme_color_href = kernel::base_url(1) . '/wap_themes/' . app::get('wap')->getConf('current_theme') . '/' . $theme_info;
         $ret .= "<script>\n            window.addEvent('domready',function(){\n                new Element('link',{href:'" . $theme_color_href . "',type:'text/css',rel:'stylesheet'}).inject(document.head);\n             });\n            </script>";
     }
     return $ret;
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:27,代码来源:helper.php

示例14: column_preview

 public function column_preview($row)
 {
     $dir = WAP_THEME_DIR . '/' . $row[$this->col_prefix . 'theme'];
     if (is_dir($dir)) {
         $current_theme = kernel::single('wap_theme_base')->get_default();
         $current_sytle = kernel::single('wap_theme_base')->get_theme_style($row[$this->col_prefix . 'theme']);
         $preview = $current_sytle['preview'] ? $current_sytle['preview'] : 'preview.jpg';
         $_tm = $row[$this->col_prefix . 'theme'];
         $_active = $_tm == $current_theme;
         if ($_active) {
             $style_addon = "border:2px solid #6888C8; border-bottom:none";
             $style_addon2 = "border-color:#6888C8;";
         }
         $theme_url = defined('THEMES_IMG_URL') ? THEMES_IMG_URL : kernel::base_url(1) . '/wap_themes';
         $_html = sprintf('<div onmouseover="$(this).set(\'detail\',$(this).getParent(\'.row\').getElement(\'.btn-detail-open\').get(\'detail\'));" style="border:2px solid #E4EAF1; width: 120px; height: 140px;cursor:pointer;text-align:center;overflow:hidden; background:#fff;' . $style_addon . '"><img onload="$(this).zoomImg
         (120,136);" src="%s" id="%s" style="float:none"></div>', $theme_url . "/" . $row[$this->col_prefix . 'theme'] . '/' . $preview . '?' . time(), $row[$this->col_prefix . 'theme'] . '_img');
         $_html .= '<div style="width:120px;line-height:20px; background:#E4EAF1; border:2px solid #E4EAF1;' . $style_addon2 . '">';
         if ($_active) {
             $_html .= '<div class="t-c" style="font-weight:bold; color:#fff; background:#6888C8; ">' . app::get('wap')->_('已启用') . '</div>';
         } else {
             $_html .= '<div class="t-c" style=""><a style="color:#000" href="index.php?app=wap&ctl=admin_theme_manage&act=set_default&theme=' . $_tm . '&finder_id=' . $_GET['_finder']['finder_id'] . '">' . app::get('wap')->_('启用此模板') . '</a></div>';
         }
         $_html .= '</div>';
         return $_html;
     } else {
         return '<div>' . app::get('wap')->_('模板目录已被移除') . '</div>';
     }
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:28,代码来源:theme.php

示例15: function_footer

 function function_footer($params, &$smarty)
 {
     if (app::get('openid')->is_actived()) {
         $smarty->pagedata['openid_open'] = 'true';
         $Certid = base_certificate::get('certificate_id');
         $smarty->pagedata['cert_id'] = $Certid;
         $smarty->pagedata['openid_lg_url'] = kernel::base_url(1);
     } else {
         $smarty->pagedata['openid_open'] = 'false';
     }
     $smarty->pagedata['login_type'] = app::get('b2c')->getConf('site.login_type');
     $smarty->pagedata['app'] = app::get('b2c')->getConf('site.login_type');
     if ($smarty->app->app_id != 'b2c') {
         $shop['url']['region'] = app::get('site')->router()->gen_url(array('app' => 'b2c', 'ctl' => 'site_tools', 'act' => 'selRegion'));
         $shop['url']['placeholder'] = app::get('b2c')->res_url . '/images/imglazyload.gif';
         $smarty->pagedata['shopDefine'] = json_encode($shop);
     }
     foreach (kernel::servicelist('b2c.footer.shop.set.extends') as $obj) {
         if (method_exists($obj, 'header_shop_set_extends')) {
             $obj->header_shop_set_extends($smarty->pagedata['shopDefine']);
         }
     }
     $html = $smarty->fetch('site/common/footer.html', app::get('b2c')->app_id);
     return $html;
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:25,代码来源:helper.php


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