Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
SchoolCMS
提交
358a3f4c
S
SchoolCMS
项目概览
纵之格
/
SchoolCMS
通知
11
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SchoolCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
358a3f4c
编写于
5月 09, 2017
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增更多幻灯片组建
上级
0a776ac0
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
1045 addition
and
41 deletion
+1045
-41
Application/Admin/Controller/ViewController.class.php
Application/Admin/Controller/ViewController.class.php
+2
-2
Application/Admin/View/Default/View/Index.html
Application/Admin/View/Default/View/Index.html
+6
-2
Application/Common/Common/function.php
Application/Common/Common/function.php
+25
-0
Application/Common/Lang/zh-cn.php
Application/Common/Lang/zh-cn.php
+60
-16
Application/Home/Controller/CommonController.class.php
Application/Home/Controller/CommonController.class.php
+1
-1
Application/Home/View/Default/User/LoginInfo.html
Application/Home/View/Default/User/LoginInfo.html
+8
-6
ThinkPHP/Library/My/LayoutModule.class.php
ThinkPHP/Library/My/LayoutModule.class.php
+942
-13
core.php
core.php
+1
-1
未找到文件。
Application/Admin/Controller/ViewController.class.php
浏览文件 @
358a3f4c
...
...
@@ -126,7 +126,7 @@ class ViewController extends CommonController
$article
=
$this
->
GetArticleList
(
$lay
->
GetLayoutMouleWhere
(
$iv
));
// 模块数据生成
$fun
=
L
(
'common_view_title_style_list'
)[
$iv
[
'title_style'
]][
'fun'
]
;
$fun
=
GetViewTitleStyleFun
(
$iv
[
'title_style'
])
;
$iv
[
'html'
]
=
method_exists
(
$lay
,
$fun
)
?
$lay
->
$fun
(
$article
,
$iv
)
:
''
;
// 重新赋值
...
...
@@ -173,7 +173,7 @@ class ViewController extends CommonController
$article
=
$this
->
GetArticleList
(
$lay
->
GetLayoutMouleWhere
(
$_POST
));
// 模块数据生成
$fun
=
L
(
'common_view_title_style_list'
)[
I
(
'title_style'
)][
'fun'
]
;
$fun
=
GetViewTitleStyleFun
(
I
(
'title_style'
))
;
if
(
method_exists
(
$lay
,
$fun
))
{
$html
=
$lay
->
$fun
(
$article
,
$_POST
);
...
...
Application/Admin/View/Default/View/Index.html
浏览文件 @
358a3f4c
...
...
@@ -108,8 +108,12 @@
<label
class=
"am-u-sm-2 am-form-label"
>
{{:L('view_title_style_text')}}
</label>
<div
class=
"am-u-sm-10"
>
<select
name=
"title_style"
class=
"am-radius"
required
>
<foreach
name=
"common_view_title_style_list"
key=
"k"
item=
"v"
>
<option
value=
"{{$k}}"
<
if
condition=
"$v['checked'] eq true"
>
selected
</if>
>{{$v.name}}
</option>
<foreach
name=
"common_view_title_style_list"
item=
"v"
>
<optgroup
label=
"{{$v.name}}"
>
<foreach
name=
"v.item"
item=
"vs"
>
<option
value=
"{{$vs.value}}"
<
if
condition=
"$vs['checked'] eq true"
>
selected
</if>
>{{$vs.name}}
</option>
</foreach>
</optgroup>
</foreach>
</select>
</div>
...
...
Application/Common/Common/function.php
浏览文件 @
358a3f4c
...
...
@@ -8,6 +8,31 @@
* @datetime 2016-12-01T21:51:08+0800
*/
/**
* [GetViewTitleStyleFun 获取页面模块标题样式方法名称]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-05-09T15:20:54+0800
* @param [int] $value [样式值]
* @return [string] [方法名称]
*/
function
GetViewTitleStyleFun
(
$value
)
{
$list
=
L
(
'common_view_title_style_list'
);
foreach
(
$list
as
$v
)
{
foreach
(
$v
[
'item'
]
as
$vs
)
{
if
(
$vs
[
'value'
]
==
$value
)
{
return
$vs
[
'fun'
];
}
}
}
return
''
;
}
/**
* [FileUploadError 文件上传错误校验]
* @author Devil
...
...
Application/Common/Lang/zh-cn.php
浏览文件 @
358a3f4c
...
...
@@ -219,6 +219,8 @@ return array(
'common_toview_home_text'
=>
'查看首页'
,
'common_email_send_user_reg_title'
=>
'用户注册'
,
'common_layout_slider_more_text'
=>
'了解更多'
,
// 性别
'common_gender_list'
=>
array
(
0
=>
array
(
'id'
=>
0
,
'name'
=>
'保密'
,
'checked'
=>
true
),
...
...
@@ -322,22 +324,64 @@ return array(
// 页面设置-有效时间
'common_view_title_style_list'
=>
array
(
0
=>
array
(
'value'
=>
0
,
'fun'
=>
'ViewTitle'
,
'name'
=>
'[内置]文章标题'
,
'checked'
=>
true
),
1
=>
array
(
'value'
=>
1
,
'fun'
=>
'ViewTitleAccess'
,
'name'
=>
'[内置]文章标题+访问数'
),
2
=>
array
(
'value'
=>
2
,
'fun'
=>
'ViewTitleCreateTime'
,
'name'
=>
'[内置]文章标题+发布时间'
),
3
=>
array
(
'value'
=>
3
,
'fun'
=>
'ViewTitleAbstract'
,
'name'
=>
'[内置]文章标题+摘要'
),
4
=>
array
(
'value'
=>
4
,
'fun'
=>
'View_Article_Focus'
,
'name'
=>
'[内置]焦点模式'
),
5
=>
array
(
'value'
=>
5
,
'fun'
=>
'ViewTitleAbstractOne'
,
'name'
=>
'[内置]文章标题(第一条带摘要)'
),
6
=>
array
(
'value'
=>
6
,
'fun'
=>
'ViewImagesContent'
,
'name'
=>
'[内置]文章图文展示'
),
7
=>
array
(
'value'
=>
7
,
'fun'
=>
'ViewOneIntroductionTwoTitle'
,
'name'
=>
'[内置]一简介+两列标题'
),
8
=>
array
(
'value'
=>
8
,
'fun'
=>
'ViewImagesSlide'
,
'name'
=>
'[内置]文章图片幻灯片'
),
9
=>
array
(
'value'
=>
9
,
'fun'
=>
'ViewImagesList112'
,
'name'
=>
'[内置]文章图片列表 sm[1]md[1]lg[2]'
),
10
=>
array
(
'value'
=>
10
,
'fun'
=>
'ViewImagesList122'
,
'name'
=>
'[内置]文章图片列表 sm[1]md[2]lg[2]'
),
11
=>
array
(
'value'
=>
11
,
'fun'
=>
'ViewImagesList123'
,
'name'
=>
'[内置]文章图片列表 sm[1]md[2]lg[3]'
),
12
=>
array
(
'value'
=>
12
,
'fun'
=>
'ViewImagesList222'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[2]lg[2]'
),
13
=>
array
(
'value'
=>
13
,
'fun'
=>
'ViewImagesList223'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[2]lg[3]'
),
14
=>
array
(
'value'
=>
14
,
'fun'
=>
'ViewImagesList234'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[3]lg[4]'
),
15
=>
array
(
'value'
=>
15
,
'fun'
=>
'ViewImagesList236'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[3]lg[6]'
),
// 100开始
array
(
'name'
=>
'标题列表'
,
'item'
=>
array
(
array
(
'value'
=>
0
,
'fun'
=>
'ViewTitle'
,
'name'
=>
'[内置]文章标题'
,
'checked'
=>
true
),
array
(
'value'
=>
1
,
'fun'
=>
'ViewTitleAccess'
,
'name'
=>
'[内置]文章标题+访问数'
),
array
(
'value'
=>
2
,
'fun'
=>
'ViewTitleCreateTime'
,
'name'
=>
'[内置]文章标题+发布时间'
),
array
(
'value'
=>
3
,
'fun'
=>
'ViewTitleAbstract'
,
'name'
=>
'[内置]文章标题+摘要'
),
array
(
'value'
=>
5
,
'fun'
=>
'ViewTitleAbstractOne'
,
'name'
=>
'[内置]文章标题(第一条带摘要)'
),
array
(
'value'
=>
7
,
'fun'
=>
'ViewOneIntroductionTwoTitle'
,
'name'
=>
'[内置]一简介+两列标题'
),
)
),
// 200开始
array
(
'name'
=>
'图文'
,
'item'
=>
array
(
array
(
'value'
=>
6
,
'fun'
=>
'ViewImagesContent'
,
'name'
=>
'[内置]文章图文展示'
),
)
),
// 300开始
array
(
'name'
=>
'幻灯片'
,
'item'
=>
array
(
array
(
'value'
=>
300
,
'fun'
=>
'ViewImagesSlideDefault'
,
'name'
=>
'[内置]幻灯片默认'
),
array
(
'value'
=>
301
,
'fun'
=>
'ViewImagesSlideDefaultTitle'
,
'name'
=>
'[内置]幻灯片默认+标题'
),
array
(
'value'
=>
302
,
'fun'
=>
'ViewImagesSlideDefaultMoreImage'
,
'name'
=>
'[内置]幻灯片默认+多图'
),
array
(
'value'
=>
303
,
'fun'
=>
'ViewImagesSlideDefaultThumbnailImage'
,
'name'
=>
'[内置]幻灯片默认+缩略图'
),
array
(
'value'
=>
304
,
'fun'
=>
'ViewImagesSlideRoundPoint'
,
'name'
=>
'[内置]幻灯片+圆形控制点'
),
array
(
'value'
=>
305
,
'fun'
=>
'ViewImagesSlidePartyPoint'
,
'name'
=>
'[内置]幻灯片+方形控制点'
),
array
(
'value'
=>
306
,
'fun'
=>
'ViewImagesSlideRoundPointBackBlack'
,
'name'
=>
'[内置]幻灯片+底部黑边圆形控制点'
),
array
(
'value'
=>
307
,
'fun'
=>
'ViewImagesSlideRoundPointBackWhite'
,
'name'
=>
'[内置]幻灯片+底部白边圆形控制点'
),
array
(
'value'
=>
308
,
'fun'
=>
'ViewImagesSlideLongPoint'
,
'name'
=>
'[内置]幻灯片+长条等分控制点'
),
array
(
'value'
=>
309
,
'fun'
=>
'ViewImagesSlideSquareArrow'
,
'name'
=>
'[内置]幻灯片+方形居中左右箭头'
),
array
(
'value'
=>
310
,
'fun'
=>
'ViewImagesSlideRoundArrow'
,
'name'
=>
'[内置]幻灯片+圆形居中左右箭头'
),
array
(
'value'
=>
311
,
'fun'
=>
'ViewImagesSlideOutsideArrow'
,
'name'
=>
'[内置]幻灯片+图片外左右箭头'
),
array
(
'value'
=>
312
,
'fun'
=>
'ViewImagesSlideOutsideRoundArrow'
,
'name'
=>
'[内置]幻灯片+图片外左右圆形箭头'
),
array
(
'value'
=>
313
,
'fun'
=>
'ViewImagesSlideTitleLongPoint'
,
'name'
=>
'[内置]幻灯片+标题+长条控制点'
),
array
(
'value'
=>
314
,
'fun'
=>
'ViewImagesSlideTitlePartyPoint'
,
'name'
=>
'[内置]幻灯片+标题+方形控制点'
),
array
(
'value'
=>
8
,
'fun'
=>
'ViewImagesSlideTitleArrow'
,
'name'
=>
'[内置]幻灯片+标题+居中左右箭头'
),
array
(
'value'
=>
315
,
'fun'
=>
'ViewImagesSlideTitleBottomArrow'
,
'name'
=>
'[内置]幻灯片+标题+居底左右箭头'
),
array
(
'value'
=>
316
,
'fun'
=>
'ViewImagesSlideTitleBottomRoundArrow'
,
'name'
=>
'[内置]幻灯片+标题+底部圆形左右箭头'
),
array
(
'value'
=>
317
,
'fun'
=>
'ViewImagesSlideFloatTitleBottomRoundArrow'
,
'name'
=>
'[内置]幻灯片+浮层标题+底部圆形控制点'
),
array
(
'value'
=>
318
,
'fun'
=>
'ViewImagesSlideTitleThumbnailImageNav'
,
'name'
=>
'[内置]幻灯片+标题+缩略图导航'
),
)
),
// 400开始
array
(
'name'
=>
'图片画廊自适应板块'
,
'item'
=>
array
(
array
(
'value'
=>
9
,
'fun'
=>
'ViewImagesList112'
,
'name'
=>
'[内置]文章图片列表 sm[1]md[1]lg[2]'
),
array
(
'value'
=>
10
,
'fun'
=>
'ViewImagesList122'
,
'name'
=>
'[内置]文章图片列表 sm[1]md[2]lg[2]'
),
array
(
'value'
=>
11
,
'fun'
=>
'ViewImagesList123'
,
'name'
=>
'[内置]文章图片列表 sm[1]md[2]lg[3]'
),
array
(
'value'
=>
12
,
'fun'
=>
'ViewImagesList222'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[2]lg[2]'
),
array
(
'value'
=>
13
,
'fun'
=>
'ViewImagesList223'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[2]lg[3]'
),
array
(
'value'
=>
14
,
'fun'
=>
'ViewImagesList234'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[3]lg[4]'
),
array
(
'value'
=>
15
,
'fun'
=>
'ViewImagesList236'
,
'name'
=>
'[内置]文章图片列表 sm[2]md[3]lg[6]'
),
)
),
),
// 页面设置-打开方式
...
...
Application/Home/Controller/CommonController.class.php
浏览文件 @
358a3f4c
...
...
@@ -358,7 +358,7 @@ class CommonController extends Controller
$article
=
$this
->
GetArticleList
(
$lay
->
GetLayoutMouleWhere
(
$iv
));
// 模块数据生成
$fun
=
L
(
'common_view_title_style_list'
)[
$iv
[
'title_style'
]][
'fun'
]
;
$fun
=
GetViewTitleStyleFun
(
$iv
[
'title_style'
])
;
$html
=
method_exists
(
$lay
,
$fun
)
?
$lay
->
$fun
(
$article
,
$iv
)
:
''
;
// 重新赋值
...
...
Application/Home/View/Default/User/LoginInfo.html
浏览文件 @
358a3f4c
...
...
@@ -12,13 +12,15 @@
<!-- form start -->
<form
class=
"am-form form-validation m-t-30"
method=
"post"
action=
"{{:U('Home/User/Login')}}"
request-type=
"ajax-url"
request-value=
"{{$referer_url}}"
>
<fieldset>
<span
class=
""
>
{{:L('user_login_on_accounts_text')}}
</span>
<if
condition=
"in_array('sms', MyC('home_user_reg_state'))"
>
<a
href=
"{{:U('Home/User/RegInfo')}}"
class=
"am-btn am-btn-secondary am-btn-xs am-radius"
>
{{:L('user_login_immediately_reg_text')}}
</a>
<elseif
condition=
"in_array('email', MyC('home_user_reg_state'))"
/>
<a
href=
"{{:U('Home/User/EmailRegInfo')}}"
class=
"am-btn am-btn-secondary am-btn-xs am-radius"
>
{{:L('user_login_immediately_reg_text')}}
</a>
<if
condition=
"in_array('sms', MyC('home_user_reg_state')) or in_array('email', MyC('home_user_reg_state'))"
>
<span
class=
""
>
{{:L('user_login_on_accounts_text')}}
</span>
<if
condition=
"in_array('sms', MyC('home_user_reg_state'))"
>
<a
href=
"{{:U('Home/User/RegInfo')}}"
class=
"am-btn am-btn-secondary am-btn-xs am-radius"
>
{{:L('user_login_immediately_reg_text')}}
</a>
<elseif
condition=
"in_array('email', MyC('home_user_reg_state'))"
/>
<a
href=
"{{:U('Home/User/EmailRegInfo')}}"
class=
"am-btn am-btn-secondary am-btn-xs am-radius"
>
{{:L('user_login_immediately_reg_text')}}
</a>
</if>
<hr
/>
</if>
<hr
/>
<label>
{{:L('user_login_accounts_text')}}
</label>
<div
class=
"am-form-group"
>
<input
type=
"text"
name=
"accounts"
class=
"am-radius"
minlength=
"1"
placeholder=
"{{:L('user_login_accounts_text')}}"
data-validation-message=
"{{:L('user_login_accounts_format')}}"
required
/>
...
...
ThinkPHP/Library/My/LayoutModule.class.php
浏览文件 @
358a3f4c
此差异已折叠。
点击以展开。
core.php
浏览文件 @
358a3f4c
...
...
@@ -38,7 +38,7 @@ if(is_dir("./Install") && !file_exists("./Install/install.lock"))
if
(
version_compare
(
PHP_VERSION
,
'5.3.0'
,
'<'
))
die
(
'require PHP > 5.3.0 !'
);
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define
(
'APP_DEBUG'
,
fals
e
);
define
(
'APP_DEBUG'
,
tru
e
);
// 分之模式,master,develop,test,debug
define
(
'APP_STATUS'
,
'master'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录