Changeset 1319:32528cac0405 for admin/post.php
- Timestamp:
- 08/09/13 15:19:11 (12 years ago)
- Branch:
- twig
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r1315 r1319 130 130 "label" => __('Entry lang:')))) 131 131 ->addField( 132 new dcFieldText('post_password','',array( 133 "maxlength" => 32, 134 "label" => __('Entry password:')))) 135 ->addField( 136 new dcFieldText('post_url','',array( 137 "maxlength" => 255, 138 "label" => __('Basename:')))) 139 ->addField( 132 140 new dcFieldHidden ('id','')) 133 141 ; … … 146 154 else 147 155 { 148 $form->id = $post ->post_id;156 $form->id = $post_id = $post->post_id; 149 157 $form->cat_id = $post->cat_id; 150 158 $form->post_dt = date('Y-m-d H:i',strtotime($post->post_dt)); … … 165 173 $form->can_edit_post = $post->isEditable(); 166 174 $form->can_delete= $post->isDeletable(); 175 $page_title = __('Edit entry'); 176 177 } 178 } 179 if ($post_id) { 180 $_ctx->post_id = $post->post_id; 181 182 $_ctx->preview_url = 183 $core->blog->url.$core->url->getURLFor('preview',$core->auth->userID().'/'. 184 http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 185 '/'.$post->post_url); 167 186 168 } 187 188 $form_comment = new dcForm($core,'add-comment','post.php'); 189 $form_comment 190 ->addField( 191 new dcFieldText('comment_author','', array( 192 'maxlength' => 255, 193 'required' => true, 194 'label' => __('Name:')))) 195 ->addField( 196 new dcFieldText('comment_email','', array( 197 'maxlength' => 255, 198 'required' => true, 199 'label' => __('Email:')))) 200 ->addField( 201 new dcFieldText('comment_site','', array( 202 'maxlength' => 255, 203 'label' => __('Web site:')))) 204 ->addField( 205 new dcFieldTextArea('comment_content','', array( 206 'required' => true, 207 'label' => __('Comment:')))) 208 ->addField( 209 new dcFieldSubmit('add',__('Save'),array( 210 'action' => 'addComment'))) 211 ; 212 213 169 214 } 170 215 … … 182 227 183 228 $_ctx 229 ->fillPageTitle(html::escapeHTML($core->blog->name)) 184 230 ->fillPageTitle(__('Entries'),'posts.php') 185 231 ->fillPageTitle($page_title)
Note: See TracChangeset
for help on using the changeset viewer.