/*! Amaze UI v2.5.2 ~ Handlebars helper | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-01-26T11:06:52+0800 */
(function(undefined) {
'use strict';
var registerIfCondHelper = function(hbs) {
hbs.registerHelper('ifCond', function(v1, operator, v2, options) {
switch (operator) {
case '==':
return (v1 == v2) ? options.fn(this) : options.inverse(this);
break;
case '===':
return (v1 === v2) ? options.fn(this) : options.inverse(this);
break;
case '<':
return (v1 < v2) ? options.fn(this) : options.inverse(this);
break;
case '<=':
return (v1 <= v2) ? options.fn(this) : options.inverse(this);
break;
case '>':
return (v1 > v2) ? options.fn(this) : options.inverse(this);
break;
case '>=':
return (v1 >= v2) ? options.fn(this) : options.inverse(this);
break;
default:
return options.inverse(this);
break;
}
return options.inverse(this);
});
};
if (typeof module !== 'undefined' && module.exports) {
module.exports = registerIfCondHelper;
}
this.Handlebars && registerIfCondHelper(this.Handlebars);
}).call(this);
(function(undefined){
'use strict';
var registerAMUIPartials = function(hbs) {
hbs.registerPartial('accordion', "{{#this}}\n \n {{#each content}}\n \n - \n {{{title}}}\n
\n - \n \n
\n {{{content}}}\n
\n \n
\n {{/each}}\n \n{{/this}}\n");
hbs.registerPartial('divider', "{{#this}}\n
\n{{/this}}\n");
hbs.registerPartial('duoshuo', "{{#this}}\n \n{{/this}}");
hbs.registerPartial('figure', "{{#this}}\n \n{{/this}}\n");
hbs.registerPartial('footer', "{{#this}}\n \n\n \n{{/this}}\n");
hbs.registerPartial('gallery', "{{#this}}\n \n {{#each content}}\n - \n \n
\n {{/each}}\n
\n{{/this}}\n");
hbs.registerPartial('gotop', "{{#this}}\n \n{{/this}}\n");
hbs.registerPartial('header', "{{#this}}\n \n{{/this}}\n");
hbs.registerPartial('intro', "{{#this }}\n \n {{#if content.title}}\n
\n
{{{content.title}}}
\n {{#if content.more.link}}\n {{#ifCond options.position '==' 'top'}}\n
{{content.more.title}}\n {{/ifCond}}\n {{/if}}\n
\n {{/if}}\n\n
\n {{#if content.left}}\n
{{{content.left}}}
\n {{/if}}\n {{#if content.right}}\n
{{{content.right}}}
\n {{/if}}\n
\n {{#ifCond options.position '==' 'bottom'}}\n
\n {{/ifCond}}\n
\n{{/this}}\n");
hbs.registerPartial('list_news', "{{#this}}\n \n \n {{#if content.header.title}}\n
\n {{#if content.header.link}} \n \n {{else}} \n
{{{content.header.title}}}
\n {{/if}}\n \n {{/if}}\n\n
\n
\n {{#ifCond options.type '==' 'thumb'}}\n {{#ifCond options.thumbPosition '==' 'top'}} \n {{#each content.main}}\n - \n {{!--\n am-list-item-dated - 带日期\n am-list-item-desced - 带描述\n am-list-item-thumbed - 带缩略图的\n --}}\n {{#if img}}\n
\n
\n \n \n {{#if thumbAddition}}\n
{{{thumbAddition}}}
\n {{/if}}\n
\n {{/if}}\n\n \n {{#if title}}\n
\n {{/if}}\n\n {{#if date}}\n
{{date}}\n {{/if}}\n\n {{#if desc}}\n
{{{desc}}}
\n {{/if}}\n\n {{#if mainAddition}}\n
{{{mainAddition}}}
\n {{/if}}\n
\n \n {{/each}}\n {{/ifCond}}\n\n {{#ifCond options.thumbPosition '==' 'bottom-left'}} \n {{#each content.main}}\n - \n {{!--\n am-list-item-dated - 带日期\n am-list-item-desced - 带描述\n am-list-item-thumbed - 带缩略图的\n --}}\n {{#if title}}\n \n {{/if}}\n {{#if img}}\n
\n
\n \n \n {{#if thumbAddition}}\n
{{{thumbAddition}}}
\n {{/if}}\n
\n {{/if}}\n\n \n {{#if date}}\n
{{date}}\n {{/if}}\n\n {{#if desc}}\n
{{{desc}}}
\n {{/if}}\n\n {{#if mainAddition}}\n
{{{mainAddition}}}
\n {{/if}}\n
\n \n {{/each}}\n {{/ifCond}}\n\n {{#ifCond options.thumbPosition '==' 'bottom-right'}} \n {{#each content.main}}\n - \n {{!--\n am-list-item-dated - 带日期\n am-list-item-desced - 带描述\n am-list-item-thumbed - 带缩略图的\n --}}\n {{#if title}}\n \n {{/if}}\n\n
\n {{#if date}}\n
{{date}}\n {{/if}}\n\n {{#if desc}}\n
{{{desc}}}
\n {{/if}}\n\n {{#if mainAddition}}\n
{{{mainAddition}}}
\n {{/if}}\n
\n {{#if img}}\n \n
\n \n \n {{#if thumbAddition}}\n
{{{thumbAddition}}}
\n {{/if}}\n
\n {{/if}}\n \n {{/each}}\n {{/ifCond}}\n\n {{#ifCond options.thumbPosition '==' 'left'}} \n {{#each content.main}}\n - \n {{!--\n am-list-item-dated - 带日期\n am-list-item-desced - 带描述\n am-list-item-thumbed - 带缩略图的\n --}}\n {{#if img}}\n
\n
\n \n \n {{#if thumbAddition}}\n
{{{thumbAddition}}}
\n {{/if}}\n
\n {{/if}}\n\n \n {{#if title}}\n
\n {{/if}}\n {{#if date}}\n
{{date}}\n {{/if}}\n\n {{#if desc}}\n
{{{desc}}}
\n {{/if}}\n\n {{#if mainAddition}}\n
{{{mainAddition}}}
\n {{/if}}\n
\n \n {{/each}}\n {{/ifCond}}\n\n {{#ifCond options.thumbPosition '==' 'right'}} \n {{#each content.main}}\n - \n {{!--\n am-list-item-dated - 带日期\n am-list-item-desced - 带描述\n am-list-item-thumbed - 带缩略图的\n --}}\n
\n {{#if title}}\n
\n {{/if}}\n\n {{#if date}}\n
{{date}}\n {{/if}}\n\n {{#if desc}}\n
{{{desc}}}
\n {{/if}}\n\n {{#if mainAddition}}\n
{{{mainAddition}}}
\n {{/if}}\n
\n {{#if img}}\n \n
\n \n \n {{#if thumbAddition}}\n
{{{thumbAddition}}}
\n {{/if}}\n
\n {{/if}}\n \n {{/each}}\n {{/ifCond}}\n\n {{else}}{{!--不带缩略图--}}\n {{#each content.main}}\n - \n {{!--\n am-list-item-dated - 带日期\n am-list-item-desced - 带描述\n am-list-item-thumbed - 带缩略图的\n --}}\n {{#if title}}\n {{{title}}}\n {{/if}}\n\n {{#if date}}\n {{date}}\n {{/if}}\n\n {{#if desc}}\n
{{{desc}}}
\n {{/if}}\n\n {{#if mainAddition}}\n {{{mainAddition}}}
\n {{/if}}\n \n {{/each}}\n {{/ifCond}}\n
\n
\n\n {{#ifCond content.header.morePosition '==' 'bottom'}}\n {{#if content.header.link}}\n
\n {{/if}}\n {{/ifCond}}\n
\n{{/this}}\n");
hbs.registerPartial('map', "{{#this}}\n \n{{/this}}");
hbs.registerPartial('mechat', "{{#this}}\n \n{{/this}}");
hbs.registerPartial('menu', "{{#this}}\n \n{{/this}}\n");
hbs.registerPartial('navbar', "{{#this}}\n \n {{#if content}}\n
\n {{/if}}\n
\n{{/this}}\n");
hbs.registerPartial('pagination', "{{#this}}\n \n{{/this}}\n");
hbs.registerPartial('paragraph', "{{#this}}\n \n\n {{#if content}}\n {{{ content.content }}}\n {{/if}}\n \n{{/this}}\n");
hbs.registerPartial('slider', "{{#this}}\n \n{{/this}}");
hbs.registerPartial('tabs', "{{#this}}\n \n {{#if content}}\n
\n
\n {{#each content}}\n
\n {{{content}}}\n
\n {{/each}}\n
\n {{/if}}\n
\n{{/this}}\n");
hbs.registerPartial('titlebar', "{{#this}}\n\n {{#if content.title}}\n
\n {{#if content.link}}\n {{{content.title}}}\n {{else}}\n {{{content.title}}}\n {{/if}}\n
\n {{/if}}\n\n {{#if content.nav}}\n
\n {{/if}}\n
\n{{/this}}\n");
hbs.registerPartial('wechatpay', "{{#this}}\n \n \n
\n{{/this}}\n");
};
if (typeof module !== 'undefined' && module.exports) {
module.exports = registerAMUIPartials;
}
this.Handlebars && registerAMUIPartials(this.Handlebars);
}).call(this);