Changeset 2707
- Timestamp:
- 07/04/08 00:13:52 (20 months ago)
- Location:
- branches/release-41
- Files:
-
- 2 modified
-
lib/MT/CMS/Template.pm (modified) (1 diff)
-
tmpl/cms/list_widget.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/lib/MT/CMS/Template.pm
r2676 r2707 2390 2390 exists($opt{deleted}) ? ( saved => $opt{deleted} ) : () 2391 2391 }; 2392 2392 my $widget_actions = {}; 2393 $app->load_list_actions( 'template', $widget_actions ); 2394 $param->{'widget_' . $_} = $widget_actions->{$_} 2395 for keys %$widget_actions; 2393 2396 $app->load_tmpl('list_widget.tmpl', $param); 2394 2397 } -
branches/release-41/tmpl/cms/list_widget.tmpl
r2178 r2707 88 88 </mtapp:listing> 89 89 90 <mt: setvarblock name="create_link">90 <mt:SetVarBlock name="create_link"> 91 91 <p><a href="<mt:var name="script_url">?__mode=view&_type=template&type=widget&blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Create widget template"></a></p> 92 </mt:setvarblock> 93 92 </mt:SetVarBlock> 93 <mt:SetVarBlock name="label_singular"><__trans phrase='Widget Template'></mt:SetVarBlock> 94 <mt:SetVarBlock name="label_plural"><__trans phrase='Widget Templates'></mt:SetVarBlock> 94 95 <mt:include name="include/template_table.tmpl" 95 96 object_loop="$widget_table" 96 97 template_type="widget" 97 object_label="<__trans phrase="Widget Template">" 98 object_label_plural="<__trans phrase="Widget Templates">" 99 template_type_label="<__trans phrase="Widget Templates">"> 98 has_list_actions="$widget_has_list_actions" 99 list_actions="$widget_list_actions" 100 more_list_actions="$widget_more_list_actions" 101 object_label="$label_singular" 102 object_label_plural="$label_plural" 103 template_type_label="$label_plural"> 100 104 101 105 <mt:include name="include/footer.tmpl">
