Author: johnnyoffline
Date: 2010-01-18 21:03:25 +0100 (Mon, 18 Jan 2010)
New Revision: 26838
Modified:
plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/_post.php
plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/indexSuccess.php
Log:
updated the default blog post template to include the author and edit button in
the meta info
Modified: plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/_post.php
===================================================================
--- plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/_post.php
2010-01-18 19:12:15 UTC (rev 26837)
+++ plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/_post.php
2010-01-18 20:03:25 UTC (rev 26838)
@@ -1,12 +1,17 @@
<?php use_helper('jQuery') ?>
<div class="pk-blog-post <?php echo $pk_blog_post->getAttachedMedia()?
'contains-media': '';?>">
- <?php if ($pk_blog_post->userHasPrivilege('edit')): ?>
- <?php echo link_to('Edit This Post', 'pk_blog_post_admin_edit',
$pk_blog_post, array('class' => 'pk-btn icon pk-blog')) ?>
- <?php endif ?>
- <h3 class="pk-blog-post-title"><?php echo
link_to($pk_blog_post->getTitle(), 'pk_blog_post', $pk_blog_post) ?></h3>
+ <h3 class="pk-blog-post-title">
+ <?php echo link_to($pk_blog_post->getTitle(), 'pk_blog_post',
$pk_blog_post) ?>
+ </h3>
<ul class="pk-blog-post-meta">
- <li class="date"><?php echo date('l F jS Y',
strtotime($pk_blog_post->getPublishedAt())) ?></li>
+ <li class="date"><?php echo date('l F jS Y',
strtotime($pk_blog_post->getPublishedAt())) ?></li>
+ <li class="author">Posted By: <?php echo
$pk_blog_post->getAuthor() ?></li>
+ <li class="edit">
+ <?php if ($pk_blog_post->userHasPrivilege('edit')): ?>
+ <?php echo link_to('Edit Post', 'pk_blog_post_admin_edit',
$pk_blog_post, array('class' => 'pk-btn icon pk-blog pk-edit-post')) ?>
+ <?php endif ?>
+ </li>
</ul>
<div class="pk-blog-post-body">
<?php if ($pk_blog_post->getAttachedMedia()): ?>
Modified: plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/indexSuccess.php
===================================================================
--- plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/indexSuccess.php
2010-01-18 19:12:15 UTC (rev 26837)
+++ plugins/pkBlogPlugin/trunk/modules/pkBlog/templates/indexSuccess.php
2010-01-18 20:03:25 UTC (rev 26838)
@@ -8,7 +8,7 @@
<div id="pk-subnav-bottom" class="pk-subnav-bottom"></div>
</div>
-<div class="pk-blog-main">
+<div id="pk-blog-main" class="pk-blog-main">
<?php if ($sf_params->get('year')): ?>
<h2><?php echo $sf_params->get('day') ?> <?php echo
($sf_params->get('month')) ? date('F',
strtotime(date('Y').'-'.$sf_params->get('month').'-01')) : '' ?> <?php echo
$sf_params->get('year') ?></h2>
<ul class="pk-controls pk-blog-browser-controls">
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.