This repository was archived by the owner on Sep 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_widgets.php
More file actions
140 lines (130 loc) · 2.62 KB
/
_widgets.php
File metadata and controls
140 lines (130 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2015 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) {
return null;
}
$core->addBehavior('initWidgets', 'lastBlogUpdateWidgetAdmin');
function lastBlogUpdateWidgetAdmin($w)
{
global $core;
$w->create(
'lastblogupdate',
__('LastBlogUpdate: dates of lastest updates'),
'lastBlogUpdateWidgetPublic',
null,
"Show the dates of last updates of your blog in a widget"
);
$w->lastblogupdate->setting(
'title',
__('Title:'),
__('Dates of lastest updates'),
'text'
);
$w->lastblogupdate->setting(
'blog_show',
__('Show blog update'),
1,
'check'
);
$w->lastblogupdate->setting(
'blog_title',
__('Title for blog update:'),
__('Blog:'),
'text'
);
$w->lastblogupdate->setting(
'blog_text',
__('Text for blog update:'),
__('%Y-%m-%d %H:%M'),
'text'
);
$w->lastblogupdate->setting(
'post_show',
__('Show entry update'),
1,
'check'
);
$w->lastblogupdate->setting(
'post_title',
__('Title for entries update:'),
__('Entries:'),
'text'
);
$w->lastblogupdate->setting(
'post_text',
__('Text for entries update:'),
__('%Y-%m-%d %H:%M'),
'text'
);
$w->lastblogupdate->setting(
'comment_show',
__('Show comment update'),
1,
'check'
);
$w->lastblogupdate->setting(
'comment_title',
__('Title for comments update:'),
__('Comments:'),
'text'
);
$w->lastblogupdate->setting(
'comment_text',
__('Text for comments update:'),
__('%Y-%m-%d %H:%M'),
'text'
);
$w->lastblogupdate->setting(
'media_show',
__('Show media update'),
1,
'check'
);
$w->lastblogupdate->setting(
'media_title',
__('Title for media update:'),
__('Medias:'),
'text'
);
$w->lastblogupdate->setting(
'media_text',
__('Text for media update:'),
__('%Y-%m-%d %H:%M'),
'text'
);
# --BEHAVIOR-- lastBlogUpdateWidgetInit
$core->callBehavior('lastBlogUpdateWidgetInit', $w);
$w->lastblogupdate->setting(
'homeonly',
__('Display on:'),
0,
'combo',
array(
__('All pages') => 0,
__('Home page only') => 1,
__('Except on home page') => 2
)
);
$w->lastblogupdate->setting(
'content_only',
__('Content only'),
0,
'check'
);
$w->lastblogupdate->setting(
'class',
__('CSS class:'),
''
);
$w->lastblogupdate->setting('offline',__('Offline'),0,'check');
}