Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Added commenting to photos.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Feb 25, 2011
1 parent 8aaec57 commit bf3e6fc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/journal/languages/en-US/journal.lang
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ SOMEONE_COMMENTED_ON_YOUR_CONTEXT="%fullname$s commented on your journal entry."
COMMENTED_ON_YOUR_CONTEXT="commented on your entry"
COMMENTED_ON_YOUR_CONTEXT_SUBJECT="%firstname$s commented on your journal entry."
COMMENTED_ON_YOUR_CONTEXT_DESCRIPTION="
%fullname$s wrote: "%comment$s""
%fullname$s wrote:

"%comment$s""
11 changes: 11 additions & 0 deletions components/photos/controllers/photo.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ private function _Prep ( ) {
$this->View->Find ( '.original', 0 )->src = $photoLocation;

$this->View->Find ( '.description', 0 )->innertext = $this->Photos->Get ( 'Description' );

$this->_PrepComments();
}

private function _PrepComments ( ) {

$commentsData = array ( 'Context' => 'Photo', 'Id' => $this->Photos->Get ( 'Photo_PK' ) );
$this->View->Find ( '.comments', 0 )->innertext = $this->GetSys ( 'Components' )->Buffer ( 'comments', $commentsData );

return ( true );
}


}
9 changes: 9 additions & 0 deletions components/photos/languages/en-US/photos.lang
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ CANNOT_BE_NULL="%field$s shouldn't be empty."

ILLEGAL_CHARACTERS_IN_DIRECTORY="Directory can only be letters, numbers, and dashes."

[notifications]
CLICK_HERE_FOR_COMMENTS="See the comment thread:"
SOMEONE_COMMENTED_ON_YOUR_CONTEXT="%fullname$s commented on your photo."
COMMENTED_ON_YOUR_CONTEXT="commented on your photo"
COMMENTED_ON_YOUR_CONTEXT_SUBJECT="%firstname$s commented on your photo."
COMMENTED_ON_YOUR_CONTEXT_DESCRIPTION="
%fullname$s wrote:

"%comment$s""
1 change: 1 addition & 0 deletions components/photos/views/photo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
<p class="description"></p>

</section>
<section class="comments"></section>

0 comments on commit bf3e6fc

Please sign in to comment.