Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Miykael_xxm
amazeui
提交
89aa1d08
A
amazeui
项目概览
Miykael_xxm
/
amazeui
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
amazeui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
89aa1d08
编写于
12月 08, 2014
作者:
M
Minwe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove `powered by...` from Footer
上级
af32c517
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
16 addition
and
17 deletion
+16
-17
CHANGELOG.md
CHANGELOG.md
+6
-0
vendor/amazeui.hbs.partials.js
vendor/amazeui.hbs.partials.js
+1
-1
widget/footer/HISTORY.md
widget/footer/HISTORY.md
+6
-2
widget/footer/README.md
widget/footer/README.md
+0
-2
widget/footer/package.json
widget/footer/package.json
+1
-1
widget/footer/src/footer.hbs
widget/footer/src/footer.hbs
+1
-10
widget/footer/src/footer.js
widget/footer/src/footer.js
+1
-1
未找到文件。
CHANGELOG.md
浏览文件 @
89aa1d08
# Amaze UI 1.x Change Log
---
### 2014.12 W2
**Web 组件:**
-
`CHANGED`
Footer 移除
`云适配驱动`
;
### 2014.12 W1
**CSS**
:
...
...
vendor/amazeui.hbs.partials.js
浏览文件 @
89aa1d08
...
...
@@ -10,7 +10,7 @@
hbs
.
registerPartial
(
'
figure
'
,
"
{{#this}}
\n
<figure data-am-widget=
\"
figure
\"
class=
\"
am am-figure {{#if theme}}am-figure-{{theme}}{{else}}am-figure-default{{/if}} {{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"
{{#if id}}
\n
id=
\"
{{id}}
\"
{{/if}} data-am-figure=
\"
{ {{#if options.zoomAble}} pureview: '{{options.zoomAble}}' {{/if}} }
\"
>
\n
{{#if content.link}}<a href=
\"
{{content.link}}
\"
title=
\"
{{content.figcaption}}
\"
>{{/if}}
\n\n
{{#if options.figcaptionPosition}}
\n
{{#ifCond options.figcaptionPosition '==' 'top'}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-top
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/ifCond}}
\n
{{/if}}
\n\n
{{#if content.img}}
\n
<img src=
\"
{{content.img}}
\"
{{#if content.rel}}data-rel=
\"
{{content.rel}}
\"
{{/if}} alt=
\"
{{#if content.imgAlt}}{{content.imgAlt}}{{else}}{{content.figcaption}}{{/if}}
\"
/>
\n
{{/if}}
\n
{{#if options.figcaptionPosition}}
\n
{{#ifCond options.figcaptionPosition '==' 'bottom'}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-btm
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/ifCond}}
\n
{{else}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-btm
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/if}}
\n\n
{{#if content.link}}</a>{{/if}}
\n
</figure>
\n
{{/this}}
\n
"
);
hbs
.
registerPartial
(
'
footer
'
,
"
{{#this}}
\n
<footer data-am-widget=
\"
footer
\"\n
class=
\"
am-footer {{#if theme}}am-footer-{{theme}}{{else}}am-footer-default {{/if}}{{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"\n
{{#if id}}id=
\"
{{id}}
\"
{{/if}}>
\n
<div class=
\"
am-footer-switch
\"
>
\n
<span class=
\"
{{#if options.modal}}am-footer-ysp{{/if}}
\"
data-rel=
\"
mobile
\"\n
data-am-modal=
\"
{target: '#am-switch-mode'}
\"
>
\n
{{#unless content.switchName}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
Mobile
\n
{{else}}
\n
云适配版
\n
{{/ifCond}}
\n
{{else}}
\n
{{content.switchName}}
\n
{{/unless}}
\n
</span>
\n
<span class=
\"
am-footer-divider
\"
> | </span>
\n
<a id=
\"
godesktop
\"
data-rel=
\"
desktop
\"
class=
\"
am-footer-desktop
\"
href=
\"
#
\"
>
\n
{{#ifCond content.lang '==' 'en'}}
\n
Desktop
\n
{{else}}
\n
电脑版
\n
{{/ifCond}}
\n
</a>
\n
</div>
\n
<div class=
\"
am-footer-miscs {{#if options.textPosition}}am-text-left{{/if}}
\"
>
\n\n
{{#if options.techSupportCo}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
<p>Supported by {{#if options.techSupportSite}}<a href=
\"
{{options.techSupportSite}}
\"\n
title=
\"
{{options.techSupportCo}}
\"\n
target=
\"
_blank
\"
>{{{options.techSupportCo}}}</a>{{else}}{{{options.techSupportCo}}}{{/if}}
\n
.</p>
\n
{{else}}
\n
<p>由 {{#if options.techSupportSite}}<a href=
\"
{{options.techSupportSite}}
\"
title=
\"
{{options.techSupportCo}}
\"\n
target=
\"
_blank
\"
>{{{options.techSupportCo}}}</a>{{else}}{{{options.techSupportCo}}}{{/if}}
\n
提供技术支持</p>
\n
{{/ifCond}}
\n\n
{{/if}}
\n\n
{{#
if content.poweredBy }}
\n
{{ content.poweredBy }}
\n
{{else}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
<p>Powered by AllMobilize.</p>
\n
{{else}}
\n
<p>云适配驱动</p>
\n
{{/ifCond}}
\n
{{/if}}
\n
{{#each content.companyInfo}}
\n
<p>{{{detail}}}</p>
\n
{{/each}}
\n
</div>
\n
</footer>
\n\n
<div id=
\"
am-footer-mode
\"\n
class=
\"
am-modal am-modal-no-btn am-switch-mode-m {{#if theme}}am-switch-mode-m-{{theme}}{{/if}}
\"
>
\n
<div class=
\"
am-modal-dialog
\"
>
\n
<div class=
\"
am-modal-hd am-modal-footer-hd
\"
>
\n
<a href=
\"
javascript:void(0)
\"
data-dismiss=
\"
modal
\"
class=
\"
am-close am-close-spin
\"
data-am-modal-close>×</a>
\n
</div>
\n
<div class=
\"
am-modal-bd
\"
>
\n
{{#ifCond content.lang '==' 'en'}}
\n
You are visiting
\n
{{else}}
\n
您正在浏览的是
\n
{{/ifCond}}
\n\n
<span class=
\"
am-switch-mode-owner
\"
>
\n
{{#if content.owner}}
\n
{{content.owner}}
\n
{{else}}
\n
云适配
\n
{{/if}}
\n
</span>
\n\n
<span class=
\"
am-switch-mode-slogan
\"
>
\n
{{#if content.slogan}}
\n
{{{content.slogan}}}
\n
{{else}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
mobilized version for your device.
\n
{{else}}
\n
为您当前手机订制的移动网站。
\n
{{/ifCond}}
\n
{{/if}}
\n
</span>
\n
</div>
\n
</div>
\n
</div>
\n
{{/this}}
\n
"
);
hbs
.
registerPartial
(
'
footer
'
,
"
{{#this}}
\n
<footer data-am-widget=
\"
footer
\"\n
class=
\"
am-footer {{#if theme}}am-footer-{{theme}}{{else}}am-footer-default {{/if}}{{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"\n
{{#if id}}id=
\"
{{id}}
\"
{{/if}}>
\n
<div class=
\"
am-footer-switch
\"
>
\n
<span class=
\"
{{#if options.modal}}am-footer-ysp{{/if}}
\"
data-rel=
\"
mobile
\"\n
data-am-modal=
\"
{target: '#am-switch-mode'}
\"
>
\n
{{#unless content.switchName}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
Mobile
\n
{{else}}
\n
云适配版
\n
{{/ifCond}}
\n
{{else}}
\n
{{content.switchName}}
\n
{{/unless}}
\n
</span>
\n
<span class=
\"
am-footer-divider
\"
> | </span>
\n
<a id=
\"
godesktop
\"
data-rel=
\"
desktop
\"
class=
\"
am-footer-desktop
\"
href=
\"
#
\"
>
\n
{{#ifCond content.lang '==' 'en'}}
\n
Desktop
\n
{{else}}
\n
电脑版
\n
{{/ifCond}}
\n
</a>
\n
</div>
\n
<div class=
\"
am-footer-miscs {{#if options.textPosition}}am-text-left{{/if}}
\"
>
\n\n
{{#if options.techSupportCo}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
<p>Supported by {{#if options.techSupportSite}}<a href=
\"
{{options.techSupportSite}}
\"\n
title=
\"
{{options.techSupportCo}}
\"\n
target=
\"
_blank
\"
>{{{options.techSupportCo}}}</a>{{else}}{{{options.techSupportCo}}}{{/if}}
\n
.</p>
\n
{{else}}
\n
<p>由 {{#if options.techSupportSite}}<a href=
\"
{{options.techSupportSite}}
\"
title=
\"
{{options.techSupportCo}}
\"\n
target=
\"
_blank
\"
>{{{options.techSupportCo}}}</a>{{else}}{{{options.techSupportCo}}}{{/if}}
\n
提供技术支持</p>
\n
{{/ifCond}}
\n\n
{{/if}}
\n\n
{{#
each content.companyInfo}}
\n
<p>{{{detail}}}</p>
\n
{{/each}}
\n
</div>
\n
</footer>
\n\n
<div id=
\"
am-footer-modal
\"\n
class=
\"
am-modal am-modal-no-btn am-switch-mode-m {{#if theme}}am-switch-mode-m-{{theme}}{{/if}}
\"
>
\n
<div class=
\"
am-modal-dialog
\"
>
\n
<div class=
\"
am-modal-hd am-modal-footer-hd
\"
>
\n
<a href=
\"
javascript:void(0)
\"
data-dismiss=
\"
modal
\"
class=
\"
am-close am-close-spin
\"
data-am-modal-close>×</a>
\n
</div>
\n
<div class=
\"
am-modal-bd
\"
>
\n
{{#ifCond content.lang '==' 'en'}}
\n
You are visiting
\n
{{else}}
\n
您正在浏览的是
\n
{{/ifCond}}
\n\n
<span class=
\"
am-switch-mode-owner
\"
>
\n
{{#if content.owner}}
\n
{{content.owner}}
\n
{{else}}
\n
云适配
\n
{{/if}}
\n
</span>
\n\n
<span class=
\"
am-switch-mode-slogan
\"
>
\n
{{#if content.slogan}}
\n
{{{content.slogan}}}
\n
{{else}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
mobilized version for your device.
\n
{{else}}
\n
为您当前手机订制的移动网站。
\n
{{/ifCond}}
\n
{{/if}}
\n
</span>
\n
</div>
\n
</div>
\n
</div>
\n
{{/this}}
\n
"
);
hbs
.
registerPartial
(
'
gallery
'
,
"
{{#this}}
\n
<ul data-am-widget=
\"
gallery
\"
class=
\"
am-gallery{{#if options.cols}} sm-block-grid-{{options.cols}}{{else}} sm-block-grid-2{{/if}}
\n
md-block-grid-3 lg-block-grid-4 {{#if
\n
theme}}am-gallery-{{theme}}{{else}}am-gallery-default{{/if}}{{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"
data-am-gallery=
\"
{ {{#if options.gallery}}pureview: true{{/if}} }
\"
{{#if id}}id=
\"
{{id}}
\"
{{/if}}>
\n
{{#each content}}
\n
<li>
\n
<div class=
\"
am-gallery-item
\"
>
\n
{{#if link}}
\n
<a href=
\"
{{link}}
\"
>
\n
{{#if img}}<img src=
\"
{{img}}
\"
{{#if rel}}data-rel=
\"
{{rel}}
\"
{{/if}} alt=
\"
{{title}}
\"
/>{{/if}}
\n
{{#if title}}
\n
<h3 class=
\"
am-gallery-title
\"
>{{{title}}}</h3>
\n
{{/if}}
\n
{{#if desc}}
\n
<div class=
\"
am-gallery-desc
\"
>{{{desc}}}</div>
\n
{{/if}}
\n
</a>
\n
{{else}}
\n
{{#if img}}<img src=
\"
{{img}}
\"
{{#if rel}}data-rel=
\"
{{rel}}
\"
{{/if}} alt=
\"
{{title}}
\"
/>{{/if}}
\n
{{#if title}}
\n
<h3 class=
\"
am-gallery-title
\"
>{{{title}}}</h3>
\n
{{/if}}
\n
{{#if desc}}
\n
<div class=
\"
am-gallery-desc
\"
>{{{desc}}}</div>
\n
{{/if}}
\n
{{/if}}
\n
</div>
\n
</li>
\n
{{/each}}
\n
</ul>
\n
{{/this}}
\n
"
);
...
...
widget/footer/HISTORY.md
浏览文件 @
89aa1d08
# Footer 更
细日志
# Footer 更
新记录
---
## ver 2.3.0 (2014.12.08)
-
`CHANGED`
移除
`云适配驱动`
。
## ver 2.2.0 (2014.10.20)
-
`NEW`
增加禁用【添加到桌面图标】接口。
...
...
@@ -21,4 +25,4 @@
### 2013-12-17 新增
详情:新增 footer 模块,本模块中包含 switch_mode 模块;另外,可添加一些其他信息,例如:网站页尾信息、版权信息、备案信息等内容,这些内容可通过 p 标签进行添加。
\ No newline at end of file
详情:新增 footer 模块,本模块中包含 switch_mode 模块;另外,可添加一些其他信息,例如:网站页尾信息、版权信息、备案信息等内容,这些内容可通过 p 标签进行添加。
widget/footer/README.md
浏览文件 @
89aa1d08
...
...
@@ -40,7 +40,6 @@ __数据说明:__
-
`switchName`
:可写:手机版等,默认
`云适配版`
;
-
`owner`
:网站名字;
-
`slogan`
:弹出层广告语;
-
`poweredBy`
:默认
`本手机网站由云适配服务`
;
-
`companyInfo`
:填写公司相关信息,此为一对象数组,每一条信息通过对detail赋值来实现!
### Add to Homescreen
...
...
@@ -82,7 +81,6 @@ window.AMUI_NO_ADD2HS = true;
"
switchName
"
:
""
,
"
owner
"
:
""
,
"
slogan
"
:
""
,
"
poweredBy
"
:
""
,
"
companyInfo
"
:
[
{
"
detail
"
:
""
...
...
widget/footer/package.json
浏览文件 @
89aa1d08
{
"name"
:
"footer"
,
"version"
:
"2.
1.1
"
,
"version"
:
"2.
3.0
"
,
"localName"
:
{
"en"
:
"Footer"
,
...
...
widget/footer/src/footer.hbs
浏览文件 @
89aa1d08
...
...
@@ -40,22 +40,13 @@
{{/if}}
{{#if
content
.
poweredBy
}}
{{
content
.
poweredBy
}}
{{else}}
{{#
ifCond
content
.
lang
'=='
'en'
}}
<p>
Powered by AllMobilize.
</p>
{{else}}
<p>
云适配驱动
</p>
{{/
ifCond
}}
{{/if}}
{{#
each
content
.
companyInfo
}}
<p>
{{{
detail
}}}
</p>
{{/
each
}}
</div>
</footer>
<div
id=
"am-footer-mod
e
"
<div
id=
"am-footer-mod
al
"
class=
"am-modal am-modal-no-btn am-switch-mode-m
{{#if
theme
}}
am-switch-mode-m-
{{
theme
}}{{/if}}
"
>
<div
class=
"am-modal-dialog"
>
<div
class=
"am-modal-hd am-modal-footer-hd"
>
...
...
widget/footer/src/footer.js
浏览文件 @
89aa1d08
...
...
@@ -11,7 +11,7 @@ define(function(require, exports, module) {
function
footerInit
()
{
// modal mode
$
(
'
.am-footer-ysp
'
).
on
(
'
click
'
,
function
()
{
$
(
'
#am-footer-mod
e
'
).
modal
();
$
(
'
#am-footer-mod
al
'
).
modal
();
});
!
window
.
AMUI_NO_ADD2HS
&&
addToHS
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录