Octopus系列之模板快速开发手册
公共代码
html_header_1
<title>${sitename}-${seotitle}</title> <meta http-equiv="Content-Type" content="text/html; charset=${charset}" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="keywords" content="${metakeywords}" /> <meta name="description" content="${metadescription}" /> <meta name="author" content="The Octopus; Team and others" /> <meta name="generator" content="shopping cart program by Octopus;, http://www.octopus-cart.com eCommerce" /> #if($pagename=="cart"||$pagename=="account"||$pagename=="checkout") <meta name="robots" content="NOINDEX, NOFOLLOW" /> #else <meta name="robots" content="INDEX,FOLLOW" /> #end ${basecode} <link rel="canonical" href="${siteurl}" /> <link rel="shortcut icon" href="${themeurl}favicon.ico" />
扩展magento
<!-- META FOR IOS & HANDHELD --> <!--<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">--> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes" /> <meta name="HandheldFriendly" content="true" /> <meta name="apple-touch-fullscreen" content="YES" /> <meta name="robots" content="INDEX,FOLLOW" />
列表和搜索分页样式
#if($pagename=="list"||$pagename=="search") <link href="${themeurl}css/common/pagination.css" rel="stylesheet" /> #end
公共的样式库
<!--BEGIN:Public JS--> <script src="${themeurl}script/lang.js"></script> <script src="${themeurl}script/jquery/jquery-1.7.1.min.js"></script> <script src="${themeurl}script/lib/lib.js"></script> <script src="${themeurl}script/lib/oc.js"></script> <!--END:Public JS-->
form插件
<script src="${themeurl}script/plugins/jquery.form.min.js"></script>
表单验证插件
<script src="${themeurl}script/plugins/jquery.validate.min.js"></script> <script src="${themeurl}script/plugins/messages.js"></script>
放大镜插件
<link href="${themeurl}css/zoom.css" rel="stylesheet" type="text/css" /> <script src="${themeurl}script/plugins/cloud-zoom.js" type="text/javascript"></script>
tips插件
<link href="${themeurl}script/poshytip/tip-yellow/tip-yellow.css" rel="stylesheet" /> <script src="${themeurl}script/poshytip/jquery.poshytip.min.js"></script>
对话框插件
<script src="${themeurl}script/zDialog/zDialog.js"></script> <script src="${themeurl}script/zDialog/zDrag.js"></script>
详细页面和checkout 自定义js文件【页面独有】
<script src="${themeurl}script/lib/detail.js"></script><script src="${themeurl}script/lib/block.js"></script>
注意载入顺序
公共CSS--自定义CSS--公共js--自定义js
详细页面自定义样式
详细页面自定义js【必须写在页面中】
<script type="text/javascript"> var attr = [${product.AttrIsRequired}]; var attrcount=${product.AttrRequiredCount}; var attr_s=[]; var count = 0; </script>
首页
列表页
详情页
购物车
Chekout
Octopus系列之模板快速开发手册的更多相关文章
- 微软BI 之SSIS 系列 - 利用 SSIS 模板快速开发 SSIS Package
开篇介绍 在做 ETL 项目的时候,往往很多 Package 的开发都是基于相同的模型和流程.比如在 Package 开始运行时需要向 Process Log 表中插入记录,在 Package 运行结 ...
- 【新手】【十分钟上手系列-一】快速开发vue插件
2018.6.28 在这浮躁的前端娱乐圈,不会三两个新框架都觉得自己不是前端.哦,不是我说的.说到底.原生才是重中之重.加油. vue用了大半年多,一直在用ui库,插件等,没有自己的东西. 想想连个v ...
- Java快速开发平台,JEECG 3.7.7闪电版本发布,增加多套主流UI代码生成器模板
JEECG 3.7.7 闪电版本发布,提供5套主流UI代码生成器模板 导读 ⊙平台性能优化,速度闪电般提升 ⊙提供5套新的主流UI代码生成器模板(Bootstrap表单+Boots ...
- (私人收藏)[开发必备]最全Java离线快速查找手册(可查询可学习,带实例)
(私人收藏)[开发必备]最全Java离线快速查找手册(可查询可学习,带实例) https://pan.baidu.com/s/1L54VuFwCdKVnQGVc8vD1TQnwmj java手册 Ja ...
- 快速开发Grunt插件----压缩js模板
前言 Grunt是一款前端构建工具,帮助我们自动化搭建前端工程.它可以实现自动对js.css.html文件的合并.压缩等一些列操作.Grunt有很多插件,每一款插件实现某个功能,你可以通过npm命名去 ...
- JS组件系列——BootstrapTable+KnockoutJS实现增删改查解决方案(四):自定义T4模板快速生成页面
前言:上篇介绍了下ko增删改查的封装,确实节省了大量的js代码.博主是一个喜欢偷懒的人,总觉得这些基础的增删改查效果能不能通过一个什么工具直接生成页面效果,啥代码都不用写了,那该多爽.于是研究了下T4 ...
- Net力软快速信息化系统开发框架 + 开发手册+数据库说明
源码目录结构说明LeaRun.Cache –缓存层LeaRun.Resource –本地语言LeaRun.Utilities –公共类库LeaRun.DataAccess –数据库访问核心组件LeaR ...
- 封装一个简单好用的打印Log的工具类And快速开发系列 10个常用工具类
快速开发系列 10个常用工具类 http://blog.csdn.net/lmj623565791/article/details/38965311 ------------------------- ...
- Android 快速开发系列 打造万能的ListView GridView 适配器
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/38902805 ,本文出自[张鸿洋的博客] 1.概述 相信做Android开发的写 ...
随机推荐
- Salesforce.com Object Query Language (SOQL) 示例
Salesforce 中的用户操作 打开按公司名称排序的供应商记录列表视图.SOQL 查询 SELECT CompanyName__c,ContactName__c FROM Suppliers__x ...
- Leetcode: Path Sum III
You are given a binary tree in which each node contains an integer value. Find the number of paths t ...
- (九)串行口方式0 拓展并行输入端口 74LS165 芯片
74LS165芯片讲解: 外接一个同步移位寄存器 74LS165芯片,拓展一个 8 位 并行输入端口的电路, 可将接在74LS165芯片的8个开关 S0——S7 的状态 通过 串行口方式 0 读到 单 ...
- 微软 .net 你更新这么快IDE vs2015 、语法糖 6.0、framework、‘吹得这么牛,然并用
好久没写吐槽文章了,因为无尽的加班,也因为工作的变迁,又因为最近看了微软又尼玛发布什么什么,好受不了. 今年大专毕业第八个年头了,人也到了30,真是光阴荏苒啊.最近这一两年发生了很多事,让我自己倍受打 ...
- MFC通过ODBC方式连接mysql
一. 要安装mysql-connector-odbc驱动 二. 配置数据源 电脑的控制面板-管理工具-数据源ODBC-系统DSN-添加-选择刚刚安装的mysql odbc Driver 参考 http ...
- python3.4学习笔记(十四) 网络爬虫实例代码,抓取新浪爱彩双色球开奖数据实例
python3.4学习笔记(十四) 网络爬虫实例代码,抓取新浪爱彩双色球开奖数据实例 新浪爱彩双色球开奖数据URL:http://zst.aicai.com/ssq/openInfo/ 最终输出结果格 ...
- Wormholes
Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes ...
- js与jsp
jsp :j2ee 中的一样模版技术,运行于服务器端javascript :一种运行于客户端的脚本语言,动态性.JavaScript是一种采用事件驱动的脚本语言,它不需要经过Web服务器就可以对用户的 ...
- SOAP和WSDL的一些必要知识
SOAP和WSDL对Web Service.WCF进行深入了解的基础,因此花一些时间去了解一下是很有必要的. 一.SOAP(Simple Object Access Protocol) 如果我们要调用 ...
- unity4.6学习Ugui中文文档-------参考-UGUI Rect Transform
1 . Rect Transform Rect Transform 是 2D 与 3D 图形的 Transform 组件对应.它用来指定用户界面系统中的大小. 位置和旋转的控件 Properties ...