1 Star 0 Fork 7

柳下幽灵/HongYuDSC

forked from 王东祥/HongYuDSC 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
homeindex.php 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
鸿宇科技 提交于 2018-03-02 02:43 . Initial commit
<?php
//QQ:1527200768 鸿宇科技 禁止倒卖 一经发现停止任何服务
if (!$smarty->is_cached('homeindex.dwt', $cache_id) || $preview == 1) {
assign_template();
$position = assign_ur_here();
$smarty->assign('ur_here', $position['ur_here']);
$seo = get_seo_words('index');
foreach ($seo as $key => $value) {
$seo[$key] = str_replace(array('{sitename}', '{key}', '{description}'), array($position['title'], $_CFG['shop_keywords'], $_CFG['shop_desc']), $value);
}
if (!empty($seo['keywords'])) {
$smarty->assign('keywords', htmlspecialchars($seo['keywords']));
}
else {
$smarty->assign('keywords', htmlspecialchars($_CFG['shop_keywords']));
}
if (!empty($seo['description'])) {
$smarty->assign('description', htmlspecialchars($seo['description']));
}
else {
$smarty->assign('description', htmlspecialchars($_CFG['shop_desc']));
}
if (!empty($seo['title'])) {
$smarty->assign('page_title', htmlspecialchars($seo['title']));
}
else {
$smarty->assign('page_title', $position['title']);
}
$smarty->assign('flash_theme', $_CFG['flash_theme']);
$smarty->assign('feed_url', $_CFG['rewrite'] == 1 ? 'feed.xml' : 'feed.php');
$smarty->assign('warehouse_id', $region_id);
$smarty->assign('area_id', $area_id);
$smarty->assign('helps', get_shop_help());
assign_dynamic('homeindex', $region_id, $area_id);
$replace_data = array('http://localhost/ecmoban_dsc2.0.5_20170518/', 'http://localhost/ecmoban_dsc2.2.6_20170727/', 'http://localhost/ecmoban_dsc2.3/', 'http://localhost/dsc30/');
$page = get_html_file($dir . '/pc_html.php');
$nav_page = get_html_file($dir . '/nav_html.php');
$topBanner = get_html_file($dir . '/topBanner.php');
$topBanner = str_replace($replace_data, $ecs->url(), $topBanner);
$page = str_replace($replace_data, $ecs->url(), $page);
if ($GLOBALS['_CFG']['open_oss'] == 1) {
$bucket_info = get_bucket_info();
$endpoint = $bucket_info['endpoint'];
}
else {
$endpoint = !empty($GLOBALS['_CFG']['site_domain']) ? $GLOBALS['_CFG']['site_domain'] : '';
}
/* if ($page && $endpoint) {
$desc_preg = get_goods_desc_images_preg($endpoint, $page);
$page = $desc_preg['goods_desc'];
}
if ($topBanner && $endpoint) {
$desc_preg = get_goods_desc_images_preg($endpoint, $topBanner);
$topBanner = $desc_preg['goods_desc'];
} */
$user_id = !empty($_SESSION['user_id']) ? $_SESSION['user_id'] : 0;
if (!defined('THEME_EXTENSION')) {
$categories_pro = get_category_tree_leve_one();
$smarty->assign('categories_pro', $categories_pro);
}
$pc_page['tem'] = $suffix;
$smarty->assign('pc_page', $pc_page);
$smarty->assign('nav_page', $nav_page);
$smarty->assign('page', $page);
$smarty->assign('topBanner', $topBanner);
$smarty->assign('user_id', $user_id);
$smarty->assign('site_domain', $_CFG['site_domain']);
$bg_image = getleft_attr('content', 0, $pc_page['tem'], $GLOBALS['_CFG']['template']);
$smarty->assign('bg_image', $bg_image);
}
if ($preview == 1) {
$smarty->display('homeindex.dwt');
}
else {
$smarty->display('homeindex.dwt', $cache_id);
}
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/grave01/HongYuDSC.git
[email protected]:grave01/HongYuDSC.git
grave01
HongYuDSC
HongYuDSC
master

搜索帮助