public
Description: Blog Modules for CMS Made Simple 2.0
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsms-blog.git
Added dropdown to select the text processor



git-svn-id: http://svn.cmsmadesimple.org/svn/blog/trunk@14 
b11ec80d-081b-0410-a2d1-923984365dec
wishy (author)
Wed Mar 05 04:12:28 -0800 2008
commit  cb374083312a0c9125f24449acd0b8ed706657b6
tree    db8821a37ad4cde5056dd2c658a13e37c3be2cd4
parent  98dd345f6acd5616f88d4ed4034b53142030f03f
...
43
44
45
 
46
47
48
...
43
44
45
46
47
48
49
0
@@ -43,6 +43,7 @@ $smarty->assign('post_date_prefix', $id . 'post_date_');
0
 
0
 $smarty->assign('posts', cms_orm('BlogPost')->find_all(array('order' => 'id desc')));
0
 $smarty->assign('categories', cms_orm('BlogCategory')->find_all(array('order' => 'name ASC')));
0
+$smarty->assign('processors', CmsTextProcessor::list_processors_for_dropdown());
0
 
0
 $smarty->assign('writepost', $this->process_template('editpost.tpl', $id, $return_id));
0
 $smarty->assign('manageposts', $this->process_template('listposts.tpl', $id, $return_id));
...
43
44
45
 
46
47
48
...
43
44
45
46
47
48
49
0
@@ -43,6 +43,7 @@ if (isset($params['submitpost']) || isset($params['submitpublish']))
0
 }
0
 
0
 $smarty->assign('categories', cms_orm('BlogCategory')->find_all(array('order' => 'name ASC')));
0
+$smarty->assign('processors', CmsTextProcessor::list_processors_for_dropdown());
0
 
0
 $smarty->assign('form_action', 'editpost');
0
 $smarty->assign('post_date_prefix', $id . 'post_date_');
...
21
22
23
 
24
25
26
...
21
22
23
24
25
26
27
0
@@ -21,5 +21,6 @@ $lang['slug'] = 'Slug';
0
 $lang['postnotfound'] = 'Post Not Found';
0
 $lang['by'] = 'by';
0
 $lang['hasmore'] = 'Read the rest of this entry';
0
+$lang['text_processor'] = 'Text Processor';
0
 
0
 ?>
0
\ No newline at end of file
...
34
35
36
 
 
 
 
 
37
38
39
...
34
35
36
37
38
39
40
41
42
43
44
0
@@ -34,6 +34,11 @@
0
   </p>
0
   
0
   <p>
0
+ {mod_label name="blog_post[processor]" value="text_processor" translate=true}:<br />
0
+ {mod_dropdown name="blog_post[processor]" items=$processors selected_value=$blog_post->processor}
0
+ </p>
0
+
0
+ <p>
0
     {mod_label name='post_date_Month' value='postdate' translate=true}:<br />
0
     {html_select_date prefix=$post_date_prefix time=$blog_post->post_date->timestamp() start_year=2000 end_year=2020} {html_select_time prefix=$post_date_prefix time=$blog_post->post_date->timestamp()}
0
   </p>

Comments

    No one has commented yet.