Changeset 543:851b5d7ff016 for admin/post.php
- Timestamp:
- 07/09/11 21:19:46 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r537 r543 323 323 324 324 if ($post_id && $post->post_status == 1) { 325 echo '<p><a id="post-preview" href="'.$post->getURL().'" class="button">'.__('View entry').'</a>'; 326 } elseif ($post_id) { 327 $preview_url = 328 $core->blog->url.$core->url->getBase('preview').'/'. 329 $core->auth->userID().'/'. 330 http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 331 '/'.$post->post_url; 332 echo '<p><a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview entry').'</a>'; 333 } 334 335 echo '</p>'; 336 325 echo '<p><a href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 326 } 337 327 if ($post_id) 338 328 { … … 389 379 ($post_id ? form::hidden('id',$post_id) : ''). 390 380 '<input type="submit" value="'.__('Save').' (s)" '. 391 'accesskey="s" name="save" /> '. 381 'accesskey="s" name="save" /> '; 382 if ($post_id && $post->post_status == 1) { 383 ; 384 } elseif ($post_id) { 385 $preview_url = 386 $core->blog->url.$core->url->getBase('preview').'/'. 387 $core->auth->userID().'/'. 388 http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 389 '/'.$post->post_url; 390 echo '<a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview').'</a> '; 391 } 392 echo 392 393 ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : ''). 393 394 $core->formNonce().
Note: See TracChangeset
for help on using the changeset viewer.