You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/_tag_snippet.plugin.php
+68-26Lines changed: 68 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ function GetDefaultSettings( & $params )
62
62
returnarray(
63
63
'snippets' => array(
64
64
'label' => T_('Snippets'),
65
+
'note' => T_('Please note snippets defined here may be overridden per collection and per widget by same tag.'),
65
66
'type' => 'array',
66
67
'entries' => array(
67
68
'tag' => array(
@@ -92,9 +93,14 @@ function GetDefaultSettings( & $params )
92
93
*/
93
94
functionget_coll_setting_definitions( & $params )
94
95
{
96
+
global$admin_url;
97
+
95
98
returnarray_merge( array(
96
99
'snippets' => array(
97
100
'label' => T_('Snippets'),
101
+
'note' => sprintf( T_('Please note snippets defined here override snippets with same tag defined in <a %s>general settings of the plugin "%s"</a>, and they may be overridden per widget by same tag.'),
@@ -118,6 +124,48 @@ function get_coll_setting_definitions( & $params )
118
124
}
119
125
120
126
127
+
/**
128
+
* Get definitions for widget specific editable params
129
+
*
130
+
* @see Plugin::GetDefaultSettings()
131
+
* @param local params like 'for_editing' => true
132
+
*/
133
+
functionget_widget_param_definitions( $params )
134
+
{
135
+
global$Blog, $admin_url;
136
+
137
+
returnarray(
138
+
'title' => array(
139
+
'label' => T_('Block title'),
140
+
'note' => T_('Title to display in your skin.'),
141
+
'size' => 60,
142
+
'defaultvalue' => '',
143
+
),
144
+
'snippets' => array(
145
+
'label' => T_('Snippets'),
146
+
'note' => sprintf( T_('Please note snippets defined here override snippets with same tag defined in <a %s>current collection plugin settings</a> and in <a %s>general settings of the plugin "%s"</a>.'),
0 commit comments