|
@@ -49,123 +49,8 @@ |
|
@@ -49,123 +49,8 @@ |
49
|
}
|
49
|
}
|
50
|
|
50
|
|
51
|
</style>
|
51
|
</style>
|
52
|
- <hook name="before_head_end"/>
|
|
|
53
|
</head>
|
52
|
</head>
|
54
|
<body class="body-white">
|
53
|
<body class="body-white">
|
55
|
-<include file="public@nav"/>
|
|
|
56
|
-
|
|
|
57
|
-<ul id="home-slider" class="list-unstyled">
|
|
|
58
|
- <php>
|
|
|
59
|
- $top_slide_id=empty($theme_vars['top_slide'])?1:$theme_vars['top_slide'];
|
|
|
60
|
- </php>
|
|
|
61
|
- <slides id="$top_slide_id">
|
|
|
62
|
- <li>
|
|
|
63
|
- <div class="caption-wraper">
|
|
|
64
|
- <div class="caption">{$vo.title|default=''}</div>
|
|
|
65
|
- </div>
|
|
|
66
|
- <a href="{$vo.url|default=''}"><img src="{:cmf_get_image_url($vo.image)}" alt=""></a>
|
|
|
67
|
- </li>
|
|
|
68
|
- </slides>
|
|
|
69
|
- <noslides id="$top_slide_id">
|
|
|
70
|
- <li>
|
|
|
71
|
- <div class="caption-wraper">
|
|
|
72
|
- <div class="caption">此幻灯片只是演示,您没有设置任何幻灯片,请到后台模板设置!</div>
|
|
|
73
|
- </div>
|
|
|
74
|
- <a href=""><img src="__TMPL__/public/assets/images/demo/1.jpg" alt=""></a>
|
|
|
75
|
- </li>
|
|
|
76
|
- <li>
|
|
|
77
|
- <div class="caption-wraper">
|
|
|
78
|
- <div class="caption">此幻灯片只是演示,您没有设置任何幻灯片,请到后台模板设置!</div>
|
|
|
79
|
- </div>
|
|
|
80
|
- <a href=""><img src="__TMPL__/public/assets/images/demo/2.jpg" alt=""></a>
|
|
|
81
|
- </li>
|
|
|
82
|
- <li>
|
|
|
83
|
- <div class="caption-wraper">
|
|
|
84
|
- <div class="caption">此幻灯片只是演示,您没有设置任何幻灯片,请到后台模板设置!</div>
|
|
|
85
|
- </div>
|
|
|
86
|
- <a href=""><img src="__TMPL__/public/assets/images/demo/3.jpg" alt=""></a>
|
|
|
87
|
- </li>
|
|
|
88
|
- </noslides>
|
|
|
89
|
-</ul>
|
|
|
90
|
-
|
|
|
91
|
-<div class="container">
|
|
|
92
|
- <widget name="features">
|
|
|
93
|
- <div>
|
|
|
94
|
- <h1 class="text-center">{$widget.title}</h1>
|
|
|
95
|
- <h3 class="text-center">{$widget.vars.sub_title}</h3>
|
|
|
96
|
- </div>
|
|
|
97
|
- <php>
|
|
|
98
|
- $features_count = count($widget['vars']['features']);
|
|
|
99
|
- $rows = ceil($features_count/3);
|
|
|
100
|
- </php>
|
|
|
101
|
- <for start="1" end="$rows" comparison="elt" step="1" name="row">
|
|
|
102
|
- <php>
|
|
|
103
|
- $first_row = ($row-1)*3;
|
|
|
104
|
- $features = array_slice($widget['vars']['features'],$first_row,3);
|
|
|
105
|
- </php>
|
|
|
106
|
- <div class="row">
|
|
|
107
|
- <foreach name="features" item="vo">
|
|
|
108
|
- <div class="col-md-4">
|
|
|
109
|
- <h2 class="font-large nospace"><i class="fa fa-{$vo.icon}"></i> {$vo.title}</h2>
|
|
|
110
|
- <p>{$vo.content}</p>
|
|
|
111
|
- </div>
|
|
|
112
|
- </foreach>
|
|
|
113
|
- </div>
|
|
|
114
|
- </for>
|
|
|
115
|
-
|
|
|
116
|
- </widget>
|
|
|
117
|
-
|
|
|
118
|
- <widget name="last_news">
|
|
|
119
|
- <div>
|
|
|
120
|
- <h1 class="text-center">{$widget.title}</h1>
|
|
|
121
|
- </div>
|
|
|
122
|
-
|
|
|
123
|
- <div class="row">
|
|
|
124
|
- <php>
|
|
|
125
|
- $widget["vars"]["last_news_category_id"] = empty($widget["vars"]["last_news_category_id"])?1:$widget["vars"]["last_news_category_id"];
|
|
|
126
|
- $last_news_limit=4;
|
|
|
127
|
- </php>
|
|
|
128
|
- <portal:articles limit="$last_news_limit" order="post.published_time DESC"
|
|
|
129
|
- categoryIds="$widget.vars.last_news_category_id">
|
|
|
130
|
- <div class="col-md-3">
|
|
|
131
|
- <div class="tc-gridbox">
|
|
|
132
|
- <div class="header">
|
|
|
133
|
- <div class="item-image">
|
|
|
134
|
- <a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}">
|
|
|
135
|
- <present name="vo.more.thumbnail">
|
|
|
136
|
- <empty name="vo.more.thumbnail">
|
|
|
137
|
- <img src="__TMPL__/public/assets/images/default-thumbnail.png"
|
|
|
138
|
- class="img-responsive"
|
|
|
139
|
- alt="">
|
|
|
140
|
- <else/>
|
|
|
141
|
- <img src="{:cmf_get_image_url($vo.more.thumbnail)}"
|
|
|
142
|
- class="img-responsive"
|
|
|
143
|
- alt="">
|
|
|
144
|
- </empty>
|
|
|
145
|
- <else/>
|
|
|
146
|
- <img src="__TMPL__/public/assets/images/default-thumbnail.png"
|
|
|
147
|
- class="img-responsive"
|
|
|
148
|
- alt="">
|
|
|
149
|
- </present>
|
|
|
150
|
- </a>
|
|
|
151
|
- </div>
|
|
|
152
|
- <h3>
|
|
|
153
|
- <a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}">{$vo.post_title}</a>
|
|
|
154
|
- </h3>
|
|
|
155
|
- <hr>
|
|
|
156
|
- </div>
|
|
|
157
|
- <div class="body">
|
|
|
158
|
- <p>
|
|
|
159
|
- <a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}">...</a>
|
|
|
160
|
- </p>
|
|
|
161
|
- </div>
|
|
|
162
|
- </div>
|
|
|
163
|
- </div>
|
|
|
164
|
- </portal:articles>
|
|
|
165
|
- </div>
|
|
|
166
|
- </widget>
|
|
|
167
|
- <include file="public@footer"/>
|
|
|
168
|
-</div>
|
|
|
169
|
<!-- /container -->
|
54
|
<!-- /container -->
|
170
|
<include file="public@scripts"/>
|
55
|
<include file="public@scripts"/>
|
171
|
<script src="__TMPL__/public/assets/js/slippry.min.js"></script>
|
56
|
<script src="__TMPL__/public/assets/js/slippry.min.js"></script>
|